Commit graph

438 commits

Author SHA1 Message Date
Travis Lam
19886ffd0f tests: Enable tests on nrf7120 NS
Enable tests for nrf7120dk/nrf7120/cpuapp/ns platform.

Signed-off-by: Travis Lam <travis.lam@nordicsemi.no>
2026-04-15 05:43:58 -04:00
Fin Maaß
cfc452889b drivers: wifi: esp32: don't set ESP32_WIFI_STA_AUTO_DHCPV4
Don't set CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4
as it is already enabled by default, if all dependencies are met.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-04-14 22:33:12 -04:00
Nikhil Namjoshi
41082f40fc net: Initialize chksum variable to avoid clang build errors
This addresses clang build failure seen in
https://github.com/zephyrproject-rtos/zephyr/runs/69856219528

after PR #106578 was merged.

Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
2026-04-03 14:58:06 -05:00
Nikhil Namjoshi
f98624455c net: Update net_calc_chksum to return err code on failure
`net_calc_chksum` is designed to return uint16_t checksum.
Its current behavior is to return 0 checksum on error
(or on an empty payload) and a valid non zero checksum for non empty
payloads. 0 could be a valid checksum for empty payload.

So update the `net_calc_chksum` and its wrapper's definition to
return error codes.

Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
2026-04-03 23:14:47 +09:00
Fin Maaß
fdd0b71828 boards: espressif: esp32_ethernet_kit: enable ethernet by default
If a board is called a ethernet_kit, ethernet should be enabled
by default. Also without this being enabled, the esp32 ethernet driver
is not build tested by the ci.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-25 08:04:32 -04:00
Chaitanya Tata
b83a85d20e tests: boards: nrf70: ent_security: Fix missing test tag
This tag ensures that whenever hostap is changed then these tests are
also run.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-03-23 17:37:28 -05:00
Marek Matej
3f0eb8be62 tests: boards: espresif: add esp_threadbr
Add new test case to cover esp_threadbr with ethernet shield.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2026-03-20 07:10:42 +01:00
Andy Lin
c8a5e16dd0 tests: boards: rpi_pico: Add ROM access verification tests
Add a new test suite to verify the accessibility of the ROM functions and
data across different configurations and chips (RP2040 and RP235x).

Signed-off-by: Andy Lin <andylinpersonal@gmail.com>
2026-03-19 17:10:26 -05:00
Sylvio Alves
11c04abe33 tests: add esp32c5 overlays and configs
Add ESP32-C5 test overlays for counter, I2S, PWM loopback, retained
memory, and UART async API tests.

The PWM GPIO loopback test requires SKIP_EDGE_NUM=6 on ESP32-C5 to
account for flash cache loading latency on the first GPIO ISR
invocations that skews edge timing measurements.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-19 14:53:05 -05:00
Zhiyuan Tang
413767d636 tests: boards: realtek: adapt osif_msgq test for RTL8752H
The OSIF API signature for `os_msg_queue_create` differs between the
RTL8752H series and other supported SoCs (e.g., RTL87x2G). Specifically,
the RTL8752H implementation does not accept a queue name string as an
argument.

