forked from steemit/steem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganized the tests into groups with identical config.ini steemit#2098
- Loading branch information
Showing
6 changed files
with
57 additions
and
72 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,37 @@ | ||
#!/bin/bash | ||
|
||
function echo(){ builtin echo $(basename $0 .sh): "$@"; } | ||
pushd () { command pushd "$@" > /dev/null; } | ||
popd () { command popd "$@" > /dev/null; } | ||
|
||
if [ $# -ne 6 ] | ||
then | ||
echo Usage: jobs 1st_address 1st_port 2nd_address 2nd_port working_dir | ||
echo Example: 100 127.0.0.1 8090 ec2-34-235-166-184.compute-1.amazonaws.com 8090 logs | ||
exit -1 | ||
fi | ||
|
||
EXIT_CODE=0 | ||
JOBS=$1 | ||
TEST_ADDRESS=$2 | ||
TEST_PORT=$3 | ||
REF_ADDRESS=$4 | ||
REF_PORT=$5 | ||
BLOCK_LIMIT=$6 | ||
WDIR=logs | ||
|
||
function run_test { | ||
echo Running test $1 | ||
pushd $1 | ||
|
||
echo Running ./test.sh $JOBS $TEST_ADDRESS $TEST_PORT $REF_ADDRESS $REF_PORT $2 | ||
./test.sh 1 $TEST_ADDRESS $TEST_PORT $REF_ADDRESS $REF_PORT $2 | ||
[ $? -ne 0 ] && echo test $1 FAILED && EXIT_CODE=-1 | ||
|
||
popd | ||
} | ||
|
||
run_test "account_history" ./logs | ||
run_test "get_ops_in_block" $BLOCK_LIMIT | ||
|
||
exit $EXIT_CODE |
This file was deleted.
Oops, something went wrong.
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