1sample:
2  name: SPI Flash Sample
3tests:
4  sample.drivers.spi.flash:
5    tags:
6      - spi
7      - flash
8    filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("st,stm32-qspi-nor")
9      or dt_compat_enabled("st,stm32-ospi-nor") or dt_compat_enabled("st,stm32-xspi-nor")
10      or dt_compat_enabled("nordic,qspi-nor") or dt_compat_enabled("jedec,mspi-nor")
11    platform_exclude:
12      - hifive_unmatched/fu740/s7
13      - hifive_unmatched/fu740/u74
14    harness: console
15    harness_config:
16      type: multi_line
17      ordered: true
18      regex:
19        - "Test 1: Flash erase"
20        - "Flash erase succeeded!"
21        - "Test 2: Flash write"
22        - "Attempting to write 4 bytes"
23        - "Data read matches data written. Good!!"
24    depends_on: spi
25