projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
046a10d
)
Fix running the test suite in out-of-tree builds.
author
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 20 Jul 2021 12:15:41 +0000
(14:15 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 20 Jul 2021 12:15:41 +0000
(14:15 +0200)
14 files changed:
test/algorithms.test
patch
|
blob
|
history
test/basic.test
patch
|
blob
|
history
test/commandline.test
patch
|
blob
|
history
test/executables.test
patch
|
blob
|
history
test/import-export.test
patch
|
blob
|
history
test/invite-join.test
patch
|
blob
|
history
test/invite-offline.test
patch
|
blob
|
history
test/invite-tinc-up.test
patch
|
blob
|
history
test/legacy-protocol.test
patch
|
blob
|
history
test/ns-ping.test
patch
|
blob
|
history
test/scripts.test
patch
|
blob
|
history
test/security.test
patch
|
blob
|
history
test/sptps-basic.test
patch
|
blob
|
history
test/variables.test
patch
|
blob
|
history
diff --git
a/test/algorithms.test
b/test/algorithms.test
index
04d9131
..
bf073a5
100755
(executable)
--- a/
test/algorithms.test
+++ b/
test/algorithms.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Initialize two nodes
echo [STEP] Initialize two nodes
diff --git
a/test/basic.test
b/test/basic.test
index
d4d2cc6
..
b2a3e47
100755
(executable)
--- a/
test/basic.test
+++ b/
test/basic.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Initialize and test one node
echo [STEP] Initialize and test one node
diff --git
a/test/commandline.test
b/test/commandline.test
index
5d6e6a6
..
5e9fb85
100755
(executable)
--- a/
test/commandline.test
+++ b/
test/commandline.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Initialize one node
echo [STEP] Initialize one node
diff --git
a/test/executables.test
b/test/executables.test
index
28bff2a
..
bc53aed
100755
(executable)
--- a/
test/executables.test
+++ b/
test/executables.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Just test whether the executables work
echo [STEP] Just test whether the executables work
diff --git
a/test/import-export.test
b/test/import-export.test
index
190d21b
..
9b44e7a
100755
(executable)
--- a/
test/import-export.test
+++ b/
test/import-export.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Initialize three nodes
echo [STEP] Initialize three nodes
diff --git
a/test/invite-join.test
b/test/invite-join.test
index
892767c
..
58edd4a
100755
(executable)
--- a/
test/invite-join.test
+++ b/
test/invite-join.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Initialize one node
echo [STEP] Initialize one node
diff --git
a/test/invite-offline.test
b/test/invite-offline.test
index
61c0f0a
..
2d7878d
100755
(executable)
--- a/
test/invite-offline.test
+++ b/
test/invite-offline.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Initialize one node
echo [STEP] Initialize one node
diff --git
a/test/invite-tinc-up.test
b/test/invite-tinc-up.test
index
6cf280b
..
8f09f5e
100755
(executable)
--- a/
test/invite-tinc-up.test
+++ b/
test/invite-tinc-up.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Initialize one node
echo [STEP] Initialize one node
diff --git
a/test/legacy-protocol.test
b/test/legacy-protocol.test
index
3446621
..
1aef8f2
100755
(executable)
--- a/
test/legacy-protocol.test
+++ b/
test/legacy-protocol.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Initialize two nodes
echo [STEP] Initialize two nodes
diff --git
a/test/ns-ping.test
b/test/ns-ping.test
index
5931c75
..
54a9199
100755
(executable)
--- a/
test/ns-ping.test
+++ b/
test/ns-ping.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/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"
echo "[STEP] Skip this test if we aren't root or if 'ip netns' does not exist"
diff --git
a/test/scripts.test
b/test/scripts.test
index
a367827
..
9ef6416
100755
(executable)
--- a/
test/scripts.test
+++ b/
test/scripts.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Initializing server node
echo [STEP] Initializing server node
diff --git
a/test/security.test
b/test/security.test
index
91a5da5
..
815825e
100755
(executable)
--- a/
test/security.test
+++ b/
test/security.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Skip this test if tools are missing
echo [STEP] Skip this test if tools are missing
diff --git
a/test/sptps-basic.test
b/test/sptps-basic.test
index
34bef1a
..
87aee02
100755
(executable)
--- a/
test/sptps-basic.test
+++ b/
test/sptps-basic.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Skip this test if we did not compile sptps_test
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
echo [STEP] Test transfer of a simple file
-reference=
sptps-basic.test
+reference=
testlib.sh
(
sleep 3
(
sleep 3
diff --git
a/test/variables.test
b/test/variables.test
index
d4c606f
..
0164e27
100755
(executable)
--- a/
test/variables.test
+++ b/
test/variables.test
@@
-1,7
+1,7
@@
#!/bin/sh
# shellcheck source=testlib.sh
#!/bin/sh
# shellcheck source=testlib.sh
-.
"${0%/*}/testlib.sh"
+.
./testlib.sh
echo [STEP] Initialize one node
echo [STEP] Initialize one node