openethereum/test.sh
Denis S. Soldatov aka General-Beck 3308c40440 fix aura test
2017-07-14 18:02:39 +03:00

38 lines
680 B
Bash
Executable File

#!/bin/sh
# Running Parity Full Test Sute
FEATURES="json-tests"
OPTIONS="--release"
case $1 in
--no-json)
FEATURES="ipc"
shift # past argument=value
;;
--no-release)
OPTIONS=""
shift
;;
--no-run)
OPTIONS="--no-run"
shift
;;
*)
# unknown option
;;
esac
. ./scripts/targets.sh
cargo test -j 8 $OPTIONS --features "$FEATURES" $TARGETS $1 \
ls target/debug
git clone https://github.com/paritytech/parity-import-tests
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"