2018-07-16 12:05:48 -07:00
|
|
|
#!/bin/bash -e
|
|
|
|
#
|
|
|
|
# Perform a quick sanity test on the specific testnet
|
|
|
|
#
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
2018-07-19 11:56:40 -07:00
|
|
|
source multinode-demo/common.sh
|
2018-07-16 12:05:48 -07:00
|
|
|
|
|
|
|
TESTNET=$1
|
|
|
|
if [[ -z $TESTNET ]]; then
|
|
|
|
TESTNET=testnet.solana.com
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "--- $TESTNET: wallet sanity"
|
|
|
|
multinode-demo/test/wallet-sanity.sh $TESTNET
|
|
|
|
|
2018-07-19 11:56:40 -07:00
|
|
|
echo "--- $TESTNET: node count"
|
|
|
|
if [[ $TESTNET = testnet.solana.com ]]; then
|
|
|
|
echo "TODO: Remove this block when a release > 0.7.0 is deployed"
|
|
|
|
else
|
|
|
|
$solana_client_demo $TESTNET 50 -c # <-- Expect to see at least 50 nodes
|
|
|
|
fi
|
|
|
|
|
2018-07-16 12:05:48 -07:00
|
|
|
exit 0
|