aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-26 13:54:28 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:19 +0800
commit06276babe273f248ba1177f2a7bc369d09c303dd (patch)
treee4f4bd4612acc0b693ef93bd8a8177cf982bb94b /test
parentafc6a417210dc43a5a38ece5302de6801785316f (diff)
downloadgo-tangerine-06276babe273f248ba1177f2a7bc369d09c303dd.tar
go-tangerine-06276babe273f248ba1177f2a7bc369d09c303dd.tar.gz
go-tangerine-06276babe273f248ba1177f2a7bc369d09c303dd.tar.bz2
go-tangerine-06276babe273f248ba1177f2a7bc369d09c303dd.tar.lz
go-tangerine-06276babe273f248ba1177f2a7bc369d09c303dd.tar.xz
go-tangerine-06276babe273f248ba1177f2a7bc369d09c303dd.tar.zst
go-tangerine-06276babe273f248ba1177f2a7bc369d09c303dd.zip
core: add Taipei testnet (#47)
Add a new testnet named Taipei.
Diffstat (limited to 'test')
-rwxr-xr-xtest/run_test.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/run_test.sh b/test/run_test.sh
index 4818f89b2..b8b893145 100755
--- a/test/run_test.sh
+++ b/test/run_test.sh
@@ -1,13 +1,17 @@
#!/bin/bash
+if [ "$1" != "--testnet" ] && [ "$1" != "--taipei" ]; then
+ echo 'invalid network specified'
+ exit 1
+fi
+
+NETWORK="${1}"
+
GDEX=../build/bin/gdex
# Kill all previous instances.
pkill -9 -f gdex
-# Start bootnode.
-bootnode -nodekey bootnode.key --verbosity=9 > bootnode.log 2>&1 &
-
logsdir=$PWD/log-$(date '+%Y-%m-%d-%H:%M:%S')
mkdir $logsdir
@@ -19,7 +23,7 @@ datadir=$PWD/Dexon.rpc
rm -rf $datadir
$GDEX --datadir=$datadir init genesis.json
$GDEX \
- --testnet \
+ ${NETWORK} \
--verbosity=4 \
--gcmode=archive \
--datadir=$datadir --nodekey=testrpc.nodekey \
@@ -36,7 +40,7 @@ for i in $(seq 0 3); do
rm -rf $datadir
$GDEX --datadir=$datadir init genesis.json
$GDEX \
- --testnet \
+ ${NETWORK} \
--bp \
--verbosity=4 \
--gcmode=archive \