mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00

This also installs symlinks from "zeek" and "bro-config" to a wrapper script that prints a deprecation warning. The btests pass, but this is still WIP. broctl renaming is still missing. #239
27 lines
554 B
Text
27 lines
554 B
Text
# @TEST-EXEC: btest-bg-run zeek zeek -b %INPUT
|
|
# @TEST-EXEC: btest-bg-wait -k 5
|
|
# @TEST-EXEC: btest-diff zeek/.stderr
|
|
|
|
redef exit_only_after_terminate = T;
|
|
redef InputAscii::fail_on_file_problem = T;
|
|
|
|
global outfile: file;
|
|
global try: count;
|
|
|
|
module A;
|
|
|
|
type Val: record {
|
|
i: int;
|
|
b: bool;
|
|
};
|
|
|
|
event line(description: Input::EventDescription, tpe: Input::Event, i: int, b: bool)
|
|
{
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
try = 0;
|
|
outfile = open("../out");
|
|
Input::add_event([$source="does-not-exist.dat", $name="input", $fields=Val, $ev=line, $want_record=F]);
|
|
}
|