Build: Update Partition conditions attributes in manifest list
This patch:
- adds two new Partition configurations to combine multiple conditions
into one. They are internal only - not for user configurations.
- adds the SFN test Partition CMake configuration variables
- aligns the conditions of test Partitions in manifest list with
corresponding CMake configurations used to add_subdirectory of
Partitions.
- passes Test Partition enabled status to manifest tool by adding
'@...@' around 'conditional' in manifest list.
Change-Id: I9d9a6a63eccfc0df22783ca1ad54a1b4dc7f628a
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/test/config/default_test_config.cmake b/test/config/default_test_config.cmake
index 7924e77..7f3deee 100644
--- a/test/config/default_test_config.cmake
+++ b/test/config/default_test_config.cmake
@@ -26,6 +26,7 @@
set(TEST_NS_FLIH_IRQ OFF CACHE BOOL "Whether to build NS regression First-Level Interrupt Handling tests")
set(TEST_NS_MULTI_CORE OFF CACHE BOOL "Whether to build NS regression multi-core tests")
set(TEST_NS_MANAGE_NSID OFF CACHE BOOL "Whether to build NS regression NSID management tests")
+set(TEST_NS_SFN_BACKEND OFF CACHE BOOL "Whether to build NS regression SFN backend tests")
########################## S test framework ####################################
diff --git a/test/config/set_config.cmake b/test/config/set_config.cmake
index e059aab..93baa8e 100644
--- a/test/config/set_config.cmake
+++ b/test/config/set_config.cmake
@@ -123,4 +123,17 @@
include(${TFM_TEST_PATH}/config/default_ns_test_config.cmake)
endif()
+###################### Test Partition configurations ###########################
+if (TEST_NS_IPC OR TEST_S_IPC)
+ set(TFM_PARTITION_IPC_TEST ON)
+else()
+ set(TFM_PARTITION_IPC_TEST OFF)
+endif()
+
+if (TEST_NS_ATTESTATION OR TEST_S_ATTESTATION)
+ set(TFM_PARTITION_ATTESTATION_TEST ON)
+else()
+ set(TFM_PARTITION_ATTESTATION_TEST OFF)
+endif()
+
include(${TFM_TEST_PATH}/config/default_test_config.cmake)