Merge remote-tracking branch 'origin/topic/jsiwek/fix-zeek-profiler-file'

* origin/topic/jsiwek/fix-zeek-profiler-file:
  Fix ZEEK_PROFILER_FILE file format/parsing
This commit is contained in:
Johanna Amann 2019-11-21 08:29:36 -08:00
commit 5dafa7218d
8 changed files with 71 additions and 13 deletions

View file

@ -0,0 +1 @@
1 ./profiling-test1.zeek, line 2 print new conn;

View file

@ -0,0 +1 @@
2 ./profiling-test1.zeek, line 2 print new conn;

View file

@ -0,0 +1,2 @@
2 ./profiling-test1.zeek, line 2 print new conn;
1 ./profiling-test2.zeek, line 2 print new conn;

View file

@ -0,0 +1,21 @@
# @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"; }
@TEST-END-FILE
@TEST-START-FILE profiling-test2.zeek
event new_connection(c: connection)
{ print "new conn"; }
@TEST-END-FILE