X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fscripts.test;h=e209d6912d9c83cbc9de47dbc56d160b7e97d71a;hb=refs%2Fheads%2F1.1;hp=a76356aeae3498a1f29dd0ecc9bc2154782022d3;hpb=cfe507c299935bd231be698b8a426cc730f52936;p=tinc diff --git a/test/scripts.test b/test/scripts.test deleted file mode 100755 index a76356ae..00000000 --- a/test/scripts.test +++ /dev/null @@ -1,132 +0,0 @@ -#!/bin/sh - -. ./testlib.sh - -echo [STEP] Initializing server node - -port_foo=30040 -port_bar=30041 - -tinc foo <>'$OUT' "$script" "$TINC_SCRIPT_VARS" -EOF - ) - - create_script foo "$script" "$commands" -done - -echo [STEP] Starting server node - -start_tinc foo -n netname -wait_script foo subnet-up 2 -echo foo-started >>"$OUT" - -echo [STEP] Inviting client node - -url=$(tinc foo -n netname2 invite bar) -file=$(basename "$(find "$DIR_FOO/invitations" -type f ! -name ed25519_key.priv)") - -if is_windows; then - file=$(cygpath --unix -- "$file") -fi - -wait_script foo invitation-created -echo bar-invited >>"$OUT" - -echo [STEP] Joining client node - -tinc bar -n netname3 join "$url" -wait_script foo invitation-accepted -echo bar-joined >>"$OUT" - -echo [STEP] Starting client node - -tinc bar <>"$OUT" - -tinc foo debug 4 -tinc bar stop -wait_script foo subnet-down 2 -echo bar-stopped >>"$OUT" - -tinc foo debug 5 -start_tinc bar -wait_script foo subnet-up 2 -echo bar-started-2 >>"$OUT" - -echo [STEP] Stop server node - -tinc foo stop -tinc bar stop -wait_script foo tinc-down - -echo [STEP] Check if the script output is what is expected - -cat >"$OUT.expected" <