xtest: add SDP basic tests
Test setup: non-secure application invokes a TA ("SDP basic" TA) to
inject data into a secure buffer, transform data from/to a secure
buffer and dump data from a secure buffer. Secure buffers are allocated
through ION. Default ION heap tested is the "unmapped" heap: custom+1.
The "SDP basic TA" checks parameter memory attributes and operates
cache synchronization if CFG_CACHE_API is enable.
The non secure application also attempt to map the secure buffer, to
verify its content. This operation may fails. Data read can also be
corrupted as non-secure may fill its cache with data while secure data
are expected fully in physical memory.
Run basic secure buffer access from Trusted Application:
xtest --sdp-basic
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Zoltan Kuscsik <zoltan.kuscsik@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
diff --git a/host/xtest/Makefile b/host/xtest/Makefile
index ff497cc..bed62d0 100644
--- a/host/xtest/Makefile
+++ b/host/xtest/Makefile
@@ -56,6 +56,10 @@
adbg/src/adbg_run.c \
adbg/src/security_utils_hex.c
+ifeq ($(CFG_SECURE_DATA_PATH),y)
+srcs += sdp_basic.c
+endif
+
ifdef CFG_GP_PACKAGE_PATH
CFLAGS += -DWITH_GP_TESTS
@@ -87,6 +91,8 @@
CFLAGS += -I../../ta/sha_perf/include
CFLAGS += -I../../ta/aes_perf/include
CFLAGS += -I../../ta/socket/include
+CFLAGS += -I../../ta/sdp_basic/include
+
ifdef CFG_GP_PACKAGE_PATH
CFLAGS += -I../../ta/GP_TTA_Arithmetical
CFLAGS += -I../../ta/GP_TTA_Crypto