Skip to content

Commit c94328f

Browse files
committed
samples: Properly filter samples by supported Rust targets
Without explicitly declaring the need for Rust support, twister tries to build these samples on targest that don't yet support Rust. Include the filter, as well as an explicit platform allow of the supported targets. Signed-off-by: David Brown <[email protected]>
1 parent f82407c commit c94328f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

samples/blinky/sample.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# See doc/develop/test/twister.rst for what is here.
22
sample:
33
name: Blinky Sample
4+
common:
5+
filter: CONFIG_RUST_SUPPORTED
6+
platform_allow:
7+
- qemu_cortex_m0
8+
- qemu_cortex_m3
9+
- qemu_riscv32
10+
- qemu_riscv32/qemu_virt_riscv32/smp
11+
- qemu_riscv64
12+
- qemu_riscv64/qemu_virt_riscv64/smp
13+
- nrf52840dk/nrf52840
414
tests:
515
sample.basic.blinky:
616
tags:

samples/philosophers/sample.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ common:
1111
- "c:\\[\\d{2,}, \\d{2,}, \\d{2,}, \\d{2,}, \\d{2,}, \\d{2,}\\]"
1212
tags: rust
1313
filter: CONFIG_RUST_SUPPORTED
14+
platform_allow:
15+
- qemu_cortex_m0
16+
- qemu_cortex_m3
17+
- qemu_riscv32
18+
- qemu_riscv32/qemu_virt_riscv32/smp
19+
- qemu_riscv64
20+
- qemu_riscv64/qemu_virt_riscv64/smp
21+
- nrf52840dk/nrf52840
1422
tests:
1523
sample.rust.philosopher.semaphore:
1624
tags: introduction

0 commit comments

Comments
 (0)