diff --git a/xtask/tests/ci.rs b/xtask/tests/ci.rs index a9901d3b..ac89b158 100644 --- a/xtask/tests/ci.rs +++ b/xtask/tests/ci.rs @@ -33,8 +33,9 @@ fn main() { // Build-test every HAL. for (hal, target) in HALS { - let mut cargo = Command::new("cargo"); let toml_path = format!("{}/Cargo.toml", hal); + // With default features. + let mut cargo = Command::new("cargo"); let status = cargo .args(&["build", "--manifest-path", &toml_path, "--target", target]) .status() @@ -45,6 +46,25 @@ fn main() { "command exited with error status: {:?}", cargo ); + // Without default features. + let mut cargo = Command::new("cargo"); + let status = cargo + .args(&[ + "build", + "--manifest-path", + &toml_path, + "--target", + target, + //"--no-default-features", + ]) + .status() + .map_err(|e| format!("could not execute {:?}: {}", cargo, e)) + .unwrap(); + assert!( + status.success(), + "command exited with error status: {:?}", + cargo + ); } // Build/Run doc-tests in `nrf-hal-common` for each chip. @@ -104,11 +124,17 @@ fn main() { } } - let mut cargo = Command::new("cargo"); let toml_path = "nrf52840-hal-tests/Cargo.toml"; let status = cargo - .args(&["build", "--manifest-path", &toml_path, "--target", "thumbv7em-none-eabihf", "--tests"]) + .args(&[ + "build", + "--manifest-path", + &toml_path, + "--target", + "thumbv7em-none-eabihf", + "--tests", + ]) .status() .map_err(|e| format!("could not execute {:?}: {}", cargo, e)) .unwrap();