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"
|
2019-06-05 11:57:09 +02:00
|
|
|
OPTIONS="--release"
|
2019-03-11 15:26:35 +01:00
|
|
|
#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-06-07 11:25:45 +02:00
|
|
|
# Why are we using RUSTFLAGS? See https://github.com/paritytech/parity-ethereum/pull/10719
|
|
|
|
CARGO_INCREMENTAL=0 RUSTFLAGS="-C opt-level=3 -C overflow-checks=on -C debuginfo=2" time cargo test $OPTIONS --features "$FEATURES" --locked --all --target $CARGO_TARGET --verbose --color=never -- --test-threads $THREADS
|