Commit graph

16700 commits

Author SHA1 Message Date
Tomi Fontanilles
62fe34dd02 secure_storage: improve tests' compatibility in TF-M-enabled scenarios
Explicitly set the TF-M profile to not rely on the build system defaults
which might differ.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
2025-03-14 14:51:58 +01:00
Andreas Klinger
72b2f01298 drivers: sensor: add vishay veml6031 ambient light sensor
- add driver for Vishay VEML6031 High Accuracy Ambient Light Sensor.
- add new compatible "vishay,veml6031".
- read and write consecutive 8 bit registers as bulk operation.
- add driver to build all test of sensors.
- support fetch and get.
- triggered mode and interrupt is not yet supported.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
2025-03-14 14:40:12 +01:00
Sebastian Głąb
2e23dfd401 tests: drivers: audio: dmic_api: Enable test execution on nrf54l15
Enable execution of dmic_api test on nrf54l15:
- add 'dmic' to the list of supported peripherals;
- add overlay for nrf54l15;
- align Nordic's implementation of PDM driver to pass the test.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-03-14 09:24:16 +01:00
Verena Schweinstetter
a1c3131949 tests: drivers: Add test case for allegro a4979
Adding a test case for stepper driver implementation of
allegro a4979 microstepping programmable stepper motor driver.

Signed-off-by: Verena Schweinstetter <verena.schweinstetter@zeiss.com>
2025-03-14 09:23:57 +01:00
Quang Le
b7f99ffbdd drivers: gpio: Add support for RZ/N2L
Add GPIO driver for RZ/N2L

Signed-off-by: Quang Le <quang.le.eb@bp.renesas.com>
Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
2025-03-14 09:23:50 +01:00
Tien Nguyen
7e39286441 tests: drivers: dma: Add support for RZ/G3S-SMARC
Enable DMA driver tests for RZ/G3S-SMARC

Signed-off-by: Tien Nguyen <tien.nguyen.zg@renesas.com>
Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
2025-03-14 09:16:42 +01:00
Lyle Zhu
ec1b384917 tests: Bluetooth: BR: Add test suite sdp_client
IUT works as a SDP Client. The peer device, SDP server, is a PC with
running `bumble` on it.

Add shell command `discovery` to discover specific SDP record
according to specific UUID.

In the test suite, there are three groups test cases,
Group 1 is for Service Search Attribute transaction.
Group 2 is for Service Search transaction.
Group 3 is for Service Attribute transaction.

For each test group, there are four test cases,
Case 1, No SDP record is registered on PC. IUT should not find any SDP
record.
Case 2, A2DP source SDP record is registered on PC. IUT can find SDP
record. And the discovered PSM and version should be same with
registered.
Case 3, A2DP source and HFP HF SDP Records are registered. IUT can
find SDP record. And the discovered RFCOMM channel and HFP version
should be same with registered. This case is used to test the
"continuation state information".
Case 4, Multiple SDP Records are registered. This case is used to test
 the "continuation state information". And also it used to test the
