diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-15 16:52:24 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | a93e7a66e0634b2384ef694518c80536075c6299 (patch) | |
tree | aa5f5993f597171db602b9985510e769ac88a68d /test/run_test.sh | |
parent | 06595a9918824f568e17ea6a6817fa4298c54cc8 (diff) | |
download | dexon-a93e7a66e0634b2384ef694518c80536075c6299.tar dexon-a93e7a66e0634b2384ef694518c80536075c6299.tar.gz dexon-a93e7a66e0634b2384ef694518c80536075c6299.tar.bz2 dexon-a93e7a66e0634b2384ef694518c80536075c6299.tar.lz dexon-a93e7a66e0634b2384ef694518c80536075c6299.tar.xz dexon-a93e7a66e0634b2384ef694518c80536075c6299.tar.zst dexon-a93e7a66e0634b2384ef694518c80536075c6299.zip |
test: add a simple test script to launch 7 local nodes
Diffstat (limited to 'test/run_test.sh')
-rwxr-xr-x | test/run_test.sh | 17 |
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 |