]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
diff is now a parameter allowing to override it.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 26 Oct 2013 16:12:46 +0000 (18:12 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 26 Oct 2013 16:12:46 +0000 (18:12 +0200)
tests/cert-tests/aki
tests/cert-tests/dane
tests/cert-tests/pathlen
tests/cert-tests/pem-decoding

index c212471169806c782fce26430d3adad8f2a9f63e..e5a5f423fde62a4584a1e5ba37deff570cafa606 100755 (executable)
@@ -24,11 +24,12 @@ set -e
 
 srcdir=${srcdir:-.}
 CERTTOOL=${CERTTOOL:-../../src/certtool$EXEEXT}
+DIFF=${DIFF:-diff}
 
 $CERTTOOL --certificate-info --infile $srcdir/aki-cert.pem \
          --outfile tmp-aki.pem
 
-diff $srcdir/aki-cert.pem tmp-aki.pem
+$DIFF $srcdir/aki-cert.pem tmp-aki.pem
 rc=$?
 
 # We're done.
index 219480767891f0db4cf40136aedf32020a6a4f4a..c43d7d9f6bea9cba9d647f9c0d79113e1719f3b5 100755 (executable)
@@ -24,12 +24,13 @@ set -e
 
 srcdir=${srcdir:-.}
 DANETOOL=${DANETOOL:-../../src/danetool$EXEEXT}
+DIFF=${DIFF:-diff}
 
 test -e $DANETOOL || exit 77
 
 $DANETOOL --tlsa-rr --load-certificate $srcdir/cert-ecc256.pem --host www.example.com --outfile tmp-dane.rr 2>/dev/null
 
-diff $srcdir/dane-test.rr tmp-dane.rr
+$DIFF $srcdir/dane-test.rr tmp-dane.rr
 rc=$?
 
 rm -f tmp-dane.rr
index 5bfdbc9b3fa4b027c035155743b5a13e886ac673..01af21e2cc684d911d5d03d575b68b57e6f49060 100755 (executable)
@@ -24,15 +24,16 @@ set -e
 
 srcdir=${srcdir:-.}
 CERTTOOL=${CERTTOOL:-../../src/certtool$EXEEXT}
+DIFF=${DIFF:-diff}
 
 $CERTTOOL --certificate-info --infile $srcdir/ca-no-pathlen.pem \
          --outfile new-ca-no-pathlen.pem
 $CERTTOOL --certificate-info --infile $srcdir/no-ca-or-pathlen.pem \
          --outfile new-no-ca-or-pathlen.pem
 
-diff $srcdir/ca-no-pathlen.pem new-ca-no-pathlen.pem
+$DIFF $srcdir/ca-no-pathlen.pem new-ca-no-pathlen.pem
 rc1=$?
-diff $srcdir/no-ca-or-pathlen.pem new-no-ca-or-pathlen.pem
+$DIFF $srcdir/no-ca-or-pathlen.pem new-no-ca-or-pathlen.pem
 rc2=$?
 
 
index 1459e39010e47c9fd28a759f00f2c3ea1b0d2fd4..5e28e96cc4a8011153095f05559633e26e137962 100755 (executable)
@@ -24,6 +24,7 @@
 
 srcdir=${srcdir:-.}
 CERTTOOL=${CERTTOOL:-../../src/certtool$EXEEXT}
+DIFF=${DIFF:-diff}
 
 #check whether "funny" spaces can be interpreted
 $CERTTOOL --certificate-info --infile $srcdir/funny-spacing.pem >/dev/null 2>&1
@@ -44,7 +45,7 @@ if test "$rc" != "0"; then
   exit $rc
 fi
 
-diff --strip-trailing-cr $srcdir/bmpstring.pem tmp-pem.pem
+$DIFF --strip-trailing-cr $srcdir/bmpstring.pem tmp-pem.pem
 rc=$?
 
 if test "$rc" != "0"; then
@@ -63,7 +64,7 @@ fi
 
 cat $srcdir/complex-cert.pem |grep -v "Not After:" >tmp1
 cat tmp-pem.pem |grep -v "Not After:" >tmp2
-diff --strip-trailing-cr tmp1 tmp2
+$DIFF --strip-trailing-cr tmp1 tmp2
 rc=$?
 
 if test "$rc" != "0"; then