zeek/testing/btest/core/load-prefixes.zeek
Robin Sommer 789cb376fd GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev.
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
2019-05-01 21:43:45 +00:00

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