fix(ff-a): check for presence of SPMC
Check for the presence of the SPMC in the setup before running
the tests.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I4faaf8a169f58a34dda910fd7e00a6844826c17e
diff --git a/tftf/tests/runtime_services/secure_service/test_ffa_exceptions.c b/tftf/tests/runtime_services/secure_service/test_ffa_exceptions.c
index bd0df07..588c8d0 100644
--- a/tftf/tests/runtime_services/secure_service/test_ffa_exceptions.c
+++ b/tftf/tests/runtime_services/secure_service/test_ffa_exceptions.c
@@ -135,6 +135,11 @@
return TEST_RESULT_SKIPPED;
}
+ /***********************************************************************
+ * Check if SPMC has ffa_version and expected FFA endpoints are deployed.
+ **********************************************************************/
+ CHECK_SPMC_TESTING_SETUP(1, 2, expected_sp_uuids);
+
/* Delegate the shared page to Realm. */
retmm = host_rmi_granule_delegate((u_register_t)mb.recv);
if (retmm != 0UL) {
diff --git a/tftf/tests/runtime_services/secure_service/test_ffa_memory_sharing.c b/tftf/tests/runtime_services/secure_service/test_ffa_memory_sharing.c
index af5a077..507e0cb 100644
--- a/tftf/tests/runtime_services/secure_service/test_ffa_memory_sharing.c
+++ b/tftf/tests/runtime_services/secure_service/test_ffa_memory_sharing.c
@@ -1106,6 +1106,11 @@
const uint32_t constituents_count = sizeof(constituents) /
sizeof(struct ffa_memory_region_constituent);
+ /***********************************************************************
+ * Check if SPMC has ffa_version and expected FFA endpoints are deployed.
+ **********************************************************************/
+ CHECK_SPMC_TESTING_SETUP(1, 2, expected_sp_uuids);
+
for (unsigned j = 0; j < ARRAY_SIZE(mem_func); j++) {
for (unsigned int i = 0; i < 4; i++) {
/* Address to be delegated to Realm PAS. */