]> www.tinc-vpn.org Git - tinc/blobdiff - test/scripts.test
Ensure "make distcheck" really runs without errors.
[tinc] / test / scripts.test
index de69ad3a6a1fa9a233d1d6c11db8ecebb79c5e79..2580ced778decfa7bd6c0d1e0204cd552ba1bbe4 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
 
 # Initialize server node
 
@@ -8,7 +8,7 @@ $tinc $c1 <<EOF
 init foo
 set DeviceType dummy
 set Port 32759
-set Address localhost
+set Address 127.0.0.1
 add Subnet 10.0.0.1
 add Subnet fec0::/64
 EOF
@@ -71,6 +71,8 @@ echo bar-started >>$OUT
 # Stop server node
 
 $tinc $c1 stop
+sleep 1
+$tinc $c2 stop
 
 # Check if the script output is what is expected