aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-15 16:52:24 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:39 +0800
commitcd2f6248027cf03bb24ce59b7df222b32a683d19 (patch)
treea14022402fc4a799ef69f1f69d42e4a344404d40 /test
parente2bb5418c150deffccf72d94d3c1035c6cec1884 (diff)
downloadgo-tangerine-cd2f6248027cf03bb24ce59b7df222b32a683d19.tar
go-tangerine-cd2f6248027cf03bb24ce59b7df222b32a683d19.tar.gz
go-tangerine-cd2f6248027cf03bb24ce59b7df222b32a683d19.tar.bz2
go-tangerine-cd2f6248027cf03bb24ce59b7df222b32a683d19.tar.lz
go-tangerine-cd2f6248027cf03bb24ce59b7df222b32a683d19.tar.xz
go-tangerine-cd2f6248027cf03bb24ce59b7df222b32a683d19.tar.zst
go-tangerine-cd2f6248027cf03bb24ce59b7df222b32a683d19.zip
test: add a simple test script to launch 7 local nodes
Diffstat (limited to 'test')
-rwxr-xr-xtest/run_test.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/run_test.sh b/test/run_test.sh
new file mode 100755
index 000000000..f02200994
--- /dev/null
+++ b/test/run_test.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+GETH=../build/bin/geth
+
+pkill -9 -f geth
+
+bootnode -nodekey bootnode.key --verbosity=9 > bootnode.log 2>&1 &
+
+for i in $(seq 1 7); do
+ datadir=$PWD/Dexon.$i
+ rm -rf $datadir
+ $GETH --datadir=$datadir init genesis.json
+ cp test$i.nodekey $datadir/geth/nodekey
+ $GETH --datadir=$datadir --port=$((21000 + $i)) > geth.$i.log 2>&1 &
+done
+
+tail -f geth.*.log