aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Hu <david.hu@arm.com>2020-01-25 17:19:13 +0800
committerDavid Hu <david.hu@arm.com>2020-06-22 02:33:00 +0000
commit946d62e940a750ca9e3f4d5c3f3d774847929978 (patch)
tree14239688ccfe2a720dd5c73eee6f1a2987dc5fde /test
parent5bd5baefd3f628578b85e84cdf6792fe19d69fcf (diff)
downloadtrusted-firmware-m-946d62e940a750ca9e3f4d5c3f3d774847929978.tar.gz
Build: Skip T_COSE test cases when ENABLE_T_COSE_TESTS is OFF
T_COSE test files are always built even if ENABLE_T_COSE_TESTS is set to OFF. Since test cases for COSE_Mac0 are not implemented, T_COSE test build will fail for symmetric key algorithm based Initial Attestation. Disable the ENABLE_T_COSE_TESTS if SERVICES_TEST_ENABLED is OFF. Skip T_COSE test cases when ENABLE_T_COSE_TESTS is OFF as a workaround of build failure with symmetric key algorithm based Initial Attestation. Change-Id: If9f58900b95113c642b0c32204135b14e438f42f Signed-off-by: David Hu <david.hu@arm.com>
Diffstat (limited to 'test')
-rw-r--r--test/TestConfig.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/TestConfig.cmake b/test/TestConfig.cmake
index 99e332583c..0fd3178ae4 100644
--- a/test/TestConfig.cmake
+++ b/test/TestConfig.cmake
@@ -33,6 +33,12 @@ if (NOT TFM_PARTITION_INITIAL_ATTESTATION)
set(ENABLE_T_COSE_TESTS FALSE)
endif()
+# Disable external library test if SERVICES_TEST_ENABLED is OFF
+if (NOT SERVICES_TEST_ENABLED)
+ set(ENABLE_QCBOR_TESTS FALSE)
+ set(ENABLE_T_COSE_TESTS FALSE)
+endif()
+
if (NOT TFM_PARTITION_PLATFORM)
set(ENABLE_PLATFORM_SERVICE_TESTS FALSE)
endif()