Skip to content

Commit f63bb9c

Browse files
pcurtfabiobaltieri
authored andcommitted
samples: sensor: accel_trig: fix twister tests
Add twister tests for tap detection feature The overlay must be applied only if the shield x_nucleo_iks01a3 is enabled on board nrf52dk/nrf52832. Signed-off-by: Pierrick Curt <pierrickcurt@gmail.com>
1 parent 17d695a commit f63bb9c

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

samples/sensor/accel_trig/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ You can build it with the following command:
4141
:board: nrf52dk/nrf52832
4242
:shield: x_nucleo_iks01a3
4343
:goals: build
44+
:west-args: --extra-dtc-overlay x_nucleo_iks01a3.overlay
4445
:compact:
4546

4647

samples/sensor/accel_trig/sample.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,33 @@ tests:
3535
- SNIPPET=rtt-tracing;rtt-console
3636
platform_allow:
3737
- apard32690/max32690/m4
38+
sample.sensor.accel_trig.shield-tap:
39+
harness: console
40+
tags: sensors
41+
harness_config:
42+
type: one_line
43+
regex:
44+
- "^\\s*[0-9A-Za-z_,+-.]*@[0-9A-Fa-f]* \\[m\/s\\^2\\]: \
45+
\\(\\s*-?[0-9\\.]*,\\s*-?[0-9\\.]*,\\s*-?[0-9\\.]*\\)$"
46+
extra_args:
47+
- SHIELD=x_nucleo_iks01a3
48+
- EXTRA_DTC_OVERLAY_FILE=x_nucleo_iks01a3.overlay
49+
- CONFIG_SAMPLE_TAP_DETECTION=y
50+
depends_on:
51+
- arduino_i2c
52+
integration_platforms:
53+
- nrf52dk/nrf52832
54+
sample.sensor.accel_trig.generic-tap:
55+
harness: console
56+
filter: dt_compat_enabled("nxp,fxos8700") or dt_compat_enabled("invensense,icm42605") or
57+
dt_compat_enabled("st,iis2dlpc") or dt_compat_enabled("st,lis2dw12")
58+
tags: sensors
59+
harness_config:
60+
type: one_line
61+
regex:
62+
- "^\\s*[0-9A-Za-z_,+-.]*@[0-9A-Fa-f]* \\[m\/s\\^2\\]: \
63+
\\(\\s*-?[0-9\\.]*,\\s*-?[0-9\\.]*,\\s*-?[0-9\\.]*\\)$"
64+
extra_args:
65+
- CONFIG_SAMPLE_TAP_DETECTION=y
66+
integration_platforms:
67+
- stm32f3_disco

0 commit comments

Comments
 (0)