Commit Graph

47 Commits

Author SHA1 Message Date
Roger A. Light
17b3cea03f Remove redundant information from test identifiers 2025-08-23 01:02:45 +01:00
Roger A. Light
32c2b64081 Add --retain-handling to sub and rr clients 2025-08-11 12:17:17 +01:00
Roger A. Light
96cf483577 Improve lib socks5h test coverage 2025-07-19 14:05:54 +01:00
Roger A. Light
82256e14b0 Use mosquitto_read_file() in mosquitto_pub 2025-07-18 07:25:44 +01:00
Roger A. Light
adea690b9d Combine all ptest tests into a single run, for speed.
Old `make ptest` locally: 1m34
New `make ptest` locally: 55s

Doesn't work on CI for some reason, so actually disabled for
`make ptest`. Use ./run_tests.py instead
2024-11-21 17:07:32 +00:00
Roger A. Light
86a6ef0e8a Make ptest more classy 2024-11-21 11:06:57 +00:00
Roger A. Light
4dee3167fc Client test coverage 2024-04-24 20:35:43 +01:00
Roger A. Light
3c1a8c14dd Fix leak in mosquitto_pub on argument error 2024-03-27 11:00:21 +00:00
Roger A. Light
8ccef0713b Test improvements, remove redundant code 2024-02-26 18:25:31 +00:00
Roger A. Light
8a8d6e043e mosquitto_sub: Add optional hex payload field separation 2024-02-26 00:19:32 +00:00
Roger A. Light
4a7da066e0 Use mosq_test.get_build_root() 2023-06-01 22:36:11 +01:00
Roger A. Light
41f0d34348 Add mosq_test.env_add_ld_library_path() for tests 2023-06-01 22:07:37 +01:00
Roger A. Light
a7c43cad43 Fix socks test on modern microsocks 2023-05-10 16:20:23 +01: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
2e4db3aa2a Improve test/client/02-subscribe-format-json-properties.py 2022-12-22 13:39:57 +00:00
Roger A. Light
d7833c8dcb Test websockets with large payload >65535 bytes 2022-12-19 15:25:55 +00:00
Roger A. Light
985824da8d Test socks with ipv4 address 2022-12-19 15:24:48 +00:00
Norbert Heusser
120bfb33b9 Enable test-ws.sh in test/client
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2022-12-09 18:03:51 +00:00
Roger A. Light
06f4b09ae3 Test fixes and bridge leak fixes. 2022-11-30 15:35:19 +00:00
Roger A. Light
e123f661c8 Enable client websocket tests 2022-11-30 14:33:25 +00:00
Roger A. Light
9cc5d1d6ff Add mosquitto_ctrl tests 2022-11-30 13:46:10 +00:00
Roger A. Light
e49f741cd2 Individual basic WS tests for clients 2022-11-10 12:48:47 +00:00
Roger A. Light
f0d7c27a67 Add tests to coverity scan 2022-10-16 07:59:44 +01:00
Roger A. Light
7ec8417e54 Client tests: --version dummy, and float printing for sub. 2022-08-19 09:32:40 +01:00
Roger A. Light
3b56a89b0a Improved client tests 2022-08-19 00:15:28 +01:00
Norbert Heusser
f2c59e4048 Split client python tests into test with/without TLS/PSK
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2022-08-09 18:36:47 +00:00
Roger A. Light
684c99261a argv tests for mosquitto_rr 2022-08-03 17:57:53 +01:00
Norbert Heusser
f424667fca Merge branch 'develop' into NorbertHeusser:develop 2022-07-08 09:30:53 +00: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
3bb8be6ea2 Client tests should not run in parallel. 2022-02-09 16:26:24 +00:00
Roger A. Light
6f8ced5038 Test fixes. 2022-02-01 09:52:41 +00:00
Roger A. Light
3ce8de32ff Fix typo 2022-01-29 00:06:47 +00:00
Roger A. Light
223d9eae66 mosquitto_sub json output tests, and user-properties fix. 2022-01-23 23:07:36 +00:00
Roger A. Light
5006943d9a 'mosquitto_pub -f' and 'mosquitto_pub -L' tests. 2022-01-23 22:43:08 +00:00
Roger A. Light
57ef2be8d3 More client tests. 2022-01-22 23:14:00 +00:00
Roger A. Light
6051a65f51 mosquitto_pub stdin file and line tests. 2022-01-22 22:10:19 +00:00
Roger A. Light
7d9aba112c Remove unused start_broker checks. 2022-01-22 21:41:15 +00:00
Roger A. Light
74b9ed0808 More client tests. 2022-01-21 23:30:43 +00:00
Roger A. Light
73f03983fb Socks proxy test plus fixes. 2022-01-16 23:39:55 +00:00
Roger A. Light
ab67dbcacd More client tests, and an output format fix. 2022-01-15 23:41:12 +00:00
Roger A. Light
3139eb3252 More client tests. 2022-01-14 23:08:09 +00:00
Roger A. Light
a96615bd4a More client tests. 2022-01-10 23:07:26 +00:00
Roger A. Light
ea553619fb Basic client websockets tests. 2022-01-03 23:27:48 +00:00
Roger A. Light
56e5c52abe Fix test. 2021-10-01 16:34:17 +01:00
Roger A. Light
c6b94f6266 Fix running of basic client tests. 2020-10-14 10:17:49 +01:00
Roger A. Light
cec24116d8 Add very basic client tests. 2020-09-15 13:25:44 +01:00