BTests & baselines for testing selective skipping of script optimization

This commit is contained in:
Vern Paxson 2025-09-12 11:05:55 -06:00 committed by Tim Wojtulewicz
parent 441baaf2c1
commit dc7f4dca1c
27 changed files with 246 additions and 10 deletions

View 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;
}