Commit Graph

14672 Commits

Author SHA1 Message Date
Fin Maaß 03a5f417d1 net: sockets: socket_service: remove k_work related code
remove k_work related code and change
the argument of the callback to `struct net_socket_service_event`.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2024-10-23 11:32:21 +02:00
Alberto Escolar Piedras b1610b847d tests fff_fake_contexts: fix board name
Use full board name in cmake file.
Akin to the fix done in zephyrproject-rtos#80270
zephyrproject-rtos#80270
following the changes from
zephyrproject-rtos#77250
In which twister now uses the full board name when calling cmake.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-10-23 11:19:45 +02:00
Alberto Escolar Piedras b9ec4e5396 tests: ztest base: fix board name
Use full board name in cmake file.
Akin to the fix done in #80270
https://github.com/zephyrproject-rtos/zephyr/pull/80270/
following the changes from
https://github.com/zephyrproject-rtos/zephyr/pull/77250/
In which twister now uses the full board name when calling cmake.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-10-23 11:19:45 +02:00
Anas Nashif 39917ae5e6 tests: ztest: fix board name
Use full board name in cmake file.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-10-22 22:47:21 -04:00
Swift Tian c9a1db6e7e tests: mspi: fix incorrect DT macro used in api test
DT macro should be used is DT_ENUM* for enum type bindings

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
2024-10-22 22:46:47 -04:00
Jilay Pandya 271aeaf5f9 tests: drivers: stepper: stepper_api: test cb user_data
This commit does the following:
1. tests set_callback and user_data
2. fixes the api as well as the drivers by passing user_data
back to the set callback

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
2024-10-22 22:46:26 -04:00
Stephanos Ioannidis a93095626b tests: benchmarks: wait_queues: Increase test timeout to 120s
This commit increases the test timeout for the wait queue benchmark tests
to 120 seconds because these tests frequently hit the default timeout of 60
seconds during execution.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2024-10-22 19:04:37 -04:00
Anas Nashif dfc7860ab1 twister: rework board handling
We now use hwmv2 to list boards instead of relying on twister specific
config files.
One yaml files (twister.yaml for now) will have all the data needed for
all possible targets and variations of a board reusing most of the data
where possible and variations can override the top level data.

Twister keeps track of 'aliases' of boards and identifies that for
example native_sim is the same as native_sim/native, so either names
will be possible in both test yaml files or on the command line,
however, the reporting will always use the full name, so no there is no
confusion about what is being tested/built.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-10-22 18:31:09 -04:00
Anas Nashif 8c67423849 tests: use full name for fvp_base_revc_2xaemv8a//smp/ns
no shortcuts allowed in test files

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-10-22 18:31:09 -04:00
Anas Nashif ea03011d1c tests: zbus: use full target name
Do not use shortcuts...

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-10-22 18:31:09 -04:00
Tom Burdick 5bd0912c76 i2c: Drop transceive test, fix transfer call count
Transactions should result in a single transfer call not multiple
transfer calls. Transceive isn't supported by i2c and so the TXRX op
isn't validated for success anymore.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2024-10-22 18:29:34 -04:00
Dimitrije Lilic 2507752d7f tests: drivers: spi: spi_loopback: Support RTIO tests for APARD32690
Add overlay for APARD32690 board and add a new test case to
test RTIO functionalities of SPI MAX32 driver.

Signed-off-by: Dimitrije Lilic <dimitrije.lilic@orioninc.com>
2024-10-22 20:42:20 +02:00
TOKITA Hiroshi e78811bcd6 tests: drivers: build_all: ethernet: Add devices build tests
Add build tests for following devices.

- microchip,ksz8081
- realtek,rtl8211f
- nxp,tja1103
- microchip,lan865x

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2024-10-22 20:42:05 +02:00
Luis Ubieda 9e45529438 tests: build_all: sensor: Add int-gpios to ICM42688
Required to use trigger modes.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2024-10-22 20:41:43 +02:00
Stephanos Ioannidis 871b558524 tests: thrift: Remove 'newlib' from test identifiers
The Thrift module tests were under the "newlib" namespace, presumably
because newlib was the default at the time of their introduction.

Since newlib is no longer the default libc and Thrift is not being tested
against multiple C libraries, this removes the libc type from the Thrift
test identifiers.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2024-10-22 20:40:20 +02:00
Neil Chen 98110e2946 tests: drivers: can: timing: enable full timing test on frdm_mcxn236
Enable the full range of CAN timing tests on the NXP FRDM-MCXN236 board.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2024-10-22 20:39:50 +02:00
Sadik Ozer d8753a119d tests: drivers: flash: Add MAX32690 boards overlay file
Enable flash driver test for MAX32690 boards.

