mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add btest that exercises the pcap filter warnings
This commit is contained in:
parent
145abedbdf
commit
6bb6fed49f
6 changed files with 44 additions and 0 deletions
11
testing/btest/Baseline/core.pcap.filter-warning/notice.log
Normal file
11
testing/btest/Baseline/core.pcap.filter-warning/notice.log
Normal file
|
@ -0,0 +1,11 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
#separator \x09
|
||||
#set_separator ,
|
||||
#empty_field (empty)
|
||||
#unset_field -
|
||||
#path notice
|
||||
#open XXXX-XX-XX-XX-XX-XX
|
||||
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p fuid file_mime_type file_desc proto note msg sub src dst p n peer_descr actions email_dest suppress_for remote_location.country_code remote_location.region remote_location.city remote_location.latitude remote_location.longitude
|
||||
#types time string addr port addr port string string string enum enum string string addr addr port count string set[enum] set[string] interval string string string double double
|
||||
0.000000 - - - - - - - - - PacketFilter::Install_Failure Installing packet filter failed ip or not ip - - - - - Notice::ACTION_LOG (empty) 3600.000000 - - - - -
|
||||
#close XXXX-XX-XX-XX-XX-XX
|
2
testing/btest/Baseline/core.pcap.filter-warning/output
Normal file
2
testing/btest/Baseline/core.pcap.filter-warning/output
Normal file
|
@ -0,0 +1,2 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
warning in <...>/main.zeek, line 307: Warning while compiling pcap filter 'ip or not ip': IEEE 802.15.4 link-layer type filtering not implemented
|
|
@ -0,0 +1,11 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
#separator \x09
|
||||
#set_separator ,
|
||||
#empty_field (empty)
|
||||
#unset_field -
|
||||
#path packet_filter
|
||||
#open XXXX-XX-XX-XX-XX-XX
|
||||
#fields ts node filter init success failure_reason
|
||||
#types time string string bool bool string
|
||||
XXXXXXXXXX.XXXXXX zeek ip or not ip T F IEEE 802.15.4 link-layer type filtering not implemented
|
||||
#close XXXX-XX-XX-XX-XX-XX
|
11
testing/btest/Baseline/core.pcap.filter-warning/reporter.log
Normal file
11
testing/btest/Baseline/core.pcap.filter-warning/reporter.log
Normal file
|
@ -0,0 +1,11 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
#separator \x09
|
||||
#set_separator ,
|
||||
#empty_field (empty)
|
||||
#unset_field -
|
||||
#path reporter
|
||||
#open XXXX-XX-XX-XX-XX-XX
|
||||
#fields ts level message location
|
||||
#types time enum string string
|
||||
XXXXXXXXXX.XXXXXX Reporter::WARNING Warning while compiling pcap filter 'ip or not ip': IEEE 802.15.4 link-layer type filtering not implemented <...>/main.zeek, line 307
|
||||
#close XXXX-XX-XX-XX-XX-XX
|
BIN
testing/btest/Traces/ieee80211.15.4.pcap
Normal file
BIN
testing/btest/Traces/ieee80211.15.4.pcap
Normal file
Binary file not shown.
9
testing/btest/core/pcap/filter-warning.zeek
Normal file
9
testing/btest/core/pcap/filter-warning.zeek
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Don't run for C++ scripts, since first invocation doesn't use the input
|
||||
# and hence leads to complaints that there are no scripts.
|
||||
# @TEST-REQUIRES: test "${ZEEK_USE_CPP}" != "1"
|
||||
#
|
||||
# @TEST-EXEC: zeek -r $TRACES/ieee80211.15.4.pcap >output 2>&1
|
||||
# @TEST-EXEC: btest-diff notice.log
|
||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER='$SCRIPTS/diff-canonifier | $SCRIPTS/diff-remove-abspath' btest-diff reporter.log
|
||||
# @TEST-EXEC: btest-diff packet_filter.log
|
||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
Loading…
Add table
Add a link
Reference in a new issue