1 extern crate compiletest_rs as compiletest;
8 let mut config = compiletest::default_config();
10 let cfg_mode = "run-pass".parse().ok().expect("Invalid mode");
11 let mut s = String::new();
12 s.push_str(" -L target/debug/");
13 s.push_str(" -L target/debug/deps");
14 s.push_str(" -Zextra-plugins=clippy -Ltarget_recur/debug -Dclippy_pedantic -Dclippy");
15 config.target_rustcflags = Some(s);
16 if let Ok(name) = var::<&str>("TESTNAME") {
17 let s : String = name.to_owned();
18 config.filter = Some(s)
21 config.mode = cfg_mode;
23 compiletest::runtest::run(config, &Path::new("src/lib.rs"));