diff --git a/tests/testDSig.sh b/tests/testDSig.sh index c962bc2a5..bf2e16da7 100755 --- a/tests/testDSig.sh +++ b/tests/testDSig.sh @@ -3,6 +3,12 @@ # This script needs to be called from testrun.sh script # +# ensure this script is called from testrun.sh +if [ -z "$xmlsec_app" -o -z "$crypto_config_folder" ]; then + echo "This script needs to be called from testrun.sh script" + exit 1 +fi + # Setup URL to files mapping for offline testing, if tests are run against online # then some tests might fail. if [ -z "$XMLSEC_TEST_ONLINE" ]; then diff --git a/tests/testEnc.sh b/tests/testEnc.sh index 9d0a6ccc0..d0da44461 100755 --- a/tests/testEnc.sh +++ b/tests/testEnc.sh @@ -3,6 +3,13 @@ # This script needs to be called from testrun.sh script # + +# ensure this script is called from testrun.sh +if [ -z "$xmlsec_app" -o -z "$crypto_config_folder" ]; then + echo "This script needs to be called from testrun.sh script" + exit 1 +fi + ########################################################################## ########################################################################## ########################################################################## diff --git a/tests/testKeys.sh b/tests/testKeys.sh index 9b07b91bc..0d6b6fb91 100755 --- a/tests/testKeys.sh +++ b/tests/testKeys.sh @@ -3,6 +3,12 @@ # This script needs to be called from testrun.sh script # +# ensure this script is called from testrun.sh +if [ -z "$xmlsec_app" -o -z "$crypto_config_folder" ]; then + echo "This script needs to be called from testrun.sh script" + exit 1 +fi + ########################################################################## ########################################################################## ##########################################################################