Build: set SST_TEST_NV_COUNTERS for SST regression
The SST_TEST_NV_COUNTERS should be set to ON only when SST regression
is ON for all level of isolation.
This patch first moves out the test configurations out of
test/CMakeLists.txt to a seperate file for CommonConfig.cmake to
include and then set SST_TEST_NV_COUNTERS to on when SST regression
is on.
Change-Id: Icc7c7086023d73f2570ef27233abc2cdc0c480e0
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 27bfef5..f0ce1b6 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -254,6 +254,8 @@
set(TFM_PARTITION_AUDIT_LOG OFF)
endif()
+include(${CMAKE_CURRENT_LIST_DIR}/test/TestConfig.cmake)
+
if (TFM_PARTITION_AUDIT_LOG)
add_definitions(-DTFM_PARTITION_AUDIT_LOG)
endif()
@@ -341,7 +343,7 @@
endif()
if (NOT DEFINED SST_TEST_NV_COUNTERS)
- if (REGRESSION AND (TFM_LVL EQUAL 1))
+ if (REGRESSION AND ENABLE_SECURE_STORAGE_SERVICE_TESTS)
set(SST_TEST_NV_COUNTERS ON)
else()
set(SST_TEST_NV_COUNTERS OFF)