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
8463c33720
Refactor property remaining length calculation.
2019-10-03 10:36:24 +01:00
Roger A. Light
552059e17d
Pedantic test fixes from failgrind.
2019-07-30 15:01:12 +01:00
Roger A. Light
e43a278652
Fix test compilation.
2019-05-28 22:12:13 +01:00
Roger A. Light
f64d3b1e5c
Fix broker originated messages not being sent.
...
This occurred when `check_retain_source` was set to true.
Closes #1245 . Thanks to Christoph Krey.
2019-04-30 13:25:54 +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
8531cb1d79
Separate broker message queues into in/out.
...
This allows and includes better flow control handling for QoS>0.
2019-04-17 09:29:34 +01:00
Roger A. Light
8b532705d9
Fix test datatype.
2019-04-11 11:04:16 +01:00
Roger A. Light
2fcf246f07
Fix potential crashes on memory alloc failure in tests only.
2019-04-03 16:14:15 +01:00
Roger A. Light
2a5995106a
Fix Coverity Scan defect 140436. Null dereference.
2019-03-26 12:05:23 +00:00
Roger A. Light
43c159b9a5
Support and tests for saving message expiry interval.
2019-03-25 23:17:57 +00:00
Roger A. Light
5841da2c36
Tests for persisting message store properties.
2019-03-24 21:38:00 +00:00
Roger A. Light
efb20625fb
Code and tests for persisting client msg properties.
2019-03-23 22:52:08 +00:00
Roger A. Light
48253bc12c
Persist message store publish properties.
2019-03-21 21:43:36 +00:00
Roger A. Light
2f15a7be2b
Add subscription-identifier and options to persistence.
2019-03-21 14:19:48 +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
72941db546
Coverity fixes
...
1399064
1399065
1398655
1398656
1398654
1399067
1399066
1399063
1399060
1399059
1399068
1399062
1398657
1398653
1302848
1302847
1399070
2019-02-27 12:38:20 +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
bb914b985c
Fix mosquitto_topic_matches_sub()
rc with sub=="topic/#abc".
...
This now returns MOSQ_ERR_INVAL as expected.
2019-02-12 11:34:45 +00:00
Roger A. Light
b6fb2c5824
Fix property write test after function changes.
2019-02-12 11:34:45 +00:00
Roger A. Light
00c4fd137a
More UTF-8 tests.
2018-12-29 21:27:24 +00:00
Roger A. Light
94fdc9cb44
Disallow UTF-8 control characters.
2018-12-18 10:15:28 +00:00
Roger A. Light
bc1349c0d7
Tests for user facing mosquitto_string_to_property_info function.
2018-12-14 19:31:49 +00:00
Roger A. Light
8b368aeb6b
Fix memory leaks in tests.
2018-12-14 19:12:55 +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
1e6117bcf5
Fix duplicate string property tests.
2018-12-14 14:10:30 +00:00
Roger A. Light
f77c1ca91b
private struct mqtt5__property -> public mosquitto_property.
2018-11-01 23:50:54 +00:00
Roger A. Light
636e813d1c
Load of constant renames ahead of making mqtt_protocol.h public.
2018-10-30 11:11:31 +00:00
Roger A. Light
9eebcf6704
Rename property__free_all->mosquitto_property_free_all
...
Make public function.
2018-10-30 10:16:42 +00:00
Roger A. Light
723d9c2782
Check whether properties are on the correct commands.
2018-10-25 11:23:04 +01:00
Roger A. Light
42896112a1
Pub/sub topic checking tests.
2018-10-16 23:09:08 +01:00
Roger A. Light
1e9e552034
Property write bad identifier test.
2018-10-16 22:57:52 +01:00
Roger A. Light
40ed672ecf
Fix topic matching tests and function.
2018-10-16 22:49:13 +01:00
Roger A. Light
77099bb58c
Add property write tests.
2018-10-16 21:32:13 +01:00
Roger A. Light
a7fff2ad2e
Topic test improvements.
2018-10-16 13:49:38 +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
c0ff424082
Add property__get_length_all() and property__get_length().
...
For getting the number of bytes needed for writing a property list.
2018-10-10 14:50:30 +01:00
Roger A. Light
a17dcb4e8f
Property string pair, varint and more complicated packet tests.
2018-10-07 00:37:38 +01:00
Roger A. Light
e1d0bde0b1
Binary property read tests.
2018-10-05 12:43:05 +01:00
Roger A. Light
194d013279
Finish property string read tests.
2018-10-04 23:08:53 +01:00
Roger A. Light
bc1caedc32
Some property string read tests.
2018-10-04 22:49:34 +01:00