Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/test/ethereum: add support for EEST #2433

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions cmd/test/ethereum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
#include <silkworm/infra/common/terminal.hpp>
#include <silkworm/infra/concurrency/thread_pool.hpp>

// See https://ethereum-tests.readthedocs.io
// See EEST: https://ethereum.github.io/execution-spec-tests.
// See legacy tests: https://ethereum-tests.readthedocs.io.

using namespace silkworm;
using namespace silkworm::protocol;
Expand All @@ -55,7 +56,10 @@ static const fs::path kBlockchainDir{"BlockchainTests"};

static const fs::path kTransactionDir{"TransactionTests"};

static const std::vector<fs::path> kSlowTests{
/// The path to the blockchain tests in Execution Spec Tests (EEST) fixtures.
static const fs::path kEESTBlockchainDir{"blockchain_tests"};

static const std::array kSlowTests{
kBlockchainDir / "GeneralStateTests" / "stTimeConsuming",
kBlockchainDir / "GeneralStateTests" / "VMTests" / "vmPerformance",
};
Expand Down Expand Up @@ -466,7 +470,8 @@ int main(int argc, char* argv[]) {

const fs::path root_dir{tests_path};

static const std::map<fs::path, RunnerFunc> kTestTypes{
const std::vector<std::pair<fs::path, RunnerFunc>> kTestTypes{
{kEESTBlockchainDir, blockchain_test},
{kDifficultyDir, difficulty_tests},
{kBlockchainDir, blockchain_test},
{kTransactionDir, transaction_test},
Expand Down
Loading