allow regression test suite to work installed as well.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3215 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aj 2007-07-11 09:15:45 +00:00
parent e9b29d1019
commit c224b0c824

View File

@ -9,6 +9,18 @@ if [ -z "$__p15init__" ]; then
p15base=${P15_BASE:-../..}
p15temp=${P15_TEMP:-./test-data}
if [ "$1" == "--installed" ]
then
osctool=opensc-tool
p15crypt=pkcs15-crypt
p15tool=pkcs15-tool
p15init=pkcs15-init
p11tool=pkcs11-tool
p11module=/usr/lib/opensc-pkcs11.so
p15log=$p15temp/test.log
terrlog=$p15temp/terror.log
shift
else
osctool=$p15base/tools/opensc-tool
p15crypt=$p15base/tools/pkcs15-crypt
p15tool=$p15base/tools/pkcs15-tool
@ -24,6 +36,7 @@ if [ -z "$__p15init__" ]; then
echo "*** Missing binary $bin" >&2
exit 1
done
fi
# Eat any arguments given on the command line
while [ $# -ne 0 ]; do