mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

- Use `-b` most everywhere, it will save time. - Start some intel tests upon the input file being fully read instead of at an arbitrary time. - Improve termination condition for some sumstats/cluster tests. - Filter uninteresting output from some supervisor tests. - Test for `notice_policy.log` is no longer needed.
22 lines
475 B
Text
22 lines
475 B
Text
# Just a very basic test to check if ANALYZER_DATA_EVENT works.
|
|
# Also check if "in" works with binary data.
|
|
# @TEST-EXEC: zeek -b -r $TRACES/pe/pe.trace %INPUT
|
|
# @TEST-EXEC: btest-diff .stdout
|
|
# @TEST-EXEC: btest-diff .stderr
|
|
|
|
@load base/protocols/ftp
|
|
|
|
event stream_data(f: fa_file, data: string)
|
|
{
|
|
if ( "Windows" in data )
|
|
{
|
|
print "Found";
|
|
}
|
|
}
|
|
|
|
event file_new (f: fa_file)
|
|
{
|
|
Files::add_analyzer(f, Files::ANALYZER_DATA_EVENT,
|
|
[$stream_event=stream_data]);
|
|
}
|
|
|