Contains tests for testing the umqtt client.
- unit_test - runs unit tests against some/many/all the functions
- compliance - runs a compliance test on umqtt against a test server
- umqtt - client source code used for tests
- umqtt - the umqtt client source code
- paho.mqtt.testing - mqtt test server, written in python
- Unity - the unit testing framework
Assuming repo is cloned and all submods are updated ...
To run unit test ...
- cd unit_test
- make
- build/umqtt_unit_test -v
To run compliance test ...
- open a second terminal window
- in terminal 2: cd paho.mqtt.testing/interoerability
- in terminal 2: python3 startbroker.py
- in terminal 1: cd compliance
- in terminal 1: make
- in terminal 1: ./umqtt_compliance_test -v
When you run the compliance test you will see a bunch of messages from the test broker in terminal 2. These show you the test coverage and any problems. However, it is not well documented.
More info about the test broker here: