From 1f28adcc8189bcc52fad68f58c74e5e8f45c6853 Mon Sep 17 00:00:00 2001 From: Keith Short Date: Thu, 22 Sep 2022 13:59:07 -0600 Subject: 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 Change-Id: I2da33bc76189447d09e01587e4c8ef496890d3a4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3916580 Reviewed-by: Tristan Honscheid --- zephyr/test/vboot_efs2/CMakeLists.txt | 2 ++ zephyr/test/vboot_efs2/prj.conf | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'zephyr/test/vboot_efs2') 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 -- cgit v1.2.1