Cmake: Disable regression tests for IPC configuration
Existing regression tests cases and test partitions does
not rely on IPC mode. Disable regression tests and update
related switches for IPC configuration.
Change-Id: Iee075e29e16667c76935bf243fbc5b70428a53dd
Signed-off-by: Edison Ai <edison.ai@arm.com>
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index a33eb71..c935944 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Copyright (c) 2018, Arm Limited. All rights reserved.
+# Copyright (c) 2018-2019, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -160,16 +160,22 @@
if (CORE_TEST_IPC)
add_definitions(-DCORE_TEST_IPC)
+ set(TEST_FRAMEWORK_S ON)
+ set(TFM_PARTITION_TEST_SECURE_SERVICES ON)
+ set(TEST_FRAMEWORK_NS ON)
endif()
if (SERVICE_TEST_S)
add_definitions(-DSERVICES_TEST_S)
- add_definitions(-DTFM_PARTITION_TEST_SECURE_SERVICES)
set(TEST_FRAMEWORK_S ON)
set(TFM_PARTITION_TEST_SECURE_SERVICES ON)
set(TFM_PARTITION_TEST_SST ON)
endif()
+if (TFM_PARTITION_TEST_SECURE_SERVICES)
+ add_definitions(-DTFM_PARTITION_TEST_SECURE_SERVICES)
+endif()
+
if (SERVICE_TEST_NS)
add_definitions(-DSERVICES_TEST_NS)
set(TEST_FRAMEWORK_NS ON)
diff --git a/ConfigCoreIPC.cmake b/ConfigCoreIPC.cmake
index c24d1b3..545fd49 100644
--- a/ConfigCoreIPC.cmake
+++ b/ConfigCoreIPC.cmake
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Copyright (c) 2018, Arm Limited. All rights reserved.
+# Copyright (c) 2018-2019, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -26,7 +26,7 @@
##These variables select how the projects are built. Each project will set
#various project specific settings (e.g. what files to build, macro
#definitions) based on these.
-set (REGRESSION True)
+set (REGRESSION False)
set (CORE_TEST False)
set (CORE_IPC True)
diff --git a/secure_fw/CMakeLists.txt b/secure_fw/CMakeLists.txt
index 11e9690..3154027 100644
--- a/secure_fw/CMakeLists.txt
+++ b/secure_fw/CMakeLists.txt
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Copyright (c) 2017-2018, Arm Limited. All rights reserved.
+# Copyright (c) 2017-2019, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -145,7 +145,7 @@
#Set macro definitions for the project.
embedded_set_target_compile_defines(TARGET ${PROJECT_OBJ_LIB} LANGUAGE C DEFINES __thumb2__ __ARM_FEATURE_CMSE=3 TFM_LVL=${TFM_LVL} DAUTH_CHIP_DEFAULT APPEND)
- if (REGRESSION OR CORE_TEST)
+ if (REGRESSION OR CORE_TEST OR CORE_IPC)
#The test service veneers may not be referenced in the secure binary so the
#veneer objects are explicitly loaded from the secure tests library.
if(${COMPILER} STREQUAL "ARMCLANG")