How to generate .gcda files


Andrew Fish
 

I don’t know of any support so you must have updated the compiler flags?

On Oct 10, 2021, at 9:29 PM, wenyi,xie via groups.io <xiewenyi2@...> wrote:

Hello, everyone

Does any one know how to generate .gcda file in EDK2 for unit test. I want to get .gcda files from EDK2 so that I can use lcov to calculate the unit test coverage.
I searched .gcda files in Build folder in my old EDK2 repository(this repository run build and CI locally before) and found .gcda files, but I am not sure when and how were they generated. When I download a new edk2 repository and locally run CI command "stuart_ci_build -c .pytool/CISettings.py TOOL_CHAIN_TAG=GCC5", there were no .gcda files generated.

Thanks
Wenyi





wenyi,xie
 

Hello, everyone

Does any one know how to generate .gcda file in EDK2 for unit test. I want to get .gcda files from EDK2 so that I can use lcov to calculate the unit test coverage.
I searched .gcda files in Build folder in my old EDK2 repository(this repository run build and CI locally before) and found .gcda files, but I am not sure when and how were they generated. When I download a new edk2 repository and locally run CI command "stuart_ci_build -c .pytool/CISettings.py TOOL_CHAIN_TAG=GCC5", there were no .gcda files generated.

Thanks
Wenyi