From: Nikos Mavrogiannopoulos Date: Thu, 5 Mar 2015 09:40:10 +0000 (+0100) Subject: Revert "tests: template-test: added a baseline check to detect slow systems" X-Git-Tag: gnutls_3_4_0~251 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ee8e2c250b5aef8aad65914740ae13d33890c06;p=thirdparty%2Fgnutls.git Revert "tests: template-test: added a baseline check to detect slow systems" This reverts commit b7ef1265810ec55d0912db2e3fa4204d8c412377. --- diff --git a/tests/cert-tests/Makefile.am b/tests/cert-tests/Makefile.am index 95312d54a5..c4fe11039e 100644 --- a/tests/cert-tests/Makefile.am +++ b/tests/cert-tests/Makefile.am @@ -27,8 +27,7 @@ EXTRA_DIST = ca-no-pathlen.pem no-ca-or-pathlen.pem aki-cert.pem \ template-overflow.tmpl template-overflow2.pem template-overflow2.tmpl \ template-date.tmpl template-date.pem template-dn-err.tmpl \ template-nc.tmpl template-nc.pem xmpp-othername.pem \ - suppressions.valgrind csr-invalid.der invalid-sig2.pem invalid-sig3.pem \ - template-basic.tmpl template-basic.pem + suppressions.valgrind csr-invalid.der invalid-sig2.pem invalid-sig3.pem dist_check_SCRIPTS = pathlen aki template-test pem-decoding dane crq certtool invalid-sig diff --git a/tests/cert-tests/template-basic.pem b/tests/cert-tests/template-basic.pem deleted file mode 100644 index 6c87bffae4..0000000000 --- a/tests/cert-tests/template-basic.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICETCCAXqgAwIBAgIBCTANBgkqhkiG9w0BAQsFADA0MRIwEAYDVQQDEwlhbm9u -eW1vdXMxETAPBgNVBAoTCEJpZyBjb3JwMQswCQYDVQQGEwJHUjAiGA8yMDA3MDQy -MTIyMDAwMFoYDzIwMDgwNDIwMjIwMDAwWjA0MRIwEAYDVQQDEwlhbm9ueW1vdXMx -ETAPBgNVBAoTCEJpZyBjb3JwMQswCQYDVQQGEwJHUjCBnzANBgkqhkiG9w0BAQEF -AAOBjQAwgYkCgYEApcbOdUOEv2SeAicT8QNZ93ktku18L1CkA/EtebmGiwV+OrtE -qq+EzxOYHhxKOPczLXqfctRrbSawMTdwEPtC6didGGV+GUn8BZYEaIMed4a/7fXl -EjsT/jMYnBp6HWmvRwJgeh+56M/byDQwUZY9jJZcALxh3ggPsTYhf6kA4wUCAwEA -AaMvMC0wDAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUXUCt8M6UQJWLfpmUHZJUIspy -Nl8wDQYJKoZIhvcNAQELBQADgYEAmm9vjb5Np4B6dKkNsnxau2VNY8jMeXjan/qp -nxTYf3yQCJIMTKxPLkKbzc8mtrnbs80h86ery6Ea2El0Tan4TEFKJOnRzqXkwj9k -1cghM4VJKl8qxqnkbWO+CbXstla139UnGjODT9xPNRfLPkn/2I59BKdopm9uREA4 -Z6Vka0A= ------END CERTIFICATE----- diff --git a/tests/cert-tests/template-basic.tmpl b/tests/cert-tests/template-basic.tmpl deleted file mode 100644 index 0ab29f1152..0000000000 --- a/tests/cert-tests/template-basic.tmpl +++ /dev/null @@ -1,19 +0,0 @@ -# X.509 Certificate options -# -# DN options - -# The organization of the subject. -organization = "Big corp" - -# The name (Koala) -cn = "anonymous" - -# The locality of the subject. -# locality = - -# The country of the subject. Two letter code. -country = GR - -# The serial number of the certificate -serial = 009 - diff --git a/tests/cert-tests/template-test b/tests/cert-tests/template-test index ae251d45fc..2d3d8309d7 100755 --- a/tests/cert-tests/template-test +++ b/tests/cert-tests/template-test @@ -39,33 +39,7 @@ counter=1 while [ "$rc" != "0" -a $counter -le 10 ] do - -datefudge "2007-04-22" \ - $CERTTOOL --generate-self-signed \ - --load-privkey $srcdir/template-test.key \ - --template $srcdir/template-basic.tmpl \ - --outfile tmp-tt.pem 2>/dev/null - -diff $srcdir/template-basic.pem tmp-tt.pem >/dev/null 2>&1 -rc=$? -counter=`expr $counter + 1` -test "$rc" != 0 && sleep 1 -done - -# We're done. -if test "$rc" != "0"; then - echo "Baseline test failed, is system slow?" - exit 77 -fi - -rm -f tmp-tt.pem - -rc=1 -counter=1 - -while [ "$rc" != "0" -a $counter -le 10 ] -do - + datefudge "2007-04-22" \ $CERTTOOL --generate-self-signed \ --load-privkey $srcdir/template-test.key \