Signed-off-by: Mert Vatansever <mert.vatansever@analog.com>
Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2024-10-22 20:39:41 +02:00
Tahsin Mutlugun ab49ba41d4 tests: drivers: flash: Add MAX32680EVKIT board overlay file
Enable flash driver tests for MAX32680EVKIT board.

Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
2024-10-22 20:39:41 +02:00
Sadik Ozer 5aae75548c tests: drivers: flash: Add MAX32675EVKIT board overlay file
Enable flash driver test for MAX32675EVKIT board.

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2024-10-22 20:39:41 +02:00
Sadik Ozer ccd84905ad tests: drivers: flash: Add MAX32672 boards overlay file
Enable flash driver test for MAX32672 boards.

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2024-10-22 20:39:41 +02:00
Sadik Ozer 931d89e6b8 tests: drivers: flash: Add MAX32670EVKIT board overlay file
Enable flash driver test for MAX32670EVKIT board.

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2024-10-22 20:39:41 +02:00
Furkan Akkiz 198518df5b tests: drivers: flash: Add MAX32666 boards overlay file
Enable flash driver test for MAX32666 boards.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2024-10-22 20:39:41 +02:00
Furkan Akkiz b2b8957d80 tests: drivers: flash: Add MAX32662EVKIT board overlay file
Enable flash driver test for MAX32662EVKIT board.

Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
2024-10-22 20:39:41 +02:00
Sadik Ozer 539a7a18d6 tests: drivers: flash: Add MAX32655 boards overlay file
Enable flash test for MAX32655 boards.

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2024-10-22 20:39:41 +02:00
Emil Gydesen afb7d961d2 tests: Bluetooth: tester: Add nRF5340 ADK as platform
Add support for building and running the BT tester on the
nrf5340_audio_dk.

This is copying the configuration used for the nRF5340 DK.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-10-22 20:39:30 +02:00
Jukka Rissanen 12dadf7a24 tests: net: pkt: Add build test for allocation statistics
Make sure we build test the allocation statistics.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-10-22 20:38:57 +02:00
Krzysztof Chruściński 6e653a96f7 tests: boards: nrf: qdec: Fix failing drivers.sensor.qdec.pm_runtime
Test was failing because after re-enabling QDEC there is an interrupt
REPORTRDY coming after some time. Test had k_msleep(100) added to
accomodate for that but it was added after sensor_sample_fetch and
should be added before so that sample with data from REPORTRDY event
is fetched so that next read is empty as expected.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-22 08:21:19 -04:00
Maximilian Deubel a441492c7d tests: net: lib: wifi_credentials: add tests
This patch adds tests for the wifi_credentials library.

Both the main functions and the backend implementations are tested.

Signed-off-by: Maximilian Deubel <maximilian.deubel@nordicsemi.no>
2024-10-22 08:21:04 -04:00
Nithin Ramesh Myliattil b717488be2 bluetooth: BAS: add battery critical status char to bas service
Added the battery critical status char to bas service
as per bas_1.1 spec. Updated BSIM test for BAS service
to test the INDs of BAS critical characteristic.

Signed-off-by: Nithin Ramesh Myliattil <niym@demant.com>
2024-10-22 14:06:35 +02:00
Szymon Janc 298c01cb97 Bluetooth: Tester: Set ISO MTU to 310
This makes sure we always fit all configurations. Worst case is two
audio streams in 48_6 configuration in single ISO channel (2x155).

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2024-10-22 14:05:31 +02:00
Szymon Janc 5453acb9b7 Bluetooth: Tester: Fix BTP response for BAP Send Data command
struct btp_bap_send_rp is already fixed size and contain extra
response byte.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2024-10-22 14:05:31 +02:00
Szymon Janc 3e5472d4c3 Bluetooth: Tester: Send test data when entering streaming state
For now this seems to be required by PTS as there is not Upper Tester
action for this in Test Specification.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2024-10-22 14:05:31 +02:00
Wajdi ELMuhtadi fb45c6d93a drivers: sensor: wsen_hids_2525020210002: add sensor driver
Add wsen_hids_2525020210002 driver with
the corrected name and compatibility with
the hal update as well as added new features.

Signed-off-by: Wajdi ELMuhtadi <wajdi.elmuhtadi@we-online.com>
2024-10-22 14:03:08 +02:00
Chris Ruehl a3f863e3f1 Drivers: Sensors: Bosch bmp390 merge into bmp388
Add support for Bosch bmp390 sensor, the drop in replacement for the
bmp388 with same register but different chip-id. This patch make use
of "bosch_bmp390" or "bosch_bmp388" and set the specific chip-id in a
data->chip-id variable, which then used to check against the register
value.

Additional, manual shift operation had been replaced with ENDIAN safe
macros and calibration values with target variable of int16_t add a
cast for it.

bmp388_spi: read register implementation wrong, fixed it.
tx-buffer must be <addr><dummy><dummy> in order to receive the
register value. Read registers in burst mode and have rx and tx
buffer same spi_buf to avoid clock stop and delay with nrf5.

