mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
extend script coverage profiling to track whether conditionals evaluate to true/false
This commit is contained in:
parent
d3593e0489
commit
43eb9863ab
7 changed files with 89 additions and 38 deletions
|
@ -1,3 +1,4 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
1 ./profiling-test1.zeek, line 2 print new conn;
|
||||
1 ./profiling-test1.zeek, lines 1-2 event new_connection BODY
|
||||
1 ./profiling-test1.zeek, line 2 CONDITIONAL
|
||||
1 ./profiling-test1.zeek, line 4 print new conn;
|
||||
1 ./profiling-test1.zeek, lines 3-4 event new_connection BODY
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
2 ./profiling-test1.zeek, line 2 print new conn;
|
||||
2 ./profiling-test1.zeek, lines 1-2 event new_connection BODY
|
||||
2 ./profiling-test1.zeek, line 2 CONDITIONAL
|
||||
2 ./profiling-test1.zeek, line 4 print new conn;
|
||||
2 ./profiling-test1.zeek, lines 3-4 event new_connection BODY
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
2 ./profiling-test1.zeek, line 2 print new conn;
|
||||
2 ./profiling-test1.zeek, lines 1-2 event new_connection BODY
|
||||
1 ./profiling-test2.zeek, line 2 print new conn;
|
||||
1 ./profiling-test2.zeek, lines 1-2 event new_connection BODY
|
||||
2 ./profiling-test1.zeek, line 2 CONDITIONAL
|
||||
2 ./profiling-test1.zeek, line 4 print new conn;
|
||||
2 ./profiling-test1.zeek, lines 3-4 event new_connection BODY
|
||||
0 ./profiling-test2.zeek, line 1 CONDITIONAL
|
||||
1 ./profiling-test2.zeek, line 2 CONDITIONAL
|
||||
1 ./profiling-test2.zeek, line 4 print new conn;
|
||||
1 ./profiling-test2.zeek, lines 3-4 event new_connection BODY
|
||||
|
|
|
@ -13,11 +13,17 @@
|
|||
# @TEST-EXEC: btest-diff step3.out
|
||||
|
||||
# @TEST-START-FILE profiling-test1.zeek
|
||||
|
||||
@if ( T )
|
||||
event new_connection(c: connection)
|
||||
{ print "new conn"; }
|
||||
@endif
|
||||
# @TEST-END-FILE
|
||||
|
||||
# @TEST-START-FILE profiling-test2.zeek
|
||||
@if ( F )
|
||||
@else
|
||||
event new_connection(c: connection)
|
||||
{ print "new conn"; }
|
||||
@endif
|
||||
# @TEST-END-FILE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue