Commit graph

16700 commits

Author SHA1 Message Date
Flavio Ceolin
dfde32144a drivers; crypto: Remove TinyCrypt shim
TC crypto driver was depecrated in 4.0 release. Time to
remove it \o/

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
2025-05-23 17:41:06 -04:00
Stefan Schwendeler
b234e86ca6 tests: net: lib: lwm2m: detects no-operation setter and getter functions
Test case `test_set_bulk` and `test_get_set` test the LwM2m getter and
setter function by
- init a buffer with some value
- calling lwm2m_set_... with buffer as parameter
- calling lwm2_get_... by letting `get` write-back into the same
  buffer(!)
- compare the buffer with the init value

That implementation can't recognize a no-operation getter function.

This change adds some C macro magic for both test cases where
an `out` buffer for setter and an `in` buffer for getter functions
exists. The buffers are checked before use for inequality to avoid
any unexpected pass.

Signed-off-by: Stefan Schwendeler <Stefan.Schwendeler@husqvarnagroup.com>
2025-05-23 19:49:54 +02:00
Robert Lubos
00d214c3ae tests: net: http_client: Add new testsuite for HTTP client
And some basic tests.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-05-23 17:20:24 +02:00
Bartlomiej Buczek
5406259c47 tests: drivers: gpio_hogs: Add nrf54 platforms.
Add overlays and entries in testcase.yaml to enable tests execution on
nrf54 DKs.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2025-05-23 15:31:30 +02:00
Bartlomiej Buczek
4dea09da3f test: drivers: gpio: turn off rand generator.
Generator was enabled some time ago to use sys_rand32_get() however this
function is no longer in use.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
2025-05-23 14:04:45 +02:00
Adam Kondraciuk
bc06d8522e tests: kernel: timer: Align timer tests to nRF54
The new Nordic platforms use GRTC instead of RTC
as the system timer.
Also the nrf54h20 CPUPPR target does not have enough memory
to execute the `timer_behavior` test.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2025-05-23 14:04:29 +02:00
Jaro Van Landschoot
79f5575f46 tests: drivers: build_all: audio: add pcm1681 to tests
Add an spi overlay for the audio build_all tests.
Add the pcm1681 to both i2c and spi overlays.

Signed-off-by: Jaro Van Landschoot <jaro.vanlandschoot@basalte.be>
2025-05-23 11:03:32 +02:00
Chris Friedt
13fe95b51d tests: lib: timeutil: add timespec util testsuite
Add a timespec util testsuite. This should have reasonably high enough
coverage to be useful.

I would have preferred to add this as an architecture-independent
unit test (for the unit_testing platform) under tests/unit/timeutil but
there is an inconsistency about the size of time_t on the unit_testing
and native_sim/native platforms. On every other platform supported by
Zephyr, time_t is 64-bits. However, on those platforms, time_t is only
32-bits.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-05-22 23:57:17 +02:00
Alain Volmat
1d6c2c7926 drivers: video: introduction of imx335 sensor driver
Add support for the Sony IMX335 CSI sensor.
This sensor supports resolution of 2592x1944 in RGGB bayer format
either 10 or 12 bits and using 2 or 4 CSI lanes.
For the time being only 10 bits on 2 CSI lanes is supported via
this commit.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-05-22 20:56:38 +02:00
Sebastian Bøe
c0c4170c42 soc: nrf54: Port SYS_INIT to use soc_early_init_hook
Port SYS_INIT to use soc_early_init_hook as SYS_INITs are legacy.

