solana/ci/testnet-sanity.sh

33 lines
503 B
Bash
Raw Normal View History

2018-07-16 12:05:48 -07:00
#!/bin/bash -e
cd "$(dirname "$0")/.."
usage() {
exitcode=0
if [[ -n "$1" ]]; then
exitcode=1
echo "Error: $*"
2018-08-17 20:41:30 -07:00
fi
cat <<EOF
usage: $0 [name]
2018-07-20 08:50:08 -07:00
Sanity check a CD testnet
2018-07-16 12:05:48 -07:00
name - name of the network
Note: the SOLANA_METRICS_CONFIG environment variable is used to configure
metrics
EOF
exit $exitcode
}
2018-08-13 12:13:00 -07:00
netName=$1
[[ -n $netName ]] || usage ""
set -x
net/gce.sh config -p "$netName"
net/init-metrics.sh -e
net/net.sh sanity ${NO_LEDGER_VERIFY:+-o noLedgerVerify}
2018-08-09 18:35:43 -07:00
2018-07-16 12:05:48 -07:00
exit 0