Commit graph

16700 commits

Author SHA1 Message Date
Marek Slowinski
deae35917f tests: coredump: Call k_panic() directly for mpfs_icicle board
mpfs_icicle timeouts on this test similarly to other boards
simulated in Renode. Null pointer dereference doesn't trigger
a CPU fault during simulation. Instead, call k_panic() directly.

Link: a28d5df5c6

Signed-off-by: Marek Slowinski <mslowinski@antmicro.com>
2025-05-06 13:01:00 +02:00
Marek Slowinski
69592710fa tests: debug/coredump: Disable clang-format for column-aligned macro
Keep manually aligned lines for better readability.

Signed-off-by: Marek Slowinski <mslowinski@antmicro.com>
2025-05-06 13:01:00 +02:00
Shrek Wang
f2ef654155 net: tcp: Replace the FIN only case with FIN+ACK
According to TCP Spec. RFC793, ACK flag should be always set
after sequences of both sides are sync-ed except for RST seg-
ment. It is not necessary to send FIN only packet in the
test case, using FIN | ACK instead.
Similarly, change the tcp_out(conn, FIN | ACK) in CLOSE_WAIT.

Signed-off-by: Shrek Wang <inet_eman@outlook.com>
2025-05-06 10:50:39 +02:00
Emil Gydesen
277d0c1f89 tests: Bluetooth: CAP: Fix typo STREMT -> STREAM
Fixed a typo in the term "stream".

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-06 10:50:22 +02:00
Emil Gydesen
240749c770 tests: Bluetooth: CAP: Add bcast reception with multiple acceptors
Expand the CAP broadcast reception test to also run with
multiple acceptors to better verify correctness in the
procedures.

For this to run more stable, the maximum number of streams
has been reduce to 2, rather than
CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-06 10:50:22 +02:00
Hao Luo
660390835b dts: ambiq: change to enable ambiq drivers in overlays
Keep minimal system in board dts, only enable driver in overlays

Signed-off-by: Hao Luo <hluo@ambiq.com>
2025-05-05 21:56:47 +02:00
Jilay Pandya
4e83888a26 tests: stepper: delete duplicate test cases
deleting two test-cases from drv8424 test-suite since these test-cases
are now present in stepper-api since #88835

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-05-05 14:26:02 +02:00
Arkadiusz Balys
bee2f79dde samples: Enable OpenThread logging in all related samples
Some OpenThread logs were moved from L2 to the OpenThread module,
so enable logging from there to keep previous logging visibility.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
2025-05-05 14:25:13 +02:00
Dat Nguyen Duy
92cb88ff75 tests: counter: fix test_valid_function_without_alarm for count-down timer
The ticks_expected was not calculated correctly for count-down
timer, let's fix this.

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2025-05-05 14:24:54 +02:00
Markus Lassila
10bd2de235 modem: backend: uart: Add hw-flow-control for UART
Add Asynchronous UART implementation, which does not drop data
when automatic hardware-flow-control is set in the device tree.

With automatic hardware flow control, the CTS pin will be
automatically deactivated when there are no more asynchronous
UART RX buffers available. After buffer space becomes available,
and UART RX is restarted, the CTS pin will be activated.

Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
2025-05-05 14:24:49 +02:00
Bjarki Arge Andreasen
24dd37929c tests: modem: backends: uart: add hw flow control option
Extend test modem uart backend test suite to support testing hw
flow control, which is performed by using a small receive
buffer for the modem uart backend, and slowing down the read
of received data, ensuring the buffer will be overrun if hw flow
control is not working.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-05 14:24:49 +02:00
Bjarki Arge Andreasen
525d3d680d tests: modem: backends: uart: boards: add hw-flow-control
Update the board overlays to support hardware flow control for
testing.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-05 14:24:49 +02:00
Henrik Brix Andersen
8f8458c4b4 tests: boards: neorv32: build_all: enable GPTMR
Enable the NEORV32 General Purpose Timer (GPTMR) in the NEORV32 build_all
test suite.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-05-05 12:20:50 +02:00
Henrik Brix Andersen
65ec9256bb tests: drivers: counter: counter_basic_api: add NEORV32 GPTMR support
Add support for testing the NEORV32 General Purpose Timer (GPTMR).

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-05-05 12:20:50 +02:00
Christoph Winklhofer
13054293ad tests: logging: Allow LOG_PRINTK from user space
The commit '3b29b9fa3b (tests: logging: restore userspace testing,
2025-04-18)' set CONFIG_LOG_PRINTK=n which brakes the build on the
platform 'ip_k66f'.

