diff options
author | Reto Buerki <reet@codelabs.ch> | 2012-12-10 16:16:56 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-01-17 16:54:55 +0100 |
commit | 76ccd25a050a543e9dfc5fd23d5ebe976660fccb (patch) | |
tree | b1bc8cd79b24138e9c1603e18a2b61366b6d4363 /testing/tests/ipv6/net2net-ip6-in-ip4-ikev1 | |
parent | 44e83859e0819c86d10007380da19829e3112f51 (diff) | |
download | strongswan-76ccd25a050a543e9dfc5fd23d5ebe976660fccb.tar.bz2 strongswan-76ccd25a050a543e9dfc5fd23d5ebe976660fccb.tar.xz |
Add expect-connection guest image script
This script can be used in pretest.dat files to wait until an IPsec
connection becomes available. This avoids unconditional sleeps and
improves test performance.
The ipv6 tests have been updated to use the expect-connection script.
Diffstat (limited to 'testing/tests/ipv6/net2net-ip6-in-ip4-ikev1')
-rw-r--r-- | testing/tests/ipv6/net2net-ip6-in-ip4-ikev1/pretest.dat | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/ipv6/net2net-ip6-in-ip4-ikev1/pretest.dat b/testing/tests/ipv6/net2net-ip6-in-ip4-ikev1/pretest.dat index 7781f9b9f..dd35f747c 100644 --- a/testing/tests/ipv6/net2net-ip6-in-ip4-ikev1/pretest.dat +++ b/testing/tests/ipv6/net2net-ip6-in-ip4-ikev1/pretest.dat @@ -6,6 +6,6 @@ sun::"ip route add fec1:\:/16 via fec0:\:1" bob::"ip route add fec1:\:/16 via fec2:\:1" moon::ipsec start sun::ipsec start -moon::sleep 2 +moon::expect-connection net-net +sun::expect-connection net-net moon::ipsec up net-net -moon::sleep 1 |