summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-02-13 11:31:50 +0000
committerSimon Josefsson <simon@josefsson.org>2007-02-13 11:31:50 +0000
commit4fe447c6abd44368ac5e63319db4080995eef9e9 (patch)
treec78f3f52c7196bbe6159dbf2a6e4770bf6fe529d /tests
parent69a5a610e816f9a129225aa2866ba9cda3bed4b7 (diff)
downloadgnutls-4fe447c6abd44368ac5e63319db4080995eef9e9.tar.gz
fix for chain 1.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/x509paths/chain4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/x509paths/chain b/tests/x509paths/chain
index e177aeb14d..e04a5d4647 100755
--- a/tests/x509paths/chain
+++ b/tests/x509paths/chain
@@ -31,7 +31,9 @@ i=1
while test -d X509tests/test$i; do
find X509tests/test$i -name *.crl -print0 |sort -r -z|xargs -n1 --null $CERTTOOL --crl-info --inder --infile > chain$i.pem
find X509tests/test$i -name E*.crt -print0 |sort -r -z|xargs -n1 --null $CERTTOOL --certificate-info --inder --infile >> chain$i.pem
- find X509tests/test$i -name I*.crt -print0 |sort -r -z|xargs -n1 --null $CERTTOOL --certificate-info --inder --infile >> chain$i.pem
+ if test "$i" -gt 1; then
+ find X509tests/test$i -name I*.crt -print0 |sort -r -z|xargs -n1 --null $CERTTOOL --certificate-info --inder --infile >> chain$i.pem
+ fi
find X509tests/test$i -name T*.crt -print0 |sort -r -z|xargs -n1 --null $CERTTOOL --certificate-info --inder --infile >> chain$i.pem
$CERTTOOL -e --infile chain$i.pem > out 2>&1
rc=$?