Without CONFIG_LOG_PRINTK=n (dependency from CONFIG_USERSPACE=y) some
tests in 'tests/subsys/logging/log_core_additional/logging.log_user'
would not build.

Remove this dependency so that LOG_PRINTK can also be used from user
space, which is possible since '77925656ab (logging: Fix runtime
message creation in user-mode thread, 2025-04-18)' and reset
CONFIG_LOG_PRINTK=y.

Fixes: #89067
Signed-off-by: Christoph Winklhofer <cj.winklhofer@gmail.com>
2025-05-05 12:20:34 +02:00
Dominik Ermel
71a329fbb0 tests: flash_map: Basic offset/length overflow tests
Test integer overflow on Flash Area operation parameters.
All functions call the same is_in_flash_area_bounds
function for parameter verification, so it was enough
to test parameter checks of flash_read.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2025-05-05 10:57:51 +02:00
Chris Friedt
76e1fc7713 tests: posix: move tv_to_ts to posix_clock.h
Move the private static inline function tv_to_ts() to posix_clock.h .

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-05-04 19:56:02 +02:00
Josselin Bunt
c4970880a1 drivers: stepper: Add unit tests for stepper API using work_q
This commit adds unit tests for the stepper API using work_q scheduler.

Signed-off-by: Josselin Bunt <josselin@sensible.health>
2025-05-04 19:55:51 +02:00
Camille BAUD
945f7d86dd tests: display: Add sh1122 build_all test
Adds SH1122 build_all test

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-05-02 16:09:08 +01:00
Arkadiusz Cholewinski
1366fa94f5 Tests: PM: Fix tests.
Change expected values for:
- pm/power_states
- pm/power_residency_time
- pm/power_wakeup_timer

and fix pm/power_wakeup_timer.

Signed-off-by: Arkadiusz Cholewinski <arkadiuszx.cholewinski@intel.com>
2025-05-02 15:21:07 +02:00
Pete Johanson
f4b52a43d9 drivers: memc: Add MAX32 HyperBus driver
Add memc driver for the MAX32 HyperBus peripheral, supporting HyperRAM
and Xccela PSRAM memory devices.

Signed-off-by: Pete Johanson <pete.johanson@analog.com>
2025-05-02 15:20:55 +02:00
Vinayak Kariappa Chettimada
30a634c47a Bluetooth: Controller: Interleaved extended advertising reception
Increase scan aux sets to support interleaved extended
advertising reception in hci_ipc ISO support configuration
in nRF5340 HCI ISO Controller.

CONFIG_BT_MAX_CONN is reduced accordingly as ticker node
instances are shared across all state/role scheduling in the
Controller implementation.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-05-02 15:20:30 +02:00
Emil Gydesen
abad49b0d3 tests: Bluetooth: BSIM: Store last sent opcode for BT tester
The BT Tester will not provide the opcode in the case of a
BTP error. To help log this for developers, we store the
opcode of the currently outstanding command, so that we can
log it.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-02 10:47:32 +02:00
Steffen Jahnke
b64cd0dd96 boards: panasonic: Update PAN B511 Evaluation Board
The PAN B511 evaluation board is a development tool for the
nRF54L15 from Nordic Semiconductor. Updates are based on latest
changes for nrf54l15dk.

