zephyr/samples/drivers/spi_flash/sample.yaml
Peter A. Bigot 0e338efb3c samples/drivers/spi_flash: fix device naming
There are multiple flash implementations.  This sample was originally
written for the W25QXXDV driver, but has since been used for
jedec,spi-nor.  The sample should work with multiple drivers.

Add device name sources for several drivers, falling back to spi-nor
which was recently used as a test filter.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-07-24 09:20:56 -04:00

19 lines
496 B
YAML

sample:
name: SPI Flash Sample
tests:
sample.driver.spi_flash:
tags: spi flash
filter: DT_INST_0_JEDEC_SPI_NOR_LABEL
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "Test 1: Flash erase"
- "Flash erase succeeded!"
- "Test 2: Flash write"
- "Attempted to write 55 aa"
- "Data read 55 aa"
- "Data read matches with data written. Good!!"
depends_on: spi