Test: Disable Core, IPC and IRQ test in SFN model
This patch disable the following configs when CONFIG_TFM_SPM_BACKEND_SFN
is enabled:
- TEST_NS_IPC
- TEST_NS_CORE
- TEST_NS_FLIH_IRQ
- TEST_NS_SLIH_IRQ
Signed-off-by: Shawn Shan <Shawn.Shan@arm.com>
Change-Id: I2ded6ec46233274d14c25487737e42971ebc7c85
diff --git a/test/config/check_config.cmake b/test/config/check_config.cmake
index 3e38a60..9f58a9e 100644
--- a/test/config/check_config.cmake
+++ b/test/config/check_config.cmake
@@ -50,6 +50,8 @@
tfm_invalid_config(NOT TFM_PARTITION_FIRMWARE_UPDATE AND (TEST_NS_FWU OR TEST_S_FWU))
tfm_invalid_config(NOT TFM_PARTITION_AUDIT_LOG AND (TEST_NS_AUDIT OR TEST_S_AUDIT))
tfm_invalid_config((TFM_LIB_MODEL) AND (TEST_NS_IPC OR TEST_S_IPC OR TEST_NS_SLIH_IRQ OR TEST_NS_FLIH_IRQ))
+tfm_invalid_config(CONFIG_TFM_SPM_BACKEND_SFN AND (TEST_NS_IPC OR TEST_S_IPC OR TEST_NS_CORE OR TEST_NS_SLIH_IRQ OR TEST_NS_FLIH_IRQ))
+tfm_invalid_config(CONFIG_TFM_SPM_BACKEND_SFN AND TEST_S)
tfm_invalid_config(CONFIG_TFM_FP STREQUAL "soft" AND (TEST_S_FPU OR TEST_NS_FPU))
tfm_invalid_config(TFM_LIB_MODEL AND (TEST_S_FPU OR TEST_NS_FPU))
tfm_invalid_config((NOT TFM_MULTI_CORE_TOPOLOGY) AND TEST_NS_MULTI_CORE)
diff --git a/test/config/set_config.cmake b/test/config/set_config.cmake
index 9da5b85..70ebc3c 100644
--- a/test/config/set_config.cmake
+++ b/test/config/set_config.cmake
@@ -57,6 +57,12 @@
set(TEST_NS_SLIH_IRQ OFF CACHE BOOL "Whether to build NS regression Second-Level Interrupt Handling tests")
set(TEST_NS_FLIH_IRQ OFF CACHE BOOL "Whether to build NS regression First-Level Interrupt Handling tests")
+elseif(CONFIG_TFM_SPM_BACKEND_SFN)
+ set(TEST_NS_IPC OFF CACHE BOOL "Whether to build NS regression IPC tests")
+ set(TEST_NS_CORE OFF CACHE BOOL "Whether to build NS regression Core tests")
+
+ set(TEST_NS_SLIH_IRQ OFF CACHE BOOL "Whether to build NS regression Second-Level Interrupt Handling tests")
+ set(TEST_NS_FLIH_IRQ OFF CACHE BOOL "Whether to build NS regression First-Level Interrupt Handling tests")
endif()
if (NOT TFM_MULTI_CORE_TOPOLOGY)