mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
btests for new --optimize-funcs and --optimize-files
This commit is contained in:
parent
267f5461d8
commit
a0e7feda6f
18 changed files with 198 additions and 0 deletions
14
testing/btest/opt/opt-no-func2.zeek
Normal file
14
testing/btest/opt/opt-no-func2.zeek
Normal file
|
@ -0,0 +1,14 @@
|
|||
# @TEST-EXEC-FAIL: zeek -b -O ZAM --optimize-files='my_func' %INPUT
|
||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff .stderr
|
||||
|
||||
# Make sure that --optimize-func anchors the regex.
|
||||
|
||||
function my_func2()
|
||||
{
|
||||
print "I shouldn't match!";
|
||||
}
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
print zeek_init;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue