opnsense-src/usr.bin/tee/tests/sigint.orch
Kyle Evans 00640ea314 tee: add some basic tests
The cases are ordered in such a way that we naturally progress through
the functionality, with the earliest failures perhaps shedding light on
any later failures.

sysutils/porch is used for one test if it's available, just to cleanly
check that SIGINT is being ignored properly.

Reviewed by:	des, emaste

(cherry picked from commit 85ff0b08ee699ff323404727998993275b4d2e2a)
2025-04-25 22:19:48 -05:00

14 lines
351 B
Text

-- We expect the caller to have spawned the appropriate application
write "text\r"
match "text"
write "^C"
-- If SIGINT isn't being ignored, we'll bail out somewhere in the process of
-- writing to the pty or trying to read from it to perform the following match.
write "text\r"
match "text"
-- Finally, just close it out cleanly.
write "^D"
eof()