mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00

If a test doesn't rely on libmagic, mime type related columns of baselined logs are filtered out. If a test does rely on libmagic, it needs to use the TEST-REQUIRES btest macro to check that the bro build supports it, and then mime type related columns of logs can be normalized via a logging filter to reduce sensitivity to varying version of libmagic.
14 lines
415 B
Text
14 lines
415 B
Text
# This tests that basic IRC commands (NICK, USER, JOIN, DCC SEND)
|
|
# are logged for a client.
|
|
|
|
# @TEST-EXEC: bro -r $TRACES/irc-dcc-send.trace %INPUT
|
|
# @TEST-EXEC: btest-diff irc.log
|
|
|
|
@load protocols/irc
|
|
|
|
# dcc mime types are irrelevant to this test, so filter it out
|
|
event bro_init()
|
|
{
|
|
Log::remove_default_filter(IRC::IRC);
|
|
Log::add_filter(IRC::IRC, [$name="less-mime-types", $exclude=set("dcc_mime_type")]);
|
|
}
|