X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Finvite-tinc-up.test;h=6cf280be4380b82efbf0a7c5b1f97fe860125525;hb=046a10d692d1ac22de4daf783ee4fe025c4eb6ec;hp=26efddf2e3b58a75d570d7915372c3337f947772;hpb=a0baeddb8aa745007d0302ed06247cabb8facb32;p=tinc diff --git a/test/invite-tinc-up.test b/test/invite-tinc-up.test index 26efddf2..6cf280be 100755 --- a/test/invite-tinc-up.test +++ b/test/invite-tinc-up.test @@ -1,51 +1,53 @@ #!/bin/sh +# shellcheck source=testlib.sh . "${0%/*}/testlib.sh" -# Initialize one node +echo [STEP] Initialize one node -$tinc $c1 <$d1/invitation-created <\$INVITATION_FILE -echo Ifconfig = 93.184.216.34/24 >>\$INVITATION_FILE -echo Route = 2606:2800:220:1::/64 2606:2800:220:1:248:1893:25c8:1946 >>\$INVITATION_FILE -echo Route = 1.2.3.4 1234:: >>\$INVITATION_FILE -$tinc $c1 export >>\$INVITATION_FILE -EOF - -chmod u+x $d1/invitation-created +# shellcheck disable=SC2016 +create_script foo invitation-created ' +cat >"$INVITATION_FILE" <