mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

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.
11 lines
500 B
Text
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";
|