- Filter out the CANopenNode tests if no zephyr,canbus chosen node is enabled in the devicetree. - Enable the program download build-only test on all boards with the necessary fixed partions. - Explicitly exclude boards without the needed flash support from the program download build-only test as these do not even pass Kconfig and thus fail to complete the twister filter stage. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
sample:
|
|
name: CANopenNode sample
|
|
common:
|
|
tags: can canopen
|
|
depends_on: can
|
|
filter: dt_chosen_enabled("zephyr,canbus")
|
|
harness: console
|
|
harness_config:
|
|
type: one_line
|
|
regex:
|
|
- "(.*)CANopen stack initialized"
|
|
tests:
|
|
sample.modules.canopennode:
|
|
filter: dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions") and
|
|
dt_chosen_enabled("zephyr,flash-controller") and
|
|
CONFIG_FLASH_HAS_DRIVER_ENABLED
|
|
sample.modules.canopennode.program_download:
|
|
build_only: true
|
|
platform_exclude: native_posix native_posix_64 rcar_h3ulcb_cr7
|
|
filter: dt_label_with_parent_compat_enabled("slot0_partition", "fixed-partitions") and
|
|
dt_label_with_parent_compat_enabled("slot1_partition", "fixed-partitions") and
|
|
dt_label_with_parent_compat_enabled("storage_partition", "fixed-partitions") and
|
|
dt_chosen_enabled("zephyr,flash-controller") and
|
|
CONFIG_FLASH_HAS_DRIVER_ENABLED
|
|
extra_configs:
|
|
- CONFIG_BOOTLOADER_MCUBOOT=y
|
|
sample.modules.canopennode.no_storage:
|
|
extra_args: CONF_FILE=prj_no_storage.conf
|