mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38: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
24
testing/btest/language/skip-opt2.zeek
Normal file
24
testing/btest/language/skip-opt2.zeek
Normal file
|
@ -0,0 +1,24 @@
|
|||
# @TEST-EXEC: zeek -b %INPUT --no-optimize-func=always >out 2>&1
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
function always()
|
||||
{
|
||||
print "always";
|
||||
}
|
||||
|
||||
function no_ZAM() &no_ZAM_opt
|
||||
{
|
||||
print "no ZAM";
|
||||
}
|
||||
|
||||
function no_CPP() &no_CPP_opt
|
||||
{
|
||||
print "no CPP";
|
||||
}
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
print always;
|
||||
print no_ZAM;
|
||||
print no_CPP;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue