solana/ci/testnet-sanity.sh

25 lines
521 B
Bash
Raw Normal View History

2018-07-16 12:05:48 -07:00
#!/bin/bash -e
#
# Perform a quick sanity test on the specific testnet
#
cd "$(dirname "$0")/.."
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
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