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/ts-remote-test/ts-remote-test.cmake b/deployments/ts-remote-test/ts-remote-test.cmake
index 0bdeb9b..ada5d1a 100644
--- a/deployments/ts-remote-test/ts-remote-test.cmake
+++ b/deployments/ts-remote-test/ts-remote-test.cmake
@@ -16,6 +16,10 @@
# libts will be imported for the environment in which tests are
# deployed.
#-------------------------------------------------------------------------------
+if (COVERAGE)
+ set(LIBTS_BUILD_TYPE "DEBUGCOVERAGE" CACHE STRING "Libts build type" FORCE)
+endif()
+
include(${TS_ROOT}/deployments/libts/libts-import.cmake)
target_link_libraries(ts-remote-test PRIVATE libts::ts)