Skip to content

Commit

Permalink
replace bash script with echo test strip program
Browse files Browse the repository at this point in the history
  • Loading branch information
cre4ture committed Apr 29, 2024
1 parent 54fbad6 commit 18c92a8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/by-util/test_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,13 +694,7 @@ fn test_install_and_strip_with_program() {
#[test]
fn test_install_and_strip_with_program_hyphen() {
let scene = TestScenario::new(util_name!());

let at = &scene.fixtures;
let content = r#"#!/bin/sh
printf -- '%s\n' "$1" | grep '^[^-]'
"#;
at.write("no-hyphen", content);
scene.ccmd("chmod").arg("+x").arg("no-hyphen").succeeds();

at.touch("src");
scene
Expand All @@ -710,7 +704,7 @@ fn test_install_and_strip_with_program_hyphen() {
.arg("install")
.arg("-s")
.arg("--strip-program")
.arg("./no-hyphen")
.arg("echo")
.arg("--")
.arg("src")
.arg("-dest")
Expand All @@ -726,7 +720,7 @@ fn test_install_and_strip_with_program_hyphen() {
.arg("install")
.arg("-s")
.arg("--strip-program")
.arg("./no-hyphen")
.arg("echo")
.arg("--")
.arg("src")
.arg("./-dest")
Expand Down

0 comments on commit 18c92a8

Please sign in to comment.