summaryrefslogtreecommitdiff
path: root/zephyr/test/i2c_dts
diff options
context:
space:
mode:
authorAl Semjonovs <asemjonovs@google.com>2022-07-28 12:23:33 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-28 22:35:27 +0000
commitc1eff4734e91f1bbee6c5fd1e620dcd9a298e2c2 (patch)
tree839f110626e003fa8be73a779fddcb17430f10de /zephyr/test/i2c_dts
parent2f24131e8ef20e390f540d9da827f2d7557b08f2 (diff)
downloadchrome-ec-c1eff4734e91f1bbee6c5fd1e620dcd9a298e2c2.tar.gz
zephyr:test: Migrate i2c_dts test to twister
BUG=b:240343654 BRANCH=NONE TEST=./twister -T zephyr/test/i2c_dts; zmake test test-i2c_dts Signed-off-by: Al Semjonovs <asemjonovs@google.com> Change-Id: I9e0653d392895ed906a03785a7b0519f381ac9b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3792316 Reviewed-by: Tristan Honscheid <honscheid@google.com>
Diffstat (limited to 'zephyr/test/i2c_dts')
-rw-r--r--zephyr/test/i2c_dts/BUILD.py4
-rw-r--r--zephyr/test/i2c_dts/boards/native_posix.overlay (renamed from zephyr/test/i2c_dts/overlay.dts)2
-rw-r--r--zephyr/test/i2c_dts/testcase.yaml4
3 files changed, 9 insertions, 1 deletions
diff --git a/zephyr/test/i2c_dts/BUILD.py b/zephyr/test/i2c_dts/BUILD.py
index e0e97be121..634f49db9f 100644
--- a/zephyr/test/i2c_dts/BUILD.py
+++ b/zephyr/test/i2c_dts/BUILD.py
@@ -4,4 +4,6 @@
"""Register zmake project for i2c_dts test."""
-register_host_test("i2c_dts", dts_overlays=["overlay.dts"])
+register_host_test(
+ "i2c_dts", dts_overlays=[here / "boards/native_posix.overlay"]
+)
diff --git a/zephyr/test/i2c_dts/overlay.dts b/zephyr/test/i2c_dts/boards/native_posix.overlay
index eb2b764472..512a26d9a0 100644
--- a/zephyr/test/i2c_dts/overlay.dts
+++ b/zephyr/test/i2c_dts/boards/native_posix.overlay
@@ -3,6 +3,8 @@
* found in the LICENSE file.
*/
+#include <board-overlays/native_posix.dts>
+
/ {
named-i2c-ports {
compatible = "named-i2c-ports";
diff --git a/zephyr/test/i2c_dts/testcase.yaml b/zephyr/test/i2c_dts/testcase.yaml
new file mode 100644
index 0000000000..7b3d133a27
--- /dev/null
+++ b/zephyr/test/i2c_dts/testcase.yaml
@@ -0,0 +1,4 @@
+common:
+ platform_allow: native_posix
+tests:
+ i2c_dts.default: {}