[Snort-devel] Configure Snort with --enable-test-coverage

Russ rucombs at cisco.com
Mon Jul 24 10:14:03 EDT 2017



On 7/24/17 10:09 AM, Gwendal Cournee via Snort-devel wrote:
> I already tried to find "*.gcov" files using "find / -name "*.gcov". 
> It seems that no such files are created even with the configuration 
> from above. Maybe an option must be set when launching Snort after 
> this specific installation but I can not find it.
No option required.  Build in the source tree and run from there and you 
should find the files in the source tree.
>
> 2017-07-24 16:02 GMT+02:00 Victor Roemer <viroemer at cisco.com 
> <mailto:viroemer at cisco.com>>:
>
>     I would think it would dump the output in your current directory..
>     but I’m no expert in gcov.
>
>     You could |updatedb| and |locate gcov| or just |cd /; find . -name
>     "*.gcov"|
>
>     On 7/24/17 9:42 AM, Gwendal Cournee via Snort-devel wrote:
>
>>     To whom it may concern,
>>
>>     I would like to do a code coverage with gcov of Snort (I am
>>     testing it with a program), so I configured it with the following
>>     line :
>>
>>     ./configure --enable-test-coverage --enable-debug
>>
>>     In the makefile, CFLAGS does include '-fprofile-arcs
>>     -ftest-coverage', which is required to make gcov works.
>>
>>     However, installation then works fine, but i can not find or
>>     understand where the output file is (the .gcov files).
>>
>>     How can I use gcov with Snort ?
>>
>>     Any help would be appreciated,
>>     Gwendal Cournée
>>
>>
>>     _______________________________________________
>>     Snort-devel mailing list
>>     Snort-devel at lists.snort.org <mailto:Snort-devel at lists.snort.org>
>>     https://lists.snort.org/mailman/listinfo/snort-devel
>>     <https://lists.snort.org/mailman/listinfo/snort-devel>
>>
>>     Please visithttp://blog.snort.org  for the latest news about Snort!
>>
> _______________________________________________
> Snort-devel mailing list
> Snort-devel at lists.snort.org
> https://lists.snort.org/mailman/listinfo/snort-devel
>
> Please visit http://blog.snort.org for the latest news about Snort!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20170724/561bad14/attachment.html>


More information about the Snort-devel mailing list