test.sh 754 B
Newer Older
Nikolay Volf's avatar
Nikolay Volf committed
#!/bin/sh
Liu-Cheng Xu's avatar
Liu-Cheng Xu committed
# Running Parity Full Test Suite
FEATURES="json-tests"
OPTIONS="--release"

case $1 in
    shift # past argument=value
    ;;
  --no-release)
    OPTIONS=""
    shift
    ;;
  --no-validate)
    VALIDATE=0
    shift
    ;;
  --no-run)
    OPTIONS="--no-run"
    shift
    ;;
  *)
    # unknown option
if [ "$VALIDATE" -eq "1" ]; then
# Validate --no-default-features build
echo "________Validate build________"
cargo check --no-default-features

# Validate chainspecs
echo "________Validate chainspecs________"
./scripts/validate_chainspecs.sh
# Running test's
echo "________Running Parity Full Test Suite________"

Marek Kotewicz's avatar
Marek Kotewicz committed
cargo test -j 8 $OPTIONS --features "$FEATURES" --all $1