X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fsecurity.test;h=815825ea3a2afcfd29bfc7e1d761ac372c21fdca;hb=d8e93b6816af7c33cd8dd0b27cfd18be0835e69a;hp=91d29e298d949d3367ebea2eccbd5f075fd5801e;hpb=46f3eba7755089ff68fdc137b0754cae2fa523eb;p=tinc diff --git a/test/security.test b/test/security.test index 91d29e29..815825ea 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 +which nc >/dev/null || exit $EXIT_SKIP_TEST +which timeout >/dev/null || exit $EXIT_SKIP_TEST -# Initialize two nodes +foo_port=30050 +bar_port=30051 -$tinc $c1 <