diff --git a/tests/cargo_smoke.sh b/tests/cargo_smoke.sh index e0eb3ad3..6ee20ee2 100755 --- a/tests/cargo_smoke.sh +++ b/tests/cargo_smoke.sh @@ -1,10 +1,12 @@ #!/bin/bash +export CARGO_TARGET_DIR="target/smokes" run () { RUN_COMMAND=$@ - echo -e "\033[1;33mTEST\033[0m $RUN_COMMAND" + echo -ne "\033[1;33mTEST\033[0m $RUN_COMMAND" ERRORS=$($RUN_COMMAND 2>&1>/tmp/uwu_smoketest.out) RESULT=$? + echo if test $RESULT -ne 0; then cat /tmp/uwu_smoketest.out echo -e "$ERRORS" @@ -44,17 +46,17 @@ element () { vector () { TOOLCHAIN=$1; shift VECTOR_OPTS=$@ - element "$TOOLCHAIN" $VECTOR_OPTS --no-default-features --features="rocksdb" + element "$TOOLCHAIN" $VECTOR_OPTS --no-default-features element "$TOOLCHAIN" $VECTOR_OPTS --features=default element "$TOOLCHAIN" $VECTOR_OPTS --all-features } matrix () { run cargo +nightly fmt --all --check - vector +nightly --profile=dev - vector +nightly --profile=release vector "" --profile=dev vector "" --profile=release + vector +nightly --profile=dev + vector +nightly --profile=release } BUILD=${1:-build}