X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=test%2Fns-ping.test;fp=test%2Fns-ping.test;h=d5f9c7ff27b4d24cfd210b536d349eea93cf4c18;hp=0000000000000000000000000000000000000000;hb=fa1e9b046128db81c207c9ed920d068a144cd687;hpb=38adc8bf548c2c465d5f4147866c3d3f9112d3a8 diff --git a/test/ns-ping.test b/test/ns-ping.test new file mode 100755 index 00000000..d5f9c7ff --- /dev/null +++ b/test/ns-ping.test @@ -0,0 +1,70 @@ +#!/bin/sh + +. ./testlib.sh + +# 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 + +# Initialize two nodes + +$tinc $c1 <$d1/tinc-up <$d2/tinc-up <