From 194a84c8dde971458f870a611d29a21b39a336d2 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 16 Jul 2018 12:05:48 -0700 Subject: [PATCH] Add testnet-sanity.sh --- ci/{refresh-testnet.sh => testnet-deploy.sh} | 6 ++++-- ci/testnet-sanity.sh | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) rename ci/{refresh-testnet.sh => testnet-deploy.sh} (95%) create mode 100755 ci/testnet-sanity.sh diff --git a/ci/refresh-testnet.sh b/ci/testnet-deploy.sh similarity index 95% rename from ci/refresh-testnet.sh rename to ci/testnet-deploy.sh index ccec64e14..f6c4e9adc 100755 --- a/ci/refresh-testnet.sh +++ b/ci/testnet-deploy.sh @@ -1,11 +1,13 @@ #!/bin/bash -e # -# Refreshes the Solana software running on the Testnet full nodes +# Deploys the Solana software running on the testnet full nodes # # This script must be run by a user/machine that has successfully authenticated # with GCP and has sufficient permission. # +cd "$(dirname "$0")/.." + if [[ -z $SOLANA_METRICS_CONFIG ]]; then echo Error: SOLANA_METRICS_CONFIG environment variable is unset exit 1 @@ -106,6 +108,6 @@ for log in "${logfiles[@]}"; do done echo "--- $publicUrl sanity test" -USE_SNAP=1 ./multinode-demo/test/wallet-sanity.sh $publicUrl +USE_SNAP=1 ci/testnet-sanity.sh $publicUrl exit 0 diff --git a/ci/testnet-sanity.sh b/ci/testnet-sanity.sh new file mode 100755 index 000000000..8537cf3bb --- /dev/null +++ b/ci/testnet-sanity.sh @@ -0,0 +1,17 @@ +#!/bin/bash -e +# +# Perform a quick sanity test on the specific testnet +# + +cd "$(dirname "$0")/.." + +TESTNET=$1 +if [[ -z $TESTNET ]]; then + TESTNET=testnet.solana.com +fi + +echo "--- $TESTNET: wallet sanity" +multinode-demo/test/wallet-sanity.sh $TESTNET + +echo --- fin +exit 0