Commit Graph

35 Commits

Author SHA1 Message Date
Jakob Hasse
92320ebdda refactor (test_utils)!: separate file for memory check functions
Memory check (leaks and heap tracing) functions for unit tests
now have a separate file now and are renamed for more consistency.

BREAKING CHANGE: renamed memory check function names which may be used
                 in unit tests outside IDF.
2025-09-19 18:51:40 +08:00
David Cermak
98d60c9a00 MQTT: Add more tests 2025-09-19 18:51:40 +08:00
David Cermak
afb3c084f1 MQTT: Add more unit tests with actual broker 2025-09-19 18:51:40 +08:00
Darian Leung
947a4f0908 freertos: Add portTRY_ENTRY_CRITICAL() and deprecate legacy spinlock fucntions
Add TRY_ENTRY_CRITICAL() API to all for timeouts when entering critical sections.
The following port API were added:
- portTRY_ENTER_CRITICAL()
- portTRY_ENTER_CRITICAL_ISR()
- portTRY_ENTER_CRITICAL_SAFE()

Deprecated legacy spinlock API in favor of spinlock.h. The following API were deprecated:
- vPortCPUInitializeMutex()
- vPortCPUAcquireMutex()
- vPortCPUAcquireMutexTimeout()
- vPortCPUReleaseMutex()

Other Changes:
- Added portMUX_INITIALIZE() to replace vPortCPUInitializeMutex()
- The assembly of the critical section functions ends up being about 50 instructions longer,
  thus the spinlock test pass threshold had to be increased to account for the extra runtime.

Closes https://github.com/espressif/esp-idf/issues/5301
2025-09-19 18:51:40 +08:00
Roland Dobai
5a8152580b Build & config: Remove leftover files from the unsupported "make" build system 2025-09-19 18:51:40 +08:00
Zim Kalinowski
0d4f84fe7a upgrade freertos version and history 2025-09-19 18:51:40 +08:00
Euripedes Rocha Filho
5cf3dad79a mqtt: Adds host tests for mqtt client 2025-09-19 18:51:40 +08:00
liuhan
531329d262 transport: Add CONFI_WS_TRANSPORT for optimize the code size 2025-09-19 18:51:40 +08:00
David Cermak
9bc1e1a011 mqtt: Moved weekend tests to test apps 2025-09-19 18:51:40 +08:00
Fu Hanxi
438b06bd6b style: format python files with isort and double-quote-string-fixer 2025-09-19 18:51:40 +08:00
David Cermak
b3550c0fa2 ci: Add MQTT publish test to standard test apps 2025-09-19 18:51:40 +08:00
David Cermak
7faa1a99fe ci: Extend the MQTT weekend test to check mqtt-enqueue api 2025-09-19 18:51:40 +08:00
David Cermak
8f5ebf26f4 MQTT: Add new config modes (outbox related, incremental id) 2025-09-19 18:51:40 +08:00
Axel Lin
121b7c7b13 MQTT: Restore default MQTT_OUTBOX_EXPIRED_TIMEOUT_MS to 30 sec
The OUTBOX_EXPIRED_TIMEOUT_MS was 30*1000 in original esp-mqtt code.
Don't change the default OUTBOX_EXPIRED_TIMEOUT_MS without good reason,
which may has impact on memory usage for existing applications.

Fixes: 8e50d4b3967f ("MQTT: add configurable msg expired timeout")
Signed-off-by: Axel Lin <axel.lin@gmail.com>
2025-09-19 18:51:40 +08:00
Angus Gratton
ebd802fa2c Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo.

