mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Expand plugin.reporter-hook testcase to verify -NN output
This commit is contained in:
parent
acaa9ec01e
commit
2d93a19f45
3 changed files with 19 additions and 15 deletions
|
@ -1,11 +1,14 @@
|
||||||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||||
| Hook Some Info <...>/reporter-hook.zeek, line 16
|
Reporter::Hook - Exercise Reporter Hook (dynamic, version 1.0.0)
|
||||||
| Hook error An Error <...>/reporter-hook.zeek, line 18
|
Implements Reporter (priority 0)
|
||||||
| Hook error An Error that does not show up in the log <...>/reporter-hook.zeek, line 19
|
|
||||||
| Hook expression error field value missing (b$a) <...>/reporter-hook.zeek, line 23
|
| Hook Some Info <...>/reporter-hook.zeek, line 17
|
||||||
| Hook warning A warning <...>/reporter-hook.zeek, line 17
|
| Hook error An Error <...>/reporter-hook.zeek, line 19
|
||||||
<...>/reporter-hook.zeek, line 16: Some Info
|
| Hook error An Error that does not show up in the log <...>/reporter-hook.zeek, line 20
|
||||||
error in <...>/reporter-hook.zeek, line 18: An Error
|
| Hook expression error field value missing (b$a) <...>/reporter-hook.zeek, line 24
|
||||||
error in <...>/reporter-hook.zeek, line 19: An Error that does not show up in the log
|
| Hook warning A warning <...>/reporter-hook.zeek, line 18
|
||||||
expression error in <...>/reporter-hook.zeek, line 23: field value missing (b$a)
|
<...>/reporter-hook.zeek, line 17: Some Info
|
||||||
warning in <...>/reporter-hook.zeek, line 17: A warning
|
error in <...>/reporter-hook.zeek, line 19: An Error
|
||||||
|
error in <...>/reporter-hook.zeek, line 20: An Error that does not show up in the log
|
||||||
|
expression error in <...>/reporter-hook.zeek, line 24: field value missing (b$a)
|
||||||
|
warning in <...>/reporter-hook.zeek, line 18: A warning
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
#open XXXX-XX-XX-XX-XX-XX
|
#open XXXX-XX-XX-XX-XX-XX
|
||||||
#fields ts level message location
|
#fields ts level message location
|
||||||
#types time enum string string
|
#types time enum string string
|
||||||
XXXXXXXXXX.XXXXXX Reporter::INFO Some Info <...>/reporter-hook.zeek, line 16
|
XXXXXXXXXX.XXXXXX Reporter::INFO Some Info <...>/reporter-hook.zeek, line 17
|
||||||
XXXXXXXXXX.XXXXXX Reporter::WARNING A warning <...>/reporter-hook.zeek, line 17
|
XXXXXXXXXX.XXXXXX Reporter::WARNING A warning <...>/reporter-hook.zeek, line 18
|
||||||
XXXXXXXXXX.XXXXXX Reporter::ERROR An Error <...>/reporter-hook.zeek, line 18
|
XXXXXXXXXX.XXXXXX Reporter::ERROR An Error <...>/reporter-hook.zeek, line 19
|
||||||
XXXXXXXXXX.XXXXXX Reporter::ERROR field value missing (b$a) <...>/reporter-hook.zeek, line 23
|
XXXXXXXXXX.XXXXXX Reporter::ERROR field value missing (b$a) <...>/reporter-hook.zeek, line 24
|
||||||
#close XXXX-XX-XX-XX-XX-XX
|
#close XXXX-XX-XX-XX-XX-XX
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# @TEST-EXEC: ${DIST}/auxil/zeek-aux/plugin-support/init-plugin -u . Reporter Hook
|
# @TEST-EXEC: ${DIST}/auxil/zeek-aux/plugin-support/init-plugin -u . Reporter Hook
|
||||||
# @TEST-EXEC: cp -r %DIR/reporter-hook-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/reporter-hook-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --zeek-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --zeek-dist=${DIST} && make
|
||||||
# @TEST-EXEC: ZEEK_PLUGIN_ACTIVATE="Reporter::Hook" ZEEK_PLUGIN_PATH=`pwd` zeek -b %INPUT 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >output
|
# @TEST-EXEC: ZEEK_PLUGIN_ACTIVATE="Reporter::Hook" ZEEK_PLUGIN_PATH=`pwd` zeek -NN Reporter::Hook >output
|
||||||
|
# @TEST-EXEC: ZEEK_PLUGIN_ACTIVATE="Reporter::Hook" ZEEK_PLUGIN_PATH=`pwd` zeek -b %INPUT 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >>output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue