Roger A. Light
52da5c0b78
Fix Coverity Scan 1499829, double free.
2022-10-16 14:47:16 +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
6150ae6560
Remove mosquitto__set_state after error from send__connect in mosquitto__reconnect to
...
fix failing test test/lib/02-subscribe-qos1.py $@/02-subscribe-qos1-async2.test
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com >
2022-05-08 10:40:43 +00: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
Olivier Gayot
b7fb911428
tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10
...
The function ssl.wrap_socket() is deprecated starting Python 3.7 because
it does not support hostname matching (which is considered insecure). In
Python 3.10, the function now throws warnings at runtime, which makes
Ubuntu / Debian autopkgtest fail.
The function ssl.SSLContext.wrap_socket comes in as the replacement and
has support for SNI and hostname matching.
Replaced all uses of ssl.wrap_socket() by equivalent using
ssl.SSLContext.wrap_socket().
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com >
2022-02-15 09:23:06 +01:00
Roger A. Light
5a3b42d4a4
Use path vars in Makefiles.
2022-02-09 14:44:09 +00:00
Roger A. Light
6f8ced5038
Test fixes.
2022-02-01 09:52:41 +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
8ac11929cc
Merge branch 'master' into develop
2021-10-27 17:19:33 +01: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
4ae8971ce1
The broker now sends the receive-maximum property for MQTT v5 CONNACKs.
2020-10-21 13:19:07 +01: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
Roger A. Light
69f84bbca9
Simplify "expect_packet" tests.
2020-08-12 15:18:18 +01:00
Roger A. Light
ba2c00137d
Fix client test leaks.
2020-08-12 15:18:17 +01:00
Roger A. Light
c343812c42
Improve client test for unexpected pubrel.
2020-05-05 23:25:42 +01:00
Roger A. Light
b2e72a7e7c
Fix memory leaks only in tests.
2020-05-05 14:19:04 +01:00
Roger A. Light
904284595f
Add missing test file.
2020-03-30 20:47:30 +01:00
Roger A. Light
21f203b91a
Don't treact unexpected PUBACK/COMP as fatal.
2020-03-28 23:33:01 +00:00
Roger A. Light
a16d7e0661
iDon't treat an unexpected PUBREL as fatal.
...
Issue #1629 . Thanks to radcrabs.
2020-03-19 15:38:29 +00:00
Roger A. Light
17db97584e
Fix client keepalive test using too low keepalive.
2020-01-30 15:06:15 +00:00
Roger A. Light
aceabcdef2
Tidy up async test outputs.
2019-11-06 13:37:35 +00:00
Roger A. Light
093c8f90f5
Fix publish props not being passed to v5 msg callback for QoS 2 msgs.
...
Closes #1432 . Thanks to Magnus Galåen.
2019-09-26 16:47:34 +01:00
Roger A. Light
1a8c44b84f
Fix regression on use of mosquitto_connect_async() not working.
...
Closes #1415 and #1422 . Thanks to Karl Palsson, Till Zimmermann and Liam Fry.
2019-09-24 20:15:04 +01:00
Roger A. Light
d6c7923d16
Add make check and document testing procedure.
...
Also support test target in cmake.
2019-04-26 16:25:35 +01:00
Roger A. Light
689989cc56
Fix inflight quota inc/dec for both broker and library.
2019-04-17 16:15:41 +01:00
Roger A. Light
7e49d91898
Convert tests to Python 3
2019-03-28 21:32:12 +00:00
Roger A. Light
5f0cb3a44c
Possible fix for errant test.
2019-03-25 07:18:29 +00:00
Roger A. Light
7b002abd7e
Sort tests.
2019-03-03 22:07:44 +00:00
Roger A. Light
36f10c7623
Update tests to not use TLS 1.0.
2019-02-28 12:08:26 +00:00
Roger A. Light
571c643b3d
More C90 fixes for travis.
2019-02-27 23:17:05 +00:00
Roger A. Light
b9b8e0ff2a
Add client support for outgoing maximum packet size.
2019-02-19 15:14:34 +00:00
Roger A. Light
66c1e2ccf0
Add mosquitto_unsubscribe_multiple(), plus tests.
2019-02-17 20:59:16 +00:00
Roger A. Light
c823073be6
v5 unsubscribe test, single topic.
2019-02-17 19:47:53 +00:00
Roger A. Light
baa4642bd3
Generic ptest implementation.
2019-02-12 19:06:14 +00:00