mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Reorganizing btest/policy directory to match new scripts/ organization
Addresses #545
This commit is contained in:
parent
2eea193d79
commit
c3fb0ea035
134 changed files with 2 additions and 2 deletions
|
@ -0,0 +1,27 @@
|
|||
#
|
||||
# @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)]);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue