zeek/testing/btest/spicy/event-args-fail.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

34 lines
941 B
Text

# @TEST-REQUIRES: have-spicy
#
# @TEST-EXEC-FAIL: spicyz -d -o test.hlto %INPUT test.spicy >output 2>&1
# @TEST-EXEC: TEST_DIFF_CANONIFIER=diff-canonifier-spicy btest-diff output
#
# @TEST-DOC: In EVT, provide access to hooks arguments
# @TEST-START-FILE test.spicy
module SSH;
public type Banner = unit {};
# @TEST-END-FILE
# Wrong/unknown. parameter type
on SSH::Banner::%error(msg: bytes) -> event Banner::error(msg);
# @TEST-START-NEXT
# Wrong signature
on SSH::Banner::%error(msg: string, foo: uint64) -> event Banner::error(msg);
# @TEST-START-NEXT
# Wrong signature
on SSH::Banner::%error(msg: uint64) -> event Banner::error(msg);
# @TEST-START-NEXT
# Syntax error
on SSH::Banner::%error(msg: string,) -> event Banner::error(msg);
# @TEST-START-NEXT
# Syntax error
on SSH::Banner::%error(,msg: string) -> event Banner::error(msg);
# @TEST-START-NEXT
# Syntax error
on SSH::Banner::%error(msg) -> event Banner::error(msg);