From 29dc89372333025c065f5e1ec855699c597f8c34 Mon Sep 17 00:00:00 2001 From: debjit Date: Wed, 4 Dec 2024 13:50:29 +0530 Subject: [PATCH] feature to exclude time consuming tests (but not enabled) --- src/testing/cases/blockchain_test.rs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/testing/cases/blockchain_test.rs b/src/testing/cases/blockchain_test.rs index eb592b5..8fb21c7 100644 --- a/src/testing/cases/blockchain_test.rs +++ b/src/testing/cases/blockchain_test.rs @@ -234,9 +234,18 @@ impl Case for BlockchainTestCase { /// The reason should be documented in a comment above the file name(s). pub fn should_skip(path: &Path) -> bool { let path_str = path.to_str().expect("Path is not valid UTF-8"); - let name = path.file_name().unwrap().to_str().unwrap(); + let test_name = path.file_name().unwrap().to_str().unwrap(); + let test_folder = path + .parent() + .unwrap() + .file_name() + .unwrap() + .to_str() + .unwrap(); + + // executnig all tests for now false && matches!( - name, + test_name, // funky test with `bigint 0x00` value in json :) not possible to happen on mainnet and require // custom json parser. https://github.com/ethereum/tests/issues/971 | "ValueOverflow.json" @@ -271,6 +280,11 @@ pub fn should_skip(path: &Path) -> bool { | "CALLBlake2f_MaxRounds.json" | "shiftCombinations.json" ) + || matches!( + test_folder, + // These tests are passing, but they take a lot of time to execute + | "stTimeConsuming" + ) // Ignore outdated EOF tests that haven't been updated for Cancun yet. || path_contains(path_str, &["EIPTests", "stEOF"]) }