remove --features=rocksdb from smoketest; use separate target dir

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-29 04:18:07 +00:00
parent dc633100da
commit df7a1dee15
1 changed files with 6 additions and 4 deletions

View File

@ -1,10 +1,12 @@
#!/bin/bash #!/bin/bash
export CARGO_TARGET_DIR="target/smokes"
run () { run () {
RUN_COMMAND=$@ 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) ERRORS=$($RUN_COMMAND 2>&1>/tmp/uwu_smoketest.out)
RESULT=$? RESULT=$?
echo
if test $RESULT -ne 0; then if test $RESULT -ne 0; then
cat /tmp/uwu_smoketest.out cat /tmp/uwu_smoketest.out
echo -e "$ERRORS" echo -e "$ERRORS"
@ -44,17 +46,17 @@ element () {
vector () { vector () {
TOOLCHAIN=$1; shift TOOLCHAIN=$1; shift
VECTOR_OPTS=$@ 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 --features=default
element "$TOOLCHAIN" $VECTOR_OPTS --all-features element "$TOOLCHAIN" $VECTOR_OPTS --all-features
} }
matrix () { matrix () {
run cargo +nightly fmt --all --check run cargo +nightly fmt --all --check
vector +nightly --profile=dev
vector +nightly --profile=release
vector "" --profile=dev vector "" --profile=dev
vector "" --profile=release vector "" --profile=release
vector +nightly --profile=dev
vector +nightly --profile=release
} }
BUILD=${1:-build} BUILD=${1:-build}