mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00

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).
11 lines
349 B
Text
11 lines
349 B
Text
# @TEST-REQUIRES: have-spicy
|
|
#
|
|
# @TEST-EXEC: spicyz -d -o x.hlto %INPUT
|
|
# @TEST-EXEC: zeek -b Zeek::Spicy x.hlto Spicy::enable_print=T >>output
|
|
# @TEST-EXEC: mkdir -p y/z && mv x.hlto y/z
|
|
# @TEST-EXEC: ZEEK_SPICY_MODULE_PATH=FOO:y:BAR zeek -b Zeek::Spicy Spicy::enable_print=T >>output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
module Test;
|
|
|
|
print "Got it";
|