Commit Graph

33 Commits (e25d2a6d712c2acf9ab241dc45a2c727e484c426)

Author SHA1 Message Date
David Garske 2f7506a8ca More logs on failure/timeout. 2023-11-21 16:08:54 -08:00
David Garske da5f1989f7 Enable firmware test without TLS support. 2023-11-21 15:45:45 -08:00
David Garske e46c2e9507 For systems without bwrap use a random port and no TLS. 2023-11-21 15:09:21 -08:00
David Garske bffe15c839 Improvements to the tests. MacOS local broker. Improve `WOLFMQTT_TEST_NONBLOCK`. 2023-11-21 15:08:25 -08:00
David Garske 694e37997d Peer review feedback. Keep cancel private function unless non-block or multi-thread. Fix for `--disable-tls` and added tests. 2023-11-21 15:08:25 -08:00
Eric Blankenhorn 65f3241505 Fixes for release 2023-11-02 08:25:11 -05:00
Eric Blankenhorn 9bc0925734 wolfMQTT Release v1.17.0 preparation 2023-11-01 10:01:19 -05:00
David Garske c973f0f966 * Added write WOLFMQTT_TEST_NONBLOCK support.
* Fix to make sure ctrl+c is honored during a want read/write case.
* Fix the firmware update example to properly synchronize publish and use a unique topic name.
* Improve multi-thread test message to use larger size (> tx but) and in test mode check for actual message.
* Improve remote test done logic.
* Only run GitHub CI for PR's, not local push.
* Properly set `WOLFMQTT_NO_EXTERNAL_BROKER_TESTS` for each test.
* Use cat for logs, not more.
2023-10-27 11:19:47 -07:00
Eric Blankenhorn eb057eabf6 Add mosquitto to CI tests 2023-10-26 11:57:28 -05:00
Eric Blankenhorn 06465df3dd Exclude CI tests with external brokers 2023-10-17 15:51:54 -05:00
Juliusz Sosinowicz d69c7b5a30 Fix script bwrap calls 2023-05-12 09:13:33 +02:00
Juliusz Sosinowicz dde03b3c9d Remove sleep calls in scripts 2023-05-11 17:12:19 +02:00
Juliusz Sosinowicz ceee98d4a1 bwrap tests when using local mosquitto instance 2023-05-11 17:08:38 +02:00
Lealem Amedie b3cabf49d3 Add testing for mqtt client mutual auth 2023-03-16 14:39:59 -06:00
Anthony Hu 297c6d8f9c Support post-quantum KYBER_LEVEL1 and P256_KYBER_LEVEL1 in wolfMQTT. 2022-06-06 14:39:22 -04:00
Eric Blankenhorn e24bd0edaa wolfMQTT Release v1.11.0 preparation 2022-01-07 15:20:59 -06:00
Lealem Amedie d7ec0a739b Fix bug in test scripts 2021-12-29 10:20:49 -07:00
Eric Blankenhorn a9e9e0885f Fix scripts for host without mosquitto 2021-12-17 16:24:03 -06:00
Eric Blankenhorn 039e04359b Remove unused sub_id element, add support for local test broker 2021-11-19 11:33:13 -06:00
Eric Blankenhorn 2d695ca4d9 Add example for MQTT-SN predefined topic usage. Disable WIOT test. 2021-06-11 16:04:32 -05:00
Eric Blankenhorn 0d7dfe5a30 wolfMQTT Release v1.7 preparation 2020-08-21 13:47:11 -05:00
David Garske bc8832a7bc Fixes for multi-threaded handling. Added encode debug log messages. Added logging for thread using `WOLFMQTT_DEBUG_THREAD`. 2019-12-27 13:03:58 -08:00
David Garske f96e79b3b5 Fix to add random client_id and topic as hex string when example use "-T" option. Fix for test scripts to check non-zero return code. Enable WIOT example with `--enable-nonblock` set. 2019-12-27 10:03:24 -08:00
David Garske 9950178322 Fixes for non-blocking and multi-threading edge cases.
* Fix for multi-threading case where packet_obj of wrong type could be used.
* Fix to allow multi-threaded example when non-blocking build option is enabled.
* Added message when `mqtt_check_timeout` triggers timeout.
* Added extra timeout for test scripts because 1 second is too small to give enough time in all cases (1.9-2.0 seconds is seen as a 1 second change).
2019-12-26 16:48:50 -08:00
Eric Blankenhorn 0b6fbc3496 Multithread capability added 2019-07-02 17:34:03 -05:00
Eric Blankenhorn dbb2e6b727 Create nonblocking mqttclient example 2018-09-28 07:45:03 -05:00
Eric Blankenhorn 506349cde7 Tests and prop API 2018-08-08 11:53:30 -05:00
David Garske e3d833b228 Fixes issue with read timeout in non-blocking mode with TLS enabled being teated as socket error. Cleanup of the return codes in network handling. Added AWS IoT test script. 2016-12-14 22:35:57 -08:00
dgarske df6337a125 Added Microchip Harmony wolfMQTT support (#11)
Added Microchip Harmony wolfMQTT support (see new README.me in IDE/Microchip-Harmony). Adds non-blocking mode "--enable-nonblock" or "WOLFMQTT_NONBLOCK". Combine duplicate code in the examples into examples/mqttexample.c. Added scripts/azureiothub.test. Added ./commit-tests.sh for testing all configurations. Added git pre-commit hook to run commit-tests.sh.
2016-08-22 12:29:08 -07:00
David Garske 5da19031a7 Added "--disable-tls" and "--disable-examples" options. The disable-tls option allows building wolfMQTT without the wolfSSL dependency. The disable-examples option prevents the examples from being built, which is useful when cross-compiling the library. 2016-05-16 14:37:12 -07:00
David Garske 27d85b502f Added the ability to pass additional arguments to the scripts. Example: ./scripts/client.test "-h localhost" 2016-02-18 10:52:02 -08:00
David Garske cf4a976945 Renamed the tests.test to client.test. 2016-01-25 15:05:46 -08:00
David Garske 5d0a19ab7b Library: Enhanced "MqttClient_WaitMessage" so it will return if we get a message, not just on timeout. Examples: Fixed bug with STDIN capture which could interrupt TLS connect. Added make check/test scripts (scripts/tests.test and scripts/firmware.test) that validate TLS, QoS 0-2 levels and the firmware update example. Adjusted the example include paths for more flexibility. Added new "-T" option for using examples to test. Added new "-C" option to allow custom command timeout. Combined duplicate example code into new header "mqttexample.h". Added a PRINTF helper macro to the examples for easier porting. Added better error trapping in examples so return code is populated for testing. Changed the example test functions to return int. 2016-01-25 14:40:45 -08:00