mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00

- Several places were just using old variable names or not loading scripts correctly after they'd been renamed/moved. - Revert/adjust a change in how HTTP file handles are generated that broke partial content responses. - Turn some libmagic builtin checks back on; seems some are actually useful (e.g. text detection seems to be a builtin). The rule going forward probably will be only to turn off a builtin if we confirm it causes issues. - Removed some tests that are redundant or not necessary anymore because the generic file analysis tests cover them. - A couple FTP tests still fail that I think need an actual solution via script changes.
20 lines
379 B
Text
20 lines
379 B
Text
# @TEST-EXEC: bro -r $TRACES/irc-dcc-send.trace $SCRIPTS/file-analysis-test.bro %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
# @TEST-EXEC: btest-diff thefile
|
|
|
|
redef test_file_analysis_source = "IRC_DATA";
|
|
|
|
global first: bool = T;
|
|
|
|
function myfile(f: fa_file): string
|
|
{
|
|
if ( first )
|
|
{
|
|
first = F;
|
|
return "thefile";
|
|
}
|
|
else
|
|
return "";
|
|
}
|
|
|
|
redef test_get_file_name = myfile;
|