mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
GH-237: add @load foo.bro
-> foo.zeek fallback
When failing to locate a script with explicit .bro suffix, check for whether one with a .zeek suffix exists and use it instead.
This commit is contained in:
parent
8f82ecc66d
commit
f21e11d811
6 changed files with 43 additions and 5 deletions
|
@ -0,0 +1 @@
|
|||
loaded foo.zeek
|
12
testing/btest/core/load-explicit-bro-suffix-fallback.zeek
Normal file
12
testing/btest/core/load-explicit-bro-suffix-fallback.zeek
Normal file
|
@ -0,0 +1,12 @@
|
|||
# @TEST-EXEC: bro -b %INPUT >out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
# We don't have a foo.bro, but we'll accept foo.zeek.
|
||||
@load foo.bro
|
||||
|
||||
@TEST-START-FILE foo.zeek
|
||||
event bro_init()
|
||||
{
|
||||
print "loaded foo.zeek";
|
||||
}
|
||||
@TEST-END-FILE
|
Loading…
Add table
Add a link
Reference in a new issue