summaryrefslogtreecommitdiff
path: root/tests/pkcs12-decode
diff options
context:
space:
mode:
authorElias Pipping <pipping@exherbo.org>2012-10-14 21:30:26 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-10-28 02:39:01 +0100
commit206da0ac665d8770a00fc190716d9172c84e9c40 (patch)
treec87af51c022ae536500b6bd348ddac4c932956c1 /tests/pkcs12-decode
parentede349c6fe916355124c21ad834bfd7207b9b445 (diff)
downloadgnutls-206da0ac665d8770a00fc190716d9172c84e9c40.tar.gz
Fix out-of-source tests
Diffstat (limited to 'tests/pkcs12-decode')
-rwxr-xr-xtests/pkcs12-decode/pkcs125
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/pkcs12-decode/pkcs12 b/tests/pkcs12-decode/pkcs12
index a2ee20bdd4..ca5882730a 100755
--- a/tests/pkcs12-decode/pkcs12
+++ b/tests/pkcs12-decode/pkcs12
@@ -22,7 +22,8 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
srcdir=${srcdir:-.}
-CERTTOOL=${CERTTOOL:-../../src/certtool}
+top_builddir=${top_builddir:-../..}
+CERTTOOL=${CERTTOOL:-${top_builddir}/src/certtool}
DEBUG=""
if test "x$1" != "x";then
@@ -49,7 +50,7 @@ for p12 in 'client.p12 foobar' noclient.p12 unclient.p12 pkcs12_2certs.p12; do
done
file=test-null.p12
-$CERTTOOL --p12-info --inder --null-password --infile $file >/dev/null 2>&1
+$CERTTOOL --p12-info --inder --null-password --infile $srcdir/$file >/dev/null 2>&1
rc=$?
if test $rc != 0; then
echo "PKCS12 FATAL $file"