diff options
author | Simon Warta <[email protected]> | 2016-12-03 09:58:14 +0100 |
---|---|---|
committer | Simon Warta <[email protected]> | 2016-12-03 09:58:14 +0100 |
commit | 8c6dbef39ed10072154a30c52835a5f609fd1544 (patch) | |
tree | 93a069733b78f508169b97404d7289b010d59a4a /src | |
parent | 651c730562475b40d6b9c29efa7683cb426f3fd4 (diff) |
travis/build.sh: Convert TEST_FLAGS to Bash array
Diffstat (limited to 'src')
-rwxr-xr-x | src/scripts/ci/travis/build.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scripts/ci/travis/build.sh b/src/scripts/ci/travis/build.sh index ebd53c529..f5de4bf32 100755 --- a/src/scripts/ci/travis/build.sh +++ b/src/scripts/ci/travis/build.sh @@ -5,7 +5,7 @@ which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if avai MAKE_PREFIX=() TEST_PREFIX=() TEST_EXE=./botan-test -TEST_FLAGS="" +TEST_FLAGS=() CFG_FLAGS=(--prefix=/tmp/botan-installation --cc=$CC --os=$TRAVIS_OS_NAME) # PKCS11 is optional but doesn't pull in new dependencies @@ -54,7 +54,7 @@ elif [ "${BUILD_MODE:0:5}" != "cross" ]; then if [ "$BUILD_MODE" = "coverage" ]; then CFG_FLAGS+=(--with-tpm) - TEST_FLAGS="--run-online-tests --pkcs11-lib=/tmp/softhsm/lib/softhsm/libsofthsm2.so" + TEST_FLAGS=(--run-online-tests --pkcs11-lib=/tmp/softhsm/lib/softhsm/libsofthsm2.so) fi # Avoid OpenSSL when using dynamic checkers... @@ -171,7 +171,7 @@ if [ "$BUILD_MODE" = "sonarqube" ] || [ "$BUILD_MODE" = "docs" ] || \ ( [ "${BUILD_MODE:0:5}" = "cross" ] && [ "$TRAVIS_OS_NAME" = "osx" ] ); then echo "Running tests disabled on this build type" else - TEST_CMD=("${TEST_PREFIX[@]}" $TEST_EXE $TEST_FLAGS) + TEST_CMD=("${TEST_PREFIX[@]}" $TEST_EXE "${TEST_FLAGS[@]}") echo "Running" "${TEST_CMD[@]}" time "${TEST_CMD[@]}" fi |