zeek/testing/btest/language/when.bro
Jon Siwek 1044762dfa Serialize language.when unit test with the "comm" group.
Since it now loads the listen script.
2012-09-25 14:53:51 -05:00

20 lines
364 B
Text

# @TEST-SERIALIZE: comm
# @TEST-EXEC: btest-bg-run test1 bro %INPUT
# @TEST-EXEC: btest-bg-wait 10
# @TEST-EXEC: mv test1/.stdout out
# @TEST-EXEC: btest-diff out
@load frameworks/communication/listen
event bro_init()
{
local h1: addr = 127.0.0.1;
when ( local h1name = lookup_addr(h1) )
{
print "lookup successful";
terminate();
}
print "done";
}