mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +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
29 lines
830 B
Text
29 lines
830 B
Text
# A test of prefix-based @load'ing
|
|
|
|
# @TEST-EXEC: zeek addprefixes >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
@TEST-START-FILE addprefixes.zeek
|
|
@prefixes += lcl
|
|
@prefixes += lcl2
|
|
@TEST-END-FILE
|
|
|
|
# Since base/utils/site.zeek is a script, only a script with the original file
|
|
# extension can be loaded here.
|
|
@TEST-START-FILE lcl.base.utils.site.zeek
|
|
print "loaded lcl.base.utils.site.zeek";
|
|
@TEST-END-FILE
|
|
|
|
@TEST-START-FILE lcl2.base.utils.site.zeek
|
|
print "loaded lcl2.base.utils.site.zeek";
|
|
@TEST-END-FILE
|
|
|
|
# For a script package like base/protocols/http/, either of the recognized
|
|
# file extensions can be loaded here.
|
|
@TEST-START-FILE lcl.base.protocols.http.zeek
|
|
print "loaded lcl.base.protocols.http.zeek";
|
|
@TEST-END-FILE
|
|
|
|
@TEST-START-FILE lcl2.base.protocols.http.bro
|
|
print "loaded lcl2.base.protocols.http.bro";
|
|
@TEST-END-FILE
|