Merge pull request #3225 from matthiaskrgr/dogfood

tests: dogfood: extend to run with --all-features and clippy::internal enabled.
This commit is contained in:
Philipp Hansch 2018-09-26 17:47:51 +01:00 committed by GitHub
commit 66afff9642
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,14 +4,16 @@ fn dogfood() {
return;
}
let root_dir = std::env::current_dir().unwrap();
for d in &[".", "clippy_lints"] {
for d in &[".", "clippy_lints", "rustc_tools_util", "clippy_dev"] {
std::env::set_current_dir(root_dir.join(d)).unwrap();
let output = std::process::Command::new("cargo")
.arg("run")
.arg("--bin")
.arg("cargo-clippy")
.arg("--all-features")
.arg("--manifest-path")
.arg(root_dir.join("Cargo.toml"))
.args(&["--", "-W clippy::internal"])
.env("CLIPPY_DOGFOOD", "true")
.output()
.unwrap();