Roger A. Light
a31bee722f
Simplify make build.
2023-05-10 16:20:06 +01:00
Roger A. Light
1e0a07ba5a
Add missing int to string conversions.
2022-12-01 11:35:48 +00:00
Roger A. Light
fa08918b48
Don't recompile objects for tests (in Makefile tests)
2022-11-11 13:44:33 +00:00
Roger A. Light
65a6191202
Set mosquitto_read_*() values to NULL when empty
...
`mosquitto_property_read_binary/string/string_pair` will now set the
name/value parameter to NULL if the binary/string is empty. This aligns the
behaviour with other property functions.
Closes #2648 . Thanks to Alexander Fiebig.
2022-11-03 18:31:19 +00:00
Roger A. Light
3544d935e0
Fix various Coverity Scan issues.
2022-10-16 15:13:03 +01:00
Roger A. Light
f0d7c27a67
Add tests to coverity scan
2022-10-16 07:59:44 +01: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
Roger A. Light
4487b98dbb
Fix clean
2022-05-08 21:53:14 +01:00
Roger A. Light
ffb7661d86
Move shared code to common directory
...
This is currently limited to "utility" type functions and does not include code common to the library and broker that are protocol related.
2022-02-09 16:26:10 +00:00
Roger A. Light
5a3b42d4a4
Use path vars in Makefiles.
2022-02-09 14:44:09 +00:00
Roger Light
51eda2bf79
Add more efficient keepalive check.
2021-10-12 17:19:42 +01:00
Roger A. Light
f90e55bd36
Reduce memory allocations when sending packets.
2021-06-30 14:53:34 +01:00
Roger A. Light
4f61f6c161
Fix conversion errors.
2020-10-17 01:23:08 +01:00
Roger A. Light
a65f946e83
Move headers to own directory.
2020-10-07 22:06:01 +01:00
Roger A. Light
54b9571516
Enable TLS with certfile+keyfile, not capath/cafile.
2020-09-23 23:31:00 +01:00
Roger A. Light
d96543c0b8
Merge branch 'fixes' into develop
2020-03-03 12:54:57 +00:00
Gianfranco Costamagna
7a5c2d4da5
Bugfix: include "deps" directory only if BUNDLED_DEPS has been provided and set to true
...
Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
2020-02-06 15:20:29 +00:00
Roger A. Light
27b4518d7e
Improve password file parsing in the broker and mosqitto_passwd.
...
Closes #1584 . Thanks to panava.
2020-02-04 16:38:51 +00:00
Roger A. Light
70fd600c3a
Fix trailing whitespace not being trimmed on acl users.
...
Closes #1539 . Thanks to CliveJL and LeonPoon.
2020-01-30 19:52:46 +00:00
Roger A. Light
9ee6e2725c
Start of tests for adding subscriptions.
2019-12-04 11:02:52 +00:00
Roger Light
d92360dd8e
Split sub and retain trees.
2019-11-22 14:07:15 +00:00
Roger A. Light
fad184c9c2
Bridge remapping refactoring and tests.
2019-10-03 16:46:15 +01:00
Roger A. Light
3b4a5419c3
Build fixes around CFLAGS et al.
...
- Split CFLAGS and CPPFLAGS, and LDFLAGS and LDADD/LIBADD.
- test/unit now respects CPPFLAGS and LDFLAGS.
Closes #1232 . Thanks to Greg Troxel.
2019-04-26 17:06:54 +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
17eae08c5e
Test build fixes.
2019-04-17 21:25:25 +01:00
Roger A. Light
48253bc12c
Persist message store publish properties.
2019-03-21 21:43:36 +00:00
Roger A. Light
214a5f3aab
v5 persistence file format
...
This includes changes to improve read/write performance.
It is not complete, and will have further changes to add properties and anything else required for MQTT v5.
2019-03-21 00:35:56 +00:00
Roger A. Light
e249ca7e91
Separate the persistence actual writing functions.
2019-03-19 16:27:34 +00:00
Roger A. Light
7a53b28080
Start of persistence writing tests.
2019-03-19 16:27:34 +00:00
Roger A. Light
a7d0660749
Separate out persist reading code from restoring code.
2019-03-16 09:42:15 +00:00
Roger A. Light
9411d94842
Start of tests for persistence reading.
2019-03-14 20:57:25 +00:00
Roger A. Light
699e5c762f
Tests for user facing read functions.
2018-12-14 19:09:31 +00:00
Roger A. Light
679a9a54a5
Tests for user facing property add functions.
2018-12-14 17:49:10 +00:00
Roger A. Light
77099bb58c
Add property write tests.
2018-10-16 21:32:13 +01:00
Roger A. Light
6609bbac10
Move topic matching tests to unit tests. Needs improving.
2018-10-10 17:52:41 +01:00
Roger A. Light
f4b2838574
Property reading, and tests for byte properties.
2018-10-04 17:18:57 +01:00
Roger A. Light
e701608e71
Two Byte Integer write test.
2018-10-03 22:22:42 +01:00
Roger A. Light
72131c84ce
Binary data read functions and tests.
2018-10-03 21:35:33 +01:00
Roger A. Light
ed06255847
Rename to _read so _write can be separate.
2018-10-03 20:40:56 +01:00
Roger A. Light
debf7493ad
UTF-8 validation tests and fixes.
2018-10-03 18:42:15 +01:00
Roger A. Light
0fad0bd025
UTF-8 String read tests.
2018-10-03 15:04:55 +01:00
Roger A. Light
b6b8da1fa6
Variable Byte Integer reading tests.
2018-10-03 11:57:20 +01:00