From df7a1dee1524b88bcd2330334f951274d236eefe Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 29 Jun 2024 04:18:07 +0000 Subject: [PATCH] remove --features=rocksdb from smoketest; use separate target dir Signed-off-by: Jason Volk --- tests/cargo_smoke.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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}