openethereum/test.sh

48 lines
754 B
Bash
Raw Permalink Normal View History

2016-02-16 11:12:29 +01:00
#!/bin/sh
2017-09-12 09:15:37 +02:00
# Running Parity Full Test Suite
2016-02-16 11:12:29 +01:00
2016-10-18 16:36:43 +02:00
FEATURES="json-tests"
OPTIONS="--release"
VALIDATE=1
2016-07-11 18:17:54 +02:00
case $1 in
--no-json)
FEATURES="ipc"
2016-07-11 18:17:54 +02:00
shift # past argument=value
;;
--no-release)
OPTIONS=""
shift
;;
--no-validate)
VALIDATE=0
shift
;;
--no-run)
OPTIONS="--no-run"
shift
;;
*)
# unknown option
2016-07-11 18:17:54 +02:00
;;
esac
set -e
if [ "$VALIDATE" -eq "1" ]; then
# Validate --no-default-features build
echo "________Validate build________"
cargo check --no-default-features
2017-11-20 11:02:48 +01:00
# Validate chainspecs
echo "________Validate chainspecs________"
./scripts/validate_chainspecs.sh
fi
# Running test's
echo "________Running Parity Full Test Suite________"
cargo test -j 8 $OPTIONS --features "$FEATURES" --all $1
2017-11-20 11:02:48 +01:00