mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58: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.
11 lines
337 B
Text
11 lines
337 B
Text
# @TEST-EXEC: bro -r $TRACES/http-pipelined-requests.trace %INPUT > output
|
|
# @TEST-EXEC: btest-diff http.log
|
|
|
|
@load protocols/http
|
|
|
|
# mime type is irrelevant to this test, so filter it out
|
|
event bro_init()
|
|
{
|
|
Log::remove_default_filter(HTTP::HTTP);
|
|
Log::add_filter(HTTP::HTTP, [$name="less-mime-types", $exclude=set("mime_type")]);
|
|
}
|