diff --git a/TestScripts/cryptest-android.sh b/TestScripts/cryptest-android.sh index 85b3b2f5..08da9730 100755 --- a/TestScripts/cryptest-android.sh +++ b/TestScripts/cryptest-android.sh @@ -11,6 +11,11 @@ # ==================================================================== set +e +if [ -z $(command -v ./setenv-android-gcc.sh) ]; then + echo "Pailed to locate setenv-android-gcc.sh" + [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 +fi + if [ -z "${PLATFORM-}" ]; then PLATFORMS=(armeabi armeabi-v7a armv7a-neon aarch64 mipsel mipsel64 x86 x86_64) else diff --git a/TestScripts/cryptest-ios.sh b/TestScripts/cryptest-ios.sh index 44466574..fde0a87e 100755 --- a/TestScripts/cryptest-ios.sh +++ b/TestScripts/cryptest-ios.sh @@ -10,6 +10,11 @@ # See http://www.cryptopp.com/wiki/iOS_(Command_Line) for more details # ==================================================================== +if [ -z $(command -v ./setenv-ios.sh) ]; then + echo "Pailed to locate setenv-ios.sh" + [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 +fi + if [ -z "${PLATFORM-}" ]; then PLATFORMS=(iPhoneOS iPhoneSimulator Arm64 WatchOS WatchSimulator AppleTVOS AppleTVSimulator) else