Update docs and tests for bro_(init|done) -> zeek_(init|done)

This commit is contained in:
Seth Hall 2019-04-14 08:19:08 -04:00
parent 8cefb9be42
commit 5db766bd88
508 changed files with 532 additions and 2016 deletions

View file

@ -1,7 +1,7 @@
# @TEST-EXEC: bro -r $TRACES/http/get.trace %INPUT 2>&1
# @TEST-EXEC: btest-diff .stdout
event bro_init()
event zeek_init()
{
print "This should fail but not crash";
print Files::lookup_file("asdf");

View file

@ -1,7 +1,7 @@
# @TEST-EXEC: bro -r $TRACES/http/get.trace %INPUT
# @TEST-EXEC: btest-diff files.log
event bro_init()
event zeek_init()
{
Files::register_for_mime_type(Files::ANALYZER_MD5, "text/plain");
};

View file

@ -18,7 +18,7 @@ redef test_get_file_name = function(f: fa_file): string
T -42 SSH::LOG 21 123 10.0.0.0/24 1.2.3.4 3.14 1315801931.273616 100.000000 hurz 2,4,1,3 CC,AA,BB EMPTY 10,20,30 EMPTY 4242
@TEST-END-FILE
event bro_init()
event zeek_init()
{
local source: string = "../input.log";
Input::add_analysis([$source=source, $reader=Input::READER_BINARY,