Commit graph

956 commits

Author SHA1 Message Date
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
f941f83f73 Tests: Refactor client argv tests 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
Roger Light
8d129c47cd Tests: Fix mosquitto_signal tests not being added correctly. 2026-05-03 01:17:26 +01:00
Roger Light
58837cf026 Tests: Fix slow tests on Windows due to ipv4/6 dual stack and assuming ipv4 2026-05-03 01:17:26 +01:00
Roger Light
0219b5c8dc Tests: Copy OS env vars to child processes
This is especially important on Windows where the lack of some system
env vars can result in failures
2026-05-03 01:17:26 +01:00
Roger Light
be482c55a2 Tests: Add missing client arg case 2026-05-03 01:17:26 +01:00
Roger Light
50a1083b60 Tests: Fix client/app output comparisons 2026-05-03 01:17:26 +01:00
Roger Light
159b646b3b Tests: Explicitly call tests with python3 2026-05-03 01:17:26 +01:00
Roger Light
78bfe27331 Tests: Add valid disconnect exceptions on Windows 2026-05-03 01:17:26 +01:00
Roger Light
9e9a172435 Tests: Add support for broker reload on Windows 2026-05-03 01:17:26 +01:00
Roger A. Light
87c5cb13c5 Tests: Add support for broker shutdown on Windows 2026-05-03 01:17:26 +01:00
Roger A. Light
f6f5de34d6 Tests: Use tempfile for broker logging to prevent stderr buffer filling 2026-05-03 01:17:26 +01:00
Roger Light
6fda6f61b2 Tests: Use platform independent binary paths 2026-05-03 01:17:26 +01:00
Roger A. Light
e3d73f7c20 Tests: chown not supported on Windows 2026-05-03 01:17:26 +01:00
Roger A. Light
fa7b0479d2 Tests: Add path for tests on Windows 2026-05-03 01:17:26 +01:00
Roger A. Light
4ed937a183 Tests: Make path use cross platform 2026-05-03 01:17:26 +01:00
Roger A. Light
0102b95af1 Tests: Windows build fixes 2026-05-03 01:17:26 +01:00
Roger A. Light
455269701e Test: Decode printing of broker start failure 2026-04-16 21:35:46 +01:00
Roger A. Light
44a773f502 Port coverage workflow to cmake 2026-04-16 21:35:46 +01:00
Roger A. Light
25f6010751 Improve error printing for msg seq tests 2026-04-16 21:35:46 +01:00
Roger Light
310dafd6c9 Retry persist check db checks up to 5 times
The 1 second delay on each iteration helps ensure that the data is
written to disk before the check, on high load scenarios.
2026-04-16 21:35:46 +01:00
Roger A. Light
9fe2640558 Test fixes for WITH_BROKER=OFF 2026-04-16 21:35:46 +01:00
Roger A. Light
2f88c272bb Test fixes for INC_MEMTRACK=OFF 2026-04-16 21:35:46 +01:00
Roger A. Light
e897b3a4d0 Test fix for WITH_THREADING=OFF 2026-04-16 21:35:46 +01:00
Roger A. Light
25e4c7a0ba Test fixes for WITH_TLS=OFF 2026-04-16 21:35:46 +01:00
Roger A. Light
246cd96d34 cmake: Fix test for WITH_SYS_TREE=OFF 2026-04-16 21:35:46 +01:00
Roger A. Light
d382c07377 cmake: Fix build and tests for WITH_LIB_CPP=OFF 2026-04-16 21:35:46 +01:00
Roger A. Light
14b5f40620 Test: Increase timeout for high load situations. 2026-04-16 21:35:46 +01:00
Roger A. Light
e5896c99c1 Fix incorrect port in lib msg sequence test 2026-04-16 21:35:46 +01:00
Roger A. Light
fe4343dac7 Tests: Add feature guards
This allows test runners to set environment variables to let tests know which features are available. This is done by the cmake tests, but probably won't be extended to the make tests.
2026-04-16 21:35:46 +01:00
Roger A. Light
ac7266f948 Fix test 2026-04-16 21:35:46 +01:00
Roger A. Light
bea20e746f Parallel ctest support 2026-04-16 21:35:46 +01:00
Roger A. Light
c9175f5439 Simplify test 2026-04-16 21:35:46 +01:00
Roger A. Light
997c80b080 test: Fix incorrect port requirement count 2026-04-16 21:35:46 +01:00
Roger A. Light
b78cc47552 cmake: Only run tests for compiled components 2026-04-16 21:35:46 +01:00
Roger A. Light
7a2f0f3066 Protocol error edge case test fixes and redundant check removal 2026-04-15 12:31:28 +01:00
Roger A. Light
b3b4d77ef3 cmake: Disable http-api tests if library not available. 2026-02-25 11:40:50 +00:00
Roger A. Light
d3ee5c5ca6 Test: Don't error on missing psutil 2026-02-24 15:22:47 +00:00