Add help script to easily run all integration tests

This commit is contained in:
Michael Vines
2019-01-30 20:50:48 -08:00
committed by Grimes
parent 40acaee446
commit 21c09073a1
2 changed files with 20 additions and 11 deletions

19
ci/integration-tests.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
#
# Runs all integration tests in the tree serially
#
set -e
FEATURES="$1"
cd "$(dirname "$0")/.."
source ci/_
export RUST_BACKTRACE=1
for test in {,*/}tests/*.rs; do
test=${test##*/} # basename x
test=${test%.rs} # basename x .rs
(
export RUST_LOG="$test"=trace,$RUST_LOG
_ cargo test --all --verbose --features="$FEATURES" --test="$test" \
-- --test-threads=1 --nocapture
)
done