test(memory share): leverage rme for lend/donate
Add the memory sharing test suite to invalid-access, and rename
it to memory-access.
In such configuration the TF-A is meant to provide services
accessible via SMC, to update the security state of the memory
lent/donated between NWd to SWd.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I4a6f2de612dbd9de2db757e3baf2613c47b8a09b
diff --git a/tftf/tests/tests-memory-access.mk b/tftf/tests/tests-memory-access.mk
new file mode 100644
index 0000000..13b2241
--- /dev/null
+++ b/tftf/tests/tests-memory-access.mk
@@ -0,0 +1,30 @@
+#
+# Copyright (c) 2023, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+TFTF_INCLUDES += \
+ -Iinclude/runtime_services/host_realm_managment
+
+TESTS_SOURCES += tftf/tests/misc_tests/test_invalid_access.c
+
+ifeq (${ARCH},aarch64)
+
+TESTS_SOURCES += \
+ $(addprefix tftf/tests/runtime_services/host_realm_managment/, \
+ host_realm_rmi.c \
+ host_realm_helper.c \
+ )
+
+endif
+
+TESTS_SOURCES += \
+ $(addprefix tftf/tests/runtime_services/secure_service/, \
+ ${ARCH}/ffa_arch_helpers.S \
+ ffa_helpers.c \
+ spm_common.c \
+ test_ffa_memory_sharing.c \
+ test_ffa_setup_and_discovery.c \
+ spm_test_helpers.c \
+)