Test: fix secure test client partition

This change is necessary to execute test cases in the secure
test client partition in case of TFM_LVL==3:
 - rename files in test/framework folder, prefix was added
 - add missing files to test client partition in linker scripts
 - add execution region for secure test client partition in
   Musca A1 linker config file
 - update affected files due to renaming

Change-Id: If9605ad65daf4341d3e520ae69ba4d9d7f31415c
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
diff --git a/test/framework/test_framework_helpers.c b/test/framework/test_framework_helpers.c
new file mode 100755
index 0000000..d9870f4
--- /dev/null
+++ b/test/framework/test_framework_helpers.c
@@ -0,0 +1,64 @@
+/*
+ * Copyright (c) 2017-2018, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#include "test_framework_helpers.h"
+
+#include <stdio.h>
+
+const char *sst_err_to_str(enum psa_sst_err_t err)
+{
+    switch (err) {
+    case PSA_SST_ERR_SUCCESS:
+        return "PSA_SST_ERR_SUCCESS";
+    case PSA_SST_ERR_ASSET_NOT_PREPARED:
+        return "PSA_SST_ERR_ASSET_NOT_PREPARED";
+    case PSA_SST_ERR_ASSET_NOT_FOUND:
+        return "PSA_SST_ERR_ASSET_NOT_FOUND";
+    case PSA_SST_ERR_PARAM_ERROR:
+        return "PSA_SST_ERR_PARAM_ERROR";
+    case PSA_SST_ERR_STORAGE_SYSTEM_FULL:
+        return "PSA_SST_ERR_STORAGE_SYSTEM_FULL";
+    case PSA_SST_ERR_SYSTEM_ERROR:
+        return "PSA_SST_ERR_SYSTEM_ERROR";
+    case PSA_SST_ERR_FORCE_INT_SIZE:
+        return "PSA_SST_ERR_FORCE_INT_SIZE";
+    /* default:  The default is not defined intentionally to force the
+     *           compiler to check that all the enumeration values are
+     *           covered in the switch.
+     */
+    }
+}
+
+const char *asset_perms_to_str(uint8_t permissions)
+{
+    switch (permissions) {
+    case 0:
+        return "No permissions";
+    case 1:
+        return "SECURE_ASSET_REFERENCE";
+    case 2:
+        return "SECURE_ASSET_WRITE";
+    case 3:
+        return "SECURE_ASSET_REFERENCE | SECURE_ASSET_WRITE";
+    case 4:
+        return "SECURE_ASSET_READ";
+    case 5:
+        return "SECURE_ASSET_REFERENCE | SECURE_ASSET_READ";
+    case 6:
+        return "SECURE_ASSET_WRITE | SECURE_ASSET_READ";
+    case 7:
+        return "SECURE_ASSET_REFERENCE | SECURE_ASSET_WRITE | "
+               "SECURE_ASSET_READ";
+    default:
+        return "Unknown permissions";
+    }
+}
+
+void printf_set_color(enum serial_color_t color_id)
+{
+    printf("\33[3%dm", color_id);
+}