Skip to content

Commit b59db8c

Browse files
committed
Compare ethdebug output to program schema
1 parent db53ca5 commit b59db8c

File tree

5 files changed

+3687
-0
lines changed

5 files changed

+3687
-0
lines changed

Diff for: .circleci/config.yml

+15
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,8 @@ jobs:
951951
chk_pylint:
952952
<<: *base_ubuntu2404_small
953953
steps:
954+
- install_python3:
955+
packages: jsonschema
954956
- checkout
955957
- run: pylint --version
956958
- run:
@@ -1534,6 +1536,16 @@ jobs:
15341536
- reports/externalTests/
15351537
- matrix_notify_failure_unless_pr
15361538

1539+
t_ethdebug_schema_validity:
1540+
<<: *base_node_small
1541+
steps:
1542+
- install_python3:
1543+
packages: jsonschema
1544+
- run:
1545+
name: Ethdebug schema validity tests
1546+
command: |
1547+
test/ethdebugSchemaTests/test.py --solc-binary-path=/tmp/workspace/solc/solc-static-linux
1548+
15371549
c_ext_benchmarks:
15381550
<<: *base_node_small
15391551
steps:
@@ -1927,6 +1939,9 @@ workflows:
19271939
#- t_ext: *job_native_compile_ext_chainlink
19281940
#- t_ext: *job_native_compile_ext_bleeps
19291941

1942+
- t_ethdebug_schema_validity:
1943+
<<: *requires_b_ubu_static
1944+
19301945
- c_ext_benchmarks:
19311946
<<: *requires_nothing
19321947
requires:

Diff for: test/ethdebugSchemaTests/input_file.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"language": "Solidity",
3+
"sources": {
4+
"a.sol": {
5+
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function a(uint x) public pure { assert(x > 0); } } contract A2 { function a(uint x) public pure { assert(x > 0); } }"
6+
},
7+
"b.sol": {
8+
"content": "//SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\ncontract A1 { function b(uint x) public pure { assert(x > 0); } } contract B2 { function b(uint x) public pure { assert(x > 0); } }"
9+
}
10+
},
11+
"settings": {
12+
"viaIR": true,
13+
"debug": {
14+
"debugInfo": [
15+
"ethdebug"
16+
]
17+
},
18+
"outputSelection": {
19+
"*": {
20+
"*": [
21+
"evm.bytecode.ethdebug",
22+
"evm.deployedBytecode.ethdebug"
23+
]
24+
}
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)