Commit graph

4831 commits

Author SHA1 Message Date
Roger A. Light
b94b9477e5
cmake: Fix incorrect library reference 2026-05-13 19:38:00 +01:00
Roger A. Light
25f2be1e00
List some platform specific build dependencies 2026-05-13 19:38:00 +01:00
Roger A. Light
f13635a11a
Test: Use correct skip return value 2026-05-13 19:38:00 +01:00
Roger A. Light
898870f89c
Docker alpine: Migrate build to cmake 2026-05-13 19:38:00 +01:00
Roger A. Light
698ecbb50b
Test refactor: Add support for checking broker logs 2026-05-13 19:38:00 +01:00
Roger A. Light
568c527ebd
Test refactor: First swath of write_config() replacements 2026-05-13 19:38:00 +01:00
Roger A. Light
02f6f52fdc
Test: Start of big refactor
Add new MosquittoBroker class to remove test boilerplate.

This only handles non-config cases so far.
2026-05-13 19:38:00 +01:00
Roger A. Light
e6e55d662c
Tests: Refactor test packet generation 2026-05-13 19:38:00 +01:00
Roger A. Light
6fb66dfd7c
Tests: Fix syntax errors (return in finally) 2026-05-13 19:38:00 +01:00
Roger A. Light
a609c26304
Fix PATH_MAX redefinition on mingw64 2026-05-03 13:58:07 +01:00
Roger A. Light
a21362c2f6
Simplify setsockopt usage, fix builds on mingw64 2026-05-03 13:58:07 +01:00
Roger A. Light
2c0c8ce263
Test: Move passwd file creation into try: section
This ensures the file is always removed on error
2026-05-03 13:57:37 +01:00
Roger A. Light
1f5d33b1e7
Experimental fuzz memory checking 2026-05-03 09:40:03 +01:00
Roger A. Light
b1a2be20c3 Test: Make retry decorator more available and use on ctrl-dynsec
This test sometimes fails if the getDefaultACL check connects before the previous kick has occurred and before it has sent its CONNECT.
2026-05-03 01:17:26 +01:00
Roger Light
037be837d9 Test: Attempt to fix flaky sqlite test 2026-05-03 01:17:26 +01:00
Roger A. Light
d4f1cc4445 Test: Allow sqlite to open db in RO mode
This is to help with potential file locking on Windows when checks are made with the broker still running.
2026-05-03 01:17:26 +01:00
Roger A. Light
1cd83de189 Test: Improve persistence test handling
Sqlite uses contextlib for opening connections
Checks can optionally pass an existing connection so the db only needs
to be opened once even in the full check_db case
2026-05-03 01:17:26 +01:00
Roger A. Light
06b22f9bcf Test: Better persistence retry mechanism, and cover more cases 2026-05-03 01:17:26 +01:00
Roger A. Light
d85e764242 Test: Fix persist test misnaming 2026-05-03 01:17:26 +01:00
Roger A. Light
e63b3b6bf6 Test: Better failure output for ctrl-dynsec 2026-05-03 01:17:26 +01:00
Roger A. Light
05720f63e6 Test: Check bridge behaviour on retain-not-supported 2026-05-03 01:17:26 +01:00
Roger A. Light
a9d87cd873 Tests: Disable buildtest random tests
It doesn't work well with ccache in CI
2026-05-03 01:17:26 +01:00
Roger A. Light
8a67d1bb51 Windows: Fix enum name 2026-05-03 01:17:26 +01:00
Roger A. Light
e27ee2b4f5 Windows: Build fixes 2026-05-03 01:17:26 +01:00
Roger A. Light
db8db8d1dd Tests: Protect unit tests from CUnit bad snprintf macro 2026-05-03 01:17:26 +01:00
Roger A. Light
cf2c018ec2 Enable Windows tests on CI 2026-05-03 01:17:26 +01:00
Roger A. Light
9741a765a1 Tests: Debug printing 2026-05-03 01:17:26 +01:00
Roger A. Light
ea69f5110b Test: Fix type casting 2026-05-03 01:17:26 +01:00
Roger A. Light
618efad893 Test: Fix return in finally 2026-05-03 01:17:26 +01:00
Roger A. Light
30898a50fb Tests: Fix import scope 2026-05-03 01:17:26 +01:00
Roger Light
22fee5dc1d Add Window batch file for easy building. 2026-05-03 01:17:26 +01:00
Roger Light
f08fc279c0 Tests: 01-connect-575314 - more reliable measurement 2026-05-03 01:17:26 +01:00
Roger Light
d6c1c381f2 Allow get password to work in Windows tests 2026-05-03 01:17:26 +01:00
Roger Light
2bbddcaf98 Tests: Fix ctrl-args test for Windows 2026-05-03 01:17:26 +01:00
Roger Light
cc81a693b3 Tests: Fix client env tests for Windows 2026-05-03 01:17:26 +01:00
Roger Light
4ce0ae8ca7 Tests: Fix client output format on Windows
Three unfixed exceptions
2026-05-03 01:17:26 +01:00
Roger Light
ebd8376dca Tests: Fix lib msg sequence on Windows 2026-05-03 01:17:26 +01:00
Roger Light
4afcaa7518 Test: Fix client/03-publish-file cross platform 2026-05-03 01:17:26 +01:00
Roger Light
81fc50e2be Tests: Use subprocess.run instead of subprocess.Popen where possible 2026-05-03 01:17:26 +01:00
Roger Light
76c6dd3fe3 libcommon: mosquitto_file_read should use "rb", not "rt". 2026-05-03 01:17:26 +01:00
Roger Light
78631a0da6 Clients: Fix assumption that long is >32 bits. 2026-05-03 01:17:26 +01:00
Roger Light
f941f83f73 Tests: Refactor client argv tests 2026-05-03 01:17:26 +01:00
Roger Light
517ea6072f Fix Windows signal handling thread immediately exiting. 2026-05-03 01:17:26 +01:00
Roger Light
d10912d2ef Tests: Skip tests where features not available on Windows 2026-05-03 01:17:26 +01:00
Roger Light
7dd2465187 Tests: bind_interface not supported on Windows 2026-05-03 01:17:26 +01:00
Roger Light
51884c6a2f Test: Wait with timeout 2026-05-03 01:17:26 +01:00
Roger Light
43468289de Tests: Unix socket not supported on Windows Python 2026-05-03 01:17:26 +01:00
Roger Light
b0e705ff1e Tests: Disable tests with long command line args on Windows 2026-05-03 01:17:26 +01:00
Roger Light
eaa794c821 Tests: Always use mosq_test.listen_sock() instead of manual bind
This is important for cross platform support
2026-05-03 01:17:26 +01:00
Roger Light
96048af359 Tests: Fix header exports for Windows 2026-05-03 01:17:26 +01:00