forked from makerdao/plunger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·41 lines (31 loc) · 1.52 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
# Pull the docker image
docker pull makerdao/testchain-pymaker:unit-testing
# Remove existing container if tests not gracefully stopped
docker-compose down
# Start parity and wait to initialize
docker-compose up -d parity-plunger; sleep 2
PYTHONPATH=$PYTHONPATH:./lib/pygasprice-client py.test --cov=plunger --cov-report=term --cov-append tests/test_plunger.py $@
TEST_RESULT=$?
docker-compose down
docker-compose up -d parity-plunger; sleep 2
PYTHONPATH=$PYTHONPATH:./lib/pygasprice-client py.test --cov=plunger --cov-report=term --cov-append tests/test_wait.py $@
TEST_RESULT=$((TEST_RESULT+$?))
docker-compose down
docker-compose up -d parity-plunger; sleep 2
PYTHONPATH=$PYTHONPATH:./lib/pygasprice-client py.test --cov=plunger --cov-report=term --cov-append tests/test_parity_nonce_gap.py $@
TEST_RESULT=$((TEST_RESULT+$?))
docker-compose down
docker-compose up -d parity-plunger; sleep 2
PYTHONPATH=$PYTHONPATH:./lib/pygasprice-client py.test --cov=plunger --cov-report=term --cov-append tests/test_override.py $@
TEST_RESULT=$((TEST_RESULT+$?))
docker-compose down
docker-compose up -d parity-plunger; sleep 2
PYTHONPATH=$PYTHONPATH:./lib/pygasprice-client py.test --cov=plunger --cov-report=term --cov-append tests/test_custom_gas.py $@
TEST_RESULT=$((TEST_RESULT+$?))
docker-compose down
docker-compose up -d parity-plunger; sleep 2
PYTHONPATH=$PYTHONPATH:./lib/pygasprice-client py.test --cov=plunger --cov-report=term --cov-append tests/test_tx_err.py $@
TEST_RESULT=$((TEST_RESULT+$?))
docker-compose down
exit $TEST_RESULT