summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-04-05 18:30:53 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-04-05 18:30:53 +0200
commit70fef0fec4c1991d559c23466211caad5366fc34 (patch)
treeaf2969992d4f5392798220e37a4ad5565baed2bc
parente24c1c02f8b4a3c5ce8d7dca7b3bfa003f1b7091 (diff)
downloadgnutls-70fef0fec4c1991d559c23466211caad5366fc34.tar.gz
improved test and added debugging
-rwxr-xr-xtests/pkcs12-decode/pkcs1220
1 files changed, 13 insertions, 7 deletions
diff --git a/tests/pkcs12-decode/pkcs12 b/tests/pkcs12-decode/pkcs12
index e35004fa24..3cbe4761db 100755
--- a/tests/pkcs12-decode/pkcs12
+++ b/tests/pkcs12-decode/pkcs12
@@ -23,24 +23,30 @@
srcdir=${srcdir:-.}
CERTTOOL=${CERTTOOL:-../../src/certtool}
+DEBUG=""
+
+if test "x$1" != "x";then
+ DEBUG="1"
+fi
ret=0
for p12 in 'client.p12 foobar' noclient.p12 unclient.p12 pkcs12_2certs.p12; do
set -- $p12
file=$1
passwd=$2
- $CERTTOOL --p12-info --inder --password "$passwd" \
- --infile $srcdir/$file > out 2>&1
+ if test "x$DEBUG" != "x";then
+ $CERTTOOL -d 99 --p12-info --inder --password "$passwd" \
+ --infile $srcdir/$file
+ else
+ $CERTTOOL --p12-info --inder --password "$passwd" \
+ --infile $srcdir/$file >/dev/null 2>&1
+ fi
rc=$?
if test $rc != 0; then
- cat out
echo "NEON PKCS12 FATAL $p12"
ret=1
- else
- echo "NEON PKCS12 OK $p12"
fi
done
-rm -f out
-echo "NEON PKCS12 DONE (rc $ret)"
+#echo "NEON PKCS12 DONE (rc $ret)"
exit $ret