let mut config = compiletest::default_config();
let cfg_mode = mode.parse().expect("Invalid mode");
- config.target_rustcflags = Some("-L target/debug/ -L target/debug/deps".to_owned());
+ config.target_rustcflags = Some("-L clippy_tests/target/debug/ -L clippy_tests/target/debug/deps".to_owned());
if let Ok(name) = var::<&str>("TESTNAME") {
let s: String = name.to_owned();
config.filter = Some(s)
}
config.mode = cfg_mode;
- config.build_base = PathBuf::from("target/debug/test_build_base");
+ config.build_base = PathBuf::from("clippy_tests/target/debug/test_build_base");
config.src_base = PathBuf::from(format!("tests/{}", dir));
compiletest::run_tests(&config);
let cfg_mode = "run-fail".parse().expect("Invalid mode");
let mut s = String::new();
- s.push_str(" -L target/debug/");
- s.push_str(" -L target/debug/deps");
+ s.push_str(" -L clippy_tests/target/debug/");
+ s.push_str(" -L clippy_tests/target/debug/deps");
s.push_str(" -Zextra-plugins=clippy -Ltarget_recur/debug -Dwarnings -Dclippy_pedantic -Dclippy -Dclippy_internal");
config.target_rustcflags = Some(s);
if let Ok(name) = var("TESTNAME") {