692d5b4e08
* Add constantinople conf to EvmTestClient. * Skip some test to update submodule etheureum/tests submodule to latest. * Put skipping 'under issue' test behind a feature. * Change blockReward for const-test to pass ethereum/tests * Update tests to new constantinple definition (change of reward at block 5). Switch 'reference' to string, that way we can include issues from others repo (more flexible)Update tests to new constantinple definition (change of reward at block 5). Switch 'reference' to string, that way we can include issues from others repo (more flexible). * Fix modexp and bn128_mul gas prices in chain config * Changes `run_test_path` method to append its directory results (without that it stop testing at the first file failure). Add some missing tests. Add skip for those (block create2 is one hundred percent false but on hive we can see that geth and aleth got similar issue for this item). * retab current.json * Update reference to parity issue for failing tests.
60 lines
1.2 KiB
Bash
Executable File
60 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
# Running Parity Full Test Suite
|
|
|
|
FEATURES="json-tests,ci-skip-issue"
|
|
OPTIONS="--release"
|
|
VALIDATE=1
|
|
|
|
case $1 in
|
|
--no-json)
|
|
FEATURES="ipc"
|
|
shift # past argument=value
|
|
;;
|
|
--no-release)
|
|
OPTIONS=""
|
|
shift
|
|
;;
|
|
--no-validate)
|
|
VALIDATE=0
|
|
shift
|
|
;;
|
|
--no-run)
|
|
OPTIONS="--no-run"
|
|
shift
|
|
;;
|
|
*)
|
|
# unknown option
|
|
;;
|
|
esac
|
|
|
|
set -e
|
|
|
|
if [ "$VALIDATE" -eq "1" ]; then
|
|
# Validate --no-default-features build
|
|
echo "________Validate build________"
|
|
time cargo check --no-default-features
|
|
time cargo check --manifest-path util/io/Cargo.toml --no-default-features
|
|
time cargo check --manifest-path util/io/Cargo.toml --features "mio"
|
|
|
|
# Validate chainspecs
|
|
echo "________Validate chainspecs________"
|
|
time ./scripts/validate_chainspecs.sh
|
|
fi
|
|
|
|
# Running the C++ example
|
|
echo "________Running the C++ example________"
|
|
cd parity-clib-examples/cpp && \
|
|
mkdir -p build && \
|
|
cd build && \
|
|
cmake .. && \
|
|
make -j 8 && \
|
|
./parity-example && \
|
|
cd .. && \
|
|
rm -rf build && \
|
|
cd ../..
|
|
|
|
# Running tests
|
|
echo "________Running Parity Full Test Suite________"
|
|
git submodule update --init --recursive
|
|
time cargo test $OPTIONS --features "$FEATURES" --all $1 -- --test-threads 8
|