Skip to content

Commit

Permalink
tests: build_all: modem: Remove net tag and clean up
Browse files Browse the repository at this point in the history
Remove the net tag, allowing the modem driver tests to be built
for PRs, and limit the scope of the test suite to only build
for select emulated 32 and 64 bit boards.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
  • Loading branch information
bjarki-andreasen authored and carlescufi committed Jan 22, 2024
1 parent 441b1b7 commit 140a510
Show file tree
Hide file tree
Showing 10 changed files with 88 additions and 104 deletions.
6 changes: 2 additions & 4 deletions tests/drivers/build_all/modem/modem_cellular.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
CONFIG_TEST=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_MODEM=y
CONFIG_NETWORKING=y
CONFIG_NET_L2_PPP=y
CONFIG_MODEM=y
CONFIG_PM_DEVICE=y
CONFIG_MODEM_CELLULAR=y
CONFIG_UART_ASYNC_API=y
CONFIG_GPIO=y
5 changes: 2 additions & 3 deletions tests/drivers/build_all/modem/modem_esp_at.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_TEST=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_MODEM=y
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_IPV4=y
Expand Down
5 changes: 2 additions & 3 deletions tests/drivers/build_all/modem/modem_gsm.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
CONFIG_TEST=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_MODEM=y
CONFIG_NETWORKING=y
CONFIG_NET_IPV4=y
CONFIG_NET_DRIVERS=y
CONFIG_NET_PPP=y
CONFIG_NET_L2_PPP=y
CONFIG_MODEM=y
CONFIG_MODEM_GSM_PPP=y
11 changes: 11 additions & 0 deletions tests/drivers/build_all/modem/modem_gsm_mux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_MODEM=y
CONFIG_NETWORKING=y
CONFIG_NET_IPV4=y
CONFIG_NET_DRIVERS=y
CONFIG_NET_PPP=y
CONFIG_NET_L2_PPP=y
CONFIG_MODEM_GSM_PPP=y
CONFIG_GSM_MUX=y
CONFIG_UART_MUX=y
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
CONFIG_TEST=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TEST_USERSPACE=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_MODEM=y
CONFIG_NETWORKING=y
CONFIG_NET_IPV4=y
CONFIG_MODEM=y
CONFIG_MODEM_HL7800=y
CONFIG_MODEM_HL7800_FW_UPDATE=y
CONFIG_MODEM_HL7800_SET_APN_NAME_ON_STARTUP=y
Expand Down
6 changes: 2 additions & 4 deletions tests/drivers/build_all/modem/modem_quectel_bg9x.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
CONFIG_TEST=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_MODEM=y
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_MODEM=y
CONFIG_MODEM_QUECTEL_BG9X=y
CONFIG_MODEM_QUECTEL_BG9X_APN="hologram"
7 changes: 3 additions & 4 deletions tests/drivers/build_all/modem/modem_simcom_sim7080.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
CONFIG_TEST=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_MODEM=y
CONFIG_NETWORKING=y
CONFIG_GPIO=y
CONFIG_NET_SOCKETS=y
CONFIG_MODEM=y
CONFIG_MODEM_SIM7080=y
6 changes: 2 additions & 4 deletions tests/drivers/build_all/modem/modem_ublox_sara.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
CONFIG_TEST=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_MODEM=y
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_MODEM=y
CONFIG_MODEM_UBLOX_SARA=y
3 changes: 0 additions & 3 deletions tests/drivers/build_all/modem/prj.conf

This file was deleted.

137 changes: 62 additions & 75 deletions tests/drivers/build_all/modem/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,86 +1,73 @@
common:
build_only: true
tags:
- drivers
- net
- modem
platform_allow:
- native_sim
- native_sim_64
- qemu_x86
- qemu_x86_64

