Add support for meson build system
[tinc] / test / invite-join.test
index 892767c..be2af2b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
-# shellcheck source=testlib.sh
-. "${0%/*}/testlib.sh"
+# shellcheck disable=SC1090
+. "$TESTLIB_PATH"
 
 echo [STEP] Initialize one node
 
@@ -18,7 +18,8 @@ start_tinc foo
 
 echo [STEP] Generate an invitation and let another node join the VPN
 
-tinc foo invite bar | tinc bar join
+invitation=$(tinc foo invite bar)
+tinc bar join "$invitation"
 
 echo [STEP] Test equivalence of host config files