2016-02-16 11:12:29 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Running Parity Full Test Sute
|
|
|
|
|
2016-10-18 16:36:43 +02:00
|
|
|
FEATURES="json-tests"
|
2016-12-08 11:31:57 +01:00
|
|
|
OPTIONS="--release"
|
2016-07-11 18:17:54 +02:00
|
|
|
|
|
|
|
case $1 in
|
|
|
|
--no-json)
|
2016-08-10 13:06:24 +02:00
|
|
|
FEATURES="ipc"
|
2016-07-11 18:17:54 +02:00
|
|
|
shift # past argument=value
|
|
|
|
;;
|
2016-09-01 12:00:00 +02:00
|
|
|
--no-release)
|
|
|
|
OPTIONS=""
|
|
|
|
shift
|
|
|
|
;;
|
2017-05-19 17:06:36 +02:00
|
|
|
--no-run)
|
|
|
|
OPTIONS="--no-run"
|
|
|
|
shift
|
|
|
|
;;
|
2016-07-11 18:17:54 +02:00
|
|
|
*)
|
|
|
|
# unknown option
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
. ./scripts/targets.sh
|
2016-12-01 01:48:06 +01:00
|
|
|
cargo test -j 8 $OPTIONS --features "$FEATURES" $TARGETS $1 \
|
2017-07-14 16:44:43 +02:00
|
|
|
ls target/debug
|
|
|
|
git clone https://github.com/paritytech/parity-import-tests
|
2017-07-14 17:02:39 +02:00
|
|
|
cp target/debug/parity-* parity-import-tests/aura.parity
|
|
|
|
cd parity-import-tests/aura
|
|
|
|
echo "start Aura test"
|
|
|
|
parity import blocks.rlp --chain chain.json
|
|
|
|
parity restore snap --chain chain.json
|
|
|
|
ehco "Aura test complete"
|
|
|
|
|
2017-07-14 16:44:43 +02:00
|
|
|
|
2016-07-11 18:17:54 +02:00
|
|
|
|