X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fsecurity.test;h=ee7bd46dd30af7b2e79da393be738ea5c05369a6;hb=7e09765003114ba37fed2851d9126924d0f813f1;hp=91a5da522e88d8a5620abe08137591a06bc0348a;hpb=046a10d692d1ac22de4daf783ee4fe025c4eb6ec;p=tinc diff --git a/test/security.test b/test/security.test index 91a5da52..ee7bd46d 100755 --- a/test/security.test +++ b/test/security.test @@ -1,12 +1,11 @@ #!/bin/sh -# shellcheck source=testlib.sh -. "${0%/*}/testlib.sh" +. ./testlib.sh echo [STEP] Skip this test if tools are missing -which nc >/dev/null || exit $EXIT_SKIP_TEST -which timeout >/dev/null || exit $EXIT_SKIP_TEST +command -v nc >/dev/null || exit $EXIT_SKIP_TEST +command -v timeout >/dev/null || exit $EXIT_SKIP_TEST foo_port=30050 bar_port=30051