2019-03-11 15:26:35 +01:00
|
|
|
#!/bin/bash
|
2019-04-12 18:51:01 +02:00
|
|
|
# ARGUMENT $1 Rust flavor to run test with (stable/beta/nightly)
|
|
|
|
|
2019-03-11 15:26:35 +01:00
|
|
|
echo "________Running test-linux.sh________"
|
|
|
|
set -e # fail on any error
|
|
|
|
set -u # treat unset variables as error
|
|
|
|
|
|
|
|
FEATURES="json-tests,ci-skip-tests"
|
|
|
|
OPTIONS="--release"
|
|
|
|
#use nproc `linux only
|
|
|
|
THREADS=$(nproc)
|
|
|
|
|
2019-04-12 18:51:01 +02:00
|
|
|
rustup default $1
|
|
|
|
rustup show
|
|
|
|
|
2019-03-11 15:26:35 +01:00
|
|
|
echo "________Running Parity Full Test Suite________"
|
2019-04-12 18:51:01 +02:00
|
|
|
time cargo test $OPTIONS --features "$FEATURES" --locked --all --target $CARGO_TARGET --verbose --color=always -- --test-threads $THREADS
|