-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
export NODE1=ip.address.1:8545 | ||
export NODE2=ip.address.2:8545 | ||
|
||
flood all node1=$NODE1 node2=$NODE2 --equality | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
#!/bin/bash | ||
|
||
export TEST_DATA_DIR=/path/to/some/output/dir | ||
export [email protected]:localhost:8545 | ||
export [email protected]:localhost:8545 | ||
|
||
# | ||
# # run tests | ||
# | ||
|
||
flood eth_call \ | ||
node1=$NODE1 \ | ||
node2=$NODE2 \ | ||
--output $TEST_DATA_DIR/eth_call \ | ||
-r 1024 2048 4096 8192 16384 | ||
|
||
flood eth_getBalance \ | ||
node1=$NODE1 \ | ||
node2=$NODE2 \ | ||
--output $TEST_DATA_DIR/eth_getBalance \ | ||
-d 1 \ | ||
-r 1024 2048 4096 8192 16384 | ||
|
||
flood eth_getBlockByNumber \ | ||
node1=$NODE1 \ | ||
node2=$NODE2 \ | ||
--output $TEST_DATA_DIR/eth_getBlockByNumber \ | ||
-r 1024 2048 4096 8192 16384 | ||
|
||
flood eth_getCode \ | ||
node1=$NODE1 \ | ||
node2=$NODE2 \ | ||
--output $TEST_DATA_DIR/eth_getCode \ | ||
-r 1024 2048 4096 8192 16384 | ||
|
||
flood eth_getLogs \ | ||
node1=$NODE1 \ | ||
node2=$NODE2 \ | ||
--output $TEST_DATA_DIR/eth_getLogs \ | ||
-r 64 128 256 512 1024 | ||
|
||
flood eth_getStorageAt \ | ||
node1=$NODE1 \ | ||
node2=$NODE2 \ | ||
--output $TEST_DATA_DIR/eth_getStorageAt \ | ||
-r 1024 2048 4096 8192 16384 | ||
|
||
flood eth_getTransactionByHash \ | ||
node1=$NODE1 \ | ||
node2=$NODE2 \ | ||
--output $TEST_DATA_DIR/eth_getTransactionByHash \ | ||
-r 1024 2048 4096 8192 16384 | ||
|
||
flood eth_getTransactionCount \ | ||
node1=$NODE1 \ | ||
node2=$NODE2 \ | ||
--output $TEST_DATA_DIR/eth_getTransactionCount \ | ||
-r 2048 4096 8192 16384 32768 | ||
|
||
flood eth_getTransactionReceipt \ | ||
node1=$NODE1 \ | ||
node2=$NODE2 \ | ||
--output $TEST_DATA_DIR/eth_getTransactionReceipt \ | ||
-r 1024 2048 4096 8192 16384 | ||
|
||
# | ||
# # generate report | ||
# | ||
|
||
cd $TEST_DATA_DIR | ||
|
||
flood report \ | ||
$TEST_DATA_DIR/eth_call \ | ||
$TEST_DATA_DIR/eth_getBalance \ | ||
$TEST_DATA_DIR/eth_getBlockByNumber \ | ||
$TEST_DATA_DIR/eth_getCode \ | ||
$TEST_DATA_DIR/eth_getLogs \ | ||
$TEST_DATA_DIR/eth_getStorageAt \ | ||
$TEST_DATA_DIR/eth_getTransactionByHash \ | ||
$TEST_DATA_DIR/eth_getTransactionCount \ | ||
$TEST_DATA_DIR/eth_getTransactionReceipt | ||
|