2019-03-11 15:26:35 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e # fail on any error
|
|
|
|
set -u # treat unset variables as error
|
|
|
|
echo "________Running validate_chainspecs.sh________"
|
2017-08-02 12:50:36 +02:00
|
|
|
|
|
|
|
ERR=0
|
2019-03-11 15:26:35 +01:00
|
|
|
|
|
|
|
echo "________Validate chainspecs________"
|
|
|
|
time cargo build --release -p chainspec
|
2017-08-02 12:50:36 +02:00
|
|
|
|
|
|
|
for spec in ethcore/res/*.json; do
|
|
|
|
if ! ./target/release/chainspec "$spec"; then ERR=1; fi
|
|
|
|
done
|
|
|
|
|
|
|
|
for spec in ethcore/res/ethereum/*.json; do
|
|
|
|
if ! ./target/release/chainspec "$spec"; then ERR=1; fi
|
|
|
|
done
|
|
|
|
|
|
|
|
exit $ERR
|