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>
31 lines
824 B
YAML
31 lines
824 B
YAML
sample:
|
|
name: APDS9960 sample
|
|
tests:
|
|
test:
|
|
harness: console
|
|
platform_whitelist: reel_board
|
|
tags: sensors
|
|
depends_on: i2c gpio
|
|
harness_config:
|
|
type: multi_line
|
|
ordered: true
|
|
regex:
|
|
- "APDS9960 sample application"
|
|
- "ambient light intensity (.*), proximity (.*)"
|
|
fixture: fixture_i2c_apds9960
|
|
test-trigger:
|
|
harness: console
|
|
platform_whitelist: reel_board
|
|
tags: sensors
|
|
depends_on: i2c gpio
|
|
extra_configs:
|
|
- CONFIG_APDS9960_TRIGGER_GLOBAL_THREAD=y
|
|
harness_config:
|
|
type: multi_line
|
|
ordered: true
|
|
regex:
|
|
- "APDS9960 sample application"
|
|
- "Waiting for a threshold event"
|
|
- "ambient light intensity (.*), proximity (.*)"
|
|
fixture: fixture_i2c_apds9960
|