Attempt to stabilize the test suite

The integration tests are allowed to open sockets, so running them
in parallel may cause "Too many open files" errors. This patch
runs the unit tests in parallel and the integration test serially.
This commit is contained in:
Greg Fitzgerald 2018-10-17 03:20:58 -06:00 committed by Rob Walker
parent d52e6d01ec
commit 6074e4f962
2 changed files with 11 additions and 2 deletions

View File

@ -20,7 +20,12 @@ _() {
"$@"
}
_ cargo test --features=cuda,erasure,chacha
FEATURES=cuda,erasure,chacha
_ 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
echo --- ci/localnet-sanity.sh
(

View File

@ -13,9 +13,13 @@ _() {
_ cargo fmt -- --check
_ cargo build --verbose
_ cargo test --verbose
_ 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
echo --- ci/localnet-sanity.sh
(
set -x