zeek/testing/btest/core/load-stdin.zeek
Christian Kreibich 5beb68194d Add btests to verify Zeek's handling of SIGTERM and reading stdin
The core.load-stdin test checks Zeek's ability to read scripts from stdin.
core.sigterm-regular and core.sigterm-stdin verify that SIGTERM shuts down a
Zeek process during normal operation and while reading script content from
stdin, respectively. For technical reasons we don't test with SIGINT, as ctrl-c
would trigger -- see comments for details.
2022-07-09 11:17:14 -07:00

11 lines
500 B
Text

# This verifies Zeek's ability to load scripts from stdin.
# @TEST-EXEC: echo 'print "stdin";' | zeek -b >output.implicit
# @TEST-EXEC: echo 'print "stdin";' | zeek -b - >output.explicit
# @TEST-EXEC: echo 'print "stdin";' | zeek -b %INPUT >output.nostdin
# @TEST-EXEC: echo 'print "stdin";' | zeek -b %INPUT - >output.mixed
# @TEST-EXEC: btest-diff output.implicit
# @TEST-EXEC: btest-diff output.explicit
# @TEST-EXEC: btest-diff output.nostdin
# @TEST-EXEC: btest-diff output.mixed
print "test";