1
0
mirror of https://github.com/qt/qtmqtt.git synced 2026-10-25 16:16:26 +00:00
qtmqtt/tests
Maurice Kalinowski 95b38eafb5 Fix handling of multiple wildcards
The matching check for topic filters did not take into account that a
mixture of wildcards is valid. While # is only allowed a single time,
using + is valid in multiple occasions and can also me mixed with other
wildcards.

Fixes: QTBUG-104478
Pick-to: 6.6 6.5 6.2
Change-Id: I04129d5fbbb21c95115a15d74c6787804a8d0b10
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
2023-11-30 09:57:18 +01:00
..
auto Fix handling of multiple wildcards 2023-11-30 09:57:18 +01:00
benchmarks Use SPDX license identifiers 2022-06-16 10:22:20 +02:00
common Use SPDX license identifiers 2022-06-16 10:22:20 +02:00
libfuzzer/mqtt/data_receive Use SPDX license identifiers 2022-06-16 10:22:20 +02:00
manual Disable cmdline-only example on Android 2023-05-08 20:23:49 +03:00
CMakeLists.txt Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 11:52:33 +01:00
README.txt Add README for using auto tests 2018-02-02 07:59:27 +00:00

The tests included in the subdirectories check for functionality and
conformance of the Qt MQTT module.

To be able to run the tests successfully, a broker needs to be available and
reachable.

The continuous integration utilized the paho conformance test broker. It can
be obtained at this location:
https://github.com/eclipse/paho.mqtt.testing

For the unit tests being able to locate this script, use the
MQTT_TEST_BROKER_LOCATION environment variable and set it
to “<install-path>/interoperability/startbroker.py”.

Alternatively, any broker can be instantiated and passed to the auto tests
by using the environment variable MQTT_TEST_BROKER. This must point to a
valid url. The broker must run on the standardized port 1883.

Note, that the unit tests verify functionality against the MQTT 3.1.1 version
of the standard, hence the broker needs to be compliant to the adherent
specifications.