Enhance host side coverage measurement
Modify build configuration to include libpsa and libts code in
coverage measurement.
Change test deployments to require DebugCoverage build type of
TS libraries.
Add coverage build configs to b-test to avoid using colliding build
directories for coverage and non coverage builds.
Change-Id: Ia19fa80405f5a901527ba7b8a8364cc81d142c04
Signed-off-by: Gabor Toth <gabor.toth2@arm.com>
diff --git a/deployments/psa-api-test/psa-api-test.cmake b/deployments/psa-api-test/psa-api-test.cmake
index ba2a74e..021d431 100644
--- a/deployments/psa-api-test/psa-api-test.cmake
+++ b/deployments/psa-api-test/psa-api-test.cmake
@@ -24,6 +24,11 @@
# libpsa will be imported for the environment. Making sure the link order is
# correct.
#-------------------------------------------------------------------------------
+if (COVERAGE)
+ set(LIBPSA_BUILD_TYPE "DEBUGCOVERAGE" CACHE STRING "Libpsa build type" FORCE)
+ set(LIBTS_BUILD_TYPE "DEBUGCOVERAGE" CACHE STRING "Libts build type" FORCE)
+endif()
+
include(${TS_ROOT}/deployments/libpsa/libpsa-import.cmake)
target_link_libraries( ${PROJECT_NAME} PRIVATE libpsa::psa)