zeek/testing/btest/opt/opt-func3.zeek
2022-07-31 15:06:02 -07:00

23 lines
475 B
Text

# @TEST-EXEC: zeek -b -O ZAM --optimize-func='my_test' --optimize-func='another_test' %INPUT >output
# @TEST-EXEC: btest-diff output
# Tests that we can selectively pick a bunch of functions (event handlers),
# and also call out an additional function.
function my_test()
{
print "Me and my buds should be ZAM code!";
}
function another_test()
{
print "that includes me!";
}
event zeek_init()
{
my_test();
another_test();
print my_test;
print another_test;
}