mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
20 lines
448 B
Text
20 lines
448 B
Text
# @TEST-EXEC: bro %INPUT >output 2>&1
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
global match_stuff = {
|
|
[$pred(a: count) = { return a > 5; },
|
|
$result = "it's big",
|
|
$priority = 2],
|
|
|
|
[$pred(a: count) = { return a > 15; },
|
|
$result = "it's really big",
|
|
$priority = 3],
|
|
|
|
[$pred(a: count) = { return T; },
|
|
$result = "default",
|
|
$priority = 0],
|
|
};
|
|
|
|
print match 0 using match_stuff;
|
|
print match 10 using match_stuff;
|
|
print match 20 using match_stuff;
|