]> tinc-vpn.org Git - tinc/commitdiff
Fix running the test suite in out-of-tree builds.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 20 Jul 2021 12:15:41 +0000 (14:15 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 20 Jul 2021 12:15:41 +0000 (14:15 +0200)
14 files changed:
test/algorithms.test
test/basic.test
test/commandline.test
test/executables.test
test/import-export.test
test/invite-join.test
test/invite-offline.test
test/invite-tinc-up.test
test/legacy-protocol.test
test/ns-ping.test
test/scripts.test
test/security.test
test/sptps-basic.test
test/variables.test

index 04d91310d0ed845cdabc68655ec55bd56a1aeca1..bf073a56724fce9bf144a5c027a98dbd1de2dd1c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Initialize two nodes
 
index d4d2cc6dc888ac1f946a2365d733b47140aeb5f1..b2a3e472b5ab442f0a1f79d0d4d30551f3f80545 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Initialize and test one node
 
index 5d6e6a65752f2eb374c1402e71ee079556cf25f2..5e9fb85a242fa8d3d36c2efa9ea022ae6ac41b34 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Initialize one node
 
index 28bff2a3806ce767710d6fa1488e0b6bc15c38c4..bc53aed2a3db5236e731f62f31b95ea00365f3cb 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Just test whether the executables work
 
index 190d21ba309363366ef805db6666663a7e9d0692..9b44e7af5cb4ca457276a211cf4f35cc7a14abe4 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Initialize three nodes
 
index 892767c7126689866295c485b8a58ac395bd08cd..58edd4a64c27187f628277f12e6ed2b34be045e8 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Initialize one node
 
index 61c0f0a38fff2af0f7dc4264bd16fd1850a7fa50..2d7878d5900f88885f209c1854b7e3c272ad029e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Initialize one node
 
index 6cf280be4380b82efbf0a7c5b1f97fe860125525..8f09f5eda53e32ff2a5994e48be02c7cf7dcbf85 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Initialize one node
 
index 344662186586b3d4be09b9b74699434f0c88ec1f..1aef8f282d28d76455a99bcfcde4087bef08d67c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Initialize two nodes
 
index 5931c75ff0c542cbe13c73e0971424d27885bc12..54a9199c17e476ae83b0d8b20286210c63b2cbc8 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo "[STEP] Skip this test if we aren't root or if 'ip netns' does not exist"
 
index a367827326f9ac9a4b772a7341dd7488fb505d1b..9ef6416442f520f8514c29fd6b2e8ec042904934 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Initializing server node
 
index 91a5da522e88d8a5620abe08137591a06bc0348a..815825ea3a2afcfd29bfc7e1d761ac372c21fdca 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Skip this test if tools are missing
 
index 34bef1a1319f859cd0aa288251b474dd2c8fef84..87aee02141513a1b3e3a4f84528ebba0a0dd7cfd 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Skip this test if we did not compile sptps_test
 
@@ -22,7 +22,7 @@ $SPTPS_KEYPAIR "$client_priv" "$client_pub"
 
 echo [STEP] Test transfer of a simple file
 
-reference=sptps-basic.test
+reference=testlib.sh
 
 (
   sleep 3
index d4c606fe6eba49de421b1424241877d23376871b..0164e27a1317362807c0d7a558ef1292ca20cd4e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+. ./testlib.sh
 
 echo [STEP] Initialize one node