summaryrefslogtreecommitdiff
path: root/tests/cert-tests
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2018-11-28 16:03:59 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2018-11-28 17:04:11 +0300
commite45e48abe5b6f0e1f4d038cb72a8ae1187708508 (patch)
tree05e2464be6f887aad6f505a74da2a9eb0b4f9ab0 /tests/cert-tests
parent07f5f270b2dc20ebd493ae357a3fcc99e918a3a4 (diff)
downloadgnutls-e45e48abe5b6f0e1f4d038cb72a8ae1187708508.tar.gz
tests: fix crl test under MinGW32/64
Use --outfile instead of output redirection to stop CR from sneaking into temp file. Extra CR symbols make grep choke on that file. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'tests/cert-tests')
-rwxr-xr-xtests/cert-tests/crl2
-rwxr-xr-xtests/cert-tests/crq2
-rwxr-xr-xtests/cert-tests/pem-decoding6
-rwxr-xr-xtests/cert-tests/privkey-import2
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/cert-tests/crl b/tests/cert-tests/crl
index 15fa44b844..bea0c5237e 100755
--- a/tests/cert-tests/crl
+++ b/tests/cert-tests/crl
@@ -55,7 +55,7 @@ if test "${rc}" != "0"; then
exit ${rc}
fi
-${VALGRIND} "${CERTTOOL}" --crl-info --infile ${OUTFILE} --no-text >${TMP2FILE}
+${VALGRIND} "${CERTTOOL}" --crl-info --infile ${OUTFILE} --no-text --outfile ${TMP2FILE}
rc=$?
if test "${rc}" != "0"; then
diff --git a/tests/cert-tests/crq b/tests/cert-tests/crq
index 2c59930fef..58581e4148 100755
--- a/tests/cert-tests/crq
+++ b/tests/cert-tests/crq
@@ -66,7 +66,7 @@ datefudge -s "2007-04-22" \
--template "${srcdir}/templates/template-tlsfeature.tmpl" \
--outfile $OUTFILE 2>/dev/null
-${CERTTOOL} --crq-info --no-text --infile ${OUTFILE} > ${TMPFILE}
+${CERTTOOL} --crq-info --no-text --infile ${OUTFILE} --outfile ${TMPFILE}
rc=$?
if test "${rc}" != "0"; then
diff --git a/tests/cert-tests/pem-decoding b/tests/cert-tests/pem-decoding
index 7419656d02..c5ba22e26d 100755
--- a/tests/cert-tests/pem-decoding
+++ b/tests/cert-tests/pem-decoding
@@ -180,7 +180,7 @@ if test "${rc}" != "0"; then
fi
#check if --no-text works as expected
-${VALGRIND} "${CERTTOOL}" --certificate-info --infile "${srcdir}/data/cert-ecc256.pem" --no-text >${TMPFILE}
+${VALGRIND} "${CERTTOOL}" --certificate-info --infile "${srcdir}/data/cert-ecc256.pem" --no-text --outfile ${TMPFILE}
rc=$?
if test "${rc}" != "0"; then
@@ -194,7 +194,7 @@ if grep -v '^-----BEGIN [A-Z0-9 ]\+-----$\|^[A-Za-z0-9/+=]\+$\|^-----END [A-Z0-9
fi
#check if --no-text works as expected
-${VALGRIND} "${CERTTOOL}" --certificate-pubkey --infile "${srcdir}/data/cert-ecc256.pem" --no-text >${TMPFILE}
+${VALGRIND} "${CERTTOOL}" --certificate-pubkey --infile "${srcdir}/data/cert-ecc256.pem" --no-text --outfile ${TMPFILE}
rc=$?
if test "${rc}" != "0"; then
@@ -208,7 +208,7 @@ if grep -v '^-----BEGIN [A-Z0-9 ]\+-----$\|^[A-Za-z0-9/+=]\+$\|^-----END [A-Z0-9
fi
#check if --no-text works as expected
-${VALGRIND} "${CERTTOOL}" --pubkey-info --infile "${srcdir}/data/cert-ecc256.pem" --no-text >${TMPFILE}
+${VALGRIND} "${CERTTOOL}" --pubkey-info --infile "${srcdir}/data/cert-ecc256.pem" --no-text --outfile ${TMPFILE}
rc=$?
if test "${rc}" != "0"; then
diff --git a/tests/cert-tests/privkey-import b/tests/cert-tests/privkey-import
index afac285463..f3f94806fa 100755
--- a/tests/cert-tests/privkey-import
+++ b/tests/cert-tests/privkey-import
@@ -44,7 +44,7 @@ if test "${rc}" != "0";then
fi
done
-${VALGRIND} "${CERTTOOL}" -k --infile "${srcdir}/data/privkey1.pem" --no-text >${TMPFILE}
+${VALGRIND} "${CERTTOOL}" -k --infile "${srcdir}/data/privkey1.pem" --no-text --outfile ${TMPFILE}
rc=$?
if test "${rc}" != "0"; then