Core: set MPS2 as reference platform for Core test
Core tests have hardware dependencies to test the
full range of features provided by TF-M. Set AN521
and AN519 as reference platforms such that regression
tests only include core tests on these platforms.
Change-Id: Iad2da1bca5f31fbeccc84c7e81687cc333448f4c
Signed-off-by: Miklos Balint <miklos.balint@arm.com>
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 314377b..2ffe115 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -50,6 +50,11 @@
set (CORE_TEST_POSITIVE OFF)
set (CORE_TEST_INTERACTIVE OFF)
set (TFM_PARTITION_TEST_SST OFF)
+set (REFERENCE_PLATFORM OFF)
+
+if(${TARGET_PLATFORM} STREQUAL "AN521" OR ${TARGET_PLATFORM} STREQUAL "AN519")
+ set (REFERENCE_PLATFORM ON)
+endif()
if (REGRESSION)
set(SERVICES_TEST_ENABLED ON)
@@ -60,8 +65,9 @@
if (SERVICES_TEST_ENABLED)
set(SERVICE_TEST_S ON)
set(SERVICE_TEST_NS ON)
- set(CORE_TEST_POSITIVE ON)
- set(CORE_TEST_INTERACTIVE OFF)
+ if (REFERENCE_PLATFORM)
+ set(CORE_TEST_POSITIVE ON)
+ endif()
endif()
if (CORE_TEST)