diff options
author | Al Semjonovs <asemjonovs@google.com> | 2022-07-28 12:04:03 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-28 21:22:35 +0000 |
commit | 46a88c7f55695625654669d6e671da1bd1b8dbd9 (patch) | |
tree | 2584494205ab8c77adf794a195ede57e95364e6d /zephyr/test/hooks | |
parent | 206960c323ab83fb35a98d1f27e41e5fbe50c17e (diff) | |
download | chrome-ec-46a88c7f55695625654669d6e671da1bd1b8dbd9.tar.gz |
zephyr:test: Migrate hooks test to twister
BUG=b:240343507
BRANCH=NONE
TEST=./twister -T zephyr/test/hooks; zmake test test-hooks
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Change-Id: I26f240ce715d8771a95a2c5b36ffeed2ee9dc172
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3792313
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Commit-Queue: Tristan Honscheid <honscheid@google.com>
Diffstat (limited to 'zephyr/test/hooks')
-rw-r--r-- | zephyr/test/hooks/BUILD.py | 2 | ||||
-rw-r--r-- | zephyr/test/hooks/boards/native_posix.overlay | 6 | ||||
-rw-r--r-- | zephyr/test/hooks/testcase.yaml | 4 |
3 files changed, 11 insertions, 1 deletions
diff --git a/zephyr/test/hooks/BUILD.py b/zephyr/test/hooks/BUILD.py index ee25ae52bc..e3bb97208f 100644 --- a/zephyr/test/hooks/BUILD.py +++ b/zephyr/test/hooks/BUILD.py @@ -4,4 +4,4 @@ """Register zmake project for hooks test.""" -register_host_test("hooks") +register_host_test("hooks", dts_overlays=[here / "boards/native_posix.overlay"]) diff --git a/zephyr/test/hooks/boards/native_posix.overlay b/zephyr/test/hooks/boards/native_posix.overlay new file mode 100644 index 0000000000..fe96518269 --- /dev/null +++ b/zephyr/test/hooks/boards/native_posix.overlay @@ -0,0 +1,6 @@ +/* Copyright 2020 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include <board-overlays/native_posix.dts> diff --git a/zephyr/test/hooks/testcase.yaml b/zephyr/test/hooks/testcase.yaml new file mode 100644 index 0000000000..f35baae16b --- /dev/null +++ b/zephyr/test/hooks/testcase.yaml @@ -0,0 +1,4 @@ +common: + platform_allow: native_posix +tests: + hooks.default: {} |