testing: Remove nearly all sleep calls from pretest and posttest scripts
authorTobias Brunner <tobias@strongswan.org>
Thu, 5 Nov 2015 13:47:58 +0000 (14:47 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 9 Nov 2015 14:18:35 +0000 (15:18 +0100)
commitf519acd42f9efe7e566b918495418b2772a82c2a
treecf02be49743fcbaafd8f614daa263fb72d816a65
parent747b64875f1577654d06a0d1517acfb8e3051c47
testing: Remove nearly all sleep calls from pretest and posttest scripts

By consistently using the `expect-connection` helper we can avoid pretty
much all previously needed calls to sleep.
303 files changed:
testing/tests/af-alg/alg-camellia/pretest.dat
testing/tests/af-alg/rw-cert/pretest.dat
testing/tests/gcrypt-ikev1/alg-serpent/pretest.dat
testing/tests/gcrypt-ikev1/alg-twofish/pretest.dat
testing/tests/gcrypt-ikev2/alg-camellia/pretest.dat
testing/tests/gcrypt-ikev2/rw-cert/pretest.dat
testing/tests/ha/active-passive/pretest.dat
testing/tests/ha/both-active/pretest.dat
testing/tests/ike/rw-cert/pretest.dat
testing/tests/ike/rw_v1-net_v2/pretest.dat
testing/tests/ikev1/alg-3des-md5/pretest.dat
testing/tests/ikev1/alg-blowfish/pretest.dat
testing/tests/ikev1/alg-modp-subgroup/pretest.dat
testing/tests/ikev1/alg-sha256/pretest.dat
testing/tests/ikev1/alg-sha384/pretest.dat
testing/tests/ikev1/alg-sha512/pretest.dat
testing/tests/ikev1/compress/pretest.dat
testing/tests/ikev1/config-payload-push/pretest.dat
testing/tests/ikev1/config-payload/pretest.dat
testing/tests/ikev1/double-nat-net/pretest.dat
testing/tests/ikev1/double-nat/pretest.dat
testing/tests/ikev1/dpd-clear/pretest.dat
testing/tests/ikev1/dpd-restart/evaltest.dat
testing/tests/ikev1/dpd-restart/pretest.dat
testing/tests/ikev1/dynamic-initiator/posttest.dat
testing/tests/ikev1/dynamic-initiator/pretest.dat
testing/tests/ikev1/dynamic-responder/posttest.dat
testing/tests/ikev1/dynamic-responder/pretest.dat
testing/tests/ikev1/dynamic-two-peers/posttest.dat
testing/tests/ikev1/dynamic-two-peers/pretest.dat
testing/tests/ikev1/esp-alg-aes-ccm/pretest.dat
testing/tests/ikev1/esp-alg-aes-ctr/pretest.dat
testing/tests/ikev1/esp-alg-aes-gcm/pretest.dat
testing/tests/ikev1/esp-alg-aes-gmac/pretest.dat
testing/tests/ikev1/esp-alg-aes-xcbc/pretest.dat
testing/tests/ikev1/esp-alg-null/pretest.dat
testing/tests/ikev1/host2host-ah/pretest.dat
testing/tests/ikev1/host2host-cert/pretest.dat
testing/tests/ikev1/host2host-transport/pretest.dat
testing/tests/ikev1/ip-pool-db/pretest.dat
testing/tests/ikev1/ip-pool/pretest.dat
testing/tests/ikev1/multi-level-ca-cr-init/pretest.dat
testing/tests/ikev1/multi-level-ca-cr-resp/pretest.dat
testing/tests/ikev1/multi-level-ca/pretest.dat
testing/tests/ikev1/nat-rw/pretest.dat
testing/tests/ikev1/nat-virtual-ip/pretest.dat
testing/tests/ikev1/net2net-ah/pretest.dat
testing/tests/ikev1/net2net-cert/pretest.dat
testing/tests/ikev1/net2net-fragmentation/pretest.dat
testing/tests/ikev1/net2net-ntru-cert/pretest.dat
testing/tests/ikev1/net2net-psk-fail/pretest.dat
testing/tests/ikev1/net2net-psk/pretest.dat
testing/tests/ikev1/protoport-dual/pretest.dat
testing/tests/ikev1/rw-cert-aggressive/pretest.dat
testing/tests/ikev1/rw-cert-unity/pretest.dat
testing/tests/ikev1/rw-cert/pretest.dat
testing/tests/ikev1/rw-initiator-only/pretest.dat
testing/tests/ikev1/rw-ntru-psk/pretest.dat
testing/tests/ikev1/rw-psk-aggressive/pretest.dat
testing/tests/ikev1/rw-psk-fqdn/pretest.dat
testing/tests/ikev1/rw-psk-ipv4/pretest.dat
testing/tests/ikev1/virtual-ip/pretest.dat
testing/tests/ikev1/xauth-id-psk-config/pretest.dat
testing/tests/ikev1/xauth-id-rsa-aggressive/pretest.dat
testing/tests/ikev1/xauth-id-rsa-config/pretest.dat
testing/tests/ikev1/xauth-id-rsa-hybrid/pretest.dat
testing/tests/ikev1/xauth-psk/pretest.dat
testing/tests/ikev1/xauth-rsa-eap-md5-radius/pretest.dat
testing/tests/ikev1/xauth-rsa-radius/pretest.dat
testing/tests/ikev1/xauth-rsa/pretest.dat
testing/tests/ikev2/acert-cached/pretest.dat
testing/tests/ikev2/acert-fallback/pretest.dat
testing/tests/ikev2/acert-inline/pretest.dat
testing/tests/ikev2/after-2038-certs/pretest.dat
testing/tests/ikev2/alg-3des-md5/pretest.dat
testing/tests/ikev2/alg-aes-ccm/pretest.dat
testing/tests/ikev2/alg-aes-ctr/pretest.dat
testing/tests/ikev2/alg-aes-gcm/pretest.dat
testing/tests/ikev2/alg-aes-xcbc/pretest.dat
testing/tests/ikev2/alg-blowfish/pretest.dat
testing/tests/ikev2/alg-chacha20poly1305/pretest.dat
testing/tests/ikev2/alg-modp-subgroup/pretest.dat
testing/tests/ikev2/alg-sha256-96/pretest.dat
testing/tests/ikev2/alg-sha256/pretest.dat
testing/tests/ikev2/alg-sha384/pretest.dat
testing/tests/ikev2/alg-sha512/pretest.dat
testing/tests/ikev2/any-interface/pretest.dat
testing/tests/ikev2/compress/pretest.dat
testing/tests/ikev2/config-payload-swapped/pretest.dat
testing/tests/ikev2/config-payload/pretest.dat
testing/tests/ikev2/critical-extension/pretest.dat
testing/tests/ikev2/crl-from-cache/pretest.dat
testing/tests/ikev2/crl-ldap/pretest.dat
testing/tests/ikev2/crl-revoked/pretest.dat
testing/tests/ikev2/crl-to-cache/pretest.dat
testing/tests/ikev2/default-keys/pretest.dat
testing/tests/ikev2/dhcp-dynamic/pretest.dat
testing/tests/ikev2/dhcp-static-client-id/pretest.dat
testing/tests/ikev2/dhcp-static-mac/pretest.dat
testing/tests/ikev2/double-nat-net/pretest.dat
testing/tests/ikev2/double-nat/pretest.dat
testing/tests/ikev2/dpd-clear/pretest.dat
testing/tests/ikev2/dpd-hold/pretest.dat
testing/tests/ikev2/dpd-restart/evaltest.dat
testing/tests/ikev2/dpd-restart/pretest.dat
testing/tests/ikev2/dynamic-initiator/posttest.dat
testing/tests/ikev2/dynamic-initiator/pretest.dat
testing/tests/ikev2/dynamic-two-peers/posttest.dat
testing/tests/ikev2/dynamic-two-peers/pretest.dat
testing/tests/ikev2/esp-alg-aes-gmac/pretest.dat
testing/tests/ikev2/esp-alg-md5-128/pretest.dat
testing/tests/ikev2/esp-alg-null/pretest.dat
testing/tests/ikev2/esp-alg-sha1-160/pretest.dat
testing/tests/ikev2/farp/pretest.dat
testing/tests/ikev2/force-udp-encaps/pretest.dat
testing/tests/ikev2/forecast/pretest.dat
testing/tests/ikev2/host2host-ah/pretest.dat
testing/tests/ikev2/host2host-cert/pretest.dat
testing/tests/ikev2/host2host-swapped/pretest.dat
testing/tests/ikev2/host2host-transport/pretest.dat
testing/tests/ikev2/inactivity-timeout/pretest.dat
testing/tests/ikev2/ip-pool-db/pretest.dat
testing/tests/ikev2/ip-pool-wish/pretest.dat
testing/tests/ikev2/ip-pool/pretest.dat
testing/tests/ikev2/ip-split-pools-db/pretest.dat
testing/tests/ikev2/ip-two-pools-db/pretest.dat
testing/tests/ikev2/ip-two-pools-mixed/pretest.dat
testing/tests/ikev2/ip-two-pools-v4v6-db/pretest.dat
testing/tests/ikev2/ip-two-pools-v4v6/pretest.dat
testing/tests/ikev2/ip-two-pools/pretest.dat
testing/tests/ikev2/lookip/pretest.dat
testing/tests/ikev2/mobike-nat/pretest.dat
testing/tests/ikev2/mobike-virtual-ip/pretest.dat
testing/tests/ikev2/mobike/pretest.dat
testing/tests/ikev2/mult-auth-rsa-eap-sim-id/pretest.dat
testing/tests/ikev2/multi-level-ca-cr-init/pretest.dat
testing/tests/ikev2/multi-level-ca-cr-resp/pretest.dat
testing/tests/ikev2/multi-level-ca-ldap/pretest.dat
testing/tests/ikev2/multi-level-ca-loop/pretest.dat
testing/tests/ikev2/multi-level-ca-pathlen/pretest.dat
testing/tests/ikev2/multi-level-ca-revoked/pretest.dat
testing/tests/ikev2/multi-level-ca-strict/pretest.dat
testing/tests/ikev2/multi-level-ca/posttest.dat
testing/tests/ikev2/multi-level-ca/pretest.dat
testing/tests/ikev2/nat-rw-mark/pretest.dat
testing/tests/ikev2/nat-rw-psk/pretest.dat
testing/tests/ikev2/nat-rw/pretest.dat
testing/tests/ikev2/nat-virtual-ip/pretest.dat
testing/tests/ikev2/net2net-ah/pretest.dat
testing/tests/ikev2/net2net-cert-sha2/pretest.dat
testing/tests/ikev2/net2net-cert/pretest.dat
testing/tests/ikev2/net2net-dnscert/pretest.dat
testing/tests/ikev2/net2net-dnssec/pretest.dat
testing/tests/ikev2/net2net-esn/pretest.dat
testing/tests/ikev2/net2net-ntru-bandwidth/pretest.dat
testing/tests/ikev2/net2net-ntru-cert/pretest.dat
testing/tests/ikev2/net2net-pgp-v3/pretest.dat
testing/tests/ikev2/net2net-pgp-v4/pretest.dat
testing/tests/ikev2/net2net-pkcs12/pretest.dat
testing/tests/ikev2/net2net-psk-dscp/pretest.dat
testing/tests/ikev2/net2net-psk-fail/pretest.dat
testing/tests/ikev2/net2net-psk/pretest.dat
testing/tests/ikev2/net2net-rfc3779/pretest.dat
testing/tests/ikev2/net2net-route/pretest.dat
testing/tests/ikev2/net2net-rsa/pretest.dat
testing/tests/ikev2/net2net-same-nets/pretest.dat
testing/tests/ikev2/net2net-start/pretest.dat
testing/tests/ikev2/ocsp-local-cert/pretest.dat
testing/tests/ikev2/ocsp-multi-level/pretest.dat
testing/tests/ikev2/ocsp-no-signer-cert/pretest.dat
testing/tests/ikev2/ocsp-revoked/pretest.dat
testing/tests/ikev2/ocsp-root-cert/pretest.dat
testing/tests/ikev2/ocsp-signer-cert/pretest.dat
testing/tests/ikev2/ocsp-strict-ifuri/pretest.dat
testing/tests/ikev2/ocsp-timeouts-good/pretest.dat
testing/tests/ikev2/ocsp-timeouts-unknown/pretest.dat
testing/tests/ikev2/ocsp-untrusted-cert/pretest.dat
testing/tests/ikev2/protoport-dual/pretest.dat
testing/tests/ikev2/protoport-route/pretest.dat
testing/tests/ikev2/reauth-early/pretest.dat
testing/tests/ikev2/reauth-late/pretest.dat
testing/tests/ikev2/reauth-mbb-virtual-ip/pretest.dat
testing/tests/ikev2/reauth-mbb/pretest.dat
testing/tests/ikev2/rw-cert/pretest.dat
testing/tests/ikev2/rw-dnssec/pretest.dat
testing/tests/ikev2/rw-eap-aka-id-rsa/pretest.dat
testing/tests/ikev2/rw-eap-aka-rsa/pretest.dat
testing/tests/ikev2/rw-eap-dynamic/pretest.dat
testing/tests/ikev2/rw-eap-framed-ip-radius/pretest.dat
testing/tests/ikev2/rw-eap-md5-class-radius/pretest.dat
testing/tests/ikev2/rw-eap-md5-id-prompt/pretest.dat
testing/tests/ikev2/rw-eap-md5-id-radius/pretest.dat
testing/tests/ikev2/rw-eap-md5-radius/pretest.dat
testing/tests/ikev2/rw-eap-md5-rsa/pretest.dat
testing/tests/ikev2/rw-eap-mschapv2-id-rsa/pretest.dat
testing/tests/ikev2/rw-eap-peap-md5/pretest.dat
testing/tests/ikev2/rw-eap-peap-mschapv2/pretest.dat
testing/tests/ikev2/rw-eap-peap-radius/pretest.dat
testing/tests/ikev2/rw-eap-sim-id-radius/pretest.dat
testing/tests/ikev2/rw-eap-sim-only-radius/pretest.dat
testing/tests/ikev2/rw-eap-sim-radius/pretest.dat
testing/tests/ikev2/rw-eap-sim-rsa/pretest.dat
testing/tests/ikev2/rw-eap-tls-fragments/pretest.dat
testing/tests/ikev2/rw-eap-tls-only/pretest.dat
testing/tests/ikev2/rw-eap-tls-radius/pretest.dat
testing/tests/ikev2/rw-eap-ttls-only/pretest.dat
testing/tests/ikev2/rw-eap-ttls-phase2-piggyback/pretest.dat
testing/tests/ikev2/rw-eap-ttls-radius/pretest.dat
testing/tests/ikev2/rw-hash-and-url/pretest.dat
testing/tests/ikev2/rw-initiator-only/pretest.dat
testing/tests/ikev2/rw-mark-in-out/pretest.dat
testing/tests/ikev2/rw-ntru-bliss/pretest.dat
testing/tests/ikev2/rw-ntru-psk/pretest.dat
testing/tests/ikev2/rw-pkcs8/pretest.dat
testing/tests/ikev2/rw-psk-fqdn/pretest.dat
testing/tests/ikev2/rw-psk-ipv4/pretest.dat
testing/tests/ikev2/rw-psk-no-idr/pretest.dat
testing/tests/ikev2/rw-psk-rsa-mixed/pretest.dat
testing/tests/ikev2/rw-psk-rsa-split/pretest.dat
testing/tests/ikev2/rw-radius-accounting/pretest.dat
testing/tests/ikev2/rw-sig-auth/pretest.dat
testing/tests/ikev2/strong-keys-certs/pretest.dat
testing/tests/ikev2/two-certs/pretest.dat
testing/tests/ikev2/virtual-ip-override/pretest.dat
testing/tests/ikev2/virtual-ip/pretest.dat
testing/tests/ikev2/wildcards/pretest.dat
testing/tests/libipsec/host2host-cert/pretest.dat
testing/tests/libipsec/net2net-3des/pretest.dat
testing/tests/libipsec/net2net-cert/pretest.dat
testing/tests/libipsec/rw-suite-b/pretest.dat
testing/tests/openssl-ikev1/alg-camellia/pretest.dat
testing/tests/openssl-ikev1/alg-ecp-high/pretest.dat
testing/tests/openssl-ikev1/alg-ecp-low/pretest.dat
testing/tests/openssl-ikev1/ecdsa-certs/pretest.dat
testing/tests/openssl-ikev2/alg-aes-gcm/pretest.dat
testing/tests/openssl-ikev2/alg-blowfish/pretest.dat
testing/tests/openssl-ikev2/alg-camellia/pretest.dat
testing/tests/openssl-ikev2/alg-ecp-brainpool-high/pretest.dat
testing/tests/openssl-ikev2/alg-ecp-brainpool-low/pretest.dat
testing/tests/openssl-ikev2/alg-ecp-high/pretest.dat
testing/tests/openssl-ikev2/alg-ecp-low/pretest.dat
testing/tests/openssl-ikev2/critical-extension/pretest.dat
testing/tests/openssl-ikev2/ecdsa-certs/pretest.dat
testing/tests/openssl-ikev2/ecdsa-pkcs8/pretest.dat
testing/tests/openssl-ikev2/net2net-pgp-v3/pretest.dat
testing/tests/openssl-ikev2/net2net-pkcs12/pretest.dat
testing/tests/openssl-ikev2/rw-cert/pretest.dat
testing/tests/openssl-ikev2/rw-eap-tls-only/pretest.dat
testing/tests/openssl-ikev2/rw-suite-b-128/pretest.dat
testing/tests/openssl-ikev2/rw-suite-b-192/pretest.dat
testing/tests/p2pnat/behind-same-nat/pretest.dat
testing/tests/p2pnat/medsrv-psk/pretest.dat
testing/tests/pfkey/alg-aes-xcbc/pretest.dat
testing/tests/pfkey/alg-sha384/pretest.dat
testing/tests/pfkey/alg-sha512/pretest.dat
testing/tests/pfkey/compress/pretest.dat
testing/tests/pfkey/esp-alg-null/pretest.dat
testing/tests/pfkey/host2host-transport/pretest.dat
testing/tests/pfkey/nat-rw/pretest.dat
testing/tests/pfkey/net2net-route/pretest.dat
testing/tests/pfkey/protoport-dual/pretest.dat
testing/tests/pfkey/protoport-route/pretest.dat
testing/tests/pfkey/rw-cert/pretest.dat
testing/tests/sql/ip-pool-db-expired/pretest.dat
testing/tests/sql/ip-pool-db-restart/pretest.dat
testing/tests/sql/ip-pool-db/pretest.dat
testing/tests/sql/ip-split-pools-db-restart/pretest.dat
testing/tests/sql/ip-split-pools-db/pretest.dat
testing/tests/sql/multi-level-ca/pretest.dat
testing/tests/sql/net2net-cert/pretest.dat
testing/tests/sql/net2net-psk/pretest.dat
testing/tests/sql/net2net-route-pem/pretest.dat
testing/tests/sql/net2net-start-pem/pretest.dat
testing/tests/sql/rw-cert/pretest.dat
testing/tests/sql/rw-eap-aka-rsa/pretest.dat
testing/tests/sql/rw-psk-ipv4/pretest.dat
testing/tests/sql/rw-psk-ipv6/pretest.dat
testing/tests/sql/rw-psk-rsa-split/pretest.dat
testing/tests/sql/rw-rsa-keyid/pretest.dat
testing/tests/sql/rw-rsa/pretest.dat
testing/tests/tnc/tnccs-11-fhh/pretest.dat
testing/tests/tnc/tnccs-11-radius-block/pretest.dat
testing/tests/tnc/tnccs-11-radius-pts/pretest.dat
testing/tests/tnc/tnccs-11-radius/pretest.dat
testing/tests/tnc/tnccs-11-supplicant/pretest.dat
testing/tests/tnc/tnccs-11/pretest.dat
testing/tests/tnc/tnccs-20-block/pretest.dat
testing/tests/tnc/tnccs-20-client-retry/pretest.dat
testing/tests/tnc/tnccs-20-fail-init/pretest.dat
testing/tests/tnc/tnccs-20-fail-resp/pretest.dat
testing/tests/tnc/tnccs-20-fhh/pretest.dat
testing/tests/tnc/tnccs-20-hcd-eap/pretest.dat
testing/tests/tnc/tnccs-20-mutual-eap/pretest.dat
testing/tests/tnc/tnccs-20-mutual-pt-tls/pretest.dat
testing/tests/tnc/tnccs-20-os-pts/pretest.dat
testing/tests/tnc/tnccs-20-pdp-eap/pretest.dat
testing/tests/tnc/tnccs-20-pdp-pt-tls/pretest.dat
testing/tests/tnc/tnccs-20-pts-no-ecc/pretest.dat
testing/tests/tnc/tnccs-20-pts/pretest.dat
testing/tests/tnc/tnccs-20-server-retry/pretest.dat
testing/tests/tnc/tnccs-20-tls/pretest.dat
testing/tests/tnc/tnccs-20/pretest.dat
testing/tests/tnc/tnccs-dynamic/pretest.dat