diff options
| author | Jonas Maier <jonas@x77.dev> | 2026-05-09 11:33:12 +0200 |
|---|---|---|
| committer | Jonas Maier <jonas@x77.dev> | 2026-05-09 11:33:12 +0200 |
| commit | d80a9f03b3eec7c4d7d5eb32a88033bec87bdb53 (patch) | |
| tree | b2c90a12a6e7154411d6360b53e6afc0d6adda0a | |
| parent | dd24cc2aec9ece8214ec1a4eff4abd26d00ea083 (diff) | |
| download | pish-d80a9f03b3eec7c4d7d5eb32a88033bec87bdb53.tar.gz | |
another test case
| -rw-r--r-- | test-cases/variables/script.sh | 3 | ||||
| -rw-r--r-- | test-cases/variables/stdout.txt | 1 | ||||
| -rw-r--r-- | tests/scripts.rs | 5 |
3 files changed, 9 insertions, 0 deletions
diff --git a/test-cases/variables/script.sh b/test-cases/variables/script.sh new file mode 100644 index 0000000..ee11941 --- /dev/null +++ b/test-cases/variables/script.sh @@ -0,0 +1,3 @@ +set x = foo +set x = ${x}bar +echo $x diff --git a/test-cases/variables/stdout.txt b/test-cases/variables/stdout.txt new file mode 100644 index 0000000..323fae0 --- /dev/null +++ b/test-cases/variables/stdout.txt @@ -0,0 +1 @@ +foobar diff --git a/tests/scripts.rs b/tests/scripts.rs index 9b82ed1..7a0a3e0 100644 --- a/tests/scripts.rs +++ b/tests/scripts.rs @@ -6,3 +6,8 @@ fn fun0() { common::test_case("fun0", include_bytes!("../test-cases/fun0/script.sh"), include_bytes!("../test-cases/fun0/stdout.txt")); } +#[test] +fn variables() { + common::test_case("variables", include_bytes!("../test-cases/variables/script.sh"), include_bytes!("../test-cases/variables/stdout.txt")); +} + |
