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/non_secure_suites.c b/test/framework/non_secure_suites.c
index 4b11386..ae87e94 100644
--- a/test/framework/non_secure_suites.c
+++ b/test/framework/non_secure_suites.c
@@ -16,7 +16,21 @@
#include "test/suites/core/non_secure/core_ns_tests.h"
static struct test_suite_t test_suites[] = {
+#if TFM_LVL == 3
#ifdef SERVICES_TEST_NS
+ /* List test cases which compliant with level 3 isolation */
+
+#ifdef TFM_PARTITION_TEST_CORE
+ /* Non-secure invert test cases */
+ /* Note: since this is sample code, only run if test services are enabled */
+ {®ister_testsuite_ns_invert_interface, 0, 0, 0},
+#endif
+#endif /* SERVICES_TEST_NS */
+
+#else /* TFM_LVL == 3 */
+
+#ifdef SERVICES_TEST_NS
+ /* List test cases which compliant with level 1 isolation */
/* Non-secure SST test cases */
{®ister_testsuite_ns_sst_interface, 0, 0, 0},
{®ister_testsuite_ns_sst_policy, 0, 0, 0},
@@ -34,7 +48,8 @@
/* Note: since this is sample code, only run if test services are enabled */
{®ister_testsuite_ns_invert_interface, 0, 0, 0},
#endif
-#endif
+#endif /* SERVICES_TEST_NS */
+#endif /* TFM_LVL == 3 */
#ifdef CORE_TEST_POSITIVE
/* Non-secure core test cases */