Commit Graph

534 Commits (11b16756cb38f27eae61b23e3c5ee26bcb882635)

Author SHA1 Message Date
Kai Buschulte f486b45619 CMake: introduce a coverage target
to produce coverage information while running the tests, call cmake with
the following options:

cmake -DCMAKE_C_FLAGS=-coverage -DCMAKE_CXX_FLAGS=-coverage <build-dir>

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
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>
3 years ago
Kai Buschulte 0fe397603b Workaround problem with sqlite3-wal files
These files are not removed but empty for some versions of sqlite3

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Kai Buschulte 4eadc96bcb Add Traceback to failing packet_match
This helps finding the caller/cause of the failure

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Norbert Heusser 71e1b92564 Fixed race condition in test/broker/11-persistent-subscription-no-local.py 3 years ago
Roger Light 6c1bb33e86
Merge pull request #2573 from buschulte/throw-broken-pipe-error-when-loosing-connection
throw BrokenPipeError if nothing received on socket
3 years ago
Roger A. Light 34391080d6 Add dynsec init by simple file. 3 years ago
Kai Buschulte a7304083f8 throw BrokenPipeError if nothing received on sock
instead of ignoring this error, we throw an exception
the previous way might cause hard to find issues

Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light 4487b98dbb Fix clean 3 years ago
Roger A. Light 4fd51e9681 Fix incorrect earlier commit 3 years ago
Roger A. Light 4c72542eae Move mosquittopp header to include dir. 4 years ago
Roger A. Light 8a9d8ece37 Fix sqlite test 4 years ago
Roger A. Light 0433b8ee9b Update changelog, fix usage of m_set_clientid(), add test. 4 years ago
Roger A. Light b4a0255f1c Process retain persist events only every 10 seconds. 4 years ago
Roger A. Light 1bb16a68dc Test fixes for running under valgrind 4 years ago
Roger A. Light cbb01193a0 Rename persist retain_add to retain_set 4 years ago
Roger A. Light 2d3b152a22 Rename of mosquitto_msg_store struct.
struct mosquitto_msg_store -> struct mosquitto_base_msg

This is the base message which client messages and retained messages
refer to. The base messages are still held in the message store.

This change comes about because the persistence interface exposes these
message types. Prior to this commit the different messages were "msg",
"client_msg", and "retain". After this commit there is "base_msg",
"client_msg", and and "retain_msg" in the persist interface.
4 years ago
Norbert Heusser e7e8b6e832 * Added list of connections to dynsec/getClient response
* Added new helper function mosquitto_apply_on_all_clients to broker
* Refactoring in dynamic-security plugin

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
4 years ago
Roger A. Light 3bb8be6ea2 Client tests should not run in parallel. 4 years ago
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.
4 years ago
Roger A. Light 5a3b42d4a4 Use path vars in Makefiles. 4 years ago
Roger A. Light df2a4a666f Add missing hunk from previous commit. 4 years ago
Roger A. Light 6f8ced5038 Test fixes. 4 years ago
Roger A. Light c87148ac3e userdata function testing. 4 years ago
Roger A. Light 92c6fcf547 Tests should exit gracefully rather than being terminated. 4 years ago
Roger A. Light 5e601c3853 Library connect tests. 4 years ago
Roger A. Light 3ce8de32ff Fix typo 4 years ago
Roger A. Light 223d9eae66 mosquitto_sub json output tests, and user-properties fix. 4 years ago
Roger A. Light 5006943d9a 'mosquitto_pub -f' and 'mosquitto_pub -L' tests. 4 years ago
Roger A. Light 57ef2be8d3 More client tests. 4 years ago
Roger A. Light 6051a65f51 mosquitto_pub stdin file and line tests. 4 years ago
Roger A. Light 7d9aba112c Remove unused start_broker checks. 4 years ago
Roger A. Light 74b9ed0808 More client tests. 4 years ago
Roger A. Light 9b2c64135f listPlugins command, and test. 4 years ago
Roger A. Light 82658805c7 listListeners command. 4 years ago
Roger A. Light db6b59a336 sqlite retain clear test. 4 years ago
Roger A. Light 73f03983fb Socks proxy test plus fixes. 4 years ago
Roger A. Light ab67dbcacd More client tests, and an output format fix. 4 years ago
Roger A. Light 3139eb3252 More client tests. 4 years ago
Roger A. Light a96615bd4a More client tests. 4 years ago
Roger A. Light dc906c5221 Sqlite persistence plugin. 4 years ago
Roger A. Light 0a0f4ead42 Plugin interface interface and test improvements. 4 years ago
Roger A. Light 33f2817b1e Facility for running tests under failgrind. 4 years ago
Roger A. Light d546ba461a Test fixes. 4 years ago
Roger A. Light ea553619fb Basic client websockets tests. 4 years ago
Roger A. Light eefafdeff7 Fix unix socket test. 4 years ago
Roger A. Light e25cb05fc9 Command arg tests. 4 years ago
Roger A. Light 1ac099ebdd More config parse errors. 4 years ago
Roger A. Light 2d045dbc85 Fix option name. 4 years ago
Roger A. Light 7bd9c5cce1 More config parse error tests. 4 years ago