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@dexon.org>2019-04-09 21:32:50 +0800
commitf9e7bea0b711698b3fdf34e9484158c91779f63b (patch)
tree8a07c6bcf5a080b92dc50a8d6d6a37352c33d0dd /test
parent70a945b3c950cceaca08421303174befb64f0f36 (diff)
downloaddexon-f9e7bea0b711698b3fdf34e9484158c91779f63b.tar
dexon-f9e7bea0b711698b3fdf34e9484158c91779f63b.tar.gz
dexon-f9e7bea0b711698b3fdf34e9484158c91779f63b.tar.bz2
dexon-f9e7bea0b711698b3fdf34e9484158c91779f63b.tar.lz
dexon-f9e7bea0b711698b3fdf34e9484158c91779f63b.tar.xz
dexon-f9e7bea0b711698b3fdf34e9484158c91779f63b.tar.zst
dexon-f9e7bea0b711698b3fdf34e9484158c91779f63b.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