Ian Craggs
a312d934be
Allow 'high performance' build without heap tracking and stack tracing #817
2020-03-05 17:31:32 +00:00
Andreas Walter
ad155b1f52
use find_package to configure and use OpenSSL
...
Signed-off-by: Andreas Walter <andreas.walter@waltronix.de>
2020-02-09 19:57:18 +01:00
Ian Craggs
a67785a372
Run all static tests
2020-02-05 16:30:54 +00:00
Ian Craggs
33bcce1ef8
Build static and shared versions of samples and tests. Start running tests
2020-02-05 15:07:57 +00:00
Deon McClung
c116b725ff
Make shared build optional
...
Signed-off-by: Deon McClung <dmcclung.eclipse@gmail.com>
2020-02-01 23:15:33 -07:00
Andreas Walter
397610be74
Merge branch 'develop' into reduce_symbol_visibility_in_cmake_linux_builds
...
Signed-off-by: Andreas Walter <andreas.walter@waltronix.de>
2020-01-27 08:42:48 +01:00
fpagliughi
fbd38b16cf
#368 Add underscores to Windows compiler macro checks, _WIN32 and _WIN64
...
Signed-off-by: fpagliughi <fpagliughi@mindspring.com>
2020-01-25 10:38:18 -05:00
Andreas Walter
e3fbd02afa
make test certificate path independent of ci environment
...
Signed-off-by: Andreas Walter <andreas.walter@waltronix.de>
2020-01-21 11:53:15 +01:00
Ian Craggs
64cb7ec49e
Remove unused vars from test
2020-01-20 17:12:40 +00:00
Andreas Walter
c722744812
only set OPENSSL_SEARCH_PATH if not empty
...
Signed-off-by: Andreas Walter <andreas.walter@waltronix.de>
2019-12-31 11:51:08 +01:00
Ian Craggs
87a3f3d746
Merge branch 'master' into develop
2019-11-28 11:33:22 +00:00
Ian Craggs
2b3f90ac10
Improve pending tokens test
2019-11-28 11:25:31 +00:00
Ian Craggs
85049c3b78
Correct persisting of pubrel received publish messages in MQTT V5
2019-11-27 13:45:04 +00:00
Ian Craggs
35916d2207
Remove assertion which cannot be guaranteed to be true
2019-11-27 13:41:30 +00:00
Ian Craggs
ac3ae38069
Correct persisting of pubrel received publish messages in MQTT V5
2019-11-26 14:20:17 +00:00
Ian Craggs
028fa7727a
Improve test45 no 7 reliability
2019-10-01 13:17:58 +01:00
Ian Craggs
fdf5387d1b
Improve test5 TLS testing
2019-09-26 14:21:26 +01:00
Ian Craggs
33d9f45ae2
Run websocket MQTT V5 tests in Travis
2019-09-17 14:02:05 +01:00
Ian Craggs
20713e9b9c
Updates for ws testing
2019-09-17 13:26:07 +01:00
Ian Craggs
41b22e2d8f
Don't run CAPath tests on Windows
2019-08-03 14:50:32 +01:00
Ian Craggs
9e90ffb237
Force new build
2019-08-03 14:20:57 +01:00
Ian Craggs
7baf628f5b
Add debug for test45-7
2019-08-03 00:13:36 +01:00
Ian Craggs
6fdcc7bd2b
Debug test45 pending-tokens
2019-08-02 17:10:31 +01:00
Ian Craggs
fd90bc4927
Big message test refactoring again
2019-08-01 18:37:33 +01:00
Ian Craggs
f7abd15641
MQTT protocol debug for big message test
2019-08-01 14:07:08 +01:00
Ian Craggs
1dd931ae26
Correct big message test timing (2)
2019-08-01 12:10:15 +01:00
Ian Craggs
91a7727c0b
Alternative debug method
2019-08-01 11:23:37 +01:00
Ian Craggs
59ea130410
Turn back on trace to debug big message test
2019-08-01 10:57:58 +01:00
Ian Craggs
555df54771
Update big message test for reliable timing
2019-08-01 10:16:49 +01:00
Ian Craggs
67041b420a
Add temporary tracing for test5-7-big-messages to debug Travis MacOS failure
2019-07-31 17:44:33 +01:00
Ian Craggs
99d896fc56
Reduce size of message in big message test for Travis MacOS test
2019-07-30 20:40:41 +01:00
Ian Craggs
0168090fc0
Correct tests running in test5.c, including capath tests
2019-07-30 16:49:28 +01:00
Ian Craggs
a033301fce
Merge branch 'develop' of https://github.com/janderholm/paho.mqtt.c into janderholm-develop
2019-07-24 20:57:11 +01:00
fpagliughi
62e7f5c035
#681 The Eclipse MQTT sandbox server moved to new address, 'mqtt.eclipse.org'
2019-07-20 12:51:38 -04:00
Ian Craggs
6c3530f681
Remove unused sample
2019-06-20 11:27:47 +01:00
Ian Craggs
8064910808
Merge branch 'CApath_fix' of https://github.com/jumoog/paho.mqtt.c into jumoog-CApath_fix
2019-04-16 12:41:06 +01:00
Kilian von Pflugk
87450e252c
add capath test
...
Signed-off-by: Kilian von Pflugk <github@jumoog.io>
2019-04-15 20:17:38 +02:00
Ian Craggs
5e86e6315f
Merge pull request #629 from tucic/session_present_not_set
...
Session present not set
2019-04-15 11:44:34 +01:00
Piotr Wach
de778c934c
Fix failing tests
...
Signed-off-by: Piotr Wach <pwach@bloomberg.net>
2019-03-22 14:06:37 +00:00
Milan Tucic
68f2bd21be
Test session present flag on MQTTClient_connect (issue #627 )
...
Signed-off-by: Milan Tucic <tucic.milan@gmail.com>
2019-03-14 11:38:39 +01:00
Johan Anderholm
19aa5bbbe6
Added tests for TLS-PSK
...
Signed-off-by: Johan Anderholm <johanam@axis.com>
2018-11-08 13:12:27 +01:00
Ian Craggs
bc7fca4227
Final persistence test #534
2018-09-07 11:44:41 +01:00
Ian Craggs
b4039d9963
Some more persistence changes along with tests #534
2018-09-07 11:32:25 +01:00
Ian Craggs
96ac7e1267
Fix Windows build and make tests more reliable #534
2018-09-06 15:55:44 +01:00
Ian Craggs
296fe57cd2
MQTT V5 persistence updates #534
2018-09-05 22:13:40 +01:00
Ian Craggs
e24c1b4ce6
Some sample program and reason code improvements
2018-09-03 12:34:44 +01:00
Ian Craggs
4b355d1fd4
Fix for issue #524
2018-08-28 11:50:47 +01:00
Ian Craggs
354f84cbb7
See if this fixes old Windows compiler builds
2018-08-22 19:07:14 +01:00
Ian Craggs
5f8e65ebcc
Another couple of compile warning fixes
2018-08-16 19:20:08 +01:00
Ian Craggs
7448d7bfa0
Eliminate some Windows compile warnings
...
Please enter the commit message for your changes. Lines starting
2018-08-16 19:14:00 +01:00
Ian Craggs
83c07c71d4
Monotonic build fixes #513
2018-08-13 19:00:02 +01:00
Ian Craggs
992af7ac02
Update documentation #503
2018-08-01 20:01:12 +01:00
Ian Craggs
205a5a201a
Update utilities for MQTT V5 and websockets #504
2018-07-18 21:27:13 +01:00
Ian Craggs
02be5e7e19
Libs again 2!
2018-07-04 23:57:58 +01:00
Ian Craggs
aeaa1fea0f
Libs again
2018-07-04 23:51:45 +01:00
Ian Craggs
b266088962
Need libs for Linux test build
2018-07-04 23:38:11 +01:00
Ian Craggs
8cf6c3e846
Oops, forgot the test file
2018-07-04 23:24:35 +01:00
Ian Craggs
3b23859ef5
Some threading tests
2018-07-04 18:58:57 +01:00
Ian Craggs
d0f87d5850
MQTT V5 async tests for shared subs, subs options and request response #470 471 487
2018-07-02 12:43:42 +01:00
Ian Craggs
7dc676e5bd
Add another batch of MQTT V5 tests #470 #471 #487
2018-06-28 16:36:31 +01:00
Ian Craggs
d57c84b5cb
Add QoS 2 error reporting #466
2018-06-27 16:37:40 +01:00
Ian Craggs
9bc5fbc422
Add error reporting tests
2018-06-26 10:47:51 +01:00
Ian Craggs
35080b1158
Report reason codes and properties back from un/subscribe #467
2018-06-25 23:35:34 +01:00
Ian Craggs
2aebba99ab
Change MQTTClient cleansession to cleanstart for V5 #468
2018-06-22 12:52:47 +01:00
Ian Craggs
2bc9c403d4
MQTTV5 flow control (receive maximum)
2018-06-21 20:13:39 +01:00
Ian Craggs
5bfa672b30
Fix qos selection in test
2018-06-21 09:46:15 +01:00
Ian Craggs
c949535213
Add subscription id test for MQTTAsync
2018-06-20 16:36:44 +01:00
Ian Craggs
0ec33aee56
Add subscription id test for MQTTClient
2018-06-20 15:41:07 +01:00
Ian Craggs
00ae857272
Finish off topic alias tests
2018-06-18 14:03:55 +01:00
Ian Craggs
75dc28dce9
Add server topic aliases test for async client
2018-06-18 12:06:10 +01:00
Ian Craggs
3b94a791c8
Add MQTTClient server topic alias test
2018-06-15 17:40:39 +01:00
Ian Craggs
ede005c41d
Async client specific test for client topic aliases
2018-06-08 19:35:03 +01:00
Ian Craggs
b07dee3bb5
Test10 updates
2018-06-07 17:20:33 +01:00
Ian Craggs
da1d92bcdb
Get test10 to build on Windows
2018-06-07 16:48:21 +01:00
Ian Craggs
7ea1333911
MQTTClient v5 specific tests. Receive disconnect #469 . Client topic aliases #472
2018-06-07 14:45:01 +01:00
Ian Craggs
fcef9b5dd5
Merge branch 'develop' into mqttv5
2018-06-04 15:38:02 +01:00
Ian Craggs
a892672057
Add full test1 tests for V5
2018-05-31 17:10:34 +01:00
Ian Craggs
77cc4fb960
Add cleanstart and session expiry to async test/client
2018-05-04 17:56:48 +01:00
Ian Craggs
ced0d0ef45
Make all tests in test45.c work with MQTT 5
2018-05-03 17:55:08 +01:00
Keith Holman
8c988485ec
build: various warning fixes
...
This patch fixes various warnings produced during the build the most
common warning, is the truncation of "size_t" (usually unsigned long) to
(int). This patch explicitly casts the result to "int" in these cases
to supress the warning. Additionally, this patch includes a fix to an
internal library load function to take a "const char *" parameter
instead of a "char *" parameter.
Signed-off-by: Keith Holman <keith.holman@windriver.com>
2018-05-02 17:01:21 -04:00
Ian Craggs
167278c0a8
First pass at MQTTAsync - sending V5 packets and receiving responses
2018-04-27 22:26:23 +01:00
Ian Craggs
6983ad7f87
MQTTClient unsubscribe and disconnect
2018-04-18 18:24:06 +01:00
Ian Craggs
36ca298edd
Merge branch 'develop' into mqttv5
2018-04-18 10:23:00 +01:00
Ian Craggs
bc8a5cb700
Publish qos 1 and 2, unsubscribe
2018-04-17 22:47:10 +01:00
Ian Craggs
3b1e70dd88
Consolidate mqttsas and mqttsas2 into one which handles both Python2 and Python3
2018-04-12 13:09:36 +01:00
Ian Craggs
7cc0e3fa38
MQTT 5.0 publish qos 0 send and receive
2018-03-22 17:37:45 +00:00
Ian Craggs
9c4a917fc2
Allow test proxy to work with either Python 2 or 3
2018-03-21 10:35:39 +00:00
Ian Craggs
c6aba7f145
MQTT 5.0 subscribe packets - #417
2018-03-20 23:21:47 +00:00
Juergen Kosel
e858851455
Modify order of includes to fix travis build
...
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2018-03-12 16:49:27 +01:00
Juergen Kosel
fcfb5b43ef
Merge branch 'develop' into 373
...
* develop: (21 commits)
Add OpenSSL version check for X509_check_host
Try to update OpenSSL on Ubuntu$
Add TLS config for client and server for hostname verification #420
Add TLS hostname check and CApath #420 #418
Add tests for wrong protocol name #294
Check for bad protocol name #294
Check for SSLOptions structure when SSL protocol prefix is used #334
Update CONTRIBUTING.md CLA info
Remove reference to exit() function #342
Reinstate tests for appveyor
Enclose references to OsWrapper in #if defines
Squashed commit of the following:
Package AppVeyor artifacts attempt 1
Create /usr/local/include if it doesn't exist #275
Remove 373 test from Makefile... add the test source for posterity #416
Add doc for token in ResponseOptions #411
Add missing string.h include to SSLSocket.c
Try AppVeyor config again
Update AppVeyor config for latest test broker updates
Move ListRemove after where qe is used #339
...
# Conflicts:
# src/SSLSocket.c
# test/test_issue373.c
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2018-03-12 15:19:44 +01:00
Ian Craggs
14035190a4
Fix windows enum name clash
2018-03-08 20:01:07 +00:00
Ian Craggs
6a1f39f7b7
MQTT 5.0 connect and connack #417
2018-03-08 18:52:07 +00:00
Ian Craggs
e4c2ed2327
Add TLS config for client and server for hostname verification #420
2018-03-01 20:24:23 +00:00
Ian Craggs
695563fccb
Add TLS hostname check and CApath #420 #418
2018-03-01 19:52:20 +00:00
Ian Craggs
8276dcd217
Add tests for wrong protocol name #294
2018-02-26 16:57:13 +00:00
Ian Craggs
adf15a38a1
Check for SSLOptions structure when SSL protocol prefix is used #334
2018-02-26 16:20:37 +00:00
Ian Craggs
81fba83b89
Remove 373 test from Makefile... add the test source for posterity #416
2018-02-13 22:21:27 +00:00
Juergen Kosel
3bdd5b5d92
Merge branch 'develop' into 373
...
* develop:
Remove reference to internal Heap functions for now
Some cleanup of testing code
Add call to AppVeyor env setup
Do we need spaces?
Try again...
Change vcvars syntax
Check visual studio env var
Correct vcvarsall location
Add Visual Studio 2013 build as well as 2015
Reinstate .travis.yml
Update cd command
Use HTTPS git checkout instead of SSH
Another Python3 try
Update Python3 version
Try AppVeyor build with local broker
修改了restoreCommand时:(1)topics指针未申请内存的问题;(2)unsub误写为sub的问题。
fix issue that MQTTClient_connect hangs on network outage, for windows
# Conflicts:
# src/Socket.c
# test/test6.c
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-18 09:01:57 +01:00
Ian Craggs
abecbdc8ca
Remove reference to internal Heap functions for now
2017-12-15 12:16:18 +00:00
Ian Craggs
bc1399a63b
Merge branch '373' into develop
2017-12-15 12:05:10 +00:00