139 Commits

Author SHA1 Message Date
Roger A. Light
f7c389c2d7 Fix test compile on mac 2026-01-22 00:30:58 +00:00
Roger A. Light
132fec1a4a Cmake: Fix openssl linking of tests 2026-01-21 16:58:57 +00:00
Roger A. Light
9f576d2a71 Set max_packet_size to 2,000,000 bytes by default 2026-01-13 12:15:46 +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
2c4967a2a4 Test: Fix x.to_bytes() on CI 2025-10-10 23:17:29 +01:00
Roger A. Light
aa952a4ef6 Msg sequence test: Readability improvements
Each payload has changed from being a string of hex bytes to being a
string of encoded values that better show their meaning. For example,
UTF-8 strings are now shown as strings, and different integer types are
denoted.
2025-09-30 08:10:54 +01:00
Roger A. Light
4c24b92e34 Formatting: Apply to C++ files 2025-09-17 12:48:02 +01:00
Roger A. Light
7ea73f6d60 Formatting: Forbid single line if statements
These hide cases from coverage checks
2025-09-17 12:48:02 +01:00
Roger A. Light
d743413ac3 Formatting: Spacing consistency 2025-09-17 12:03:06 +01:00
Roger A. Light
67ad22df0a Formatting: Double space before functions. 2025-09-17 12:03:03 +01:00
Roger A. Light
77868330e1 Fix unreachable test code 2025-08-24 11:46:07 +01:00
Roger A. Light
1ae1d08141 Fix variety of Coverity Scan issues in tests 2025-08-23 23:15:16 +01:00
Roger A. Light
3ecbf701a4 Fix variety of Coverity Scan issues in tests 2025-08-23 22:34:34 +01:00
Roger A. Light
17b3cea03f Remove redundant information from test identifiers 2025-08-23 01:02:45 +01:00
Roger A. Light
44e5015962 Fix lib subscription identifier tests 2025-07-20 08:51:06 +01:00
Roger A. Light
b3e8ec2d8b Lib: Correctly handle publish properties 2025-07-19 21:47:59 +01:00
Roger A. Light
3511db6889 Whitespace tidy 2025-04-06 22:40:48 +01:00
Roger A. Light
b7341d734a Add --rerun-failed for ptests 2025-03-26 12:28:54 +00:00
Roger A. Light
adea690b9d Combine all ptest tests into a single run, for speed.
Old `make ptest` locally: 1m34
New `make ptest` locally: 55s

Doesn't work on CI for some reason, so actually disabled for
`make ptest`. Use ./run_tests.py instead
2024-11-21 17:07:32 +00:00
Roger A. Light
86a6ef0e8a Make ptest more classy 2024-11-21 11:06:57 +00:00
Roger A. Light
b9e1c5e64c Fix test name 2024-11-20 09:52:42 +00:00
Roger A. Light
a2fe980301 Add mosquitto_ext_auth_continue() 2024-10-28 22:31:44 +00:00
Roger A. Light
db6ab6869a Fix mismatched alloc/frees 2024-04-25 16:20:14 +01:00
Roger A. Light
bfca809fdd Fix leaks in message sequence test. 2024-03-27 10:12:06 +00:00
Roger A. Light
356cb65178 Library tests should use linker flags 2024-03-27 09:27:03 +00:00
Roger A. Light
909179eaaf ASAN fixes 2024-03-27 09:12:07 +00:00
Roger A. Light
604b69a992 Test leak fixes 2024-03-26 12:43:22 +00:00
Roger A. Light
b96ab2bbd7 Fix test build warnings 2024-02-26 00:19:49 +00:00
Roger A. Light
d17a88d916 Refactor headers for easier discovery. 2023-12-23 12:59:58 +00:00
Roger A. Light
c55489967f Build warning fixes 2023-10-11 15:13:01 +01:00
Roger A. Light
8228124d06 Remove unused var warnings 2023-09-20 21:51:48 +01:00
Roger A. Light
c8e313aac0 Fix build
This is for the case where command line overrides are set.
2023-09-19 22:48:24 +01:00
Roger A. Light
41f0d34348 Add mosq_test.env_add_ld_library_path() for tests 2023-06-01 22:07:37 +01:00
Roger A. Light
a31bee722f Simplify make build. 2023-05-10 16:20:06 +01:00
Roger A. Light
ed8211858e CMake build fixes 2023-03-27 22:32:46 +01:00
Roger A. Light
529e567ead Fix Coverity Scan 1504066 2023-01-25 11:02:54 +00:00
Roger A. Light
2928ca41f4 Temporary disable CI failing test 2023-01-11 23:10:05 +00:00
Roger A. Light
291e46bb1a Attempt to fix CI specific failure. 2023-01-11 10:07:29 +00:00
Roger A. Light
343a984083 Big rejig of library tests
Includes full consistency between C/C++ library tests
2023-01-02 11:45:09 +00:00
Roger A. Light
04ccf1cb6c Add test for subjectAltName usage. 2022-12-19 14:47:55 +00:00
Roger A. Light
d15c6bd7ef Fix unitialised value and incorrect loop. 2022-12-07 15:26:13 +00:00
Roger A. Light
fc84340820 Add mosquitto_unsubscribe2_v5_callback_set 2022-12-07 15:05:54 +00:00
Roger A. Light
7419aa7530 Add more lib msg sequence tests 2022-12-07 15:05:54 +00:00
Roger A. Light
94b366b5e7 Start of message sequence "fuzzish" tests for library 2022-12-05 17:03:58 +00:00
Roger A. Light
ba665a3477 Unsubscribe-v5 test should use properties 2022-11-30 23:36:34 +00:00
Roger A. Light
b6de597127 subscribe_simple helper test 2022-11-30 18:52:38 +00:00
Roger A. Light
6823e721e7 Factor out some test boilerplate 2022-11-28 00:26:51 +00:00
Kai Buschulte
e6f5633ff6 Fix some compiler warnings
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-11-03 10:55:37 +01:00
Roger A. Light
07c7755f81 Fix Coverity Scan 1499806 2022-10-16 23:24:52 +01:00
Roger A. Light
10b9452c6c Fix Coverity Scan 1499821 2022-10-16 23:21:47 +01:00