tests:
drivers.modem.build:
extra_args: CONF_FILE=modem.conf
platform_exclude:
- serpente
- particle_boron
- rak5010_nrf52840
- litex_vexriscv
- ip_k66f
min_ram: 68
min_flash: 115
drivers.modem.ublox_sara.build:
drivers.modem.modem_hl7800.interrupt_driven.build:
extra_args: CONF_FILE=modem_hl7800.conf
extra_configs:
- CONFIG_UART_INTERRUPT_DRIVEN=y
drivers.modem.modem_hl7800.async.build:
extra_args: CONF_FILE=modem_hl7800.conf
extra_configs:
- CONFIG_UART_ASYNC_API=y
drivers.modem.modem_ublox_sara.interrupt_driven.build:
extra_args: CONF_FILE=modem_ublox_sara.conf
platform_exclude:
- serpente
- pinnacle_100_dvk
- litex_vexriscv
- ip_k66f
- mg100
drivers.modem.simcom_sim7080.build:
extra_args: CONF_FILE=modem_simcom_sim7080.conf
platform_exclude:
- serpente
- pinnacle_100_dvk
- litex_vexriscv
- ip_k66f
- mg100
drivers.modem.quectel_bg9x.build:
extra_configs:
- CONFIG_UART_INTERRUPT_DRIVEN=y
drivers.modem.modem_ublox_sara.async.build:
extra_args: CONF_FILE=modem_ublox_sara.conf
extra_configs:
- CONFIG_UART_ASYNC_API=y
drivers.modem.modem_quectel_bg9x.interrupt_driven.build:
extra_args: CONF_FILE=modem_quectel_bg9x.conf
platform_exclude:
- serpente
- pinnacle_100_dvk
- litex_vexriscv
- ip_k66f
- mg100
min_ram: 36
drivers.modem.gsm.build:
extra_configs:
- CONFIG_UART_INTERRUPT_DRIVEN=y
drivers.modem.modem_quectel_bg9x.async.build:
extra_args: CONF_FILE=modem_quectel_bg9x.conf
extra_configs:
- CONFIG_UART_ASYNC_API=y
drivers.modem.modem_gsm.interrupt_driven.build:
extra_args: CONF_FILE=modem_gsm.conf
platform_exclude:
- serpente
- particle_boron
- rak5010_nrf52840
- litex_vexriscv
- ip_k66f
min_ram: 36
drivers.modem.gsm_mux.build:
extra_configs:
- CONFIG_UART_INTERRUPT_DRIVEN=y
drivers.modem.modem_gsm.async.build:
extra_args: CONF_FILE=modem_gsm.conf
platform_exclude:
- serpente
- particle_boron
- rak5010_nrf52840
- litex_vexriscv
- ip_k66f
min_ram: 36
extra_configs:
- CONFIG_GSM_MUX=y
- CONFIG_UART_MUX=y
drivers.modem.esp_at.build:
extra_configs:
- CONFIG_UART_ASYNC_API=y
drivers.modem.modem_gsm_mux.interrupt_driven.build:
extra_args: CONF_FILE=modem_gsm_mux.conf
extra_configs:
- CONFIG_UART_INTERRUPT_DRIVEN=y
drivers.modem.modem_gsm_mux.async.build:
extra_args: CONF_FILE=modem_gsm_mux.conf
extra_configs:
- CONFIG_UART_ASYNC_API=y
drivers.modem.modem_esp_at.interrupt_driven.build:
extra_args: CONF_FILE=modem_esp_at.conf
platform_exclude:
- ip_k66f
- cy8cproto_062_4343w
filter: CONFIG_SERIAL
min_ram: 36
drivers.modem.esp_at.async.build:
extra_configs:
- CONFIG_UART_INTERRUPT_DRIVEN=y
drivers.modem.modem_esp_at.async.build:
extra_args: CONF_FILE=modem_esp_at.conf
filter: CONFIG_SERIAL and CONFIG_QEMU_TARGET
min_ram: 36
extra_configs:
- CONFIG_MODEM_IFACE_UART_ASYNC=y
drivers.modem.modem_cellular.build:
- CONFIG_UART_ASYNC_API=y
drivers.modem.modem_cellular.interrupt_driven.build:
extra_args: CONF_FILE=modem_cellular.conf
extra_configs:
- CONFIG_UART_INTERRUPT_DRIVEN=y
drivers.modem.modem_cellular.async.build:
extra_args: CONF_FILE=modem_cellular.conf
platform_allow:
- native_posix_64
- native_posix
- native_sim_64
- native_sim
- qemu_x86
- qemu_x86_64
min_ram: 36
extra_configs:
- CONFIG_UART_ASYNC_API=y
drivers.modem.modem_simcom_sim7080.interrupt_driven.build:
extra_args: CONF_FILE=modem_simcom_sim7080.conf
extra_configs:
- CONFIG_UART_INTERRUPT_DRIVEN=y
drivers.modem.modem_simcom_sim7080.async.build:
extra_args: CONF_FILE=modem_simcom_sim7080.conf
extra_configs:
- CONFIG_UART_ASYNC_API=y

0 comments on commit 140a510

Please sign in to comment.