[Swan-commit] Changes to ref refs/heads/master
Andrew Cagney
cagney at vault.libreswan.fi
Tue Feb 4 18:20:06 UTC 2020
New commits:
commit 81b8dbdc648703f0d15a86f7802fee4eda1db900
Author: Andrew Cagney <cagney at 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 <cagney at 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
More information about the Swan-commit
mailing list