Commit graph

6539 commits

Author SHA1 Message Date
Krzysztof Chruscinski
8ca8280cc3 tests: lib: ringbuffer: Fix preempt_cnt not being reset
Counter was not reset between various tests which may hide the fact
that number of preemptions is less than expected.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2021-09-02 19:38:37 -04:00
Krzysztof Chruscinski
ad6fc38b2f tests: lib: ringbuffer: Fixing tests for various platforms
Stress test that was validating thread safeness was configured to use
higher sys tick rate and targeting qemu_x86 platform. However, it was
also build for other platforms and was failing. Fixing it by extracting
stress tests to separate configuration that is run only on qemu_x86.

Modified the test to fail when number of preemptions is less than
expected only on qemu_x86.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2021-09-02 19:38:37 -04:00
Nicolas Pitre
5a384b9ea8 lib/os/cbprintf_nano.c: avoid sign extension on unsigned formats
There might be a sign extension when a long is promoted to
int_value_type and the former type is smaller than the later.
This produces the wrong output if the specified format is unsigned.

Let's avoid this problem by handling signed and unsigned cases
explicitly. When the type already matches int_value_type then the
compiler is smart enough to recognize the redundancy and removes
unneeded duplications automatically, meaning that the code will stay
small when code size matters.

A similar issue also existed in the restricted %llu case.
The fix is the same as above.

Those fixes exposed wrong results in the printk.c test with %llx
so fix that as well.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2021-09-02 19:37:06 -04:00
Hake Huang
6232ade277 tests: add spi dma loop test on frdm_k64f
add spi edma loop mode test

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2021-09-02 15:50:52 -05:00
Gerson Fernando Budke
28ba3b5e50 tests: drivers: adc: Add sam0 boards configs
Add sam0 boards configuration to test api.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-09-02 06:45:35 -04:00
Mahesh Mahadevan
c3379a8264 tests: i2s: Add support for LPCXpresso55S69
Update I2S tests for LPCXpresso55S69

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2021-09-01 14:39:03 -04:00
Sigvart Hovland
ad4daa722a drivers: flash: add specific api for access flash_simulator RAM
For getting the address of the RAM region in the application we need to
extend the api for the flash_simulator.

This path introduce flash_simulator_get_memory() call which allow to
do so.

Signed-off-by: Sigvart Hovland <sigvart.m@gmail.com>
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2021-09-01 12:09:58 +02:00
Yong Cong Sin
885e830dd5 tests: drivers: buildall: modem: exclude litex_vexriscv
Excluding litex_vexriscv as UART_LITEUART doesn't support interrupts.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2021-08-31 17:33:34 -04:00
Yong Cong Sin
9d2f8a1124 drivers: modem: gsm_ppp: Use DTS
Convert the gsm_ppp driver to use DTS.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2021-08-31 17:33:34 -04:00
Trond Einar Snekvik
2435419416 tests: bluetooth: mesh: Remove dead code
Removes all the dead ternary expressions in the mesh bluetooth tester.

Fixes #37983.

Signed-off-by: Trond Einar Snekvik <Trond.Einar.Snekvik@nordicsemi.no>
2021-08-31 11:03:06 -04:00
Jim Shu
f9726c9186 boards: riscv: add initial support of adp_xc7k_ae350 board
Adding adp_xc7k_ae350 board support based on andes_ae350 soc. It's base
support and only contains uart/gpio drivers.

Signed-off-by: Jim Shu <cwshu@andestech.com>
2021-08-30 13:40:14 -04:00
Carlo Caione
0f3d2d9230 test: Add arm64_high_addresses test
Latel we have had several failures and regressions due to the setting of
CONFIG_SRAM_BASE_ADDRESS to really high values (over the 4GB boundary).
To try to catch these problems as early as possible we add a build-only
test based on the hello_world_user sample that tries to compile the test
using a combination of CONFIG_SRAM_BASE_ADDRESS and
CONFIG_KERNEL_VM_BASE set to high values in memory.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2021-08-30 13:38:07 -04:00
Stephanos Ioannidis
96c7f6ab75 tests: lib: cmsis_dsp: Disable testing on mps3_an547
This commit disables running the CMSIS-DSP tests on the mps3_an547
board because the QEMU, which is default emulation platform for it,
does not currently support the emulation of the MVE instructions.

Refer to the issue #37694 for more details.

