# A test of prefix-based @load'ing

# @TEST-EXEC: zeek -b base/utils/site base/protocols/http 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/, verify the package can be loaded.
# @TEST-START-FILE lcl.base.protocols.http.zeek
print "loaded lcl.base.protocols.http.zeek";
# @TEST-END-FILE
