summaryrefslogtreecommitdiff
path: root/zephyr/test/vboot_efs2
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2022-09-22 13:59:07 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-26 19:24:57 +0000
commit1f28adcc8189bcc52fad68f58c74e5e8f45c6853 (patch)
treeb73cd5dc16978a5969bbac1f62af455bc751ee83 /zephyr/test/vboot_efs2
parent32c9b990f18f858cfa0e2fbc058f9744daa772d7 (diff)
downloadchrome-ec-1f28adcc8189bcc52fad68f58c74e5e8f45c6853.tar.gz
zephyr: create fakes for the shimmed tasks
Many tests don't actually require the shimmed tasks. Create stub task entries and fakes for the task API. This allows tests to disable CONFIG_SHIMMED_TASKS. BUG=none BRANCH=none TEST=./twister Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I2da33bc76189447d09e01587e4c8ef496890d3a4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3916580 Reviewed-by: Tristan Honscheid <honscheid@google.com>
Diffstat (limited to 'zephyr/test/vboot_efs2')
-rw-r--r--zephyr/test/vboot_efs2/CMakeLists.txt2
-rw-r--r--zephyr/test/vboot_efs2/prj.conf1
2 files changed, 2 insertions, 1 deletions
diff --git a/zephyr/test/vboot_efs2/CMakeLists.txt b/zephyr/test/vboot_efs2/CMakeLists.txt
index c3343bcdd2..2d38c7baf7 100644
--- a/zephyr/test/vboot_efs2/CMakeLists.txt
+++ b/zephyr/test/vboot_efs2/CMakeLists.txt
@@ -6,5 +6,7 @@ cmake_minimum_required(VERSION 3.13.1)
find_package(Zephyr REQUIRED HINTS "${ZEPHYR_BASE}")
project(vboot_efs2)
+add_subdirectory(${PLATFORM_EC}/zephyr/test/test_utils test_utils)
+
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
diff --git a/zephyr/test/vboot_efs2/prj.conf b/zephyr/test/vboot_efs2/prj.conf
index 602bd22c65..f085fa8f73 100644
--- a/zephyr/test/vboot_efs2/prj.conf
+++ b/zephyr/test/vboot_efs2/prj.conf
@@ -38,6 +38,5 @@ CONFIG_SERIAL=y
CONFIG_SHELL_BACKEND_DUMMY=y
CONFIG_SHELL_BACKEND_DUMMY_BUF_SIZE=1000
CONFIG_SHELL_BACKEND_SERIAL=n
-CONFIG_SHIMMED_TASKS=y
CONFIG_ZTEST=y
CONFIG_ZTEST_NEW_API=y