Re: [riot-devel] Unit test code coverage using gcov

2018-10-09 Thread Kaspar Schleiser
Hey Toon, On 10/9/18 4:16 PM, STEGEN Toon wrote: > Has anybody succeeded in getting gcov to work to check code coverage of > the unit tests? I managed to get gprof working at some point. AFAIR they're using the same infrastructure (PC sampling, saving it somewhere, then dumping the file) as gcov.

Re: [riot-devel] Unit test code coverage using gcov

2018-10-09 Thread Gaƫtan Harter
Hi Toon, are you talking about native tests or embedded ones ? For embedded I had some POC/wip that I ran with specific local setup in my previous job based on https://www.thanassis.space/coverage.html https://github.com/iot-lab/openlab/tree/coverage If there is an effort in this direction I

Re: [riot-devel] Unit test code coverage using gcov

2018-10-09 Thread Bas Stottelaar
I have been using gcov to visualize my coverage for the KNX tests. I did it from the command line, so no Makefile hacking, and only for native. Can share my commands that I have been using. Kind regards, Bas Stottelaar Op di 9 okt. 2018 om 16:26 schreef Martine Lenders : > Hi, > > as there is

Re: [riot-devel] Unit test code coverage using gcov

2018-10-09 Thread Martine Lenders
Hi, as there is some discussion to split the unittests into several applications [1] and some stuff isn't included into them for good reasons (driver test e.g.), I'm not sure if this should be constrained to unittests (though they are indeed a good starting point). Regards, Martine PS: I'm not a

[riot-devel] Unit test code coverage using gcov

2018-10-09 Thread STEGEN Toon
Hi Guys, Has anybody succeeded in getting gcov to work to check code coverage of the unit tests? We will try to add support for this, but I want to make sure we're not spending our time on unnecessary work. Greets, Toon Stegen ___ devel mailing li