Skip to content

Commit

Permalink
tests: add integration_platforms and misc optimizations
Browse files Browse the repository at this point in the history
Add integration_platforms to many tests that use platform_allow to
manage scope of pull_request CI.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and kartben committed Nov 25, 2024
1 parent 51708a7 commit b207035
Show file tree
Hide file tree
Showing 42 changed files with 127 additions and 34 deletions.
13 changes: 8 additions & 5 deletions samples/basic/minimal/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ tests:
extra_args: CONF_FILE='common.conf;mt.conf;arm.conf'
build_only: true
platform_allow:
- reel_board
- frdm_k64f
- mps2/an385
- nrf51dk/nrf51822
Expand All @@ -25,42 +24,46 @@ tests:
extra_args: CONF_FILE='common.conf;mt.conf;no-preempt.conf;arm.conf'
build_only: true
platform_allow:
- reel_board
- frdm_k64f
- mps2/an385
- nrf51dk/nrf51822
- nucleo_f429zi
- disco_l475_iot1
integration_platforms:
- frdm_k64f
sample.minimal.mt-no-preempt-no-timers.arm:
extra_args: CONF_FILE='common.conf;mt.conf;no-preempt.conf;no-timers.conf;arm.conf'
build_only: true
platform_allow:
- reel_board
- frdm_k64f
- mps2/an385
- nrf51dk/nrf51822
- nucleo_f429zi
- disco_l475_iot1
integration_platforms:
- frdm_k64f
sample.minimal.no-mt.arm:
extra_args: CONF_FILE='common.conf;no-mt.conf;arm.conf'
build_only: true
platform_allow:
- reel_board
- frdm_k64f
- mps2/an385
- nrf51dk/nrf51822
- nucleo_f429zi
- disco_l475_iot1
integration_platforms:
- frdm_k64f
sample.minimal.no-mt-no-timers.arm:
extra_args: CONF_FILE='common.conf;no-mt.conf;no-timers.conf;arm.conf'
build_only: true
platform_allow:
- reel_board
- frdm_k64f
- mps2/an385
- nrf51dk/nrf51822
- nucleo_f429zi
- disco_l475_iot1
integration_platforms:
- frdm_k64f
sample.minimal.mt.x86:
extra_args: CONF_FILE='common.conf;mt.conf;x86.conf'
build_only: true
Expand Down
2 changes: 2 additions & 0 deletions samples/boards/st/power_mgmt/wkup_pins/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ tests:
- nucleo_u575zi_q
- nucleo_u5a5zj_q
- nucleo_wl55jc
integration_platforms:
- nucleo_l4r5zi
2 changes: 2 additions & 0 deletions samples/drivers/display/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ tests:
- mimxrt1060_evk
- mimxrt1050_evk
- mimxrt1040_evk
integration_platforms:
- mimxrt1040_evk
tags: display
harness: console
extra_args: SHIELD=rk043fn02h_ct
Expand Down
2 changes: 2 additions & 0 deletions samples/drivers/watchdog/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,5 @@ tests:
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
integration_platforms:
- s32z2xxdc2/s32z270/rtu0
2 changes: 2 additions & 0 deletions samples/net/zperf/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ tests:
- nucleo_f429zi
- nucleo_f746zg
- stm32h573i_dk
integration_platforms:
- stm32h573i_dk
sample.net.zperf_no_shell:
harness: net
extra_configs:
Expand Down
2 changes: 0 additions & 2 deletions samples/subsys/canbus/isotp/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ tests:
- CONFIG_SAMPLE_LOOPBACK_MODE=y
- CONFIG_SAMPLE_CAN_FD_MODE=y
platform_allow:
- native_posix
- native_posix/native/64
- native_sim
- native_sim/native/64
harness: console
Expand Down
4 changes: 4 additions & 0 deletions samples/subsys/display/lvgl/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ tests:
- mimxrt1060_evk
- mimxrt1050_evk
- mimxrt1040_evk
integration_platforms:
- mimxrt1040_evk
tags: display
harness: console
extra_args: SHIELD=rk043fn66hs_ctg
Expand All @@ -87,6 +89,8 @@ tests:
- mimxrt1060_evk
- mimxrt1050_evk
- mimxrt1040_evk
integration_platforms:
- mimxrt1040_evk
tags: display
harness: console
extra_args: SHIELD=rk043fn02h_ct
Expand Down
3 changes: 2 additions & 1 deletion samples/tfm_integration/config_build/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ common:
tags:
- trusted-firmware-m
platform_allow:
- mps2/an521/cpu0/ns
- v2m_musca_s1/musca_s1/ns
- nrf5340dk/nrf5340/cpuapp/ns
- nrf9160dk/nrf9160/ns
- bl5340_dvk/nrf5340/cpuapp/ns
integration_platforms:
- nrf5340dk/nrf5340/cpuapp/ns
harness: console
harness_config:
type: one_line
Expand Down
2 changes: 2 additions & 0 deletions samples/tfm_integration/psa_crypto/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ tests:
- nrf9160dk/nrf9160/ns
- stm32l562e_dk/stm32l562xx/ns
- bl5340_dvk/nrf5340/cpuapp/ns
integration_platforms:
- mps2/an521/cpu0/ns
harness: console
harness_config:
type: multi_line
Expand Down
14 changes: 6 additions & 8 deletions tests/bluetooth/init/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,13 @@ tests:
- nrf52dk/nrf52832
integration_platforms:
- nrf5340dk/nrf5340/cpunet
- nrf52840dk/nrf52840
- nrf52dk/nrf52832
bluetooth.init.test_ctlr_ticker:
extra_args:
- CONF_FILE=prj_ctlr_ticker.conf
platform_allow:
- nrf52840dk/nrf52840
- nrf52dk/nrf52832
integration_platforms:
- nrf52840dk/nrf52840
- nrf52dk/nrf52832
bluetooth.init.test_ctlr_broadcaster:
extra_args: CONF_FILE=prj_ctlr_broadcaster.conf
Expand All @@ -161,20 +158,26 @@ tests:
- nrf52dk/nrf52832
- nrf51dk/nrf51822
- rv32m1_vega/openisa_rv32m1/ri5cy
integration_platforms:
- nrf52dk/nrf52832
bluetooth.init.test_ctlr_peripheral:
extra_args: CONF_FILE=prj_ctlr_peripheral.conf
platform_allow:
- nrf52840dk/nrf52840
- nrf52dk/nrf52832
- nrf51dk/nrf51822
- rv32m1_vega/openisa_rv32m1/ri5cy
integration_platforms:
- nrf52dk/nrf52832
bluetooth.init.test_ctlr_peripheral_priv:
extra_args: CONF_FILE=prj_ctlr_peripheral_priv.conf
platform_allow:
- nrf52840dk/nrf52840
- nrf52dk/nrf52832
- nrf51dk/nrf51822
- rv32m1_vega/openisa_rv32m1/ri5cy
integration_platforms:
- nrf52840dk/nrf52840
bluetooth.init.test_ctlr_observer:
extra_args: CONF_FILE=prj_ctlr_observer.conf
platform_allow:
Expand All @@ -184,8 +187,6 @@ tests:
- rv32m1_vega/openisa_rv32m1/ri5cy
integration_platforms:
- nrf52dk/nrf52832
- nrf51dk/nrf51822
- rv32m1_vega/openisa_rv32m1/ri5cy
bluetooth.init.test_ctlr_central:
extra_args: CONF_FILE=prj_ctlr_central.conf
platform_allow:
Expand All @@ -195,7 +196,6 @@ tests:
- rv32m1_vega/openisa_rv32m1/ri5cy
integration_platforms:
- nrf52dk/nrf52832
- nrf51dk/nrf51822
- rv32m1_vega/openisa_rv32m1/ri5cy
bluetooth.init.test_ctlr_central_priv:
extra_args: CONF_FILE=prj_ctlr_central_priv.conf
Expand All @@ -206,7 +206,6 @@ tests:
- rv32m1_vega/openisa_rv32m1/ri5cy
integration_platforms:
- nrf52dk/nrf52832
- nrf51dk/nrf51822
- rv32m1_vega/openisa_rv32m1/ri5cy
bluetooth.init.test_ctlr_broadcaster_ext:
extra_args: CONF_FILE=prj_ctlr_broadcaster_ext.conf
Expand Down Expand Up @@ -343,7 +342,6 @@ tests:
- rv32m1_vega/openisa_rv32m1/ri5cy
integration_platforms:
- nrf52840dk/nrf52840
- nrf52dk/nrf52832
- rv32m1_vega/openisa_rv32m1/ri5cy
bluetooth.init.test_config_bt_recv_workq_bt:
extra_args:
Expand Down
3 changes: 3 additions & 0 deletions tests/boards/espressif/rtc_clk/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
common:
integration_platforms:
- esp32c6_devkitc
tests:
boards.esp32.rtc_clk:
platform_allow:
Expand Down
3 changes: 3 additions & 0 deletions tests/boards/espressif/wifi/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
common:
integration_platforms:
- esp32c3_devkitm
tests:
esp.wifi.sec.none:
tags: wifi
Expand Down
2 changes: 2 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ tests:
- nrf52840dk/nrf52840
- nrf54l15dk/nrf54l15/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
integration_platforms:
- frdm_kl25z
3 changes: 3 additions & 0 deletions tests/drivers/adc/adc_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ tests:
- stm32f3_disco
- stm32h573i_dk
- stm32u083c_dk
integration_platforms:
- disco_l475_iot1
- nucleo_l476rg
drivers.adc.dma_nxp_kinetis:
extra_args:
- EXTRA_CONF_FILE="overlay-dma-kinetis.conf"
Expand Down
2 changes: 0 additions & 2 deletions tests/drivers/build_all/can/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ tests:
platform_allow: lpcxpresso55s28
drivers.can.build_all.native_linux:
platform_allow:
- native_posix
- native_posix/native/64
- native_sim
- native_sim/native/64
15 changes: 15 additions & 0 deletions tests/drivers/build_all/comparator/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ tests:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf9280pdk/nrf9280/cpuapp
integration_platforms:
- nrf52dk/nrf52810
- nrf5340dk/nrf5340/cpuapp
drivers.build_all.comparator.nrf_comp.se_aref:
extra_args:
- DTC_OVERLAY_FILE="nrf_comp/se_aref.overlay"
Expand All @@ -32,6 +35,9 @@ tests:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf9280pdk/nrf9280/cpuapp
integration_platforms:
- nrf52dk/nrf52810
- nrf5340dk/nrf5340/cpuapp
drivers.build_all.comparator.nrf_comp.se:
extra_args:
- DTC_OVERLAY_FILE="nrf_comp/se.overlay"
Expand All @@ -46,6 +52,9 @@ tests:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf9280pdk/nrf9280/cpuapp
integration_platforms:
- nrf52dk/nrf52810
- nrf5340dk/nrf5340/cpuapp
drivers.build_all.comparator.nrf_lpcomp.ext_ref:
extra_args:
- DTC_OVERLAY_FILE="nrf_lpcomp/ext_ref.overlay"
Expand All @@ -56,6 +65,9 @@ tests:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf9280pdk/nrf9280/cpuapp
integration_platforms:
- nrf51dk/nrf51822
- nrf54l15dk/nrf54l15/cpuapp
drivers.build_all.comparator.nrf_lpcomp.int_ref:
extra_args:
- DTC_OVERLAY_FILE="nrf_lpcomp/int_ref.overlay"
Expand All @@ -66,6 +78,9 @@ tests:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf9280pdk/nrf9280/cpuapp
integration_platforms:
- nrf51dk/nrf51822
- nrf54h20dk/nrf54h20/cpuapp
drivers.build_all.comparator.mcux_acmp.mimxrt1176_mux_dac:
extra_args:
- DTC_OVERLAY_FILE="mcux_acmp/mimxrt1176_mux_dac.dts"
Expand Down
2 changes: 0 additions & 2 deletions tests/drivers/build_all/counter/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@ tests:
extra_configs:
- CONFIG_I2C=y
platform_allow:
- native_posix
- native_posix/native/64
- native_sim
- native_sim/native/64
2 changes: 2 additions & 0 deletions tests/drivers/build_all/gpio/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ tests:
- nrf52840dk/nrf52840
- native_sim
- native_sim/native/64
integration_platforms:
- native_sim
depends_on:
- gpio
- adc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ common:
- qemu_riscv32/qemu_virt_riscv32/smp
- qemu_riscv64
- qemu_riscv64/qemu_virt_riscv64/smp
integration_platforms:
- qemu_riscv32
- qemu_riscv64
tags:
- drivers
- interrupt
Expand Down
2 changes: 2 additions & 0 deletions tests/drivers/build_all/modem/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ common:
- native_sim/native/64
- qemu_x86
- qemu_x86_64
integration_platforms:
- qemu_x86

