Skip to content

Commit 2cc646c

Browse files
ehildenbrv-jenkins
authored andcommitted
Failing list of tests for Web3 (#585)
* Makefile, tests/failing.web3: use failing list to figure out failing tests * tests/failing.web3: populate failing list * Makefile, tests/failing.web3: allow running failing web3 tests too * tests/web3: remove explicit failing directory * tests/web3: format failing test expected output
1 parent 16ac53f commit 2cc646c

21 files changed

+247
-12
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export LUA_PATH
4444
split-tests \
4545
test test-all test-conformance test-rest-conformance test-all-conformance \
4646
test-vm test-rest-vm test-all-vm test-bchain test-rest-bchain test-all-bchain \
47-
test-web3 \
47+
test-web3 test-all-web3 test-failing-web3 \
4848
test-prove test-prove-benchmarks test-prove-functional test-prove-opcodes test-prove-erc20 test-prove-bihu test-prove-examples test-klab-prove \
4949
test-parse test-failure \
5050
test-interactive test-interactive-help test-interactive-run test-interactive-prove test-interactive-search test-interactive-firefly \
@@ -471,10 +471,13 @@ test-all-bchain: $(all_bchain_tests:=.run)
471471
test-rest-bchain: $(rest_bchain_tests:=.run)
472472
test-bchain: $(passing_bchain_tests:=.run)
473473

474-
web3_tests=$(wildcard tests/web3/*.in.json) \
475-
$(wildcard tests/web3/no-shutdown/*.in.json)
474+
all_web3_tests = $(wildcard tests/web3/*.in.json) $(wildcard tests/web3/*/*.in.json)
475+
failing_web3_tests = $(shell cat tests/failing.web3)
476+
passing_web3_tests = $(filter-out $(failing_web3_tests), $(all_web3_tests))
476477

477-
test-web3: $(web3_tests:.in.json=.run-web3)
478+
test-all-web3: $(all_web3_tests:.in.json=.run-web3)
479+
test-failing-web3: $(failing_web3_tests:.in.json=.run-web3)
480+
test-web3: $(passing_web3_tests:.in.json=.run-web3)
478481

479482
# Proof Tests
480483

tests/failing.web3

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
tests/web3/erc20/erc20capped.in.json
2+
tests/web3/erc20/erc20capped-partial.in.json
3+
tests/web3/erc20/erc20detailed.in.json
4+
tests/web3/erc20/erc20detailed-partial.in.json
5+
tests/web3/erc20/tokentimelock.in.json
6+
tests/web3/erc20/tokentimelock-partial.in.json
7+
tests/web3/eth_getBlockByNumber1Tx-2.in.json
8+
tests/web3/eth_getBlockByNumberNoTx-2.in.json
9+
tests/web3/eth_getTransactionReceipt.in.json
10+
tests/web3/getBlock_multipleAccounts.in.json
11+
tests/web3/getBlock_multipleTransactions.in.json
12+
tests/web3/getBlock_singleAccount.in.json
13+
tests/web3/getBlock_singleTransaction.in.json
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[
2+
{
3+
"jsonrpc": "2.0",
4+
"id": 1,
5+
"result": true
6+
},
7+
{
8+
"jsonrpc": "2.0",
9+
"id": 2,
10+
"result": "0x48b3bce222588aff4329c7c7aebaa39ffb66045254c1ca16b9b1a5482463682b"
11+
},
12+
{
13+
"jsonrpc": "2.0",
14+
"id": 3,
15+
"result": {
16+
"transactionHash": "0x48b3bce222588aff4329c7c7aebaa39ffb66045254c1ca16b9b1a5482463682b",
17+
"transactionIndex": "0x0",
18+
"blockHash": "0xef122182b5260879e82a5495c5dbe57ebcf6f8b2cb8b6cf50dbfc96a1d39b776",
19+
"blockNumber": "0x1",
20+
"from": "0x79a59cf0083efdf696befda81655104787f938d0",
21+
"to": null,
22+
"gasUsed": "0xeaca",
23+
"cumulativeGasUsed": "0xeaca",
24+
"contractAddress": "0xe7f1941dc335305fc2799b72417243dc3f375179",
25+
"logs": [],
26+
"status": "0x1",
27+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
28+
"v": "0x1b",
29+
"r": "0xb6b98a3170b0ad5db2792d2314aa3435b8bdbb26c35d495a2aab893113904a41",
30+
"s": "0x5bade5f3b478a7986d8933911866c324a1e5fb7839207c6cc631dead3f88063b"
31+
}
32+
}
33+
]

tests/web3/failing/eth_getTransactionReceipt.expected.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/web3/failing/getBlock_multipleAccounts.expected.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)