samples: drivers: soc_flash_nrf: add test harness
Added harness config to sample in order for the sanitycheck tool to run and understand whether the samples output is as expected. Signed-off-by: Łukasz Hejnak <lukasz.hejnak@nordicsemi.no>
This commit is contained in:
parent
e3da8cc18c
commit
35fc0bea46
1 changed files with 17 additions and 0 deletions
|
@ -4,3 +4,20 @@ tests:
|
|||
sample.drivers.flash.soc_flash_nrf::
|
||||
platform_whitelist: nrf52_pca10040 nrf9160_pca10090 nrf9160_pca10090ns
|
||||
tags: flash nrf52
|
||||
harness: console
|
||||
harness_config:
|
||||
type: multi_line
|
||||
ordered: true
|
||||
regex:
|
||||
- "Flash erase succeeded"
|
||||
- "Data read: 1234"
|
||||
- "Data read matches data written. Good!"
|
||||
- "Flash erase succeeded"
|
||||
- "Data read: 1122"
|
||||
- "Data read matches data written. Good!"
|
||||
- "Flash erase succeeded"
|
||||
- "Data read: 1234"
|
||||
- "Data read: 1234"
|
||||
- "Data read matches data written. Good!"
|
||||
- "SoC flash consists of \\d+ pages."
|
||||
- "write-block-size = 1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue