mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
20 lines
No EOL
478 B
Text
20 lines
No EOL
478 B
Text
# @TEST-EXEC: btest-bg-run zeek zeek -b %INPUT
|
|
# @TEST-EXEC: btest-bg-wait 10
|
|
# @TEST-EXEC: btest-diff zeek/.stderr
|
|
# @TEST-EXEC: btest-diff zeek/.stdout
|
|
|
|
@TEST-START-FILE configfile
|
|
mycolors Red,asdf,Blue
|
|
@TEST-END-FILE
|
|
|
|
@load base/frameworks/config
|
|
|
|
type Color: enum { Red, Green, Blue, };
|
|
|
|
option mycolors = set(Red, Green);
|
|
|
|
event zeek_init()
|
|
{ Config::read_config("../configfile"); }
|
|
|
|
event Input::end_of_data(name: string, source:string)
|
|
{ print mycolors; terminate(); } |