(Line endings, blank lines at end of file, trailing whitespace)
2025-09-19 18:51:40 +08:00
Jakob Hasse
4b6dedee6a cmock: added cmock as component
* changing dependencies from unity->cmock
* added component.mk and Makefile.projbuild
* ignore test dir in gen_esp_err_to_name.py
* added some brief introduction of CMock in IDF
2025-09-19 18:51:40 +08:00
Marius Vikhammer
33f7fdf23b MQTT: add configurable msg expired timeout 2025-09-19 18:51:40 +08:00
David Cermak
d0f8eb10f3 mqtt-tests: rename tests to match the actual group 2025-09-19 18:51:40 +08:00
David Cermak
ef9a2db815 mqtt: reenable outbox unit tests for esp32s2 2025-09-19 18:51:40 +08:00
Simon Brélivet
14be739764 esp_mqtt: add option to configure mqtt task priority.
Merges https://github.com/espressif/esp-idf/pull/4947
2025-09-19 18:51:40 +08:00
michael
84f104bc71 ci: disable failed cases for s2 temporarily 2025-09-19 18:51:40 +08:00
David Cermak
2323b43c0d mqtt: example test to check connection with different ssl parameters 2025-09-19 18:51:40 +08:00
David Cermak
d52f5e084a mqtt: add basic set of unit tests 2025-09-19 18:51:40 +08:00
David Cermak
6b4a3b3759 ci: updated mqtt weekend test for qemu support
Added default sdkconfig for qemu build for the mqtt publish example,
Added environment configuration for running the same test on target
or in qemu
Updated missing example tests per latest ttfw refactoring
2025-09-19 18:51:40 +08:00
Marius Vikhammer
d67b4ec8b8 MQTT: update default broker URL for examples
The MQTT broker URL used as default in the examples has ceased operation. All examples and documention have been updated to point to the new domain mqtt.eclipse.org.
This also required an update of the python example test scripts to use TLS 1.2
2025-09-19 18:51:40 +08:00
David Cermak
43bc4ca622 ci: fix weekend test confguration update per latest refactoring of
grouping tests
2025-09-19 18:51:40 +08:00
Michael (XIAO Xufeng)
e6df783596 ci: limit example test to ESP32s 2025-09-19 18:51:40 +08:00
David Cermak
b09c4daf0d mqtt_tests: add weekend test for sending and receiving empty payload messages, update config options per new naming convetions 2025-09-19 18:51:40 +08:00
David Cermak
202acd4d6d mqtt tests: adding weekend test for mqtt library to exercise publishing/receiving different data and references esp-mqtt commits to pass these tests
testing conditions:
transports (tcp, ssl, ws..)
qos (0, 1, 2)
short repeated messages (packed packets)
oversized messages (fragmented packets)
publish from a different thread

Closes https://github.com/espressif/esp-idf/issues/2870 by means of including commit 815623dfe5 from esp-mqtt
Closes https://github.com/espressif/esp-idf/issues/2975 by means of including commit 752953dc3b from esp-mqtt
Closes https://github.com/espressif/esp-idf/issues/2850 by means of including commits df455d2a5f 17fd713bce from esp-mqtt
2025-09-19 18:51:40 +08:00
Roland Dobai
79e16da5c4 Correct Kconfigs according to the coding style 2025-09-19 18:51:40 +08:00
Anton Maklakov
984e218317 tcp_transport: Remove the ignore warning because we had idf/esp-idf!3359 2025-09-19 18:51:40 +08:00
Angus Gratton
7bcafbc9f4 doc: Re-add summaries of what children each menu item has
Slightly different to the original version of this, but same goal.
2025-09-19 18:51:40 +08:00
Anton Maklakov
7f2bf4ae2f mqtt: silence a format warning 2025-09-19 18:51:40 +08:00
David Cermak
e5e56341be MQTT: Moved Kconfig from esp-mqtt submodule to esp-idf to support docs genration in RTD 2025-09-19 18:51:40 +08:00
David Cermak
ab9698a3b4 MQTT: Integrate esp-mqtt library into idf
added docs and tests for mqtt library, small fixes (removed warnings, option for custom outbox, websocket bug fixed for longer transports). refactored to use common tcp_transport component, support for CMake build system.
Closes #2108
2025-09-19 18:51:40 +08:00