Skip to content

Commit 976bb36

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

File tree

5 files changed

+3690
-0
lines changed

5 files changed

+3690
-0
lines changed

Diff for: .circleci/config.yml

+18
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,19 @@ jobs:
15341536
- reports/externalTests/
15351537
- matrix_notify_failure_unless_pr
15361538

1539+
t_ethdebug_schema_validity:
1540+
<<: *base_node_small
1541+
steps:
1542+
- checkout
1543+
- attach_workspace:
1544+
at: /tmp/workspace
1545+
- install_python3:
1546+
packages: jsonschema
1547+
- run:
1548+
name: Ethdebug schema validity tests
1549+
command: |
1550+
test/ethdebugSchemaTests/test.py --solc-binary-path=/tmp/workspace/solc/solc-static-linux
1551+
15371552
c_ext_benchmarks:
15381553
<<: *base_node_small
15391554
steps:
@@ -1927,6 +1942,9 @@ workflows:
19271942
#- t_ext: *job_native_compile_ext_chainlink
19281943
#- t_ext: *job_native_compile_ext_bleeps
19291944

1945+
- t_ethdebug_schema_validity:
1946+
<<: *requires_b_ubu_static
1947+
19301948
- c_ext_benchmarks:
19311949
<<: *requires_nothing
19321950
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)