solana/ci/testnet-sanity.sh

31 lines
592 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
2018-07-20 08:50:08 -07:00
NET_URL=$1
if [[ -z $NET_URL ]]; then
NET_URL=testnet.solana.com
2018-07-16 12:05:48 -07:00
fi
2018-07-20 08:50:08 -07:00
EXPECTED_NODE_COUNT=$2
if [[ -z $EXPECTED_NODE_COUNT ]]; then
EXPECTED_NODE_COUNT=50
fi
echo "--- $NET_URL: wallet sanity"
multinode-demo/test/wallet-sanity.sh $NET_URL
2018-07-16 12:05:48 -07:00
2018-07-20 08:50:08 -07:00
echo "--- $NET_URL: node count"
if [[ $NET_URL = testnet.solana.com ]]; then
echo "TODO: Remove this block when a release > 0.7.0 is deployed"
else
2018-07-20 08:50:08 -07:00
$solana_client_demo $NET_URL $EXPECTED_NODE_COUNT -c
fi
2018-07-16 12:05:48 -07:00
exit 0