Signed-off-by: Steffen Jahnke <steffen.jahnke@eu.panasonic.com>
2025-05-02 10:38:46 +02:00
Raffael Rostagno
abe18d2ccb boards: esp32c6_devkitc: Add CAN sample
Add CAN sample for esp32c6_devkitc.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2025-05-02 10:38:39 +02:00
Camille BAUD
b933aff68c tests: display: Add SSD1320 build test
Adds SSD1320 build test

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-05-02 10:37:56 +02:00
Krzysztof Chruściński
a87e6280aa tests: drivers: uart: Add test for async API using two instance
Add test which is using two independent UART devices. Validate behavior of
asynchronous API.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-05-02 10:37:30 +02:00
Duy Nguyen
e0e90375da test: Skip kernel stack protect test for RX arch
Skip kernel stack protect as the compiler not support
-fstack-protector

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-05-02 09:18:16 +02:00
Duy Nguyen
f7db912e70 test: Test accumulator register save for RX arch
Add new test cases to check for accumulator register save
on RX architecture

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-05-02 09:18:16 +02:00
Duy Nguyen
d104ebaf63 test: fatal_exception: Add support for RX test
Add RX exception instruction

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-05-02 09:18:16 +02:00
Fabrice DJIATSA
b5090e220a tests: drivers: spi: spi_loopback: update spi_loopback test
add nucleo_wba55cg board for spi_loopback driver test.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-05-02 09:17:26 +02:00
Fabrice DJIATSA
e54c615255 tests: drivers: i2c: i2c_target_api: update i2c test driver
add nucleo_wba55cg board for i2c driver test.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-05-02 09:17:26 +02:00
cyliang tw
3bf1ee7cb0 tests: drivers: adc: adc_api: support numaker_m55m1
Add support for Nuvoton numaker board numaker_m55m1.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2025-05-02 07:20:34 +02:00
Khoa Nguyen
d63aac0d3d tests: drivers: flash: Add support "common" for Renesas ek_ra4l1
Add support test app "flash/common" for Renesas RA ek_ra4l1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-05-02 07:19:46 +02:00
Fabrice DJIATSA
19ba839d66 tests: drivers: spi: spi_loopback: update testcase file
add stm32n6570_dk in yaml file for CI test integration
purpose.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-05-01 18:17:15 +02:00
Fabrice DJIATSA
234efb48dc tests: drivers: i2c: i2c_target_api: update testcase file
add stm32n6570_dk in yaml file for CI test integration
purpose.


Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-05-01 18:17:15 +02:00
Armando Visconti
4c34b5d725 drivers/sensor: lis2dux12: add high performance mode
Add driver capability to properly set high performance mode
while setting data rate (thru lis2duxxx_mode_set() API)
based on how power-mode is set into DTS: if it is set to
LIS2DUX12_OPER_MODE_HIGH_PERFORMANCE then configure HP mode,
LP/ULP mode otherwise.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2025-05-01 18:17:05 +02:00
Lauren Murphy
e0a54835c2 llext: support ARC MPU
Make it so LLEXT allocates a memory region equal or greater
to the minimum size supported by the MPU, to ensure no region
overlap.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-05-01 18:16:30 +02:00
Emil Gydesen
6abdc389d4 Bluetooth: CSIP: Remove bt_csip_set_member_get_sirk
The bt_csip_set_member_get_sirk function is superseded by
bt_csip_set_member_get_info and uses of it has been replaced.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-01 18:15:56 +02:00
Pieter De Gendt
b596b13e7c tests: net: lib: coap_server: Add secure test
Add testcase for CoAP secure service support.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-05-01 08:53:32 -04:00
Bartosz Miller
a1a8d28394 tests: drivers: can: Enable GPD for nrf54h in CAN host test
nrf54h should be capable of operating
the CAN interface when GPD is enabled.

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2025-05-01 13:42:47 +02:00
Emil Gydesen
6ddc988c1e tests: Bluetooth: Audio: Fix includes
Updates the includes in a a few files to
avoid including unused header files and include the
ones that are used.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-01 13:42:37 +02:00
Emil Gydesen
d38b0e9ecd tests: BSIM: Bluetooth: Audio: Fix includes
Updates the includes in a a few files to
avoid including unused header files and include the
ones that are used.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-05-01 13:42:37 +02:00
Jamie McCrae
9bd8bd6b75 tests: mgmt: mcumgr: img_mgmt_slot_info: Fix overlay
Fixes the order of the overlay which now throws an error

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-05-01 09:33:34 +02:00
Sai Santhosh Malae
8e57cc6f70 drivers: spi: siwx91x: spi_loopback test support
1. Add board config and overlay files
2. Update testcase.yaml

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-04-30 18:44:11 +02:00
Jamie McCrae
c6eb665acf tests: lib: devicetree: devices: Add sub-partition check
Adds a sub-partition check to this test

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-04-30 18:44:06 +02:00
Bartosz Miller
21f71dfab4 tests: boards: i2c: Add testing with different i2c speeds
Test with all available speeds on the given device.

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2025-04-30 16:27:43 +02:00
Emil Gydesen
3d9f2d17ed tests: Bluetooth: ISO: Add validation of broadcast info
Add validation of the info the application can retrieve by
calling bt_iso_chan_get_info.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-04-30 16:26:39 +02:00
Robert Lubos
bbad01eb91 tests: net: socket: af_packet: Add more tests to verify binding
In case the receiving packet socket is not bound to any specific
interface, or is explicitly bound to "any" interface (at index 0),
it should collect packets from all interfaces. Add test cases which
verify that.

Also, if a packet socket is bound to a specific interface, it should not
receive packets from others. Add a test case to verify that as well.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-04-30 16:26:16 +02:00
Robert Lubos
6654f78376 tests: net: socket: af_packet: Remove unused param
iface parameter in setup_packet_socket() function was not used, remove
it to avoid confusion.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-04-30 16:26:16 +02:00