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

- bro.init was renamed to base/init-bare.bro and base/all.bro was renamed to init-default.bro. - To run in "bare mode" with only the init-bare.bro and no other scripts from base/, use either -b or --bare-mode. - The environment variable to run in "bare mode" has been removed.
27 lines
710 B
Text
27 lines
710 B
Text
#
|
|
# @TEST-EXEC: bro -b %INPUT
|
|
# @TEST-EXEC: btest-diff test.log
|
|
|
|
module Test;
|
|
|
|
export {
|
|
redef enum Log::ID += { TEST };
|
|
|
|
type Info: record {
|
|
data: time &log;
|
|
};
|
|
}
|
|
|
|
event bro_init()
|
|
{
|
|
Log::create_stream(TEST, [$columns=Info]);
|
|
Log::write(TEST, [$data=double_to_time(1234567890)]);
|
|
Log::write(TEST, [$data=double_to_time(1234567890.0)]);
|
|
Log::write(TEST, [$data=double_to_time(1234567890.01)]);
|
|
Log::write(TEST, [$data=double_to_time(1234567890.001)]);
|
|
Log::write(TEST, [$data=double_to_time(1234567890.0001)]);
|
|
Log::write(TEST, [$data=double_to_time(1234567890.00001)]);
|
|
Log::write(TEST, [$data=double_to_time(1234567890.000001)]);
|
|
Log::write(TEST, [$data=double_to_time(1234567890.0000001)]);
|
|
}
|
|
|