cargo-minimize/tests/full_tests.rs
2023-04-11 10:39:54 +02:00

17 lines
361 B
Rust

use anyhow::{ensure, Result};
use std::process::Command;
#[test]
#[ignore = "FIXME: Make this not cursed."]
#[cfg(not(unix))]
fn full_tests() -> Result<()> {
todo!()
}
#[test]
#[cfg(unix)]
fn full_tests() -> Result<()> {
let status = Command::new("cargo").arg("runtest").spawn()?.wait()?;
ensure!(status.success(), "runtest failed");
Ok(())
}