[Bro-Dev] #752: topic/jsiwek/brofiler

Bro Tracker bro at tracker.bro-ids.org
Thu Jan 12 10:59:03 PST 2012


#752: topic/jsiwek/brofiler
---------------------------+--------------------
 Reporter:  jsiwek         |      Owner:
     Type:  Merge Request  |     Status:  new
 Priority:  Normal         |  Milestone:  Bro2.1
Component:  Bro            |    Version:
 Keywords:                 |
---------------------------+--------------------
 This branch is in `bro` and `btest` repos and implements scripting-layer
 coverage analysis for the test suites.  Bro was augmented to output
 script-layer statement execution data in the presence of the BROFILER_FILE
 environment variable and some minor scripts were added to the test suites
 to aggregate those data files into `coverage.log` files.  That data seems
 like they'll generally help identify areas of scripts that lack testing
 coverage, but a goal of getting to 100% seems unreasonable since some
 statements are just naturally difficult or impossible to reach (which is
 sometimes a good thing!) and I haven't yet thought of a good way to
 automatically identify those or even manually maintaining a list of such
 statements might not be great since location information can change when
 scripts get modified.  Let me know if there's any feedback on anything
 that can be improved.

 For the 2.0 release the coverage numbers I get are:

 - 52% coverage rate for the btest suite
 - 45% coverage rate for the external/bro-testing suite
 - 62% coverage rate for btest and external combined

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/752>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list