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")
10    platform_exclude: hifive_unmatched
11    harness: console
12    harness_config:
13      type: multi_line
14      ordered: true
15      regex:
16        - "Test 1: Flash erase"
17        - "Flash erase succeeded!"
18        - "Test 2: Flash write"
19        - "Attempting to write 4 bytes"
20        - "Data read matches data written. Good!!"
21    depends_on: spi
22  sample.drivers.spi.flash_dpd:
23    tags:
24      - spi
25      - flash
26    filter: dt_compat_enabled("jedec,spi-nor")
27    platform_exclude: hifive_unmatched
28    build_only: true
29    extra_configs:
30      - CONFIG_SPI_NOR_IDLE_IN_DPD=y
31    depends_on: spi
32