mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Use .zeek file suffix in unit tests
This commit is contained in:
parent
93d384adeb
commit
1e57e3f026
862 changed files with 533 additions and 529 deletions
|
@ -0,0 +1,23 @@
|
|||
# @TEST-EXEC: bro -C -r $TRACES/http/multipart.trace
|
||||
# @TEST-EXEC: btest-diff http.log
|
||||
# @TEST-EXEC: bro -C -r $TRACES/http/multipart.trace %INPUT >out-limited
|
||||
# @TEST-EXEC: mv http.log http-limited.log
|
||||
# @TEST-EXEC: btest-diff http-limited.log
|
||||
# @TEST-EXEC: btest-diff out-limited
|
||||
# @TEST-EXEC: bro -C -r $TRACES/http/multipart.trace %INPUT ignore_http_file_limit=T >out-limit-ignored
|
||||
# @TEST-EXEC: mv http.log http-limit-ignored.log
|
||||
# @TEST-EXEC: btest-diff http-limit-ignored.log
|
||||
# @TEST-EXEC: btest-diff out-limit-ignored
|
||||
|
||||
option ignore_http_file_limit = F;
|
||||
|
||||
redef HTTP::max_files_orig = 1;
|
||||
redef HTTP::max_files_resp = 1;
|
||||
|
||||
hook HTTP::max_files_policy(f: fa_file, is_orig: bool)
|
||||
{
|
||||
print "max_files reached";
|
||||
|
||||
if ( ignore_http_file_limit )
|
||||
break;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue