]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: add an upper limit in the run of compat tests
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 24 May 2016 11:45:32 +0000 (13:45 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 24 May 2016 11:45:34 +0000 (13:45 +0200)
This allows the test suite to recover from the case of DTLS implementations
that do not properly retransmit and block on lost packets.

tests/suite/testcompat-openssl.sh
tests/suite/testcompat-polarssl.sh

index 57259c9db533109dfe5580808cc66d17dee8deef..096d3da7ee4d1817a15129f60a6033a8e226a471 100755 (executable)
@@ -53,4 +53,9 @@ if test "${TSTAMP}" != "1158969600"; then
        exit 77
 fi
 
-datefudge "2012-09-2" "${srcdir}/testcompat-main-openssl"
+timeout 1800 datefudge "2012-09-2" "${srcdir}/testcompat-main-openssl"
+
+ret=$?
+test $ret = 124 && exit 77
+
+exit $ret
index c4dfb361e09825cc9b217ee394053b0fd1ffcb48..32e04f753b8991975cb9d2e8532f45d0c5ed697e 100755 (executable)
@@ -47,4 +47,9 @@ if test $? = 0; then
        exit 77
 fi
 
-datefudge "2012-09-2" "${srcdir}/testcompat-main-polarssl"
+timeout 1800 datefudge "2012-09-2" "${srcdir}/testcompat-main-polarssl"
+
+ret=$?
+test $ret = 124 && exit 77
+
+exit $ret