zephyr/samples/sensor/lps22hh/sample.yaml
Peter Bigot 6186b65555 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>
2020-09-16 09:05:41 -04:00

16 lines
375 B
YAML

sample:
name: LPS22HH Temperature and Pressure Monitor
tests:
sample.sensor.lps22hh:
harness: console
tags: sensors
depends_on: i2c
filter: dt_compat_enabled("st,lps22hh")
harness_config:
type: multi_line
ordered: yes
regex:
- "Temperature: (.*)"
- "Pressure: (.*)"
fixture: fixture_i2c_lps22hh