Skip to content

tests: Add "rust" tag to testcase.yaml files - #184

Open
d3zd3z wants to merge 1 commit into
mainfrom
davidb-testcase-rust-tag
Open

d3zd3z wants to merge 1 commit into
mainfrom
davidb-testcase-rust-tag

Conversation

@d3zd3z

@d3zd3z d3zd3z commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Problem

The testcase.yaml files for the Rust tests under tests/ have no tags: entry
in their common: section. Twister therefore sees no rust tag on them, and a
run selected with -t rust filters all of these tests out.

That hides the hardware-only targets, which are not part of the default qemu
twister run. For example the tiny2040 platforms in the i2c, led-strip and
pwm-led tests are never built or exercised by a -t rust run.

Solution

Add tags: rust to the common: section of the seven Rust tests that are
missing it:

  • tests/drivers/gpio-async
  • tests/drivers/i2c-controller
  • tests/drivers/i2c-target
  • tests/drivers/led-strip
  • tests/drivers/pwm-led
  • tests/time
  • tests/timer

These are exactly the testcase.yaml files under tests/ that already filter on
CONFIG_RUST_SUPPORTED but declare no tags, so no other test is affected.

The testcase.yaml files in tests/ were missing the "rust" tag in their
common section.  This caused twister to filter them out when run with
"-t rust", preventing hardware-only targets such as tiny2040 from being
built.

Signed-off-by: David Brown <david.brown@linaro.org>
Copilot AI balanced review requested due to automatic review settings October 16, 2026 21:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The seven metadata additions match the intended selection behavior and introduce no identified correctness issues.

No open issues 🎉

What changed in this PR

Makes seven Rust test suites selectable by Twister’s -t rust filter, including hardware-only targets.

Changes:

  • Adds tags: rust to each suite’s common section.
  • Preserves existing platform restrictions and configuration filters.
File Description
tests/​timer/​testcase.yaml Tags timer tests as Rust.
tests/​time/​testcase.yaml Tags time tests as Rust.
tests/​drivers/​pwm-led/​testcase.yaml Tags PWM LED tests as Rust.
tests/​drivers/​led-strip/​testcase.yaml Tags LED strip tests as Rust.
tests/​drivers/​i2c-target/​testcase.yaml Tags I2C target tests as Rust.
tests/​drivers/​i2c-controller/​testcase.yaml Tags I2C controller tests as Rust.
tests/​drivers/​gpio-async/​testcase.yaml Tags asynchronous GPIO tests as Rust.

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants