Re: [edk2-devel] [PATCH] UnitTestFrameworkPkg: Add code coverage support for GCC

2022-09-13 Thread Guo, Gua
Sure, thanks for replying quickly, let me update readme.md file in my next patch. -Original Message- From: Kinney, Michael D Sent: Tuesday, September 13, 2022 11:10 PM To: Guo, Gua ; devel@edk2.groups.io; Kinney, Michael D Cc: Sean Brogan ; Barkelew, Bret ; Michael Kubacki Subject:

Re: [edk2-devel] [PATCH] UnitTestFrameworkPkg: Add code coverage support for GCC

2022-09-13 Thread Michael D Kinney
Is there a Visual Studio Code plugin to view the code coverage too? Thanks, Mike > -Original Message- > From: Guo, Gua > Sent: Tuesday, September 13, 2022 6:28 AM > To: devel@edk2.groups.io > Cc: Kinney, Michael D ; Sean Brogan > ; Barkelew, Bret > ; Michael Kubacki > Subject: RE: [PA

Re: [edk2-devel] [PATCH] UnitTestFrameworkPkg: Add code coverage support for GCC

2022-09-13 Thread Michael D Kinney
Hi, This change looks safe because it is scoped to host-based unit tests that include this file in the DSC file that builds host-based tests. Can you also update the UnitTestFrameworkPkg/ReadMe.md to describe how a developer can enable/use the code coverage feature for GCC host-based tests? Mike

Re: [edk2-devel] [PATCH] UnitTestFrameworkPkg: Add code coverage support for GCC

2022-09-13 Thread Guo, Gua
Hi All I want to follow below steps to generate code coverage data based the default build. But I notice currently GCC compiler flags won't generate *gcda and *.gcno. So add the CC flags to generate necessary data that require by "lcov" tool. I'm not sure whether have any concern to add the fla

[edk2-devel] [PATCH] UnitTestFrameworkPkg: Add code coverage support for GCC

2022-09-13 Thread Guo, Gua
From: Gua Guo In order to collect code coverage after running executable file, generate *.gcda and *.gcno file that require by lcov tool to generate code coverage report. Cc: Michael D Kinney Cc: Sean Brogan Cc: Bret Barkelew Cc: Michael Kubacki Signed-off-by: Gua Guo --- UnitTestFramework