mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00

Added tests of all built-in Bro data types (including different representations of constant values, and max./min. values), keywords, and operators (including special properties of certain operators, such as short-circuit evaluation and associativity).
19 lines
234 B
Text
19 lines
234 B
Text
# @TEST-EXEC: bro %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
|
|
event bro_init()
|
|
{
|
|
local h1: addr = 1.2.3.4;
|
|
|
|
when ( local h1name = lookup_addr(h1) )
|
|
{
|
|
print "lookup successful";
|
|
}
|
|
timeout 3 secs
|
|
{
|
|
print "timeout";
|
|
}
|
|
|
|
}
|
|
|