This commit adds a conditional check using `CONFIG_SOC_SERIES_RTL8752H`
to invoke the correct API variant. This ensures the test suite compiles
and runs correctly on both RTL8752H and RTL87x2G platforms.

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-03-18 08:39:10 -05:00
Jamie McCrae
f22592cbc5 tree: Replace FIXED_PARTITION_* macro usage with PARTITION_*
Replaces usage of these deprecated macros with ones that support
fixed and mapped partition compatibles. Also includes an update to
hal_espressif which also (rightly or wrongly) has zephyr specific
code in it

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-03-17 18:24:52 -04:00
Sylvio Alves
d54faf4d71 tests/samples: espressif: rename esp32c3 board target
esp32c3_devkitm has been used as board reference for ESP32-C3 SoC.
Change to default esp32c3_devkitc to align with internal CI tests.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-17 18:23:32 -04:00
Sylvio Alves
3121a8bf27 tests/samples: espressif: rename esp32s2 board target
esp32s2_saola has been used as board reference for ESP32-S2 SoC.
Change to default esp32s2_devkitc to align with internal CI tests.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-17 18:23:32 -04:00
Sebastian Głąb
01d6259184 tests: boards: nrf: Enable qdec test on nrf54lm20b
Add overlay required to run the qdec test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-12 12:08:08 -04:00
Sylvio Alves
7fb8d277c8 tests: boards: espressif: use ztest harness for memory_layout
The memory_layout test uses the ztest framework with zassert macros,
so the harness should be ztest instead of console with custom regex
patterns.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-11 17:48:40 +00:00
Krzysztof Chruściński
fc90e2c89e tests: boards: nrf: gppi: Add support for nrf54h20dk cpuapp
Add configuration for nrf54h20dk/nrf54h20/cpuapp.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-10 14:18:00 -05:00
Krzysztof Chruściński
0cd7926ef5 tests: boards: nrf: gppi: Add test for GPPI
Add test for GPPI helper that manages PPI, DPPI and PPIB.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-10 14:18:00 -05:00
Sebastian Głąb
f1d1d59c4c tests: boards: nrf: i2c: Enable i2c_slave test on nrf54lm20b
Add overlay required to run the i2c_slave test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 15:13:15 +01:00
Sebastian Głąb
1f40ebe2a2 tests: boards: nrf: hwinfo: Enable reset_cause test on nrf54lm20b
Add overlay required to run the reset_cause test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 11:35:15 +00:00
Pieter De Gendt
50578b8aa8 net: ip: icmp: Change net_icmp_handler_t return type to enum net_verdict
Update the return type of the ICMP callback handler to enum net_verdict.
This fixes an issue where currently all ICMP handler are passed the same
pkt. Handlers could have modified the passed packet resulting in undefined
behavior.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-03-06 10:06:42 +01:00
Sebastian Głąb
75678e5f47 tests: boards: nrf: Enable comp test on nrf54lm20b
Add overlay required to run the comp test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-04 14:29:16 +00:00
Sylvio Alves
5346c0c02d tests: boards: espressif: rtc_clk: fix XTAL source test
Move PLL frequency array before test_cpu_xtal_src so it can be used
to restore CPU to PLL after XTAL testing. Skip non-exact XTAL
divisions (e.g. 26 MHz / 4) instead of testing invalid frequencies
that would cause the clock driver to fail or hang.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-27 11:50:50 +01:00
Zhiyuan Tang
6b11fe0da8 tests: boards: add test suite for Realtek Bee OSIF
This commit introduces a comprehensive test suite to verify the
Realtek OSIF (Operating System Interface) implementation for the
Bee SoC family.

These tests ensure that the OSIF abstraction layer correctly maps
to the underlying Zephyr kernel APIs.

The test implementation references `tests/subsys/portability/cmsis_rtos_v2`
to adopt a proven testing structure for OS abstraction layers.

The test suite covers the following functional modules:
- Memory management (osif_mem)
- Message queues (osif_msgq)
- Synchronization primitives (Mutexes, Semaphores)
- Task management and Scheduling (osif_task, osif_sched)
- Software timers (osif_timer)

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-02-26 10:29:19 +01:00
Chaitanya Tata
84142d00e6 hostap: Remove EAP-LEAP that uses MD5
EAP-LEAP uses MD5, so, remove this method.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-02-26 10:26:51 +01:00
Chaitanya Tata
fce2f70ee0 modules: hostap: Remove MD5
MD5 is deprecated and the security methods that use are not officially
supported in Zephyr (EAP-MD5, TLSv1 etc), so, remove the code related to
MD5 and disable it in hostap.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-02-26 10:26:51 +01:00
Sylvio Alves
e35ef80a3e tests: boards: espressif: memory_layout: use platform_allow
Use platform_allow to explicitly list supported boards instead of
a config filter. This restricts the test to specific devkit boards
and avoids running on appcpu targets.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-24 18:26:39 +01:00
Thinh Le Cong
ad158f7d45 tests: boards: renesas: Add ELC test support for fpb_ra8e1
Add ELC test support for Renesas fpb_ra8e1

