]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: Copy template out of ${srcdir}
authorMatt Turner <mattst88@gmail.com>
Fri, 31 Mar 2017 20:45:04 +0000 (13:45 -0700)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 1 Apr 2017 07:42:45 +0000 (09:42 +0200)
Otherwise, out of tree builds will fail to copy the template.

Signed-off-by: Matt Turner <mattst88@gmail.com>
tests/cert-tests/krb5-test

index 3ada1f9b4e856a9211d8f45fb810ad1d644b7eef..a331acbb4f43cbd5983699e6f00e2e0f87ecb16c 100755 (executable)
@@ -60,7 +60,7 @@ if test "${rc}" != "0"; then
 fi
 
 # Negative tests. Check against values which may cause problems
-cp templates/template-krb5name.tmpl ${TMPLFILE}
+cp "${srcdir}/templates/template-krb5name.tmpl" ${TMPLFILE}
 echo "krb5_principal = 'xxxxxxxxxxxxxx'" >>${TMPLFILE}
 
 datefudge -s "2007-04-22" \
@@ -77,7 +77,7 @@ if test "${rc}" != "1"; then
        exit ${rc}
 fi
 
-cp templates/template-krb5name.tmpl ${TMPLFILE}
+cp "${srcdir}/templates/template-krb5name.tmpl" ${TMPLFILE}
 echo "krb5_principal = 'comp1/comp2/comp3/comp4/comp5/comp6/comp7/comp8/comp9/comp10@REALM.COM'" >>${TMPLFILE}
 
 datefudge -s "2007-04-22" \