diff --git a/ci/integration-tests.sh b/ci/integration-tests.sh new file mode 100755 index 000000000..859ffee9f --- /dev/null +++ b/ci/integration-tests.sh @@ -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 diff --git a/ci/test-stable.sh b/ci/test-stable.sh index 01dc1faa1..c0cc5fec6 100755 --- a/ci/test-stable.sh +++ b/ci/test-stable.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash set -e - FEATURES="$1" - cd "$(dirname "$0")/.." # Clear cached json keypair files @@ -27,15 +25,7 @@ for program in programs/native/*; do ) done -# Run integration tests serially -OLD_RUST_LOG=$RUST_LOG -for test in {,*/}tests/*.rs; do - test=${test##*/} # basename x - test=${test%.rs} # basename x .rs - export RUST_LOG="$test"=trace - _ cargo test --all --verbose --features="$FEATURES" --test="$test" -- --test-threads=1 --nocapture -done -RUST_LOG=$OLD_RUST_LOG +_ ci/integration-tests.sh "$FEATURES" echo --- ci/localnet-sanity.sh (