Skip to content

Commit 92408c0

Browse files
oleksiimoisieievnashif
authored andcommitted
tests: drivers: optee: Introduce unit tests for the OP-TEE driver
This should test OP-TEE driver basic functionality without communication with real OPTEE OS. Signed-off-by: Oleksii Moisieiev <[email protected]>
1 parent eb0b341 commit 92408c0

File tree

5 files changed

+1307
-0
lines changed

5 files changed

+1307
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5+
project(tee_test)
6+
7+
FILE(GLOB app_sources src/*.c)
8+
target_sources(app PRIVATE ${app_sources})
9+
zephyr_include_directories(include)
10+
zephyr_include_directories(${ZEPHYR_BASE}/drivers/tee/optee)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2023 EPAM Systems
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
/ {
6+
firmware {
7+
optee {
8+
compatible = "linaro,optee-tz";
9+
method = "smc";
10+
status = "okay";
11+
};
12+
};
13+
};

tests/drivers/tee/optee/prj.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CONFIG_ZTEST=y
2+
CONFIG_BOOT_BANNER=n
3+
CONFIG_DEBUG=y
4+
CONFIG_HEAP_MEM_POOL_SIZE=270044
5+
CONFIG_TEE=y
6+
CONFIG_OPTEE=y
7+
CONFIG_SRAM_SIZE=145131134582784

0 commit comments

Comments
 (0)