diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-28 12:42:31 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-29 23:23:32 +0000 |
commit | 0cf62838b14e9c95bc22a2c353e17af9e034f00e (patch) | |
tree | 8f25f1b67e43537654c90ad3b7d4da9b1775011a | |
parent | cb3adecc57273a927b4759939ce3031f6afc7f9b (diff) | |
download | chrome-ec-0cf62838b14e9c95bc22a2c353e17af9e034f00e.tar.gz |
zephyr: test: Migrate system test to Twister
Add testcase.yaml for Twister. Move overaly to default location and
update BUILD.py. Add naitve_posix.dts include to the DTS overlay
BRANCH=None
BUG=b:240343510
TEST=./twister -T zephyr/test/system
TEST=zmake -D test test-system
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I307c10b684a85264f7766e00d90712e2cf5219e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3790850
Tested-by: Yuval Peress <peress@google.com>
Commit-Queue: Yuval Peress <peress@google.com>
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Reviewed-by: Yuval Peress <peress@google.com>
Commit-Queue: Tristan Honscheid <honscheid@google.com>
Tested-by: Tristan Honscheid <honscheid@google.com>
-rw-r--r-- | zephyr/test/system/BUILD.py | 4 | ||||
-rw-r--r-- | zephyr/test/system/boards/native_posix.overlay (renamed from zephyr/test/system/overlay.dts) | 2 | ||||
-rw-r--r-- | zephyr/test/system/testcase.yaml | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/zephyr/test/system/BUILD.py b/zephyr/test/system/BUILD.py index b9f14c2fcf..39fc3b5345 100644 --- a/zephyr/test/system/BUILD.py +++ b/zephyr/test/system/BUILD.py @@ -4,4 +4,6 @@ """Register zmake project for system test.""" -register_host_test("system", dts_overlays=["overlay.dts"]) +register_host_test( + "system", dts_overlays=[here / "boards/native_posix.overlay"] +) diff --git a/zephyr/test/system/overlay.dts b/zephyr/test/system/boards/native_posix.overlay index bba99a0b81..82c3f7e757 100644 --- a/zephyr/test/system/overlay.dts +++ b/zephyr/test/system/boards/native_posix.overlay @@ -3,6 +3,8 @@ * found in the LICENSE file. */ +#include <board-overlays/native_posix.dts> + / { chosen { cros-ec,bbram = &bbram; diff --git a/zephyr/test/system/testcase.yaml b/zephyr/test/system/testcase.yaml new file mode 100644 index 0000000000..d6977dbb6a --- /dev/null +++ b/zephyr/test/system/testcase.yaml @@ -0,0 +1,4 @@ +common: + platform_allow: native_posix +tests: + system.default: {} |