zeek/testing/btest/language/zeek_init.zeek
Jon Siwek 70b45d1aba Merge remote-tracking branch 'origin/topic/robin/631-deprecation-v2'
During merge I split the test for bro_init/bro_done/bro_script_loaded
event errors into individual tests since the other testing of the zeek
versions of those events seemed fine to otherwise keep.

* origin/topic/robin/631-deprecation-v2:
  Update NEWS for naming changes.
  Small cleanup and updating submodules.
  Remove test for legacy plugin.
  Remove legancy symlinks in aux/.
  Add warnings when loading scripts ending in ".bro", or using legacy environment variables.
  Fix missing rename.
  No longer symlink local.zeek to local.bro.
  Update notice user agent.
  Remove old_comm_usage_is_ok.
  Remove bro-config.h.in and bro-path-dev.in.
  Change Bro wrapper script to now abort when old executable names are still used.
  Remove APIs that were explicitly deprecated to be removed in 3.1.
2020-01-30 19:19:56 -08:00

32 lines
512 B
Text

# @TEST-EXEC: zeek -b %INPUT >out 2>&1
# @TEST-EXEC: btest-diff out
event zeek_init() &priority=-10
{
print "zeek_init at priority -10!";
}
event zeek_init() &priority=10
{
print "zeek_init at priority 10!";
}
event zeek_init() &priority=0
{
print "zeek_init at priority 0!";
}
event zeek_done() &priority=-10
{
print "zeek_done at priority -10!";
}
event zeek_done() &priority=0
{
print "zeek_done at priority 0!";
}
event zeek_done() &priority=10
{
print "zeek_done at priority 10!";
}