zeek/testing/btest/spicy/preprocessor.evt
Benjamin Bannier 8049d3a002 Speed up Spicy-related tests.
This patch changes invocations of `spicyz` and similar Spicy tools in
tests which perform compilation to use debug mode via passing `-d`. This
in turn leads to Spicy compiling generated C++ code in debug as opposed
to release mode which typically seems to require less CPU time and RAM.
For a local test running with `btest -j 16` and no caching via
`HILTI_CXX_COMPILER_LAUNCER` this sped up running of BTests under
`spicy/` by about 40s on my machine (120s vs 160s).
2023-05-25 14:59:10 +02:00

40 lines
1 KiB
Text

# @TEST-REQUIRES: have-spicy
#
# @TEST-EXEC: spicyz -D zeek -d -o x.hlto %INPUT 2>output
# @TEST-EXEC: TEST_DIFF_CANONIFIER=diff-canonifier-spicy btest-diff output
protocol analyzer YES_1 over TCP: parse with X;
@if ZEEK_VERSION >= 30000
protocol analyzer YES_2 over TCP: parse with X;
@endif
@if ZEEK_VERSION < 90000
protocol analyzer YES_3 over TCP: parse with X;
@endif
@if ZEEK_VERSION >= 30000
protocol analyzer YES_4 over TCP: parse with X;
@else
protocol analyzer NO_4 over TCP: parse with X;
@endif
@if ZEEK_VERSION < 30000
protocol analyzer NO_5 over TCP: parse with X;
@else
protocol analyzer YES_5 over TCP: parse with X;
@endif
@if ZEEK_VERSION >= 20000
@if ZEEK_VERSION >= 90000
protocol analyzer NO_6 over TCP: parse with X;
@else
protocol analyzer YES_6 over TCP: parse with X;
@endif
@else
@if ZEEK_VERSION < 90000
protocol analyzer YES_7 over TCP: parse with X;
@else
protocol analyzer NO_7 over TCP: parse with X;
@endif
@endif