Test: Add progress marks to SST reliability tests

This change makes it clear to the user that these long-running tests are
making progress, and have not hanged.

Change-Id: I9e606b8f2da03419640cb44a687efb29168c04f7
Signed-off-by: Jamie Fox <jamie.fox@arm.com>
diff --git a/test/framework/test_framework.h b/test/framework/test_framework.h
index acd0315..4716d43 100644
--- a/test/framework/test_framework.h
+++ b/test/framework/test_framework.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017, Arm Limited. All rights reserved.
+ * Copyright (c) 2017-2018, Arm Limited. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  *
@@ -8,14 +8,15 @@
 #ifndef __TEST_FRAMEWORK_H__
 #define __TEST_FRAMEWORK_H__
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
+#include <stdarg.h>
 #include <stdint.h>
 
 #include "helpers.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 enum test_status_t {
     TEST_PASSED = 0,  /*!< Test has passed */
     TEST_FAILED = 1,  /*!< Test has failed */
@@ -133,6 +134,8 @@
 
 #define TEST_FAIL(info_msg)  set_test_failed(info_msg, __FILE__, __LINE__, ret)
 
+#define TEST_LOG(...) printf(__VA_ARGS__)
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/test/suites/sst/secure/sst_reliability_testsuite.c b/test/suites/sst/secure/sst_reliability_testsuite.c
index 59cbb5d..f0ec676 100644
--- a/test/suites/sst/secure/sst_reliability_testsuite.c
+++ b/test/suites/sst/secure/sst_reliability_testsuite.c
@@ -92,6 +92,8 @@
     data.size = WRITE_BUF_SIZE-1;
 
     for (itr = 0; itr < LOOP_ITERATIONS_001; itr++) {
+        TEST_LOG("  > Iteration %d of %d\r", itr + 1, LOOP_ITERATIONS_001);
+
         do {
             /* Sets data structure */
             data.data = wrt_data;
@@ -132,6 +134,8 @@
         asset_offset = 0;
     }
 
+    TEST_LOG("\n");
+
     /* Checks write permissions in delete function */
     err = tfm_sst_veneer_delete(app_id, hdl);
     if (err != TFM_SST_ERR_SUCCESS) {
@@ -170,6 +174,8 @@
     data.size = WRITE_BUF_SIZE-1;
 
     for (itr = 0; itr < LOOP_ITERATIONS_002; itr++) {
+        TEST_LOG("  > Iteration %d of %d\r", itr + 1, LOOP_ITERATIONS_002);
+
         /* Checks write permissions in create function */
         err = tfm_sst_veneer_create(app_id, asset_uuid);
         if (err != TFM_SST_ERR_SUCCESS) {
@@ -231,5 +237,7 @@
         asset_offset = 0;
     }
 
+    TEST_LOG("\n");
+
     ret->val = TEST_PASSED;
 }