X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fsecurity.test;h=76b825dc2e5e52c1274572c7232cfa3770251424;hb=612ad2749ae504e6513748f881f0884ceeab2ed7;hp=91d29e298d949d3367ebea2eccbd5f075fd5801e;hpb=46f3eba7755089ff68fdc137b0754cae2fa523eb;p=tinc diff --git a/test/security.test b/test/security.test index 91d29e29..76b825dc 100755 --- a/test/security.test +++ b/test/security.test @@ -1,98 +1,129 @@ #!/bin/sh -. "${0%/*}/testlib.sh" +# shellcheck source=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 <