btests for new --optimize-funcs and --optimize-files

This commit is contained in:
Vern Paxson 2021-12-10 13:02:52 -08:00
parent 267f5461d8
commit a0e7feda6f
18 changed files with 198 additions and 0 deletions

View file

@ -0,0 +1,10 @@
# @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 if --optimize-func is specified but there are no matching
# functions, that's caught as an error.
event zeek_init()
{
print zeek_init;
}