test(fvp): Test trusted key certificate corruption

This also includes a test framework for use with corrupting the
root of trust private key certificate in the boot FIP, found
using its UUID.

Signed-off-by: Jimmy Brisson <jimmy.brisson@arm.com>
Change-Id: I988c517637edcf6fdcaf271628eb650781c276f8
diff --git a/include/lib/tftf_lib.h b/include/lib/tftf_lib.h
index 8eff7fc..36e2e0f 100644
--- a/include/lib/tftf_lib.h
+++ b/include/lib/tftf_lib.h
@@ -38,6 +38,23 @@
 #define TEST_RESULT_IS_VALID(result) \
 	((result >= TEST_RESULT_MIN) && (result < TEST_RESULT_MAX))
 
+#define TEST_ASSERT(must_be_true) \
+	do { \
+		if (!(must_be_true)) { \
+			tftf_testcase_printf("Failed at %s:%d\n", __FILE__, __LINE__); \
+			return TEST_RESULT_FAIL;\
+		} \
+	} while (0)
+
+#define TEST_ASSERT_SKIP(must_be_true) \
+	do { \
+		if (!(must_be_true)) { \
+			tftf_testcase_printf("Failed at %s:%d\n", __FILE__, __LINE__); \
+			return TEST_RESULT_SKIPPED;\
+		} \
+	} while (0)
+
+
 /*
  * PSCI Function Wrappers
  *