You are on page 1of 1

CODE COVERAGE

Introduction
The documentation explains the code coverage procedure that needs to take care to get the
code coverage report for Gen2Hearables. Below are the few steps/modifications needs to be
taken care.
We use MinGW tool for code coverage, the exe is called gcov. MinGW is GNU based tool which
makes use of GNU compilers.
Gcov creates gcno files during build times and gcda files during run.
1. In LVC_Macros.h Disable the code which is under #ifdef __GNUC__ it causes
assertion error.
2. In LVVE_Private.h- Comment out the STATIC_ASSERT line.
3. Add the platform name in TestScript_VOICE/platformList.m and
TestScrip/platformList.m
4. Build the required models using WIN32_X86_MSVC_T2008CF, order of the build is
LVVE+DRC+EQNB+FENS+LVVC+WM+SSRC+HF.
a. Note: Here only LVVE must be built using clean option rest all the module should
be normal builds (No clean option used)
5. Build the required models using WIN32_X86_GCC_MINGWGCOVCF, order of the build is
LVVE+DRC+EQNB+FENS+LVVC+WM+SSRC+HF gcno files will be created if we build
using this plugin.
a. Note: Here only LVVE must be built using clean option rest all the module should
be normal builds (No clean option used)
6. Run all the test cases of each module, which will generate gcda files which is used in
generating code coverage information.
7. Copy all (DRC+EQNB+FENS+LVVC+WM+SSRC+HF) the WIN32_X86_MSVC_T2008CF
generated map files to LVVE\TEST_APP\TEST_PARAMS\EXE\
WIN32_X86_MSVC_T2008CF or we can change the path in the Gcov script which will be
tedious.
8. Run the gcov.pl which generates code coverage report.
9. All the gcov files which has coverage information of each source files will be available in
C:\cov folder

You might also like