Re: Compile with —enable-coverage
Woot4moo <[email protected]>
| Newsgroups | gmane.comp.security.detection.bro |
|---|---|
| Message-ID | <CALiK30_FPx97-qWQAZUWbjc_H2JoDFN3ETbcf4AO=x=ccm+QdQ@mail.gmail.com> |
I was able to get it working by replacing line 29 in coverage-calc: filepath = os.path.normpath(filepath) With filepath = os.path.abspath(filepath) This allows for the Boolean check to succeed and processing to continue with processing only my scripts. On Wed, May 15, 2019 at 1:24 PM Jon Siwek <[email protected]> wrote: > On Wed, May 15, 2019 at 8:17 AM Woot4moo <[email protected]> wrote: > > > > Appreciate the help on this. I think I need to slightly modify the > script to only evaluate my custom .bro / .zeek files. Which seem to be > properly reporting out some lines as being executed. > > > > Before I go down this path, is there some parameter I should pass > instead to only scan my script directory? For example: > > Looks like the last parameter of coverage-calc is a directory > containing the scripts you want the coverage calculated against, so > may try pointing that to your own custom bro/zeek scripts instead of > the ones shipped in the our source tree. > > Generally that script was meant for our own test suite usage, so may > need to be modified for your use, but the data produced by running > with BRO_PROFILER_FILE is what any coverage calculation could be based > on. > > - Jon > _______________________________________________ Zeek mailing list [email protected] http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/zeek