Due to moving dmm_init() from PRE_KERNEL_1 SYS_INIT to
soc_early_init_hook(), the DMM test is also updated to ensure that
its setup function runs before dmm_init().

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>
2025-05-22 16:17:35 +02:00
Krzysztof Chruściński
eafe83d3f2 tests: unit: Fix zassert string
Fix wrong parameter used in zassert macros.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-05-22 16:17:23 +02:00
Krzysztof Chruściński
6f4f72d1a3 tests: subsys: Fix zassert string
Fix wrong parameter used in zassert macros.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-05-22 16:17:23 +02:00
Krzysztof Chruściński
a068293559 tests: drivers: Fix zassert string
Fix wrong parameter used in zassert macros.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-05-22 16:17:23 +02:00
Krzysztof Chruściński
96e2f8bcd0 tests: lib: Fix zassert string
Fix wrong parameter used in zassert macros.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-05-22 16:17:23 +02:00
Krzysztof Chruściński
6ea6e5704d tests: arch: Fix zassert string
Fix wrong parameters used in zassert macros.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-05-22 16:17:23 +02:00
Krzysztof Chruściński
95737cda54 tests: boards: Fix zassert string
Fix wrong parameter used in zassert macros.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-05-22 16:17:23 +02:00
Krzysztof Chruściński
07a729b480 tests: fs: Fix zassert strings
After introducing compile time argument validation of strings
used in zassert macros multiple warnings appear. Fix all of
them.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2025-05-22 16:17:23 +02:00
Robert Lubos
6aa8f3fe57 tests: net: socket: tls_ext: Add test case for cert veirfy cb option
Add test case to verify if TLS_CERT_VERIFY_CALLBACK socket option works
as expected.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-05-22 13:44:43 +02:00
Robert Lubos
0956271bc3 tests: net: socket: tls_ext: Add test case for verify result option
Add test case to verify if TLS_CERT_VERIFY_RESULT socket option works as
expected.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-05-22 13:44:43 +02:00
Robert Lubos
6be66aac60 tests: net: socket: tls_ext: Extract common code into functions
Extract server configuration, client configuration and test shutdown
into separate functions so that they're reusable in other tests.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-05-22 13:44:43 +02:00
Jordan Yates
1abe095b8e tests: net: conn_mgr_nsos: added
Add basic tests for the NSOS Connectivity Manager implementation.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-05-22 11:31:54 +02:00
Keith Packard
47f2136e3c tests/kernel: Adapt to picolibc 1.8.10 symbol changes
Picolibc changed things like _WANT_MINIMAL_IO_LONG_LONG to
__IO_MINIMAL_LONG_LONG in an attempt to regularize the exposed names and
eliminate names that weren't prefixed with even a single underscore.

Adapt to this change by looking for both old and new symbols.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-05-22 02:21:01 +02:00
Oleg Kokorin
7b7b0de6d6 boards: quail: MikroBUS
boards: mikroe: Add quail board

Signed-off-by: Oleg Kokorin <ole2mail@mail.com>
2025-05-21 20:10:48 +02:00
Lauren Murphy
7bbe425fe4 llext: basic x86 support
Adds basic x86 support for LLEXT.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
2025-05-21 19:57:20 +02:00
Alberto Escolar Piedras
b2ee13cc12 tests/net/socket/af_packet: Fix typo
Just a typo

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-05-21 12:35:28 +02:00
Alberto Escolar Piedras
4d4f3728c9 tests/bluetooth & bsim: Fix code compliance issues
Fix issues detected by checkpatch

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-05-21 12:35:28 +02:00
Alberto Escolar Piedras
7be8872e6b tests/kernel: Fix code compliance issues
Fix issues detected by checkpatch

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-05-21 12:35:28 +02:00
Fabrice DJIATSA
23b3602aa1 tests: drivers: spi: spi_loopback: update gpdma1 request sel
According to wba55 refman RM0493, gpdma1 request for
spi1_rx_dma and spi1_tx_dma is 1 and 2.

solve failed test on drivers.spi.stm32_spi_dma.loopback
scenario.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-05-21 12:34:12 +02:00
Fabrice DJIATSA
4418b90c84 tests: drivers: uart: uart_async_api: update uart driver test
add stm32u083c_dk overlay file for driver test purpose.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-05-21 12:33:43 +02:00
Fabrice DJIATSA
3b88b3cd4c tests: drivers: spi: spi_loopback: update spi_loopback test
- add stm32u083c_dk board for spi_loopback driver test.
- update testcase yaml file for CI integration

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-05-21 12:33:43 +02:00
Jukka Rissanen
75860479cd tests: net: ipv6: Fix deprecated address selection
Make sure the IPv6 address selection works as specified.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-05-21 09:30:22 +02:00
Alex Apostolu
e0417c7a36 Tests: Subsys: Logging: removed unused variable
Removed unused variable test_msg.

Signed-off-by: Alex Apostolu <apostolu240@gmail.com>
2025-05-21 08:02:08 +02:00
Shrek Wang
20489a1f18 net: tcp: Fix TCP reset issue
According to RFC793 chapter3.5 with the 'Reset Processing' part,
"In the SYN-SENT state (a RST received in response to an initial
SYN), the RST is acceptable if the ACK field acknowledges the SYN."
So, in the net_tcp_reply_rst() we should use 'ack++' if no ACK
flag but have SYN flag.
And, all the RST packet should use net_tcp_reply_rst() instead of
tcp_out().

Signed-off-by: Shrek Wang <inet_eman@outlook.com>
2025-05-21 08:01:55 +02:00
Sadik Ozer
6dc0ef4a48 tests: subsys: jwt: Exlucde JWT test from auto tests
JWT test fails on max32657evkit/max32657/ns board, due to
it requries hardware TRNG on TF-M side which not activated
yet until it's issue been fixed it is excluded from automated
test to workflow been succeeded

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
2025-05-21 08:01:25 +02:00
Sebastian Głąb
f47f3fe410 tests: drivers: spi: spi_loopback: Test fast instance at low frequency
Due to limited value of clock divider, fast SPI instance
can work only at higher bitrates.

