Skip to content

Commit ed1ea2d

Browse files
authored
Split bin target wiring and add alias regression test (#26)
1 parent edcd94c commit ed1ea2d

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

cli/provenact-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ autobins = false
88

99
[[bin]]
1010
name = "provenact"
11-
path = "src/main.rs"
11+
path = "src/main_provenact.rs"
1212

1313
[[bin]]
1414
name = "provenact-cli"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include!("main.rs");
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
use std::process::Command;
2+
3+
#[test]
4+
fn provenact_alias_binary_is_executable() {
5+
let output = Command::new(env!("CARGO_BIN_EXE_provenact"))
6+
.output()
7+
.expect("alias binary should run");
8+
9+
assert!(!output.status.success());
10+
let stderr = String::from_utf8_lossy(&output.stderr);
11+
assert!(stderr.contains("usage:"), "{stderr}");
12+
}

0 commit comments

Comments
 (0)