Regex pattern matching is included to match the execution log from console to return test result in automation. Also add fixture to identify the external sensor connected for automation framework to trigger test cases on particular board which is connected with required sensor. Signed-off-by: Spoorthi K <spoorthi.k@intel.com>
23 lines
523 B
YAML
23 lines
523 B
YAML
sample:
|
|
name: BME280 Sensor sample
|
|
tests:
|
|
test:
|
|
harness: console
|
|
tags: sensors
|
|
depends_on: i2c
|
|
harness_config:
|
|
type: one_line
|
|
regex:
|
|
- "temp: (.*); press: (.*); humidity: (.*)"
|
|
fixture: fixture_i2c_bme280
|
|
test_spi:
|
|
harness: console
|
|
tags: sensors
|
|
depends_on: spi
|
|
extra_args: "CONF_FILE=prj_spi.conf"
|
|
harness_config:
|
|
type: one_line
|
|
regex:
|
|
- "temp: (.*); press: (.*); humidity: (.*)"
|
|
fixture: fixture_spi_bme280
|