mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00

This also installs symlinks from "zeek" and "bro-config" to a wrapper script that prints a deprecation warning. The btests pass, but this is still WIP. broctl renaming is still missing. #239
20 lines
383 B
Text
20 lines
383 B
Text
#
|
|
# @TEST-EXEC: zeek -b %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
event zeek_init()
|
|
{
|
|
local a = 1 usec;
|
|
print interval_to_double(a);
|
|
local b = 1sec;
|
|
print interval_to_double(b);
|
|
local c = -1min;
|
|
print interval_to_double(c);
|
|
local d = 1hrs;
|
|
print interval_to_double(d);
|
|
local e = 1 day;
|
|
print interval_to_double(e);
|
|
|
|
local f = current_time();
|
|
print time_to_double(f);
|
|
}
|