mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
33 lines
1 KiB
Text
33 lines
1 KiB
Text
# @TEST-REQUIRES: test "${ZEEK_ZAM}" != "1"
|
|
#
|
|
# @TEST-EXEC: ZEEK_PROFILER_FILE=cov.txt zeek -b -r $TRACES/http/get.trace profiling-test1.zeek
|
|
# @TEST-EXEC: grep profiling-test1.zeek cov.txt > step1.out
|
|
# @TEST-EXEC: btest-diff step1.out
|
|
|
|
# @TEST-EXEC: ZEEK_PROFILER_FILE=cov.txt zeek -b -r $TRACES/http/get.trace profiling-test1.zeek
|
|
# @TEST-EXEC: grep profiling-test1.zeek cov.txt > step2.out
|
|
# @TEST-EXEC: btest-diff step2.out
|
|
|
|
# @TEST-EXEC: ZEEK_PROFILER_FILE=cov.txt zeek -r $TRACES/http/get.trace profiling-test2.zeek
|
|
# @TEST-EXEC: grep profiling-test cov.txt > step3.out
|
|
# @TEST-EXEC: btest-diff step3.out
|
|
|
|
@TEST-START-FILE profiling-test1.zeek
|
|
event new_connection(c: connection)
|
|
{ print "new conn"; }
|
|
|
|
@if ( F ) &analyze
|
|
event new_connection(c: connection)
|
|
{ print "hidden new conn"; }
|
|
@endif
|
|
@TEST-END-FILE
|
|
|
|
@TEST-START-FILE profiling-test2.zeek
|
|
event new_connection(c: connection)
|
|
{ print "new conn"; }
|
|
|
|
@if ( F ) &analyze
|
|
event new_connection(c: connection)
|
|
{ print "hidden new conn"; }
|
|
@endif
|
|
@TEST-END-FILE
|