mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +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.
23 lines
427 B
Text
23 lines
427 B
Text
# @TEST-EXEC: zeek -b -r $TRACES/ftp/ipv4.trace %INPUT
|
|
# @TEST-EXEC: btest-diff conn.log
|
|
|
|
@load base/protocols/conn
|
|
@load base/protocols/ftp
|
|
@load base/frameworks/dpd
|
|
@load-sigs blah.sig
|
|
|
|
@TEST-START-FILE blah.sig
|
|
signature blah
|
|
{
|
|
ip-proto == tcp
|
|
src-port == 21
|
|
payload /.*/
|
|
eval mark_conn
|
|
}
|
|
@TEST-END-FILE
|
|
|
|
function mark_conn(state: signature_state, data: string): bool
|
|
{
|
|
add state$conn$service["blah"];
|
|
return T;
|
|
}
|