Add secure storage PSA API test deployments
Adds build files and test suite specific initialisation for building
and running PSA API tests against secure storage service providers.
Tests may be run in a native PC environment or from Linux userspace
on an Arm based Linux platform.
Signed-off-by: Julian Hall <julian.hall@arm.com>
Change-Id: I58596bd176f3987c026da7c80a5d330b90763848
diff --git a/deployments/psa-api-test/initial_attestation/iat-api-test.cmake b/deployments/psa-api-test/initial_attestation/iat-api-test.cmake
index 322829a..79655ff 100644
--- a/deployments/psa-api-test/initial_attestation/iat-api-test.cmake
+++ b/deployments/psa-api-test/initial_attestation/iat-api-test.cmake
@@ -20,8 +20,14 @@
BASE_DIR ${TS_ROOT}
COMPONENTS
"components/service/attestation/include"
+ "components/service/attestation/client/psa"
)
+#-------------------------------------------------------------------------------
+# Add external components used specifically for attestation tests
+#
+#-------------------------------------------------------------------------------
+
# Configuration for mbedcrypto
set(MBEDTLS_USER_CONFIG_FILE
"${TS_ROOT}/components/service/crypto/client/cpp/config_mbedtls_user.h"
@@ -31,8 +37,13 @@
include(${TS_ROOT}/external/MbedTLS/MbedTLS.cmake)
target_link_libraries(psa-api-test PRIVATE mbedcrypto)
-# Export psa crypto API
+#-------------------------------------------------------------------------------
+# Advertise PSA API include paths to PSA Arch tests
+#
+#-------------------------------------------------------------------------------
list(APPEND PSA_ARCH_TESTS_EXTERNAL_INCLUDE_PATHS ${PSA_CRYPTO_API_INCLUDE})
+list(APPEND PSA_ARCH_TESTS_EXTERNAL_INCLUDE_PATHS ${PSA_ATTESTATION_API_INCLUDE})
+list(APPEND PSA_ARCH_TESTS_EXTERNAL_INCLUDE_PATHS ${PSA_COMMON_INCLUDE})
#-------------------------------------------------------------------------------
# Extend with components that are common across all deployments of