From 387b02e41cc835541dcfc31af5f96873d5576e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 2 Aug 2025 14:55:46 +0200 Subject: Test: basic shell scripts --- test/asset/shell/echo.et | 22 ++++++++++++++++++++++ test/asset/shell/spawn.et | 13 +++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 test/asset/shell/echo.et create mode 100644 test/asset/shell/spawn.et (limited to 'test/asset/shell') diff --git a/test/asset/shell/echo.et b/test/asset/shell/echo.et new file mode 100644 index 0000000..4da319e --- /dev/null +++ b/test/asset/shell/echo.et @@ -0,0 +1,22 @@ +test Echo: + node n + let echo_str = "echo" + let space_str = "a b" + + shell on n as sh: + echo a b c + echo "a b c" + echo 'a b d' + echo a b " c d" + + /bin/echo "abcd" xyz + "echo" a"a" "b"c d + $echo_str b $echo_str c + + echo "$space_str" + echo $space_str + echo '$space_str' + + echo \$ \" \\ + echo "\""\""a" + echo "'" '"' '\\\' "\\" diff --git a/test/asset/shell/spawn.et b/test/asset/shell/spawn.et new file mode 100644 index 0000000..9d48e72 --- /dev/null +++ b/test/asset/shell/spawn.et @@ -0,0 +1,13 @@ +test ShellTrue: + node n + shell on n: + true + + shell on n as sh: + true + + +test ShellFalse: + node n + shell on n as sh: + false -- cgit v1.2.3