github.com/karalabe/go-ethereum@v0.8.5/eth/test/tests/common.sh (about) 1 #!/bin/bash 2 3 # launched by run.sh 4 function test_node { 5 rm -rf $DIR/$1 6 ARGS="-datadir $DIR/$1 -debug debug -seed=false -shh=false -id test$1 -port 303$1" 7 if [ "" != "$2" ]; then 8 chain="chains/$2.chain" 9 echo "import chain $chain" 10 $ETH $ARGS -loglevel 3 -chain $chain | grep CLI |grep import 11 fi 12 echo "starting test node $1 with args $ARGS ${@:3}" 13 $ETH $ARGS ${@:3} & 14 PID=$! 15 PIDS="$PIDS $PID" 16 } 17 18 function peer { 19 test_node $@ -loglevel 5 -logfile debug.log -maxpeer 1 -dial=false 20 }