Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/awelzel/websocket-and-main…
Browse files Browse the repository at this point in the history
…tenance'

* origin/topic/awelzel/websocket-and-maintenance:
  config-tests: Add websocket pcap tests
  microbenchmarks/logging: Fix running with terminate flag set
  • Loading branch information
awelzel committed Feb 10, 2024
2 parents 5904f53 + b1c0621 commit 03b80c3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ci-based/config-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ ZEEK_TESTS:
- id: pcap-quic-12k
pcap_file: quic-12k-connections.pcap

- id: pcap-websocket-traffic-mix
pcap_file: websocket-traffic-mix.pcap

- id: pcap-spicy-websocket-traffic-mix
pcap_file: websocket-traffic-mix.pcap
pcap_args: 'WebSocket::use_spicy_analyzer=T'

- id: micro-misc-zeek-version
bench_command: /benchmarker/scripts/tiny-benchmark.sh
bench_args: -D -b microbenchmarks/misc/zeek-version.zeek
Expand Down
6 changes: 5 additions & 1 deletion ci-based/scripts/microbenchmarks/logging/one-stream.zeek
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@load base/frameworks/logging

redef exit_only_after_terminate = T;

redef enum Log::ID += { LOG };

type Info: record {
Expand All @@ -8,7 +10,7 @@ type Info: record {
vec: vector of count;
};

global n = 1000000;
global n = 3000000;
global gmsg = "<msg>";
global gvec = vector(1, 2, 3);

Expand All @@ -18,6 +20,8 @@ event do_log(n: count)

if (--n > 0)
event do_log(n);
else
terminate();
}

event zeek_init()
Expand Down
6 changes: 5 additions & 1 deletion ci-based/scripts/microbenchmarks/logging/two-streams.zeek
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@load base/frameworks/logging

redef exit_only_after_terminate = T;

redef enum Log::ID += { LOG, LOG2 };

type Info: record {
Expand All @@ -8,7 +10,7 @@ type Info: record {
vec: vector of count;
};

global n = 1000000;
global n = 3000000;
global gmsg = "<msg>";
global gvec = vector(1, 2, 3);

Expand All @@ -19,6 +21,8 @@ event do_log(n: count)

if (--n > 0)
event do_log(n);
else
terminate();
}

event zeek_init()
Expand Down

0 comments on commit 03b80c3

Please sign in to comment.