92 Commits

Author SHA1 Message Date
Roger A. Light
132fec1a4a Cmake: Fix openssl linking of tests 2026-01-21 16:58:57 +00: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
3ecbf701a4 Fix variety of Coverity Scan issues in tests 2025-08-23 22:34:34 +01:00
Roger A. Light
3511db6889 Whitespace tidy 2025-04-06 22:40:48 +01:00
Roger A. Light
a2fe980301 Add mosquitto_ext_auth_continue() 2024-10-28 22:31:44 +00: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
604b69a992 Test leak fixes 2024-03-26 12:43:22 +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
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
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
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
Roger A. Light
f2524ee413 Mark unused parameters 2022-10-13 10:29:01 +01:00
Roger A. Light
fd68bf00c7 Merge branch 'master' into develop 2022-08-17 16:18:24 +01:00
Roger A. Light
5d18962486 Improve custom SSL_CTX tests.
Issue #2463.
2022-08-12 08:52:40 +01:00
Roger A. Light
02b92b97ef Fix use of MOSQ_OPT_SSL_CTX when used with MOSQ_OPT_SSL_CTX_DEFAULTS
Closes #2463. Thanks to Tim Nordell.
2022-08-10 17:18:33 +01:00
Roger Light
ac98c2135f Merge pull request #2529 from NorbertHeusser/develop
Create github actions to trigger build and tests on devevlop branch
2022-08-03 10:10:57 +01:00
Norbert Heusser
f424667fca Merge branch 'develop' into NorbertHeusser:develop 2022-07-08 09:30:53 +00:00
Kai Buschulte
71456077ad Introduce a common-options cmake target
this makes it possible to explicitly share compile options, without
using the `add_definition` function. This function declares options for
the current directory and below (in our case also for `deps`).

Adding -Wall, -Wconversion and -Wextra to at least make compiler
warnings visible for the cmake build.

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-07-04 11:16:01 +02:00
Kai Buschulte
a883bda9c1 Add CMake test target
Use `ctest` or `make test` to run all tests.
With this it's also possible to run tests on a Mac.

Relative paths used in tests become absolute ones to make tests
executable from any build folder.

Also fixed race condition in
  test/broker/11-persistent-subscription-no-local.py

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-06-22 23:56:50 +01:00
Norbert Heusser
306b76d7f6 Create github build action to build Mosquitto and added timeout
to python tests waiting for subprocess to avoid github actione being blocked

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2022-05-08 10:40:30 +00:00
Roger A. Light
4fd51e9681 Fix incorrect earlier commit 2022-04-29 14:12:56 +01:00
Roger A. Light
4c72542eae Move mosquittopp header to include dir. 2022-04-15 22:08:49 +01:00
Roger A. Light
5a3b42d4a4 Use path vars in Makefiles. 2022-02-09 14:44:09 +00:00
Roger A. Light
c87148ac3e userdata function testing. 2022-01-30 23:55:31 +00:00
Roger A. Light
92c6fcf547 Tests should exit gracefully rather than being terminated. 2022-01-30 23:48:09 +00:00
Roger A. Light
5e601c3853 Library connect tests. 2022-01-29 08:49:06 +00:00
Roger A. Light
b9b065d2cc Compiler pedantry, and more checks in tests. 2021-10-14 11:39:46 +01:00
Roger A. Light
a1a190b482 Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
Roger A. Light
3f84ad006d Add on_pre_connect() callback.
This allows clients to update usernames/passwords/TLS parameters prior
to reconnecting.
2021-02-16 11:45:54 +00:00
Roger A. Light
ed28c416e9 Null checks in client tests. 2020-12-01 09:48:11 +00:00
Roger A. Light
79028bcb14 Fix duplicate frees in tests. 2020-10-14 10:16:47 +01:00
Roger A. Light
a65f946e83 Move headers to own directory. 2020-10-07 22:06:01 +01:00
Roger A. Light
c90e49af1b Merge remote-tracking branch 'origin/fixes' into develop 2020-09-24 17:03:14 +01:00