Test: Add test suite for Attestation Service
Initial test cases for Attestation Service prototype added.
Change-Id: I7e60a90d85a1f9299214d6ce1cf94af05b1236c8
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 7ba01f5..496dc4f 100644
--- a/test/framework/non_secure_suites.c
+++ b/test/framework/non_secure_suites.c
@@ -13,6 +13,7 @@
#include "test/suites/sst/non_secure/sst_ns_tests.h"
#include "test/suites/audit/non_secure/audit_ns_tests.h"
#include "test/suites/crypto/non_secure/crypto_ns_tests.h"
+#include "test/suites/attestation/non_secure/attestation_ns_tests.h"
#include "test/suites/invert/non_secure/invert_ns_tests.h"
#include "test/suites/core/non_secure/core_ns_tests.h"
@@ -20,6 +21,8 @@
#if TFM_LVL == 3
#ifdef SERVICES_TEST_NS
/* List test cases which compliant with level 3 isolation */
+ /* Non-secure initial attestation service test cases */
+ {®ister_testsuite_ns_attestation_interface, 0, 0, 0},
#ifdef TFM_PARTITION_TEST_CORE
/* Non-secure invert test cases */
@@ -51,6 +54,9 @@
/* Non-secure Crypto test cases */
{®ister_testsuite_ns_crypto_interface, 0, 0, 0},
+ /* Non-secure initial attestation service test cases */
+ {®ister_testsuite_ns_attestation_interface, 0, 0, 0},
+
#ifdef TFM_PARTITION_TEST_CORE
/* Non-secure invert test cases */
/* Note: since this is sample code, only run if test services are enabled */
diff --git a/test/framework/secure_suites.c b/test/framework/secure_suites.c
index cb92f79..1dde38d 100644
--- a/test/framework/secure_suites.c
+++ b/test/framework/secure_suites.c
@@ -12,6 +12,7 @@
/* Service specific includes */
#include "test/suites/sst/secure/sst_tests.h"
#include "test/suites/audit/secure/audit_s_tests.h"
+#include "test/suites/attestation/secure/attestation_s_tests.h"
#include "test/suites/invert/secure/invert_s_tests.h"
#include "test/suites/crypto/secure/crypto_s_tests.h"
@@ -21,6 +22,8 @@
#if TFM_LVL == 3
#ifdef SERVICES_TEST_S
/* List test cases which compliant with level 3 isolation */
+ /* Secure initial attestation service test cases */
+ {®ister_testsuite_s_attestation_interface, 0, 0, 0},
#endif /* SERVICES_TEST_S */
#else /* TFM_LVL == 3 */
@@ -41,6 +44,9 @@
/* Crypto test cases */
{®ister_testsuite_s_crypto_interface, 0, 0, 0},
+ /* Secure initial attestation service test cases */
+ {®ister_testsuite_s_attestation_interface, 0, 0, 0},
+
#ifdef TFM_PARTITION_TEST_CORE
/* Secure invert test cases */
/* Note: since this is sample code, only run if test services are enabled */
diff --git a/test/framework/test_framework.c b/test/framework/test_framework.c
index e991dd4..862c43f 100644
--- a/test/framework/test_framework.c
+++ b/test/framework/test_framework.c
@@ -26,8 +26,7 @@
}
}
- printf(" TEST FAILED!");
- printf("\r\n");
+ printf(" TEST FAILED!\r\n");
}
static void print_error(const char *err_msg)