X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fns-ping.test;h=bb76ed392e7ad95ff7a7b7298c566699e02bbf67;hb=cfe507c299935bd231be698b8a426cc730f52936;hp=d5f9c7ff27b4d24cfd210b536d349eea93cf4c18;hpb=fa1e9b046128db81c207c9ed920d068a144cd687;p=tinc diff --git a/test/ns-ping.test b/test/ns-ping.test index d5f9c7ff..bb76ed39 100755 --- a/test/ns-ping.test +++ b/test/ns-ping.test @@ -2,69 +2,80 @@ . ./testlib.sh -# Skip this test if we aren't root or if "ip netns" does not exist +echo "[STEP] Skip this test if we aren't root or if 'ip netns' does not exist" -test "`id -u`" = "0" || exit 77 -ip netns list || exit 77 +test "$(id -u)" = "0" || exit $EXIT_SKIP_TEST +test -e /dev/net/tun || exit $EXIT_SKIP_TEST +ip netns list || exit $EXIT_SKIP_TEST -# Initialize two nodes +ip_foo=192.168.1.1 +ip_bar=192.168.1.2 +mask=24 -$tinc $c1 <$d1/tinc-up <$d2/tinc-up <