mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
A couple of tests for printing reporter messages to STDERR.
This commit is contained in:
parent
7c6b891b63
commit
cfe1402281
6 changed files with 40 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
# @TEST-EXEC: bro %INPUT
|
||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff .stderr
|
||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff reporter.log
|
||||
|
||||
redef Reporter::warnings_to_stderr = F;
|
||||
redef Reporter::errors_to_stderr = F;
|
||||
|
||||
global test: table[count] of string = {};
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
print test[3];
|
||||
}
|
10
testing/btest/scripts/base/frameworks/reporter/stderr.bro
Normal file
10
testing/btest/scripts/base/frameworks/reporter/stderr.bro
Normal file
|
@ -0,0 +1,10 @@
|
|||
# @TEST-EXEC: bro %INPUT
|
||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff .stderr
|
||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff reporter.log
|
||||
|
||||
global test: table[count] of string = {};
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
print test[3];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue