How to generate .gcda files


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

Join discuss@edk2.groups.io to automatically receive all group messages.