initialize geth via the standard json

Signed-off-by: xermicus <bigcyrill@hotmail.com>
This commit is contained in:
xermicus
2025-03-23 00:05:53 +01:00
parent f9a0542d49
commit 6cd4519d89
15 changed files with 228 additions and 64 deletions
-17
View File
@@ -1,17 +0,0 @@
use std::path::PathBuf;
use clap::Parser;
#[derive(Debug, Parser)]
#[command(name = "The PolkaVM Solidity compiler", arg_required_else_help = true)]
pub struct Arguments {
/// The path where the `resolc` executable to be tested is found at.
///
/// By default it uses the `resolc` found in `$PATH`
#[arg(long = "resolc")]
pub resolc: Option<PathBuf>,
/// A list of test corpus JSON files to be tested.
#[arg(long = "corpus")]
pub corpus: Vec<PathBuf>,
}
-1
View File
@@ -3,5 +3,4 @@
//! This crate defines the testing configuration and
//! provides a helper utilty to execute tests.
pub mod arguments;
pub mod driver;
+4 -6
View File
@@ -1,17 +1,15 @@
use std::collections::BTreeSet;
use clap::Parser;
use rayon::prelude::*;
use revive_dt_core::{arguments::Arguments, driver::compiler::build_evm};
use revive_dt_config::*;
use revive_dt_core::driver::compiler::build_evm;
use revive_dt_format::corpus::Corpus;
fn main() -> anyhow::Result<()> {
env_logger::init();
let args = Arguments::try_parse()?;
for path in args.corpus.iter().collect::<BTreeSet<_>>() {
for path in get_args().corpus.iter().collect::<BTreeSet<_>>() {
log::trace!("attempting corpus {path:?}");
let corpus = Corpus::try_from_path(path)?;
log::info!("found corpus: {corpus:?}");