Signed-off-by: Thinh Le Cong <thinh.le.xr@bp.renesas.com>
2026-02-24 10:34:05 +01:00
Robert Robinson
4511e75716 tests: boards: nrf: i2c: Add support for nRF7120
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-23 16:58:49 +00:00
Robert Robinson
807bd74b66 tests boards: nrf_comp: Add support for nRF7120
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-23 16:58:49 +00:00
Sylvio Alves
87e1920f09 tests: boards: espressif: add memory layout test
Add a test that validates SRAM region sizes and performs
write/read verification across the full heap range from
_end to _heap_sentry for all Espressif SoCs.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-20 14:59:28 +01:00
Robert Robinson
c27bf83db3 tests: boards: nrf: qdec: Add support for nRF7120
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-19 10:03:58 -06:00
Robert Robinson
e789595d05 tests: boards: nrf: hwinfo: reset_cause: Add support for nRF7120
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-19 10:03:58 -06:00
Scott Worley
b3f3ff28ec tests: boards: mec172xevb_assy6906: Fix test failure due to SPI driver
Test update to resolve Zephyr issue #103893.
Zephyr SPI_EXTENDED_MODES is now marked EXPERIMENTAL and documented as
requiring more API changes. On our last Microchip XEC SPI QMSPI SPI driver
update we were instructured to remove SPI_EXTENDED_MODES support. We
forgot to update this test. We removed dual/quad tests and updated the
test case YAML. Dual and quad support will require developing a Zephyr
MSPI driver.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-02-17 17:39:37 -06:00
Benjamin Cabé
1d23b5d877 drivers: i2s: samples: tests: replace non inclusive language
Replace master/slave terminology with controller/target terminology in
I2S sample and tests.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-10 13:24:18 -06:00
Benjamin Cabé
60ca5367a7 drivers: i2s: update macro names to match latest I2S specification
I2S bus specification 3.0 [1] updated terms "Master" and "Slave" to
"Controller" and "Target". This rename macros using these terms and
deprecates old names.

[1] https://www.nxp.com/docs/en/user-manual/UM11732.pdf

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2026-02-10 13:24:18 -06:00
Scott Worley
5ef18214e6 tests: drivers: flash and spi: common: Microchip MEC SPI driver updates
We added the Microchip mec_assy6941 and mec172xevb_assy6906 to the common
flash driver test. We use the SPI_NOR flash driver with the Microchip
XEC QMSPI-LDMA driver. The EVB has a SPI dongle attached with a Winbond
W25Q128JV 16 megabit SPI flash. We changed the name of QMSPI DT hardware
node to match the name at chip level.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
2026-02-06 13:46:14 -06:00
Torsten Rasmussen
a99311ebc6 cmake: align board qualifiers in CMake with Kconfig
Follow-up to PR# 102385.

Some occurrences of ${BOARD}${BOARD_QUALIFIERS} was missed in the
original alignment PR.

This commit adjusts the remaining occurrences to know include `/`.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2026-01-27 08:41:15 -05:00
Tomasz Leman
c789c763dd tests: intel_adsp: smoke: register IPC handler before sending messages
When CONFIG_INTEL_ADSP_IPC_OLD_INTERFACE is enabled, the clock
calibration test was registering the IPC message handler after sending
the first TIMESTAMP command. This caused a race condition where the
host's response would arrive during the k_msleep() before the handler
was set.

Without a registered handler, the old IPC glue layer's receive callback
sees handle_message == NULL, leaving msg_done unset. This prevents the
IPC backend from sending an acknowledgment to the host. The host then
blocks waiting for the ACK, causing subsequent TIMESTAMP requests to
time out.

Fix by moving intel_adsp_ipc_set_message_handler() call to before the
first message is sent, ensuring all incoming messages are properly
acknowledged even if the test doesn't need their data immediately.

Related to: #102103

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2026-01-26 10:13:17 -06:00
Tomasz Leman
a6089d88dd tests: intel_adsp: set msg_done flag in IPC receive callbacks
The smoke test IPC receive callbacks were not setting the msg_done flag
in the endpoint private data, preventing the ISR from acknowledging
received messages to the host. Without acknowledgment, the host would
not send subsequent messages, causing the tests to timeout waiting for
responses.

This patch updates both ipc_receive_cb() in hostipc.c and
clock_ipc_receive_cb() in clock.c to set priv_data->msg_done = true,
enabling immediate message acknowledgment by the ISR as documented in
the Intel ADSP host IPC backend.

Related to: #102103
Related to: #102106

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2026-01-26 10:13:17 -06:00
Riadh Ghaddab
4a30049073 tests: nrf: add integration platform for rram_throttling
Add the target nrf54l15dk/nrf54l15/cpuapp as the integration platform
in the testcase yaml file.

