samples: sensor: lps22hh: replace platform filter with fixture
Remove reference to a specific board, since that board doesn't have this sensor. Add a dependency on presence of a devicetree node that will be required to build the driver. Add a fixture that identifies the specific sensor required to run the sample. This should be added as a side effect of specifying the shield (though this is not currently done, it must be added in the device description). Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
f4c7dbd043
commit
6186b65555
1 changed files with 3 additions and 3 deletions
|
@ -1,15 +1,15 @@
|
|||
sample:
|
||||
name: LPS22HH Temperature and Pressure Monitor
|
||||
tests:
|
||||
sample.sensor.lps22hh.nrf52.iks01a3:
|
||||
sample.sensor.lps22hh:
|
||||
harness: console
|
||||
platform_allow: nrf52dk_nrf52832
|
||||
tags: sensors
|
||||
depends_on: i2c
|
||||
extra_args: SHIELD=x_nucleo_iks01a3
|
||||
filter: dt_compat_enabled("st,lps22hh")
|
||||
harness_config:
|
||||
type: multi_line
|
||||
ordered: yes
|
||||
regex:
|
||||
- "Temperature: (.*)"
|
||||
- "Pressure: (.*)"
|
||||
fixture: fixture_i2c_lps22hh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue