solana/ci/integration-tests.sh

21 lines
444 B
Bash
Raw Normal View History

#!/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
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