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