1 // Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
12 if option_env!("RUSTC_TEST_SUITE").is_some() || cfg!(windows) {
15 let root_dir = std::env::current_dir().unwrap();
16 for d in &[".", "clippy_lints", "rustc_tools_util", "clippy_dev"] {
17 std::env::set_current_dir(root_dir.join(d)).unwrap();
18 let output = std::process::Command::new("cargo")
22 .arg("--all-features")
23 .arg("--manifest-path")
24 .arg(root_dir.join("Cargo.toml"))
25 .args(&["--", "-W clippy::internal -W clippy::pedantic"])
26 .env("CLIPPY_DOGFOOD", "true")
29 println!("status: {}", output.status);
30 println!("stdout: {}", String::from_utf8_lossy(&output.stdout));
31 println!("stderr: {}", String::from_utf8_lossy(&output.stderr));
33 assert!(output.status.success());