diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-08-07 21:45:20 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-08-25 22:55:25 +0200 |
commit | fc40dfc41e8b3fbbe830846499ccce122930b235 (patch) | |
tree | 651e96119b5f0a1ba66afc200a465d5009124a3b /test/script/shell.et | |
parent | c07525ac4692a2ee9c76bd0bd53c195c8164480f (diff) |
Changelog: Implemented pipes in shell scripts
Diffstat (limited to 'test/script/shell.et')
-rw-r--r-- | test/script/shell.et | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/script/shell.et b/test/script/shell.et index 7db19c8..2fe4ec3 100644 --- a/test/script/shell.et +++ b/test/script/shell.et @@ -58,3 +58,23 @@ test ShellEcho: with p: expect /run-test-result Echo done/ expect /run-all-done/ + + +test ShellPipe: + spawn as p + with p: + send "load ${scripts.path}/pipe.et" + local: + expect /(load-.*)/ capture done + guard (done == "load-done") + flush + + send "run-all" + + expect_next_stdout from p: + "bc" + "b" + + with p: + expect /run-test-result Pipe done/ + expect /run-all-done/ |