Baseline update from LYNQ_SDK_ASR_T108_V05.03.01.00(kernel build error.)
Change-Id: I56fc72cd096e82c589920026553170e5cb9692eb
diff --git a/mbtk/test/libql_lib_v2/ql_ecall_test.c b/mbtk/test/libql_lib_v2/ql_ecall_test.c
index 0ad1113..5ce5d2e 100755
--- a/mbtk/test/libql_lib_v2/ql_ecall_test.c
+++ b/mbtk/test/libql_lib_v2/ql_ecall_test.c
@@ -821,6 +821,7 @@
void item_ql_ecall_set_config_info(void)
{
ql_ecall_config_t ecall_context_info;
+ memset(&ecall_context_info, 0, sizeof(ql_ecall_config_t));
printf("Whether the time of T5 timer is valid(0:no, 1:yes):\n");
scanf("%hhd", &ecall_context_info.t5_timeout_ms_valid);
diff --git a/mbtk/test/libql_lib_v2/ql_tee_test.c b/mbtk/test/libql_lib_v2/ql_tee_test.c
new file mode 100755
index 0000000..58c7463
--- /dev/null
+++ b/mbtk/test/libql_lib_v2/ql_tee_test.c
@@ -0,0 +1,67 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <errno.h>
+#include "ql_tee_service.h"
+
+
+#define TEST_OBJECT_SIZE 128
+
+int main(void)
+{
+ int ret;
+ unsigned int len;
+ char obj1_id[] = "object#1";
+ char obj1_data[] = "123456789";
+ char read_data[TEST_OBJECT_SIZE];
+ uint32_t object;
+ uint32_t count;
+
+
+ printf("ql_ss_initialize start\n");
+ ret = ql_ss_initialize();
+ if(ret != 0)
+ {
+ printf("ql_ss_initialize fail\n");
+ }
+
+ ret = ql_ss_open(obj1_id, sizeof(obj1_id), &object);
+ if(ret != 0)
+ {
+ printf("ql_ss_open fail\n");
+ return 0;
+ }
+
+ ret = ql_ss_write(object, obj1_data, sizeof(obj1_data));
+ if(ret != 0)
+ {
+ printf("ql_ss_write fail\n");
+ return 0;
+ }
+
+ ret = ql_ss_read(object, read_data, sizeof(obj1_data), &count);
+ if(ret != 0)
+ {
+ printf("ql_ss_read fail\n");
+ return 0;
+ }
+ printf("read_data: %s\n", read_data);
+
+
+ ret = ql_ss_unlink(object);
+ if(ret != 0)
+ {
+ printf("ql_ss_unlink fail\n");
+ return 0;
+ }
+
+ ql_ss_close(object);
+ ql_ss_deinitialize();
+
+ return 0;
+
+
+}
+
+
+