zeek/testing/btest/signatures/load-sigs.zeek
Jon Siwek 7967a5b0aa General btest cleanup
- 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.
2020-08-11 11:26:22 -07:00

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