summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Semjonovs <asemjonovs@google.com>2022-07-27 15:52:53 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-27 23:26:41 +0000
commit70de0cc16f36e2903c7072eb87dda4b825fb431a (patch)
tree4d88aa7e725ee3b9bdc6d7e96ca4c9833e82b66f
parente1f99a56fe550c4eacaf180aa3e748e2dc550cf3 (diff)
downloadchrome-ec-70de0cc16f36e2903c7072eb87dda4b825fb431a.tar.gz
zephyr: tests: Migrate CRC test to twister
BUG=b:240343328 BRANCH=NONE TEST=./twister -T zephyr/tests/crc; zmake test test-crc Signed-off-by: Al Semjonovs <asemjonovs@google.com> Change-Id: Ie16c98adc97ab5b1cf18365d91f5fc5fbc459f1c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3790243 Commit-Queue: Tristan Honscheid <honscheid@google.com> Reviewed-by: Tristan Honscheid <honscheid@google.com>
-rw-r--r--zephyr/test/crc/BUILD.py2
-rw-r--r--zephyr/test/crc/boards/native_posix.overlay6
-rw-r--r--zephyr/test/crc/testcase.yaml4
3 files changed, 11 insertions, 1 deletions
diff --git a/zephyr/test/crc/BUILD.py b/zephyr/test/crc/BUILD.py
index 8ca9c04936..0f79a318c6 100644
--- a/zephyr/test/crc/BUILD.py
+++ b/zephyr/test/crc/BUILD.py
@@ -4,4 +4,4 @@
"""Register zmake project for crc test."""
-register_host_test("crc")
+register_host_test("crc", dts_overlays=[here / "boards/native_posix.overlay"])
diff --git a/zephyr/test/crc/boards/native_posix.overlay b/zephyr/test/crc/boards/native_posix.overlay
new file mode 100644
index 0000000000..fe96518269
--- /dev/null
+++ b/zephyr/test/crc/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/crc/testcase.yaml b/zephyr/test/crc/testcase.yaml
new file mode 100644
index 0000000000..2a7787979d
--- /dev/null
+++ b/zephyr/test/crc/testcase.yaml
@@ -0,0 +1,4 @@
+common:
+ platform_allow: native_posix
+tests:
+ crc.default: {}