zephyr/samples/drivers/spi_flash_at45/sample.yaml
Gerson Fernando Budke bfd0f16e0c samples: drivers: at45: Refactor to allow any board
The sample is currently to tied to nrf9160dk_nrf9160 board.  Refact to
allow build with board and select between device power management on or
off.  Move nrf9160dk_nrf9160.overlay to proper boards directory and add
nrf9160dk_nrf9160.conf to set the correct device.  Device PM needs SYS
PM be implemented and is an specific configuration and for those boards
that have it implemented user can add overlay-pm.conf to enable the
feature.

Fixes #28094.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2020-11-17 16:44:03 -05:00

46 lines
1.6 KiB
YAML

sample:
name: SPI Flash AT45 Sample
tests:
sample.drivers.spi.flash.at45.build:
tags: spi flash
depends_on: spi
filter: dt_compat_enabled("atmel,at45")
build_only: true
sample.drivers.spi.flash.at45.build.page_layout:
extra_args: OVERLAY_CONFIG="overlay-page_layout.conf"
tags: spi flash
depends_on: spi
filter: dt_compat_enabled("atmel,at45")
build_only: true
sample.drivers.spi.flash.at45.build.pm:
extra_args: OVERLAY_CONFIG="overlay-pm.conf"
tags: spi flash
depends_on: spi
filter: dt_compat_enabled("atmel,at45")
build_only: true
sample.drivers.spi.flash.at45.build.page_layout_pm:
extra_args: OVERLAY_CONFIG="overlay-page_layout.conf;overlay-pm.conf"
tags: spi flash
depends_on: spi
filter: dt_compat_enabled("atmel,at45")
build_only: true
sample.drivers.spi.flash.at45:
extra_args: OVERLAY_CONFIG="overlay-page_layout.conf;overlay-pm.conf"
tags: spi flash
depends_on: spi
filter: dt_compat_enabled("atmel,at45")
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "Using \\w+, chip size: \\d+ bytes \\(page: \\d+\\)"
- "Reading the first byte of the test region ... OK"
- "Preparing test content starting with 0x[0-9a-f]{2}."
- "Writing the first half of the test region... OK"
- "Writing the second half of the test region... OK"
- "Reading the whole test region... OK"
- "Checking the read content... OK"
- "Putting the flash device into low power state... OK"
fixture: atmel_at45