diff options
author | winsvega <winsvega@mail.ru> | 2018-12-18 09:31:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-18 09:31:04 +0800 |
commit | 725dbc73a54649e22a00330bd0f4d6699a5060e5 (patch) | |
tree | 0303864914e0815f64752477db1b3dd52c88eefd | |
parent | debd16734e2fa18a575397f9e95f620aa891044d (diff) | |
parent | 6096d6bf16ac548b208ec8a88baa61cd9ec83587 (diff) | |
download | dexon-tests-725dbc73a54649e22a00330bd0f4d6699a5060e5.tar dexon-tests-725dbc73a54649e22a00330bd0f4d6699a5060e5.tar.gz dexon-tests-725dbc73a54649e22a00330bd0f4d6699a5060e5.tar.bz2 dexon-tests-725dbc73a54649e22a00330bd0f4d6699a5060e5.tar.lz dexon-tests-725dbc73a54649e22a00330bd0f4d6699a5060e5.tar.xz dexon-tests-725dbc73a54649e22a00330bd0f4d6699a5060e5.tar.zst dexon-tests-725dbc73a54649e22a00330bd0f4d6699a5060e5.zip |
Merge pull request #489 from ethereum/retestethcfg
retesteth client configs [WIP]
-rw-r--r-- | Retesteth/eth/config | 2 | ||||
-rw-r--r-- | Retesteth/eth/eth.sh | 19 | ||||
-rw-r--r-- | Retesteth/parity/config | 5 | ||||
-rwxr-xr-x | Retesteth/parity/parity.sh | 17 |
4 files changed, 40 insertions, 3 deletions
diff --git a/Retesteth/eth/config b/Retesteth/eth/config index 211eea22f..f03b39e78 100644 --- a/Retesteth/eth/config +++ b/Retesteth/eth/config @@ -1,5 +1,5 @@ { - "name" : "CPP Client", + "name" : "Ethereum cpp-client", "socketType" : "ipc", "socketAddress" : "local" } diff --git a/Retesteth/eth/eth.sh b/Retesteth/eth/eth.sh index a822578d7..832408801 100644 --- a/Retesteth/eth/eth.sh +++ b/Retesteth/eth/eth.sh @@ -1,2 +1,17 @@ -echo "Starting $1 $2" -eth --test --db-path $1 --ipcpath $2 --log-verbosity 4 +#!/bin/bash +onexit() +{ + kill $child +} +trap onexit SIGTERM +trap onexit SIGABRT + +##ARGUMENTS PASSED BY RETESTETH +## +## $1 <db-path> A path to database directory that a client should use +## $2 <ipcpath> A path to the ipc socket file (has /geth.ipc at the end) +##### + +eth --test --db-path $1 --ipcpath $2 --log-verbosity 5 & +child=$! +wait "$child" diff --git a/Retesteth/parity/config b/Retesteth/parity/config new file mode 100644 index 000000000..85bc16a9b --- /dev/null +++ b/Retesteth/parity/config @@ -0,0 +1,5 @@ +{ + "name" : "Parity Client", + "socketType" : "ipc", + "socketAddress" : "local" +} diff --git a/Retesteth/parity/parity.sh b/Retesteth/parity/parity.sh new file mode 100755 index 000000000..832408801 --- /dev/null +++ b/Retesteth/parity/parity.sh @@ -0,0 +1,17 @@ +#!/bin/bash +onexit() +{ + kill $child +} +trap onexit SIGTERM +trap onexit SIGABRT + +##ARGUMENTS PASSED BY RETESTETH +## +## $1 <db-path> A path to database directory that a client should use +## $2 <ipcpath> A path to the ipc socket file (has /geth.ipc at the end) +##### + +eth --test --db-path $1 --ipcpath $2 --log-verbosity 5 & +child=$! +wait "$child" |