mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
BTests & baselines for testing selective skipping of script optimization
This commit is contained in:
parent
441baaf2c1
commit
dc7f4dca1c
27 changed files with 246 additions and 10 deletions
20
testing/btest/opt/opt-skip-files.zeek
Normal file
20
testing/btest/opt/opt-skip-files.zeek
Normal file
|
@ -0,0 +1,20 @@
|
|||
# @TEST-REQUIRES: test "${ZEEK_USE_CPP}" != "1"
|
||||
# @TEST-EXEC: zeek -b -O ZAM --no-optimize-files=opt-skip-files %INPUT >output
|
||||
# @TEST-EXEC-FAIL: zeek -b -O ZAM --no-optimize-files=opt-skip-files --optimize-files=opt-skip-files %INPUT
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
# The first run tests that we can selectively exclude this file.
|
||||
#
|
||||
# The second run tests that skipping overrides including. This should
|
||||
# result in an error because there are no functions to compile.
|
||||
|
||||
function my_test()
|
||||
{
|
||||
print "I shouldn't be ZAM code!";
|
||||
}
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
my_test();
|
||||
print my_test;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue