summaryrefslogtreecommitdiff
path: root/test/script
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-10-04 21:45:02 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2025-10-05 21:24:13 +0200
commit6ee42f58d7293d810a5406d06020e1fdc9bcdaf0 (patch)
treecc23366a9d79c7b1dffb8599f103a5472bb80727 /test/script
parent11e04cd229c132ad7d79cbfd8319fb5a3d5f3cbb (diff)
Redirection in shell scriptsHEADmaster
Changelog: Implemented input/output redirection in shell scripts
Diffstat (limited to 'test/script')
-rw-r--r--test/script/shell.et22
1 files changed, 21 insertions, 1 deletions
diff --git a/test/script/shell.et b/test/script/shell.et
index 2fe4ec3..282df37 100644
--- a/test/script/shell.et
+++ b/test/script/shell.et
@@ -74,7 +74,27 @@ test ShellPipe:
expect_next_stdout from p:
"bc"
"b"
-
with p:
expect /run-test-result Pipe done/
+
+ expect_next_stdout from p:
+ "x"
+ "b"
+ "c"
+ "y"
+ "b"
+ "c"
+ "z"
+ with p:
+ expect /run-test-result Redirect done/
+
+ expect_next_stdout from p:
+ "c"
+ "e"
+ "g"
+ "bcdefg"
+ with p:
+ expect /run-test-result PipeRedirect done/
+
+ with p:
expect /run-all-done/