Skip to content

Commit c3ad014

Browse files
committed
test: Enable EIP-2935 EEST tests
Enable EIP-2935 EEST tests on CI and enable "partial state hash" check for some of them.
1 parent 091b88c commit c3ad014

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

circle.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,16 @@ jobs:
371371
# Tests for in-development EVM revision currently passing.
372372
working_directory: ~/spec-tests/fixtures/state_tests
373373
command: >
374-
~/build/bin/evmone-statetest
374+
~/build/bin/evmone-statetest
375375
prague/eip2537_bls_12_381_precompiles/bls12_precompiles_before_fork
376376
prague/eip2537_bls_12_381_precompiles/bls12_g1add
377+
- run:
378+
name: "Execution spec tests (develop, blockchain_tests)"
379+
# Tests for in-development EVM revision currently passing.
380+
working_directory: ~/spec-tests/fixtures/blockchain_tests
381+
command: >
382+
bin/evmone-blockchaintest
383+
prague/eip2935_historical_block_hashes_from_state
377384
- collect_coverage_gcc
378385
- upload_coverage:
379386
flags: execution_spec_tests

test/blockchaintest/blockchaintest_runner.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,13 @@ constexpr size_t PARTIAL_STATE_HASH_CHECK_MARGIN = 5;
128128
/// because the implementation of it is very simplistic: the trie is not updated
129129
/// along the state changes but a new trie is build from scratch for every block.
130130
constexpr std::array PARTIAL_STATE_HASH_CHECK_TESTS{
131-
"a test name",
131+
"tests/prague/eip2935_historical_block_hashes_from_state/test_block_hashes.py"
132+
"::test_block_hashes_history"
133+
"[fork_Prague-blockchain_test-full_history_plus_one_check_blockhash_first]",
134+
"tests/prague/eip2935_historical_block_hashes_from_state/test_block_hashes.py"
135+
"::test_block_hashes_history_at_transition"
136+
"[fork_CancunToPragueAtTime15k-blockchain_test-blocks_before_fork_1-blocks_after_fork_257]",
132137
};
133-
134-
135138
} // namespace
136139

137140
void run_blockchain_tests(std::span<const BlockchainTest> tests, evmc::VM& vm)

0 commit comments

Comments
 (0)