Test: Add build config which support level 3 isolation
Before this change only the core test suit was executed with level 3
isolation. From now regression test cases which compliant with
TFM_LVL 3 isolation can be executed with this setting.
Change-Id: Iddc376384583590cef4e47209b779f55d73ff41b
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
diff --git a/test/framework/secure_suites.c b/test/framework/secure_suites.c
index 9205e99..3ed95dd 100644
--- a/test/framework/secure_suites.c
+++ b/test/framework/secure_suites.c
@@ -16,7 +16,15 @@
#include "secure_fw/services/secure_storage/sst_object_system.h"
static struct test_suite_t test_suites[] = {
+#if TFM_LVL == 3
#ifdef SERVICES_TEST_S
+ /* List test cases which compliant with level 3 isolation */
+#endif /* SERVICES_TEST_S */
+
+#else /* TFM_LVL == 3 */
+
+#ifdef SERVICES_TEST_S
+ /* List test cases which compliant with level 1 isolation */
/* Secure SST test cases */
{®ister_testsuite_s_sst_sec_interface, 0, 0, 0},
{®ister_testsuite_s_sst_reliability, 0, 0, 0},
@@ -30,6 +38,7 @@
{®ister_testsuite_s_invert_interface, 0, 0, 0},
#endif /* TFM_PARTITION_TEST_CORE*/
#endif /* SERVICES_TEST_S */
+#endif /* TFM_LVL == 3 */
};
static void setup_integ_test(void)
@@ -39,12 +48,14 @@
*/
}
+#if TFM_LVL == 1
static void tear_down_integ_test(void)
{
/* Leave the SST area clean after execute the tests */
sst_system_wipe_all();
sst_system_prepare();
}
+#endif /* TFM_LVL == 1 */
void start_integ_test(void)
{
@@ -52,5 +63,7 @@
integ_test("Secure",
test_suites,
sizeof(test_suites)/sizeof(test_suites[0]));
+#if TFM_LVL == 1
tear_down_integ_test();
+#endif /* TFM_LVL == 1 */
}