X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fsecurity.test;h=ee7bd46dd30af7b2e79da393be738ea5c05369a6;hb=4203f7c88d5f17dc10075d371ca97aa6359ba71b;hp=91d29e298d949d3367ebea2eccbd5f075fd5801e;hpb=46f3eba7755089ff68fdc137b0754cae2fa523eb;p=tinc diff --git a/test/security.test b/test/security.test index 91d29e29..ee7bd46d 100755 --- a/test/security.test +++ b/test/security.test @@ -1,98 +1,128 @@ #!/bin/sh -. "${0%/*}/testlib.sh" +. ./testlib.sh -# Skip this test if tools are missing +echo [STEP] Skip this test if tools are missing -which socket >/dev/null || exit 77 -which timeout >/dev/null || exit 77 +command -v nc >/dev/null || exit $EXIT_SKIP_TEST +command -v timeout >/dev/null || exit $EXIT_SKIP_TEST -# Initialize two nodes +foo_port=30050 +bar_port=30051 -$tinc $c1 <