total length exceeds the ACL RX Buffer Size.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-03-14 05:46:12 +01:00
Emil Gydesen
bd254eea25 tests: Bluetooth: Tester: Fix bad memset in btb_bap_broadcast
btp_bap_broadcast_local_source_free used &source, but since
source was already a pointer, it should just use source.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-03-14 01:02:22 +01:00
Chaitanya Tata
ac8c28f7b7 tests: drivers: nrf_wifi: Fix the tags
When the only changes are nrf_wifi module the twister runs with tag
"nrf_wifi" and restricts tests, and that excludes this test as well.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2025-03-14 01:01:07 +01:00
Emil Gydesen
25f3de75a2 tests: Bluetooth: CAP: Fix issues for CAP BSIM tests
Some CAP BSIM could not be built after some commits were merged.
One CAP test was missing a call to backchannel_sync_send_all
A change in the controller and/or timing seems to have triggered
an old issue on a bunch of tests. Theses tests have been disabled
while the issue is pending investigation.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-03-13 18:05:12 +01:00
Fabio Baltieri
60a9a202df kscan: drop kscan and any reference
Drop the whole kscan subsystem and reference to it.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2025-03-13 16:56:26 +00:00
Emil Gydesen
501b95ff9b Bluetooth: CSIP: Rename BT_CSIP_SET_MEMBER_NOTIFIABLE
Renamed BT_CSIP_SET_MEMBER_NOTIFIABLE to
BT_CSIP_SET_MEMBER_SIRK_NOTIFIABLE to be more specific.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-03-13 16:56:14 +00:00
Luis Ubieda
2bc963bfea tests: paa3905: Add node to Build-All tests
Basic, build time validation. No streaming validation supported by this
test, though.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-03-13 16:56:07 +00:00
Vincent van der Locht
21f839b754 tests: net: mdns: updated interface to match unicast MDNS function
To add the functionality conform rfc6762 chapter 6.7  the interface for
setup_dst_addr(...) has changed. This patch fixes the interface mismatch

Signed-off-by: Vincent van der Locht <vincent@synchronicit.nl>
2025-03-13 16:54:24 +00:00
Emil Gydesen
b2310b69bb tests: Bluetooth: Tester: Do not send MICP Mute ev on write cb
When the BT Tester gets the write response, it should not send
the state change event, as the write response may come
before the notifications, and in which case the state may
not have changed.

The BT Tester should always wait for the state change notification
before sending the event.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-03-13 10:49:35 +01:00
Sebastian Głąb
321fcaf44d boards: nordic: nrf54l20pdk: Add SPI to the supported peripherals
Enable Twister tests of SPI peripheral on nRF54L20pdk.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-03-13 10:48:30 +01:00
Emil Gydesen
5918427278 Bluetooth: Host: Make bt_le_addr_is_bonded public
Some GATT services and profiles define specific behavior
based on whether the remote device is bonded or not.
The internal function, bt_addr_le_is_bonded, is the
only function to do this, but it was kept internal,
and could thus not be used for those services
without including hci_core.h.

The function has been moved to the public API
so that application can determine if a remote
address is bonded or not, and has been renamed
to not use the bt_addr namespace, but rather the
bt_le.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-03-13 10:48:19 +01:00
Emil Gydesen
b8a9f1f3ed tests: Bluetooth: CAP: Refactor CAP broadcast tests to multiple tests
The cap_broadcast test has been split into 3 tests:
1) Regular test
2) Regular test with metadata update
3) Test for invalid parameters

This will make it easier to use the regular cap_broadcast test
for other test cases, as it does less now.
It also makes each test run faster seperately and reduce their
scopes.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-03-13 10:28:19 +01:00
Emil Gydesen
1148b9ac3e tests: Bluetooth: CAP and GMAP: Add TX/RX for AC tests
Add TX and RX verification for the audio configuration tests.
This requires modifying some of the underlying structures
used in those tests, as well as initializating and triggering
TX, and with verification of RX as well.

These tests were implemented to ensure that the streams are not
just established, but can send ISO data without issues.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-03-13 10:28:10 +01:00
Emil Gydesen
1f26899229 Bluetooth: TBS: Ensure sending notifications
The existing implemented only attempted to send all notifications,
but if host was out of ATT TX buffers the notifications would fail
and the client may miss out on important information, and would be
a spec violation.