Revert this commit once QEMU 6.2 is released and integrated into the
Zephyr SDK.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
f27dcd9ae5 tests: lib: cmsis_dsp: quaternionmath: Add F32 tests for 1.9.0
This commit adds the quaternionmath F32 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
8b5af6fefc tests: lib: cmsis_dsp: interpolation: Add F16 tests for 1.9.0
This commit adds the interpolation F16 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
4193c5a1be tests: lib: cmsis_dsp: interpolation: Add F32 tests for 1.9.0
This commit adds the interpolation F32 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
e3b9a5b894 tests: lib: cmsis_dsp: interpolation: Add Q31 tests for 1.9.0
This commit adds the interpolation Q31 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
1efe2de925 tests: lib: cmsis_dsp: interpolation: Add Q15 tests for 1.9.0
This commit adds the interpolation Q15 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
c93a089288 tests: lib: cmsis_dsp: interpolation: Add Q7 tests for 1.9.0
This commit adds the interpolation Q7 test patterns and implementations
for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
6547025bc1 tests: lib: cmsis_dsp: transform: Add CF16 tests for 1.9.0
This commit adds the transform CF16 test patterns and implementations
for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
600ca01464 tests: lib: cmsis_dsp: transform: Add RF16 tests for 1.9.0
This commit adds the transform RF16 test patterns and implementations
for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
5600e4d3d3 tests: lib: cmsis_dsp: transform: Update CF64 tests for 1.9.0
This commit updates the transform CF64 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
86445c7075 tests: lib: cmsis_dsp: transform: Update CF32 tests for 1.9.0
This commit updates the transform CF32 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
8c3d8db6d8 tests: lib: cmsis_dsp: transform: Update CQ31 tests for 1.9.0
This commit updates the transform CQ31 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
d32aea8a7a tests: lib: cmsis_dsp: transform: Update CQ15 tests for 1.9.0
This commit updates the transform CQ15 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
f0b93a4f34 tests: lib: cmsis_dsp: transform: Update RF64 tests for 1.9.0
This commit updates the transform RF64 test patterns for the CMSIS-DSP
1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
b9ae988e73 tests: lib: cmsis_dsp: transform: Update RF32 tests for 1.9.0
This commit updates the transform RF32 test patterns for the CMSIS-DSP
1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
8e94c78781 tests: lib: cmsis_dsp: transform: Update RQ31 tests for 1.9.0
This commit updates the transform RQ31 test patterns for the CMSIS-DSP
1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
c687703178 tests: lib: cmsis_dsp: transform: Update RQ15 tests for 1.9.0
This commit updates the transform RQ15 test patterns for the CMSIS-DSP
1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
064c04290e tests: lib: cmsis_dsp: svm: Add F16 tests for 1.9.0
This commit adds the svm F16 test patterns and implementations for the
CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
2bff4b3ae5 tests: lib: cmsis_dsp: svm: Update F32 tests for 1.9.0
This commit updates the svm F32 test patterns and implementations for
the CMSIS-DSP 1.9.0.

Note that the one-class SVM test has switched from using RBF to linear.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
4d90ce5b8a tests: lib: cmsis_dsp: support: Add barycenter F16 tests for 1.9.0
This commit updates the support barycenter F16 test patterns for the
CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
0f294e2a1f tests: lib: cmsis_dsp: support: Update barycenter F32 tests for 1.9.0
This commit updates the support barycenter F32 test patterns for the
CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
c32a7ac598 tests: lib: cmsis_dsp: support: Add F16 tests for 1.9.0
This commit adds the support F16 test patterns and implementations for
the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
58cecdad74 tests: lib: cmsis_dsp: support: Update F32 tests for 1.9.0
This commit updates the support F32 test patterns and implementations
for the CMSIS-DSP 1.9.0.

Note that the spline interpolation feature has been moved from the
'Support' module to the new 'Interpolation' module.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
5c8330767f tests: lib: cmsis_dsp: support: Update Q31 tests for 1.9.0
This commit updates the support Q31 test patterns for the CMSIS-DSP
1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
7ed8eabbcd tests: lib: cmsis_dsp: support: Update Q15 tests for 1.9.0
This commit updates the support Q15 test patterns for the CMSIS-DSP
1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
f99bbbe2b8 tests: lib: cmsis_dsp: support: Update Q7 tests for 1.9.0
This commit updates the support Q7 test patterns for the CMSIS-DSP
1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
05423de993 tests: lib: cmsis_dsp: statistics: Add F16 tests for 1.9.0
This commit adds the statistics F16 test patterns and implementations
for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
e3b1a016df tests: lib: cmsis_dsp: statistics: Update F64 tests for 1.9.0
This commit updates the statistics F64 test patterns for the CMSIS-DSP
1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
5d42316047 tests: lib: cmsis_dsp: statistics: Update F32 tests for 1.9.0
This commit updates the statistics F32 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
d744019229 tests: lib: cmsis_dsp: statistics: Update Q31 tests for 1.9.0
This commit updates the statistics Q31 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
fd9fe09d96 tests: lib: cmsis_dsp: statistics: Update Q15 tests for 1.9.0
This commit updates the statistics Q15 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
d50224f5c8 tests: lib: cmsis_dsp: statistics: Update Q7 tests for 1.9.0
This commit updates the statistics Q7 test patterns and implementations
for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
101c657e85 tests: lib: cmsis_dsp: matrix: Add Unary F16 tests for 1.9.0
This commit adds the matrix Unary F16 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
c3647b18e0 tests: lib: cmsis_dsp: matrix: Add Unary Q7 tests for 1.9.0
This commit adds the matrix Unary Q7 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
7b86a9194f tests: lib: cmsis_dsp: matrix: Update Unary F64 tests for 1.9.0
This commit updates the matrix Unary F64 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
389cf75f00 tests: lib: cmsis_dsp: matrix: Update Unary F32 tests for 1.9.0
This commit updates the matrix Unary F32 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
1eb044e1a6 tests: lib: cmsis_dsp: matrix: Update Unary Q31 tests for 1.9.0
This commit updates the matrix Unary Q31 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00
Stephanos Ioannidis
539e43dbbc tests: lib: cmsis_dsp: matrix: Update Unary Q15 tests for 1.9.0
This commit updates the matrix Unary Q15 test patterns and
implementations for the CMSIS-DSP 1.9.0.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2021-08-30 18:17:47 +02:00