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/Android.mk b/Android.mk
index 33b2d89..c4b35ac 100644
--- a/Android.mk
+++ b/Android.mk
@@ -49,6 +49,10 @@
aes_perf.c \
sha_perf.c
+ifeq ($(CFG_SECURE_DATA_PATH),y)
+srcs += sdp_basic.c
+endif
+
LOCAL_SRC_FILES := $(patsubst %,host/xtest/%,$(srcs))
LOCAL_C_INCLUDES += $(LOCAL_PATH)/host/xtest \
@@ -67,7 +71,8 @@
$(LOCAL_PATH)/ta/storage_benchmark/include \
$(LOCAL_PATH)/ta/sha_perf/include \
$(LOCAL_PATH)/ta/aes_perf/include \
- $(LOCAL_PATH)/ta/socket/include
+ $(LOCAL_PATH)/ta/socket/include \
+ $(LOCAL_PATH)/ta/sdp_basic/include
# Include configuration file generated by OP-TEE OS (CFG_* macros)
LOCAL_CFLAGS += -include conf.h