Skip to content

Commit efacc1d

Browse files
committed
samples: drivers: adc: enhance test scenarios filtering
Make ADC samples' test scenarios depend on the existence of required DT elements. Signed-off-by: Abderrahmane JARMOUNI <[email protected]>
1 parent 2215b12 commit efacc1d

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

boards/gd/gd32f350r_eval/gd32f350r_eval.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ toolchain:
1313
supported:
1414
- watchdog
1515
- dma
16+
- adc
1617
vendor: gd

boards/nxp/lpcxpresso55s36/lpcxpresso55s36.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ toolchain:
1414
- zephyr
1515
- gnuarmemb
1616
supported:
17+
- adc
1718
- arduino_gpio
1819
- can
1920
- dac

samples/drivers/adc/adc_dt/sample.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
sample:
22
name: ADC devicetree driver sample
3+
common:
4+
tags:
5+
- adc
6+
depends_on: adc
7+
filter: dt_node_has_prop("/zephyr,user","io-channels")
8+
39
tests:
410
sample.drivers.adc.adc_dt:
5-
tags:
6-
- adc
7-
depends_on: adc
811
platform_allow:
912
- nucleo_l073rz
1013
- nucleo_h753zi

samples/drivers/adc/adc_sequence/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ common:
44
tags:
55
- adc
66
depends_on: adc
7+
filter: dt_alias_exists("adc0")
78
harness: console
89
timeout: 10
910
harness_config:

0 commit comments

Comments
 (0)