mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
20 lines
590 B
Text
20 lines
590 B
Text
# @TEST-REQUIRES: test "${ZEEK_USE_CPP}" != "1"
|
|
# @TEST-EXEC: zeek -b -O ZAM --no-optimize-files=Xopt-skip-other-file %INPUT >out1
|
|
# @TEST-EXEC: zeek -b -O ZAM --no-optimize-func=my_tes %INPUT >out2
|
|
# @TEST-EXEC: btest-diff out1
|
|
# @TEST-EXEC: btest-diff out2
|
|
|
|
# The first test checks that if we exclude a different file, we still compile
|
|
# this one. The second tests that if we exclude a different function (since
|
|
# function matches have to be full), we still compile this one.
|
|
|
|
function my_test()
|
|
{
|
|
print "I should be ZAM code!";
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
my_test();
|
|
print my_test;
|
|
}
|