summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-25 22:46:20 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-25 22:46:20 +0100
commit092750ed76ce1853376f9a143147503b4c910503 (patch)
tree924dd32faaa54a443dbb4740802ed2fe3f633a7f /tests
parent5b15e1660703398e1f799ff5cf795d4b0809ef72 (diff)
downloadgnutls-092750ed76ce1853376f9a143147503b4c910503.tar.gz
repeat the tests to avoid accidental failures
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cert-tests/template-test15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/cert-tests/template-test b/tests/cert-tests/template-test
index 876034af6a..1a54f663c0 100755
--- a/tests/cert-tests/template-test
+++ b/tests/cert-tests/template-test
@@ -34,6 +34,12 @@ fi
# time set using datefudge could have changed since the generation
# (if example the system was busy)
+rc=1
+counter=1
+
+while [ "$rc" != "0" -a $counter -le 3 ]
+do
+
datefudge "2007-04-22" \
$CERTTOOL --generate-self-signed \
--load-privkey $srcdir/template-test.key \
@@ -42,6 +48,8 @@ datefudge "2007-04-22" \
diff $srcdir/template-test.pem tmp-tt.pem
rc=$?
+counter=`expr $counter + 1`
+done
# We're done.
if test "$rc" != "0"; then
@@ -51,6 +59,11 @@ fi
rm -f tmp-tt.pem
+rc=1
+counter=1
+
+while [ "$rc" != "0" -a $counter -le 3 ]
+do
datefudge "2007-04-22" \
$CERTTOOL --generate-self-signed \
--load-privkey $srcdir/template-test.key \
@@ -59,6 +72,8 @@ datefudge "2007-04-22" \
diff $srcdir/template-utf8.pem tmp-tt.pem
rc=$?
+counter=`expr $counter + 1`
+done
# We're done.
if test "$rc" != "0"; then