Signed-off-by: Chris Ruehl <chris@gtsys.com.hk>
2024-10-22 13:58:33 +02:00
Bjarki Arge Andreasen 3272db87a4 tests: drivers: comparator: add gpio_loopback test suite
Add test suite which uses GPIO loopback to produce a "very low" and
"very high" voltage at the positive input of the comparator using the
output of a GPIO. The negative input is set to a voltage between the
high and low output voltages of the GPIO using whichever internal
reference is available to the comparator.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2024-10-21 18:50:45 -05:00
Ibe Van de Veire bb76d22540 test: net: igmp: Cleanup asserts
Cleanup of existing asserts in the IGMP test.

Signed-off-by: Ibe Van de Veire <ibe.vandeveire@basalte.be>
2024-10-21 18:41:47 -05:00
Ibe Van de Veire fa07b9fcf1 test: net: igmp: Add IGMP query test
Add functionality to test the IGMP query handling. This test should
prevent the IGMP logic from sending IGMPv3 messages to IGMPv2 queriers.
The test does now also check backwards compatability when IGMPv3 queries
are received but only IGMPv2 is enabled.

Signed-off-by: Ibe Van de Veire <ibe.vandeveire@basalte.be>
2024-10-21 18:41:47 -05:00
Declan Snyder c01ccfe719 boards: frdm_mcxw71: Enable LPSPI
Enable LPSPI1 controller on frdm_mcxw71 and spi loopback test

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2024-10-21 18:39:49 -05:00
Peter Mitsis cedd36106b kernel: Begin abstracting out _sched_spinlock
In a uniprocessor system, _sched_spinlock may not need to be
held in all the same cases that it does in a multiprocessor
system. Removing those unnecessary usages can lead to better
performance on UP systems. In the case of uncontested taking
and giving of a semaphore, this can be as much as a +14%
performance gain.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-10-21 18:38:00 -05:00
Keith Packard f98c4f6812 tests/libcxx: Check for newlib nano when testing that
Add a check for CONFIG_HAS_NEWLIB_LIBC_NANO in the
cpp.libcxx.glibcxx.newlib_nano test.

Signed-off-by: Keith Packard <keithp@keithp.com>
2024-10-21 18:34:40 -05:00
Juliane Schulze 7adcebc675 vcnl36825t: add trigger capability
Adds trigger capability to the Vishay VCNL36825T sensor.

Signed-off-by: Juliane Schulze <juliane.schulze@deveritec.com>
2024-10-21 12:41:12 +02:00
Tu Nguyen Van 55bcc4a576 tests: drivers: spi: enable test spi_loopback
enable test spi_loopback for dspi feature on s32z27x
devices

Signed-off-by: Tu Nguyen Van <tu.nguyenvan@nxp.com>
2024-10-21 12:39:04 +02:00
Carles Cufi 51c1e45301 soc: nordic: Remove the nRF54L15 EngA
The production version of the nRF54L15 SoC is now available, so remove
the initial Engineering A (EngA) preview version.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2024-10-21 01:46:39 +01:00
Carles Cufi cb47c62259 boards: nordic: Remove nRF54L15 PDK
The nRF54L15 Development Kit is now available, so remove the Preview
Development Kit (PDK).

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2024-10-21 01:46:39 +01:00
Carles Cufi c85e418eda boards: nordic: nrf54l15dk: Fix references to pdk
A bunch of copy-paste mistakes when adding the nRF54L15 DK added stale
references to the Preview DK (PDK).

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2024-10-21 01:46:39 +01:00
Pavel Vasilyev 1fbcc0e6f9 tests: bluetooth: host: conn: Add bt_conn_le_create unit test
Add a test that checks behavior of
CONFIG_BT_CONN_CHECK_NULL_BEFORE_CREATE Kconfig option.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2024-10-18 17:46:04 +01:00
Gerard Marull-Paretas f989711a60 pm: s/power-domain/power-domains and add power-domain-names
Some devices may belong to >1 power domain, so with the current design
this is something not possible to describe. It's worth to note that
Linux also uses the `power-domains` naming scheme, not `power-domain`.
This patch also introduces `power-domain-names` so that each entry in
`power-domains` can be given a name if needed. `#power-domain-cells`
is now required as well.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-10-18 17:45:21 +01:00
Bjarki Arge Andreasen 0502189729 tests: drivers: comparator: shell: use platform_allow
Change integration_platform -> platform_allow to not build the
shell test suite for all supported boards.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2024-10-18 17:44:30 +01:00
Nikodem Kastelik e9f1f41e28 tests: drivers: retained_mem: api: add support for nrf54h20
retained_mem driver is now compatible with nrf54h20 cpuapp & cpurad.
Also add missing .conf for nrf54l15.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
2024-10-18 08:17:53 -04:00
Mustafa Abdullah Kus abea54e574 test: net: lib: add prometheus library tests
Tests for prometheus library support.
It contains integration and unit test
each metric types.

Signed-off-by: Mustafa Abdullah Kus <mustafa.kus@sparsetechnology.com>
2024-10-18 14:17:11 +02:00