openethereum/test.sh

35 lines
645 B
Bash
Raw Normal View History

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"
OPTIONS="--release"
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-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 \
ls target/debug
cp target/debug/parity-* target/debug/parity
git clone https://github.com/paritytech/parity-import-tests
cd /parity-import-tests/aura
target/debug/parity import blocks.rlp --chain chain.json
target/debug/parity restore snap --chain chain.json
2016-07-11 18:17:54 +02:00