This commit refactors notificatios in TBS so that they are always
sent.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-03-13 10:27:59 +01:00
Maureen Helm
b72deba645 tests: drivers: build_all: Keep sensor conf files sorted
Adds zephyr-keep-sorted-start and zephyr-keep-sorted-stop directives to
keep tests/drivers/build_all/sensor/*.conf sorted.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2025-03-13 07:40:54 +01:00
Maureen Helm
b023a3ee53 tests: drivers: build_all: Sort sensor conf files
Sorts tests/drivers/build_all/sensor/*.conf

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2025-03-13 07:40:54 +01:00
Jilay Pandya
761c6fbae6 tests: stepper_api: test stop, set_micro_step_res, set_micro_step_interval
unify error codes from all drivers based on stepper specification
add a generic test case for set_micro_step_interval and stop

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-13 07:31:06 +01:00
Jilay Pandya
f780df495d tests: stepper_api: create a scaffold to generalize tests
This commit creates a scaffold for executing stepper_api tests
on the existing step_dir drivers.

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2025-03-13 07:31:06 +01:00
Aksel Skauge Mellbye
b86d8c0030 tests: drivers: uart: Use EUSART0 as console on xg24_rb4187c
The UART test for USART needs to move the console to an EUSART instance
in order to free up USART0 for the test. Since EUSART1 is configured for
SPI use by the board DTS, use EUSART0 for console.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-03-13 07:22:11 +01:00
Khoa Nguyen
b331ed7f89 tests: drivers: comparator: Add support gpio_loopback for RA8
Add support gpio_loopback to run test app on ek_ra8m1,
ek_ra8d1, mck_ra8t1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-03-13 07:22:00 +01:00
Phuc Pham
a1ab2fc91a tests: drivers: adc: Add support for RZ/G3S-SMARC
Add test support for ADC driver of RZ/G3S-SMARC

Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com>
Signed-off-by: Binh Nguyen <binh.nguyen.xw@renesas.com>
2025-03-13 07:21:40 +01:00
Robert Lubos
867836741c tests: net: checksum_offload: Increase ztest stack size
The tests crash with a stack overflow on some platforms, therefore
increase the ztest stack size.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-03-12 19:04:44 +01:00
Chris Friedt
992ccfa738 tests: drivers: wifi: do not use deprecated posix kconfig
Use CONFIG_POSIX_TIMERS instead of CONFIG_POSIX_CLOCK.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-03-12 19:03:52 +01:00
Furkan Akkiz
4d1740ac99 tests: drivers: uart: Enable uart_async_api test for MAX78002EVKIT
Enable uart_async_api test for MAX78002EVKIT board.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2025-03-12 19:01:40 +01:00
Camille BAUD
8856fdc409 tests: Introduce greyscale-related tests modifications
This introduces greyscale-related changes to tests

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-03-12 14:05:14 +00:00
Sebastian Głąb
ee9d6b7af3 tests: boards: nrf: hwinfo: Extend test with RESET_CPU_LOCKUP
Extend test code with scenario that checks if:
- RESET_CPU_LOCKUP is detected;
- RESET_CPU_LOCKUP can be cleared.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-03-12 14:05:06 +00:00
Sebastian Głąb
81df84ae25 tests: drivers: watchdog: Add test for initialization of .bss and .data
In some configurations, code is copied from non-volatile memory
to RAM before a core (using that code) is booted.
When that core is reset by expired watchdog, variables shall be
restored to "initial" values.

This is problematic because the core is aware of copy in RAM.
It may not know address in non-volatile memory, where "original"
code is stored.

Add tests which verifiest that .bss and .data sections are
correct when core boots from reset caused by expired watchdog.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-03-12 14:04:44 +00:00
Michał Stasiak
588baa4022 tests: drivers: spi: Add further support for nRF54L20 PDK
Added support for nRF54L20 PDK in tests involving
multiple instances. Corrected pin assignements in
spi_error_cases test.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-03-12 14:04:15 +00:00
Krzysztof Chruściński
688b561815 tests: debug: Add test for cpu_load
Add test for CPU load.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-03-12 14:03:48 +00:00
Nicolas Pitre
7fb92c9eb1 tests: lib: multi_heap: fix stack overflow
Some platforms, notably ARM64, need more than 512 bytes of breathing
room on the stack. Very weird and difficult-to-track memory corruptions
were caused by test_mheap_realloc without this.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-03-12 07:15:12 +01:00
Khoa Nguyen
01706f34ac tests: drivers: adc: Update channel for adc0 on ek_ra4l1
Update channel for adc0 on adc_accuracy_test and adc_api
for ek_ra4l1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-03-12 07:14:08 +01:00
Hake Huang
5b1f0dbc04 tests: mbox: enable mbox test for rt1180
add rt1180 config for test mbox_data
using filter instead of platform_allow

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2025-03-12 07:13:44 +01:00
Christoph Seitz
b01b77aa44 tests: net: socket: Check length for AF_PACKET SOCK_DGRAM socket
This test checks that the length returned is not altered
even if the payload resembles a valid IPv4 or IPv6 length.

Signed-off-by: Christoph Seitz <christoph.seitz@infineon.com>
2025-03-12 02:29:02 +01:00
Chris Friedt
85aebac1c0 tests: posix: add one integration platform per suite
Add one integration platform per testsuite to reduce the number
of issues reported by the qa log level introduced in #86571.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-03-12 02:28:23 +01:00
Alberto Escolar Piedras
56fdebe933 tests/kernel/context: Remove BOARD_NATIVE_POSIX check
native_posix has been removed. There is no need to check for it
anymore.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-12 02:27:36 +01:00
Alberto Escolar Piedras
a8b44fd1d1 dts: zephyr,native-posix-cpu changed to zephyr,native-sim-cpu
The old binding remains until 4.4 but is deprecated.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-12 02:27:36 +01:00
TOKITA Hiroshi
7d599d1beb boards: Add support WizNet W5500 EVB Pico2
Add initial support for W5500 EVB Pico2

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2025-03-12 02:25:45 +01:00
Alberto Escolar Piedras
cb53e40ff9 drivers uart_native_posix: rename to native_pty and support N instances
Rename the driver from uart_native_posix to uart_native_pty.
Including renaming the DTS compatible, and kconfig options, deprecating
the old ones.

And refactor the driver, generalizing it, so we can have any number of
instances.
Note that, unfortunately generalizing to N instances cannot be done
without a degree of backwards compatibility breakage: This driver was
born with all its configuration and selection of the instances based on
kconfig.
When the driver was made to use DT, it was done in a way that required
both DT and kconfig needing to manually coherently enable the 2nd UART.
This has now been fixed, which it means only DT is used to decide how
many instances are avaliable, and UART_NATIVE_POSIX_PORT_1_ENABLE is
just ignored.

Including:
* Deprecate UART_NATIVE_WAIT_PTS_READY_ENABLE: the options is always on
  now as it has no practical drawbacks.
* Deprecate UART_NATIVE_POSIX_PORT_1_ENABLE: DTS intanciation defines it
  being available now.
* Rename a few functions and in general shorten pseudo-tty/pseudo-
  terminal to PTY instead of PTTY.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-11 18:54:02 +01:00
Anas Nashif
895d91169e tests/samples: use integration platforms where possible
When possible, add integration_platforms to samples/tests.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-11 11:35:15 +01:00
Anas Nashif
9ca316bef4 tests: pinctrl: improve filtering and let tesrt build/run
Test was filtered out due to wrong metadata, make it run in simulation
and set integration platforms.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-11 11:35:15 +01:00
Anas Nashif
d1af028ec2 tests: use simulators in integration platforms
Where applicable, pick a simulator as the integration platform.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-11 11:35:15 +01:00
Anas Nashif
abb5f52898 tests: settings: where possible, use simulators for integration platforms
We want to be able to run tests and get results in CI, not just build
for platforms we do not have access to.
Where possible, use a simulator instead of hw platforms.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-11 11:34:54 +01:00
Anas Nashif
7c985dea67 tests: zms: remove bogus filter using depends_on
zms is not something to be used with depends_on, it is a software
feature. looks like it was a copy/paste from an nvs test. This test was
always fitlered out and never built or ran on anything....

Use filter instead.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-11 11:34:54 +01:00
Bjarki Arge Andreasen
b33b82a758 tests: drivers: spi: update add pm-runtime-auto to nrf-spis
The nrf-spis instances require zephyr,pm-device-runtime-auto;
to be properly initialized.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-03-11 09:00:19 +01:00