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.
21 lines
432 B
Text
21 lines
432 B
Text
# A test of signature loading using @load-sigs.
|
|
|
|
# @TEST-EXEC: zeek -b -C -r $TRACES/wikipedia.trace %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
@load-sigs ./subdir/mysigs.sig
|
|
|
|
event signature_match(state: signature_state, msg: string, data: string)
|
|
{
|
|
print state$conn$id;
|
|
print msg;
|
|
print data;
|
|
}
|
|
|
|
@TEST-START-FILE subdir/mysigs.sig
|
|
signature my-sig {
|
|
ip-proto == tcp
|
|
payload /GET \/images/
|
|
event "works"
|
|
}
|
|
@TEST-END-FILE
|