diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-01-14 19:11:16 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-01-14 19:49:14 +0100 |
| commit | ea8109cef731b2c876b9effa759763bf59d878aa (patch) | |
| tree | 5464409e2c045e2c14cb66443e745dc92f9015a3 /test/script/output.et | |
| parent | 11894ca067981b44a1c17612b8d85144d71f30a3 (diff) | |
Mark ignored output lines
Changelog: Mark flushed or ignored output lines
Diffstat (limited to 'test/script/output.et')
| -rw-r--r-- | test/script/output.et | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/test/script/output.et b/test/script/output.et new file mode 100644 index 0000000..d3f0eea --- /dev/null +++ b/test/script/output.et @@ -0,0 +1,55 @@ +module output + +asset scripts: + path: ../asset/output + +test FlushOutput: + spawn as p + with p: + send "load ${scripts.path}/flush.et" + expect /load-done/ + + send "run Test" + expect /child-stdout p a/ + expect /child-stdout p b/ + expect /child-stdout p c/ + expect /child-stdout p d/ + expect /child-stdout p e/ + expect /match p e/ + expect /ignored p b/ + expect /ignored p c/ + expect /ignored p d/ + expect /match p a/ + expect /match-fail expect.*/ + + expect /(run-.*)/ capture done + guard (done == "run-failed") + +test IgnoreOutput: + spawn as p + with p: + send "load ${scripts.path}/ignore.et" + expect /load-done/ + + send "run Test" + expect /child-stdout p a/ + expect /child-stdout p b/ + expect /child-stdout p c/ + expect /child-stdout p d/ + expect /child-stdin p x/ + expect /child-stdout p e/ + expect /child-stdout p F/ + expect /child-stdout p g/ + expect /child-stdout p H/ + expect /match p d/ + expect /ignored p b/ + expect /ignored p c/ + expect /match p a/ + expect /ignored p e/ + expect /match p H/ + expect /ignored p g/ + expect /match p F/ + expect /match-fail expect.*/ + + expect /(run-.*)/ capture done + guard (done == "run-failed") |