17 lines
384 B
Rust
17 lines
384 B
Rust
use std::process::Command;
|
|
|
|
fn shout() -> Command {
|
|
let mut cmd = Command::new(env!("CARGO_BIN_EXE_shout"));
|
|
cmd.current_dir(concat!(env!("CARGO_MANIFEST_DIR")));
|
|
cmd
|
|
}
|
|
|
|
#[test]
|
|
fn test_suite_passes() {
|
|
let status = shout()
|
|
.args(["test", "test/"])
|
|
.status()
|
|
.unwrap();
|
|
assert!(status.success(), "shout test test/ exited with {status}");
|
|
}
|