run integration tests serially

This commit is contained in:
Rob Walker 2018-10-17 10:52:55 -07:00
parent 6074e4f962
commit 4ea422bcec
2 changed files with 11 additions and 5 deletions

View File

@ -21,11 +21,14 @@ _() {
}
FEATURES=cuda,erasure,chacha
_ cargo test --verbose --features=$FEATURES --lib
_ cargo test --verbose --features="$FEATURES" --lib
# Run integration tests serially
# shellcheck disable=SC2016
_ find tests -type file -exec sh -c 'echo --test=$(basename ${0%.*})' {} \; | xargs cargo test --verbose --jobs=1 --features=$FEATURES
for test in tests/*.rs; do
test=${test##*/} # basename x
test=${test%.rs} # basename x .rs
_ cargo test --verbose --jobs=1 --features="$FEATURES" --test="$test"
done
echo --- ci/localnet-sanity.sh
(

View File

@ -17,8 +17,11 @@ _ cargo test --verbose --lib
_ cargo clippy -- --deny=warnings
# Run integration tests serially
# shellcheck disable=SC2016
_ find tests -type file -exec sh -c 'echo --test=$(basename ${0%.*})' {} \; | xargs cargo test --verbose --jobs=1
for test in tests/*.rs; do
test=${test##*/} # basename x
test=${test%.rs} # basename x .rs
_ cargo test --verbose --jobs=1 --test="$test"
done
echo --- ci/localnet-sanity.sh
(