diff options
Diffstat (limited to 'eth/test/tests')
l--------- | eth/test/tests/00.chain | 1 | ||||
-rw-r--r-- | eth/test/tests/00.sh | 13 | ||||
l--------- | eth/test/tests/01.chain | 1 | ||||
-rw-r--r-- | eth/test/tests/01.sh | 18 | ||||
l--------- | eth/test/tests/02.chain | 1 | ||||
-rw-r--r-- | eth/test/tests/02.sh | 19 | ||||
l--------- | eth/test/tests/03.chain | 1 | ||||
-rw-r--r-- | eth/test/tests/03.sh | 14 | ||||
-rw-r--r-- | eth/test/tests/04.sh | 17 | ||||
-rw-r--r-- | eth/test/tests/05.sh | 20 | ||||
-rw-r--r-- | eth/test/tests/common.js | 9 | ||||
-rw-r--r-- | eth/test/tests/common.sh | 20 |
12 files changed, 0 insertions, 134 deletions
diff --git a/eth/test/tests/00.chain b/eth/test/tests/00.chain deleted file mode 120000 index 9655cb3df..000000000 --- a/eth/test/tests/00.chain +++ /dev/null @@ -1 +0,0 @@ -../chains/01.chain
\ No newline at end of file diff --git a/eth/test/tests/00.sh b/eth/test/tests/00.sh deleted file mode 100644 index 9c5077164..000000000 --- a/eth/test/tests/00.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -TIMEOUT=4 - -cat >> $JSFILE <<EOF -eth.addPeer("localhost:30311"); -sleep(1000) -eth.export("$CHAIN_TEST"); -EOF - -peer 11 01 -test_node $NAME "" -loglevel 5 $JSFILE - diff --git a/eth/test/tests/01.chain b/eth/test/tests/01.chain deleted file mode 120000 index ae65ccb37..000000000 --- a/eth/test/tests/01.chain +++ /dev/null @@ -1 +0,0 @@ -../chains/02.chain
\ No newline at end of file diff --git a/eth/test/tests/01.sh b/eth/test/tests/01.sh deleted file mode 100644 index 1601e0dfb..000000000 --- a/eth/test/tests/01.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -TIMEOUT=5 - -cat >> $JSFILE <<EOF -eth.addPeer("localhost:30311"); -log("added peer localhost:30311"); -sleep(1000); -log("added peer localhost:30312"); -eth.addPeer("localhost:30312"); -sleep(3000); -eth.export("$CHAIN_TEST"); -EOF - -peer 11 01 -peer 12 02 -test_node $NAME "" -loglevel 5 $JSFILE - diff --git a/eth/test/tests/02.chain b/eth/test/tests/02.chain deleted file mode 120000 index 9655cb3df..000000000 --- a/eth/test/tests/02.chain +++ /dev/null @@ -1 +0,0 @@ -../chains/01.chain
\ No newline at end of file diff --git a/eth/test/tests/02.sh b/eth/test/tests/02.sh deleted file mode 100644 index 619217ed8..000000000 --- a/eth/test/tests/02.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -TIMEOUT=6 - -cat >> $JSFILE <<EOF -eth.addPeer("localhost:30311"); -sleep(200); -eth.addPeer("localhost:30312"); -sleep(3000); -eth.export("$CHAIN_TEST"); -EOF - -peer 11 01 -peer 12 02 -P12ID=$PID -test_node $NAME "" -loglevel 5 $JSFILE -sleep 0.3 -kill $P12ID - diff --git a/eth/test/tests/03.chain b/eth/test/tests/03.chain deleted file mode 120000 index b07c49a30..000000000 --- a/eth/test/tests/03.chain +++ /dev/null @@ -1 +0,0 @@ -../chains/12k.chain
\ No newline at end of file diff --git a/eth/test/tests/03.sh b/eth/test/tests/03.sh deleted file mode 100644 index d7dba737f..000000000 --- a/eth/test/tests/03.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -TIMEOUT=12 - -cat >> $JSFILE <<EOF -eth.addPeer("localhost:30311"); -sleep(10000); -eth.export("$CHAIN_TEST"); -EOF - -peer 11 12k -sleep 2 -test_node $NAME "" -loglevel 5 $JSFILE - diff --git a/eth/test/tests/04.sh b/eth/test/tests/04.sh deleted file mode 100644 index d77c360ba..000000000 --- a/eth/test/tests/04.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -TIMEOUT=15 - -cat >> $JSFILE <<EOF -eth.addPeer("localhost:30311"); -sleep(200); -eth.addPeer("localhost:30312"); -sleep(13000); -eth.export("$CHAIN_TEST"); -EOF - -peer 11 01 -mine -peer 12 02 -test_node $NAME "" -loglevel 5 $JSFILE -sleep 6 -cat $DIR/$NAME/debug.log | grep 'best peer' diff --git a/eth/test/tests/05.sh b/eth/test/tests/05.sh deleted file mode 100644 index 0a0f94df5..000000000 --- a/eth/test/tests/05.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -TIMEOUT=60 - -cat >> $JSFILE <<EOF -eth.addPeer("localhost:30311"); -sleep(200); -eth.addPeer("localhost:30312"); -eth.addPeer("localhost:30313"); -eth.addPeer("localhost:30314"); -sleep(3000); -eth.export("$CHAIN_TEST"); -EOF - -peer 11 01 -mine -peer 12 02 -mine -peer 13 03 -peer 14 04 -test_node $NAME "" -loglevel 5 $JSFILE - diff --git a/eth/test/tests/common.js b/eth/test/tests/common.js deleted file mode 100644 index 206ebf145..000000000 --- a/eth/test/tests/common.js +++ /dev/null @@ -1,9 +0,0 @@ -function log(text) { - console.log("[JS TEST SCRIPT] " + text); -} - -function sleep(seconds) { - var now = new Date().getTime(); - while(new Date().getTime() < now + seconds){} -} - diff --git a/eth/test/tests/common.sh b/eth/test/tests/common.sh deleted file mode 100644 index f66cfb43e..000000000 --- a/eth/test/tests/common.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -# launched by run.sh -function test_node { - rm -rf $DIR/$1 - ARGS="-datadir $DIR/$1 -debug debug -seed=false -shh=false -id test$1 -port 303$1" - if [ "" != "$2" ]; then - chain="chains/$2.chain" - echo "import chain $chain" - $ETH $ARGS -loglevel 3 -chain $chain | grep CLI |grep import - fi - echo "starting test node $1 with args $ARGS ${@:3}" - $ETH $ARGS ${@:3} & - PID=$! - PIDS="$PIDS $PID" -} - -function peer { - test_node $@ -loglevel 5 -logfile debug.log -maxpeer 1 -dial=false -}
\ No newline at end of file |