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

- Use `-b` most everywhere, it will save time. - Start some intel tests upon the input file being fully read instead of at an arbitrary time. - Improve termination condition for some sumstats/cluster tests. - Filter uninteresting output from some supervisor tests. - Test for `notice_policy.log` is no longer needed.
22 lines
482 B
Text
22 lines
482 B
Text
# @TEST-EXEC-FAIL: zeek -b -r $TRACES/ftp/ipv4.trace %INPUT
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff .stderr
|
|
|
|
@load-sigs blah.sig
|
|
|
|
@TEST-START-FILE blah.sig
|
|
signature blah
|
|
{
|
|
ip-proto == tcp
|
|
src-port == 21
|
|
payload /.*/
|
|
eval mark_conn
|
|
}
|
|
@TEST-END-FILE
|
|
|
|
# wrong function signature for use with signature 'eval' conditions
|
|
# needs to be reported
|
|
function mark_conn(state: signature_state): bool
|
|
{
|
|
add state$conn$service["blah"];
|
|
return T;
|
|
}
|