diff options
| author | Jonas Maier <jonas@x77.dev> | 2026-05-09 11:35:48 +0200 |
|---|---|---|
| committer | Jonas Maier <jonas@x77.dev> | 2026-05-09 11:35:48 +0200 |
| commit | 396b8e0ccf03e164f26f235bef4dffa50070d215 (patch) | |
| tree | 1c65f3d9e6d7c0817eb1e00f55b65470deba05f9 | |
| parent | d80a9f03b3eec7c4d7d5eb32a88033bec87bdb53 (diff) | |
| download | pish-396b8e0ccf03e164f26f235bef4dffa50070d215.tar.gz | |
semicolon test
| -rw-r--r-- | test-cases/semicolon/script.sh | 1 | ||||
| -rw-r--r-- | test-cases/semicolon/stdout.txt | 1 | ||||
| -rw-r--r-- | tests/scripts.rs | 5 |
3 files changed, 7 insertions, 0 deletions
diff --git a/test-cases/semicolon/script.sh b/test-cases/semicolon/script.sh new file mode 100644 index 0000000..43a48af --- /dev/null +++ b/test-cases/semicolon/script.sh @@ -0,0 +1 @@ +echo foo; echo bar diff --git a/test-cases/semicolon/stdout.txt b/test-cases/semicolon/stdout.txt new file mode 100644 index 0000000..323fae0 --- /dev/null +++ b/test-cases/semicolon/stdout.txt @@ -0,0 +1 @@ +foobar diff --git a/tests/scripts.rs b/tests/scripts.rs index 7a0a3e0..a53b00a 100644 --- a/tests/scripts.rs +++ b/tests/scripts.rs @@ -7,6 +7,11 @@ fn fun0() { } #[test] +fn semicolon() { + common::test_case("semicolon", include_bytes!("../test-cases/semicolon/script.sh"), include_bytes!("../test-cases/semicolon/stdout.txt")); +} + +#[test] fn variables() { common::test_case("variables", include_bytes!("../test-cases/variables/script.sh"), include_bytes!("../test-cases/variables/stdout.txt")); } |