Add check for error message when fast instance is
configured to work at low/unsupported bitrate.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-05-20 22:38:08 +02:00
Daniel Leung
5413270502 tests: stack_unwind/x86: no need to force no optimizations
Previously, forcing no compiler optimizations is required for
x86_64 to unwind stack. However, this is not the case anymore
as long as frame pointers are not omitted. So update custom
kconfigs for x86 in the stack_unwind test.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-05-20 22:37:57 +02:00
Declan Snyder
74f3b7faa9 tests: spi_loopback: Add CS testing
Add test code to ensure CS is behaving properly in many different
scenarios.

Also add a test case for the SPI_HOLD_ON_CS flag in the API.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-05-20 22:37:35 +02:00
Declan Snyder
a6273993ee tests: spi_loopback: Add test case of multithread
Add test cases for multithread access with both same spec and different
specs to make sure nothing goes awry.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-05-20 22:37:35 +02:00
Declan Snyder
972dac1a73 tests: spi_loopback: Add timing testcase
Add testcase to ensure some aspects of the timing is correct.

If the transfer happens faster than it should, fail the test.
If the transfer takes way longer than it should, fail the test.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-05-20 22:37:35 +02:00
Declan Snyder
4b7ba78b40 tests: spi_loopback: Add test cases for clock modes
Turn the old spi_complete_loop case into 4 cases to test configuring
the different clock modes. The old case was kind of redundant with
everything else anyways so this is more useful to replace it with.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-05-20 22:37:35 +02:00
Declan Snyder
60d9a16040 tests: spi_loopback: Add different wordsize tests
Add tests for different data frame sizes,
as long as the controller can handle that word size.

Starting out with new tests of 7, 9, 16, 24, 32, 64.

The skipping behavior of ZTest is still not clear for me so for now just
return instead of using zassume or ztest skip if not supported.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-05-20 22:37:35 +02:00
Declan Snyder
ddb372e602 tests: spi_loopback: Add testcases for same bufs
A common usage of the SPI API by in tree consumers is to have one
underlying buffer used to both RX to and TX from. Add some test cases
ensuring this works properly:
- A case to ensure that RX writes back properly the same data that was
  TX from the buf.
- A case simulating a very common paradigm which is to use one
  underlying buf but declare the spi buf sets as though the first word
  is a command from TX and the rest are data for RX.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-05-20 22:37:35 +02:00
Andrzej Głąbek
610a7e2241 tests: arch: arm_irq_vector_table: Fix IRQ number used by nRF GRTC
Instead of using hard-coded GRTC_0_IRQn value, obtain information from
DT to get the IRQ number actually used by the nrf_grtc_timer driver.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-05-20 18:28:13 +02:00
Josuah Demangeon
c67b915482 drivers: video: shell: introduce the video shell
Introduce the video shell and implement some video shell commands.
Make use of the various querying API to implement tab-completion, and
validiate the data, as well as convert string names into integers.
Commands provided: frmival, format, ctrl, start, stop, capture

Signed-off-by: Josuah Demangeon <me@josuah.net>
2025-05-20 18:27:43 +02:00
Phi Bang Nguyen
0c1e2c9e6d drivers: video: Move format pitch setting to bridge drivers
The format pitch (bytesperline) field is typically set by the bridge
drivers, i.e. DMA, ISP drivers who actually handle the memory as they
know exactly the memory layout constraints.

Application just set the pixel format and resolution and must always
read back this field to see what the driver actually sets (to allocate
buffers for example).

Also, drop format pitch setting in sensor drivers as this is not needed.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-05-20 18:27:35 +02:00
Phi Bang Nguyen
fcadb792be drivers: video: Compute bits per pixel according to format
Compute bits per pixel according to the pixel format instead of
hardcoding it.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-05-20 18:27:35 +02:00
Bjarki Arge Andreasen
b7d663297e tests: drivers: clock_control: nrf_clock_control: update fll16m
Update the nrf clock control test suite to not attempt to set the
removed closed loop mode of the fll16m clock.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-20 16:08:31 +01:00
Aleksandr Khromykh
b3e5aba6ba tests: bluetooth: mesh: bsim test to check memory leak after suspending
Commit adds mesh bsim test to check adv pool memory leakage
after mesh has been suspended.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2025-05-20 15:25:06 +02:00
Bindu S
95ddb09bb5 tests: drivers: smbus: Enabled smbus test for BTL-S platform
Added overlay for smbus for intel_btl_s_crb platform.

Signed-off-by: Bindu S <bindu.s@intel.com>
2025-05-20 15:24:18 +02:00
Bindu S
a63bf7727e tests: drivers: pwm: Enabled PWM test for BTL-S
Enabled pwm tests for intel_btl_s_crb platform.

Signed-off-by: Bindu S <bindu.s@intel.com>
2025-05-20 15:24:18 +02:00