tests:
drivers.modem.modem_hl7800.interrupt_driven.build:
Expand Down
5 changes: 0 additions & 5 deletions tests/drivers/can/api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ tests:
- CONFIG_CAN_ACCEPT_RTR=y
drivers.can.api.twai:
extra_args: DTC_OVERLAY_FILE=twai-enable.overlay
filter: dt_compat_enabled("espressif,esp32-twai")
platform_allow:
- esp32_devkitc_wroom/esp32/procpu
- esp32_devkitc_wrover/esp32/procpu
- esp32c3_devkitm
- esp32s2_saola
- esp32s3_devkitm/esp32s3/procpu
- xiao_esp32s3/esp32s3/procpu
drivers.can.api.nxp_s32_canxl.non_rx_fifo:
Expand Down
2 changes: 2 additions & 0 deletions tests/drivers/charger/sbs_charger/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ tests:
- qemu_kvm_arm64
- xenvm
- xenvm/xenvm/gicv3
integration_platforms:
- qemu_cortex_a53
extra_args:
CONF_FILE="prj.conf;boards/qemu_cortex_a53.conf"
DTC_OVERLAY_FILE="boards/qemu_cortex_a53.overlay"
2 changes: 2 additions & 0 deletions tests/drivers/clock_control/clock_control_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ tests:
- sltb010a@0
- xg24_dk2601b
- xg27_dk2602a
integration_platforms:
- esp32_devkitc_wroom/esp32/procpu
drivers.clock.clock_control_nrf5:
platform_allow:
- nrf51dk/nrf51822
Expand Down
2 changes: 2 additions & 0 deletions tests/drivers/counter/counter_nrf_rtc/fixed_top/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ tests:
- nrf54h20dk/nrf54h20/cpuapp
- nrf54h20dk/nrf54h20/cpurad
- nrf54h20dk/nrf54h20/cpuppr
integration_platforms:
- nrf52840dk/nrf52840
2 changes: 2 additions & 0 deletions tests/drivers/flash/erase_blocks/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ tests:
- b_u585i_iot02a
- nrf9160dk/nrf9160
- nrf5340dk/nrf5340/cpuapp
integration_platforms:
- nrf9160dk/nrf9160
Loading

0 comments on commit b207035

Please sign in to comment.