2019-01-30 20:50:48 -08:00
|
|
|
#!/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
|
2019-02-02 10:22:39 -08:00
|
|
|
scripts/ulimit-n.sh
|
2019-01-30 20:50:48 -08:00
|
|
|
|
|
|
|
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
|