Signed-off-by: Riadh Ghaddab <riadh.ghaddab@nordicsemi.no>
2026-01-24 08:51:00 -06:00
Marek Matej
34757ac269 samples,tests: remove obsolete overlays
Remove wifi enabling overlays that became obsolete.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2026-01-14 09:15:48 -06:00
Tomasz Leman
32df237145 tests: intel_adsp: update smoke IPC tests for new backend
This patch updates the intel_adsp smoke tests to use the new host IPC
backend data model and APIs.

The host IPC smoke test now treats messages as a fixed two-word uint32_t
payload instead of using struct intel_adsp_ipc_msg and the
INTEL_ADSP_IPC_CB_* message types. The receive callback validates the
payload length and pointer, checks the header/payload values against the
expected RETURN_MSG_* constants, and sets msg_flag on receipt. The
test-specific intel_adsp_ipc_send_message() and
intel_adsp_ipc_send_message_sync() helpers are rewritten to send a
two-word payload via ipc_service_send(), and the synchronous helper
waits on the backend semaphore only when the send succeeds. A dedicated
done callback is registered via intel_adsp_ipc_set_done_handler() to
drive done_flag, and intel_adsp_ipc_complete() now completes RX by
calling ipc_service_release_rx_buffer() and asserting on failure.
Completion polling is aligned with the backend by using
ipc_service_get_tx_buffer_size().

The clock calibration smoke test is adapted in the same way. It now
includes the ipc_service and intel_adsp host IPC backend headers when
using the new interface, interprets incoming data as a two-word uint32_t
payload, validates the length and pointer, and stores the returned
timestamp from the extended payload word into the endpoint private data.
The rest of the test flow, including endpoint registration, timestamp
requests and clock rate checks, remains unchanged but runs on top of the
new IPC backend representation.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
2026-01-09 14:21:41 -06:00
Marek Matej
4cf8071494 boards: espressif: remove esp32s3_devkitm
Removing the esp32s3_devkitm as deprecated and redundant.
The esp32s3_devkitc has essentially the same functionality.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-12-27 21:02:28 +00:00
Riadh Ghaddab
b41f510fe2 tests: boards: nrf: rename flash.throttling test
Change the generic name to boards.nrf.rram_throtttling as this test is
bound to nrf boards.

Signed-off-by: Riadh Ghaddab <riadh.ghaddab@nordicsemi.no>
2025-12-26 10:16:37 -06:00
Sylvio Alves
f8d2e00a0e includes: remove duplicated entries in zephyr-tree
Remove duplicated #include directives within the same
preprocessor scope across the Zephyr tree.

Duplicates inside different #ifdef branches are preserved
as they may be intentional.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-12-17 13:57:38 -05:00
Sebastian Głąb
a5ca188d84 tests: boards: nrf: i2s: Remove test that checks I2S clock divider
Remove test from tests/boards/nrf/i2s/i2s_divider.
The i2s_divider test was relying on debug log from I2S driver.
With the recent NRFX updates log was removed.

Better test, that counts rising edges on I2S_LRCLK line was added
in downstream (https://github.com/nrfconnect/sdk-nrf/pull/26230).

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-12-17 13:55:54 -05:00
Nikodem Kastelik
b62921f4ce tests: boards: nrf: i2c: add twi variant
Currently only TWIM peripheral is verified against TWIS.
Add new test variant to verify nRF52 TWI peripheral as well.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2025-12-12 09:56:50 -05:00
Gaetan Perrot
d904d11a22 tests: Fix typo in "Unsupported configuration" error message
Several test sources used the misspelled string "Unsupported
configuraiton".

Fix the typo across all affected files to improve clarity and
consistency.

Updated files:
 - tests/boards/nrf/rram_throttling/src/main.c
 - tests/drivers/flash/common/src/main.c
 - tests/drivers/flash/negative_tests/src/main.c

No functional change.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-12-12 09:56:20 -05:00
Sylvio Alves
16f6f392b4 tests: espressif: rtc_clk: update to keep nominal tests usage
Update the test case to use the nominal clock_subsys and print
calibration deviation.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-12-11 17:02:14 +01:00
Daniel Leung
169304813a cache: move arch_mem_coherent() into cache subsys
arch_mem_coherent() is cache related so it is better to move it
under cache subsys. It is renamed to sys_cache_is_mem_coherent()
to reflect this change.

The only user of arch_mem_coherent() is Xtensa. However, it is
not an architecture feature. That's why it is moved to the cache
subsys.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-12-09 09:25:33 +01:00