mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-13 10:31:03 +00:00
initialize geth via the standard json
Signed-off-by: xermicus <bigcyrill@hotmail.com>
This commit is contained in:
@@ -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>,
|
||||
}
|
||||
@@ -3,5 +3,4 @@
|
||||
//! This crate defines the testing configuration and
|
||||
//! provides a helper utilty to execute tests.
|
||||
|
||||
pub mod arguments;
|
||||
pub mod driver;
|
||||
|
||||
@@ -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:?}");
|
||||
|
||||
Reference in New Issue
Block a user