1sample:
2  name: SPI Flash Sample
3common:
4  tags:
5    - spi
6    - flash
7  depends_on: spi
8tests:
9  sample.drivers.spi.flash:
10    filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("st,stm32-qspi-nor")
11      or dt_compat_enabled("st,stm32-ospi-nor") or dt_compat_enabled("st,stm32-xspi-nor")
12      or dt_compat_enabled("nordic,qspi-nor") or dt_compat_enabled("jedec,mspi-nor")
13    platform_exclude:
14      - hifive_unmatched/fu740/s7
15      - hifive_unmatched/fu740/u74
16      - nrf54lm20dk/nrf54lm20a/cpuapp
17    harness: console
18    harness_config:
19      type: multi_line
20      ordered: true
21      regex:
22        - "Test 1: Flash erase"
23        - "Flash erase succeeded!"
24        - "Test 2: Flash write"
25        - "Attempting to write 4 bytes"
26        - "Data read matches data written. Good!!"
27  sample.drivers.spi.flash.nrf54lm20:
28    platform_allow:
29      - nrf54lm20dk/nrf54lm20a/cpuapp
30    integration_platforms:
31      - nrf54lm20dk/nrf54lm20a/cpuapp
32    harness: console
33    harness_config:
34      fixture: external_flash
35      type: multi_line
36      ordered: true
37      regex:
38        - "Test 1: Flash erase"
39        - "Flash erase succeeded!"
40        - "Test 2: Flash write"
41        - "Attempting to write 4 bytes"
42        - "Data read matches data written. Good!!"
43