Fix: psa-api-test executable names clash
All psa-api-test executables used the same name which resulted in
executables being overwritten when installing to the same location.
As a result, b-test was not running all tests.
This commit changes the CMake project name for psa-arch-test
deployments, and the uses the PROJECT_NAME variable to create and
configure the built executable.
Change-Id: Idd80baf1cf7a9b16ad27b0d94abdb71c3179b169
Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
diff --git a/deployments/psa-api-test/internal_trusted_storage/its-api-test.cmake b/deployments/psa-api-test/internal_trusted_storage/its-api-test.cmake
index ea6f381..b5d7e48 100644
--- a/deployments/psa-api-test/internal_trusted_storage/its-api-test.cmake
+++ b/deployments/psa-api-test/internal_trusted_storage/its-api-test.cmake
@@ -23,7 +23,7 @@
#
#-------------------------------------------------------------------------------
add_components(
- TARGET "psa-api-test"
+ TARGET "${PROJECT_NAME}"
BASE_DIR ${TS_ROOT}
COMPONENTS
"components/service/secure_storage/include"
@@ -31,7 +31,7 @@
"components/service/secure_storage/backend/secure_storage_client"
)
-target_sources(psa-api-test PRIVATE
+target_sources(${PROJECT_NAME} PRIVATE
${TS_ROOT}/deployments/psa-api-test/internal_trusted_storage/its_locator.c
)