diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-30 14:19:20 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-05-30 14:19:23 +0200 |
commit | 78daad3cf290f322075743c8eaa9a62009873633 (patch) | |
tree | 61e465476022c123928c46d46caa5ecfb3a5c1b1 /tests/cert-tests/tlsfeature-test | |
parent | bd112be174a1c621c3ac54bf50eb355eeef6b002 (diff) | |
download | gnutls-78daad3cf290f322075743c8eaa9a62009873633.tar.gz |
tests: tlsfeature-test will ignore the 'Algorithm Security Level' line in comparisons
That is to allow depending on the certificate output validation without
relying on "moving" parameters such as the Algorithm Security Level.
Diffstat (limited to 'tests/cert-tests/tlsfeature-test')
-rwxr-xr-x | tests/cert-tests/tlsfeature-test | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/cert-tests/tlsfeature-test b/tests/cert-tests/tlsfeature-test index a6452f3c9b..eae8a3f91c 100755 --- a/tests/cert-tests/tlsfeature-test +++ b/tests/cert-tests/tlsfeature-test @@ -45,7 +45,7 @@ datefudge -s "2007-04-22" \ --outfile "${TMPFILE}" 2>/dev/null rc=$? -${DIFF} "${srcdir}/template-tlsfeature.pem" "${TMPFILE}" >/dev/null 2>&1 +${DIFF} --ignore-matching-lines "Algorithm Security Level" "${srcdir}/template-tlsfeature.pem" "${TMPFILE}" >/dev/null 2>&1 rc=$? # We're done. @@ -101,15 +101,19 @@ datefudge -s "2007-04-22" \ "${CERTTOOL}" --generate-request \ --load-privkey "${srcdir}/template-test.key" \ --template "${srcdir}/template-tlsfeature.tmpl" \ - --outfile "${TMPFILE}" 2>/dev/null + --outfile "${TMPFILE}" -d 4 #2>/dev/null rc=$? +if test "${rc}" != "0"; then + echo "CSR generation test (0) failed" + exit ${rc} +fi -${DIFF} "${srcdir}/template-tlsfeature.csr" "${TMPFILE}" >/dev/null 2>&1 +${DIFF} --ignore-matching-lines "Algorithm Security Level" "${srcdir}/template-tlsfeature.csr" "${TMPFILE}" #>/dev/null 2>&1 rc=$? # We're done. if test "${rc}" != "0"; then - echo "CSR generation test failed" + echo "CSR generation test (1) failed" exit ${rc} fi |