Fork of https://github.com/oxigraph/oxigraph.git for the purpose of NextGraph project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
oxigraph/testsuite/src/main.rs

28 lines
966 B

use anyhow::Result;
use clap::{App, Arg};
use oxigraph_testsuite::evaluator::TestEvaluator;
use oxigraph_testsuite::manifest::TestManifest;
use oxigraph_testsuite::parser_evaluator::register_parser_tests;
use oxigraph_testsuite::report::build_report;
use oxigraph_testsuite::sparql_evaluator::register_sparql_tests;
fn main() -> Result<()> {
let matches = App::new("Oxigraph testsuite runner")
.arg(
Arg::with_name("manifest")
.help("URI of the testsuite manifest to run")
.takes_value(true)
.multiple(true)
.required(true),
)
.get_matches();
let mut evaluator = TestEvaluator::default();
register_parser_tests(&mut evaluator);
register_sparql_tests(&mut evaluator);
let manifest = TestManifest::new(matches.values_of("manifest").unwrap());
let results = evaluator.evaluate(manifest)?;
print!("{}", build_report(results));
Ok(())
}