mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
35 lines
607 B
Text
35 lines
607 B
Text
# @TEST-EXEC: zeek -b %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
# @TEST-DOC: Checks that CRLF line endings work in zeek/signature files
|
|
# Note the test file itself uses CRLFs and .gitattributes has an entry
|
|
# to ensure preservation of the CRLFs.
|
|
|
|
# @TEST-START-FILE test.sig
|
|
signature blah
|
|
{
|
|
ip-proto == tcp
|
|
src-port == 21
|
|
payload /.*/
|
|
event "matched"
|
|
}
|
|
# @TEST-END-FILE
|
|
|
|
# @TEST-START-FILE test.zeek
|
|
event zeek_init()
|
|
{
|
|
print "zeek_init";
|
|
}
|
|
# @TEST-END-FILE
|
|
|
|
@load test.zeek
|
|
@load-sigs test.sig
|
|
|
|
print "first hello";
|
|
|
|
@if ( T )
|
|
print "hello T";
|
|
@else
|
|
print "hello F";
|
|
@endif
|
|
|
|
print "last hello";
|