New commits: commit 81b8dbdc648703f0d15a86f7802fee4eda1db900 Author: Andrew Cagney <cag...@gnu.org> Date: Tue Feb 4 13:18:03 2020 -0500
testing: use ping-once.sh and wait-for.sh to make newoe-04-pass-pass more robust For instance: ../../pluto/bin/ping-once.sh --down -I 192.1.3.209 192.1.2.23 ../../pluto/bin/wait-for.sh --match private-or-clear -- ipsec whack --trafficstatus ../../pluto/bin/ping-once.sh --up -I 192.1.3.209 192.1.2.23 ipsec whack --shuntstatus ../../pluto/bin/ping-once.sh --down -I 192.1.3.209 7.7.7.7 ../../pluto/bin/wait-for.sh --match 7.7.7.7 -- ipsec whack --shuntstatus ../../pluto/bin/ping-once.sh --up -I 192.1.3.209 7.7.7.7 commit b0335ea1a29a70ce6633f38e3cb65575533a161d Author: Andrew Cagney <cag...@gnu.org> Date: Tue Feb 4 12:57:33 2020 -0500 testing: add ../../pluto/bin/wait-for.sh Usage: ./testing/pluto/bin/wait-for.sh [ --timeout <seconds> | --no-match <regex> | --match <regex> ] -- <command>... Repeatedly grep the output from <command>... until <regex> either matches (--match) or does not match (--no-match); Pause for one second between grep attempts. Options: --timeout <seconds> Set the timeout (nr attempts * 1 second); defaut is 30 attempts which is roughly 30 seconds. --match <regex> Keep trying until the <regex> matches the output from <command>... --no-match <regex> Keep trying until the <regex> does not match the output from <command>... For instance, to wait for the connection east-west appears: ./testing/pluto/bin/wait-for.sh --match east-west -- ipsec whack --trafficstatus and to then wait for it to disappear: ./testing/pluto/bin/wait-for.sh --no-match east-west -- ipsec whack --trafficstatus _______________________________________________ Swan-commit mailing list Swan-commit@lists.libreswan.org https://lists.libreswan.org/mailman/listinfo/swan-commit