]> www.tinc-vpn.org Git - tinc/blobdiff - test/testlib.sh
Ensure "make distcheck" really runs without errors.
[tinc] / test / testlib.sh
index 39a2bf4e14468cb7f60b563dfea32957f2c557d7..75b60a792a21598c4c6f272bf71c03c625aab237 100644 (file)
@@ -5,21 +5,14 @@
 tincd=../src/tincd
 tinc=../src/tinc
 sptps_test=../src/sptps_test
+sptps_keypair=../src/sptps_keypair
 
 # Test directories
 
-case "$_" in
-       /*)
-               d1=$_.1
-               d2=$_.2
-               d3=$_.3
-       ;;
-       *)
-               d1=$PWD/$_.1
-               d2=$PWD/$_.2
-               d3=$PWD/$_.3
-       ;;
-esac
+scriptname=`basename $0`
+d1=$PWD/$scriptname.1
+d2=$PWD/$scriptname.2
+d3=$PWD/$scriptname.3
 
 # Default arguments for both tinc and tincd