Commit Graph

4512 Commits

Author SHA1 Message Date
Roger Light
3ddfdc3a24 Windows: Fix slow tests 2025-12-08 18:51:24 +00:00
Roger Light
f51e30f078 Windows: Test fixes for lib 2025-12-08 18:46:31 +00:00
Roger Light
5a11642f07 Tests: Add paths to libraries on Windows 2025-12-08 18:46:31 +00:00
Roger Light
a66de32903 Tests: Refactor plugin path config creation for cross platform ease 2025-12-08 18:46:31 +00:00
Roger Light
a4ec92b495 Test: Various fixes for Windows 2025-12-08 18:46:31 +00:00
Roger Light
3ae06bfaf1 Test: Cross platform broker terminate/reload 2025-12-08 18:46:29 +00:00
Roger Light
02b7ff9243 Test: Always use log file to capture stderr in python tests
This avoids the problem that subprocess.PIPE is limited in size on Windows and cannot be extended
2025-12-08 18:46:06 +00:00
Roger Light
3672c58052 Windows: Get build type from cmake 2025-12-08 18:45:43 +00:00
Roger Light
df3c437b5a Test: Don't hide socket errors when reading 2025-12-08 18:45:43 +00:00
Roger Light
5c6c9a8f0a Windows: Config files for client tests 2025-12-08 18:45:43 +00:00
Roger Light
67eb4ab349 Clients: Fix session-expiry-interval error parsing 2025-12-08 18:45:43 +00:00
Roger Light
c26a96b5b5 Windows: Fix client tests 2025-12-08 18:45:43 +00:00
Roger Light
67ddba7a57 Windows: Fix long long parsing to uint32 and varint properties 2025-12-08 18:45:43 +00:00
Roger Light
5703da7477 Test: Make client path cross platform 2025-12-08 18:45:43 +00:00
Roger Light
46d3f0ce65 Test: Refactor client argv tests 2025-12-08 18:45:43 +00:00
Roger Light
c8f114b42d Apps: Progress toward working tests on Windows 2025-12-08 18:45:43 +00:00
Roger Light
4d6a34023a Test: make env_add_ld_library_path properly cross platform 2025-12-08 18:45:43 +00:00
Roger Light
21092c5088 CMake tests: Use consistent function for adding python tests to testing 2025-12-08 18:45:43 +00:00
Roger Light
cccd5898a3 Windows: Fix long long int parsing. 2025-12-08 18:45:43 +00:00
Roger Light
d16c3e186b Compile time fixes for tests on Windows
This doesn't mean the tests work, but everything compiles.
2025-12-08 18:45:40 +00:00
Roger Light
bf36471d17 Work around CUnit snprintf macro bug
On Windows, CUnit.h defines snprintf as a macro. This causes stdio.h to
abort with an error. Including stdio.h first should fix this. Long term,
this needs CUnit to be fixed or we stop using it.
2025-12-08 18:44:03 +00:00
Nicholas Jackson
fdf1943b1b Do not include microhttpd.h if WITH_HTTP_API is disabled
Signed-off-by: Nicholas Jackson <nickajacks1@gmail.com>
2025-12-08 18:40:21 +00:00
Roger A. Light
534d59797e Don't persist v5 clean start=false session-expiry-interval=0 clients
This is for the built-in `persistence true` mode only.

Closes #3418. Thanks to nickajacks1.
2025-12-04 11:48:14 +00:00
Roger A. Light
a45badc57f Add macros to make session expiry values clearer 2025-12-04 11:19:36 +00:00
Roger A. Light
cd307c3d52 Remove redundant test 2025-12-04 11:00:25 +00:00
Roger A. Light
935de54382 Minor refactor 2025-12-02 16:21:15 +00:00
Norbert Heusser
68d933a22f Fixed forwarding of subscription identifier to client message peristence callback
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2025-12-02 16:11:17 +00:00
Roger A. Light
d8aee44746 Make auth delayed test more robust 2025-12-02 12:24:24 +00:00
Roger A. Light
b2aa092267 libcommon base64 unit tests 2025-12-01 00:05:36 +00:00
Roger A. Light
f7852e5be4 read_header is only ever called when all data has been read
This means setting everything back to 0 is the correct approach
2025-11-28 00:49:48 +00:00
Roger A. Light
58c34669a5 Refactor oversize incoming packet check 2025-11-27 12:24:12 +00:00
Roger A. Light
a726ff8846 Send acceptable CAs when require_certificate is true
Closes #3403
2025-11-25 23:42:28 +00:00
Roger A. Light
5792e0fe7e Add broker/client per packet type tests for overlong remaining length 2025-11-24 17:23:23 +00:00
Roger A. Light
49d71f2bd9 Simplify stopping the thread in libmosquitto 2025-11-23 23:11:56 +00:00
Roger A. Light
160ccde1cd password-file: Refactor parsing error handling 2025-11-19 22:14:00 +00:00
Roger A. Light
b555eebdd6 Windows: Make libcommon_vprintf an export 2025-11-19 17:25:48 +00:00
Roger A. Light
378bbb7f98 Speed up some bridge tests 2025-11-19 00:09:00 +00:00
Roger A. Light
27820a58c6 Add upper limit to auto_id_prefix
This prevents uint16_t overflow later
2025-11-01 08:32:43 +00:00
Roger A. Light
445f27b0d6 Unconditionally init/destroy client mutexes
This removes the remote chance that we may init but then not destroy, or
destroy after not initing
2025-11-01 08:19:17 +00:00
Roger A. Light
e3f1438a69 Add missing '/' to special chars check 2025-11-01 08:06:25 +00:00
Roger A. Light
1566b8d3f2 Formatting 2025-10-29 23:06:50 +00:00
Roger A. Light
27aa1e14cb Fix libcommon log printing 2025-10-29 23:06:33 +00:00
Roger A. Light
a3ea371e39 Fix http api allow anon reporting 2025-10-29 22:16:50 +00:00
Roger A. Light
2e669a1c32 mosquitto_read_file: Set return values early 2025-10-29 10:45:04 +00:00
Roger A. Light
6274730810 libcommon: Use mosquitto_fopen in mosquitto_read_file 2025-10-29 10:44:03 +00:00
Roger A. Light
0dfbc7ab36 Fix links 2025-10-28 11:43:05 +00:00
Roger A. Light
12d864d3ea Fix fuzzing corpora generation 2025-10-21 22:52:16 +01:00
Roger A. Light
c641f1d45a Refactor handling of accepted publish messages 2025-10-21 22:52:16 +01:00
Roger A. Light
2c2287f1a5 Remove unused variables. 2025-10-21 22:52:16 +01:00
Roger A. Light
5bf12f0341 Optimise logos 2025-10-21 14:52:01 +01:00