Test: Add SST test partition

Adds an SST test partition, which can be used to call the
sst_system_prepare() function from the SST test partition's
context.

Change-Id: Ib07a88e5f05fc181da2b9276279e57618fb059e4
Signed-off-by: Jamie Fox <jamie.fox@arm.com>
diff --git a/CommonConfig.cmake b/CommonConfig.cmake
index 0e83118..d159c4c 100644
--- a/CommonConfig.cmake
+++ b/CommonConfig.cmake
@@ -139,6 +139,7 @@
 set (CORE_TEST_INTERACTIVE OFF)
 set (REFERENCE_PLATFORM OFF)
 set (TFM_PARTITION_TEST_SECURE_SERVICES OFF)
+set (TFM_PARTITION_TEST_SST OFF)
 set (SERVICES_TEST_ENABLED OFF)
 set (TEST_FRAMEWORK_S  OFF)
 set (TEST_FRAMEWORK_NS OFF)
@@ -344,6 +345,13 @@
 	endif()
 endif()
 
+# The SST NV counter tests depend on the SST test partition to call
+# sst_system_prepare().
+if (SST_TEST_NV_COUNTERS)
+	set(TFM_PARTITION_TEST_SST ON)
+	add_definitions(-DTFM_PARTITION_TEST_SST)
+endif()
+
 #Default TF-M internal trusted storage flags.
 #These flags values can be overwritten by setting them in platform/ext/<TARGET_NAME>.cmake
 #Documentation about these flags can be found in the TF-M ITS integration guide