Commit Graph

343 Commits

Author SHA1 Message Date
Ian Craggs db7790ebc0 Try AppVeyor build with local broker 2017-12-14 12:42:16 +00:00
Juergen Kosel d8f662e9f5 Merge branch 'test4issue373' into 373
* test4issue373:
  Extend test_issue373 to test also with QoS 1 and 2
  Add helper script for test_issue373 to cyclically disconnect the VM running the broker
  Add log output for failed message queueing in test due to disconnect
  Do not reduce the tcp send buffer size for production code

# Conflicts:
#	test/test_issue373.c

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-08 14:52:52 +01:00
Juergen Kosel 00e3a0f566 Extend test_issue373 to test also with QoS 1 and 2
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-08 14:48:35 +01:00
Juergen Kosel c9741998ab Add helper script for test_issue373 to cyclically disconnect the VM running the broker
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-08 14:47:03 +01:00
Juergen Kosel 0c651aa2c9 Add log output for failed message queueing in test due to disconnect
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-08 14:47:03 +01:00
Juergen Kosel c69c82189e Fix Windows build of test6
The functions implemented in Heap.c are not usable for Windows builds.
Therefore use only for none MSVC builds.

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-08 10:53:23 +01:00
Juergen Kosel c9c5b9e203 Merge branch '373' of https://github.com/eclipse/paho.mqtt.c.git into 373
* '373' of https://github.com/eclipse/paho.mqtt.c.git:
  Add latest restart test changes
  Add test changes
2017-12-08 10:47:28 +01:00
Ian Craggs d889b8188f Add latest restart test changes 2017-12-07 11:56:22 +00:00
Ian Craggs b42782765b Add test changes 2017-12-05 16:51:03 +00:00
Juergen Kosel 4440ab7e68 Increase connect / disconnect iterations
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-05 16:39:32 +01:00
Juergen Kosel 7c34e20a91 Merge branch 'test4issue373' into 373
* test4issue373:
  Add log output for failed message queueing in test due to disconnect
  Add trace output to verify that reducing the tcp send buffer forces TCPSOCKET_INTERRUPTED
  Reduce the tcp snd buffer to provocate issue #385
  Move the evaluation of the not freed memory _after_ call of MQTTAsync_destroy()
  Fix Windows build of test_issue373 and increase number of iterations
  Consider any not freed memory as test failure
  Modified number of connect iterations and messages send per second
  Moved the decrement of pendingMessageCnt to another call back function
  Add test for issue #373 and #385
  Add skeleton of test_issue373
2017-12-05 11:26:22 +01:00
Juergen Kosel 1f36a313ff Add log output for failed message queueing in test due to disconnect
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-05 11:23:43 +01:00
Juergen Kosel 2c3dc75e5c Move the evaluation of the not freed memory _after_ call of MQTTAsync_destroy()
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-04 16:40:36 +01:00
Juergen Kosel dfe4060157 Fix Windows build of test_issue373 and increase number of iterations
The functions implemented in Heap.c are not usable for Windows builds.
Therefore use only for none MSVC builds.

Increase the workload and number of connect/disconnects.

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-04 15:55:23 +01:00
Juergen Kosel 0792478686 Consider any not freed memory as test failure
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-04 15:43:58 +01:00
Juergen Kosel bed5c09a25 Modified number of connect iterations and messages send per second
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-04 15:04:58 +01:00
Juergen Kosel 2ceffbc787 Moved the decrement of pendingMessageCnt to another call back function
For some unknown reason, decrementing pendingMessageCnt in
test373DeliveryComplete() does not work. Therefore moved to other call
back functions.

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-04 15:04:18 +01:00
Juergen Kosel cdd7f0e449 Add test for issue #373 and #385
This test connects to a broker up to 10 times.
As long as the connection is established, 100 message should be published
each second.
At the end all memory should be freed and no segmentation occurred.

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-04 14:39:12 +01:00
Juergen Kosel 14270a2b8c Add skeleton of test_issue373
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-12-04 10:53:35 +01:00
Ian Craggs e18db33e79 Add another continuous write test 2017-11-30 17:58:34 +00:00
Ian Craggs 6bd9c691a2 Add continuous send test 2017-11-30 17:57:30 +00:00
Ian Craggs a87450ebce Label test project as C; add flag to disable test build & run #331 2017-09-20 16:06:23 +01:00
Ian Craggs a5cbbbd476 Merge branch 'VxWorksSupport' of https://github.com/rpoisel/paho.mqtt.c into develop
PR #295
2017-07-27 11:00:21 +01:00
Ian Craggs 132af3ab49 Windows OpenSSL build 2017-07-21 15:19:49 +01:00
Rainer Poisel a16cff63cc Compile support for VxWorks 6.9
Signed-off-by: Rainer Poisel <rainer.poisel@logicals.com>
2017-07-08 23:51:17 +02:00
Ian Craggs 73541adbdb Increase receive timeout in test 2017-06-29 12:01:35 +01:00
Ian Craggs d5070d7967 Fix ant build & test plus some compiler warnings
Squashed commit of the following:

commit 42ff91b70ebc9719048c1676548683cdabfaa433
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Thu Jun 29 10:38:20 2017 +0100

    Proxy ports

commit c7cb7c1372796d26fd09cc9d8a098fd96e0d00d2
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Jun 28 19:46:19 2017 +0100

    Fix build.xml syntax

commit 371565969967a2bbad9965ec87019c57f63beb5f
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Jun 28 19:45:05 2017 +0100

    Fix mqttsas2 invocation

commit ec2d18d37c533d4df3a56cc5d28feb3334259d62
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Jun 28 19:34:10 2017 +0100

    Change broker port to allow proxy to start on Hudson
2017-06-29 10:52:06 +01:00
Lance Chen 42f5c13536
Fix `serverURIs` iterating in MQTTAsync.c
This commit fixes two bugs related to `serverURIs` iterating in MQTTAsync.c

1. Segfault occurs when there is no healthy connection in `serverURIs`

   Two off-by-one errors of the `currentURI` cause the issue. The first
   one happens when doing boundary check of `serverURIs`, and the other
   one happens when accessing `serverURIs` without checking the boundary
   first.

2. The first URI in `serverURIs` gets skipped when restricting
   `MQTTVersion` to a particular value

   `currentURI` gets increased *before* connection attempts in each
   iteration.

Signed-off-by: Lance Chen <cyen0312@gmail.com>
2017-06-24 02:53:28 +08:00
Ian Craggs 1d9b394c03 Reduce log verbosity for test 2d 2017-04-21 15:18:08 +01:00
Ian Craggs dcf457e08a Fix for issue #190 2017-04-21 15:00:55 +01:00
Juergen Kosel 34e550071c In test5 - 2d the client must not have the valid client certificate!
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-04-12 19:44:17 +02:00
Juergen Kosel 9c615a6f87 Correct / update the unit test labeling
Test5-2d has been added. So the corresponding label needs to be added
to the cmake file.

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-04-07 19:12:47 +02:00
Juergen Kosel 52ac56938b Reduce time for test2d
- Reduce the number of iterations to 20 (It usually fails in iteration 3)
- Reduce the timeout by factor 10

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-04-07 18:58:41 +02:00
Juergen Kosel 568d82407a Include MQTTAsync_create() call in the test iteration loop for test2d
With the call of MQTTAsync_create() within the iteration loop, the test
fails.
Remove the opts.serverURIs

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-04-07 16:45:49 +02:00
Juergen Kosel 5d463fdd27 Set use_identity_as_username false for mosquitto listener 18884
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-04-07 16:41:36 +02:00
Juergen Kosel b2a26f2840 Enable the server certificate in test5-2d
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-04-07 16:41:36 +02:00
Juergen Kosel 5809b05bb4 Set the serverURI in the corresponding array of the connect options for test5-2d
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-04-07 16:41:36 +02:00
Juergen Kosel 458a571709 Rerun test5-2d 100 times
Since issue #190 happens only some times, we need to rerun the test
several times.

Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
2017-04-07 14:10:45 +02:00
Ian Craggs 38d0427209 Add new test2d for issue #190 2017-04-07 11:48:44 +01:00
Ian Craggs f11f08e8b0 Binary passwords and will messages: PR #159, issues #167 and #34
Squashed commit of the following:

commit 907b9ecdaf160bf95c17aafcaf4ab3e656ab9ccc
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Apr 5 23:33:44 2017 +0100

    Use binary passwords in tests

commit 3930b18d3835727e3cb98ef0ce1a742bd0dffab7
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Apr 5 17:15:29 2017 +0100

    Binary MQTT password support

commit 4abe6a996b1219aafa22b5dd69bf1e676d377466
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Apr 5 16:13:18 2017 +0100

    Fix test config

commit e742ed182d6de44e9afd6e9c9c03c79f359fbe29
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Apr 5 15:46:53 2017 +0100

    Async binary will message

commit 9313e66214720c285f510e325a5c942ad22f2542
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Apr 5 11:50:10 2017 +0100

    Binary will message support, take 2

commit 5cf548505a548eff394348aa7406e5a34d0f5054
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Tue Apr 4 22:54:15 2017 +0100

    Binary will message
2017-04-06 10:49:05 +01:00
Ian Craggs 5571f9b1cd Some small cleanup 2017-03-28 23:22:15 +01:00
Ian Craggs 1f02409c7c Merge branch 'develop' of github.com:eclipse/paho.mqtt.c into develop 2017-03-28 16:54:30 +01:00
Ian Craggs 50f0501eb6 Tidy up test3 and CMake config 2017-03-28 16:47:40 +01:00
Ian Craggs 34360f6ac6 Reduce size on messages in test8-4 2017-03-28 15:56:10 +01:00
Ian Craggs 12f4fe9fbf Fix TLS certs dir on Windows 2017-03-28 14:21:39 +01:00
Ian Craggs b9587b54aa Add applink.c to windows TLS test program 2017-03-28 12:24:15 +01:00
Ian Craggs b8d9973cec Restrict proxy listener to localhost 2017-03-28 10:43:07 +01:00
Ian Craggs 1ec8f7953e Try again 2017-03-28 00:29:08 +01:00
James Sutton ec5c50b141
Adding Dockerfile and docker specific mosquitto configuration
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
2017-03-27 14:35:20 +01:00
Ian Craggs 91a98f6053 Merge branch 'develop' into fixes
Conflicts:
	test/CMakeLists.txt
2017-03-27 12:28:27 +01:00
Ian Craggs d0ed00cbf9 Change applink.c directory 2017-03-26 15:46:18 +01:00
Ian Craggs d1f9d3d73c Add OpenSSL include path for tests 2017-03-26 15:39:27 +01:00
Ian Craggs 34fff2b898 Merge branch 'fixes' of github.com:eclipse/paho.mqtt.c into fixes 2017-03-24 20:54:13 +00:00
Ian Craggs 8308744947 Build TLS libraries on Windows 2017-03-24 20:53:17 +00:00
Ian Craggs a94f10ecd9 MacOS updates for threading 2017-03-23 23:53:44 +00:00
Ian Craggs afa143d487 OS/X and Windows build fixes 2017-03-23 13:07:02 +00:00
Ian Craggs b880d34f4b Windows CMake build additions and corrections 2017-03-20 22:47:28 +00:00
Otavio Rodolfo Piske bf70515907 Prevent the tests from running for too long
This patch adds a new test property which forces CMake to abort the test
execution after 9 minutes.

Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-03-19 16:42:03 +01:00
Ian Craggs e9b89be45d Merge branch 'cmake-tests-appveyor' of https://github.com/orpiske/paho.mqtt.c into fixes 2017-03-18 11:19:12 +00:00
Ian Craggs 19d0c91d89 Merge pull request #235 from orpiske/protocol-log-override
Proposed enhancement: do not override trace settings from environment
2017-03-18 00:58:10 +00:00
Ian Craggs 9969008b97 Merge branch 'fix-warnings' of https://github.com/guilhermeferreira/paho.mqtt.c into fixes 2017-03-18 00:30:37 +00:00
Ian Craggs 6ed10b9d76 Merge branch 'cmake-tests-breakdown' of https://github.com/orpiske/paho.mqtt.c into fixes 2017-03-17 23:39:22 +00:00
Ian Craggs 3c3ffbed84 Change test1 will message test back to using proxy for disconnect 2017-03-17 19:46:41 +00:00
Ian Craggs 77fac9d308 Squashed commit of the following:
commit f6c276e1b334c43c3dc5a9bfe68ce4c4dc540d18
Author: Ian Craggs <icraggs@gmail.com>
Date:   Fri Mar 17 08:52:43 2017 +0000

    Fix up defines again

commit a8a50e3f3685913aeedb4d2b29e01e594f4938f8
Author: Ian Craggs <icraggs@gmail.com>
Date:   Thu Mar 16 22:45:25 2017 +0000

    Fix OSX compile definition in CMake config

commit 7b139247ff164f4f11faab41474442e5f0504452
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Thu Mar 16 18:52:45 2017 +0000

    Fix MacOS compile options

commit 9f1fceb28d3b6db25832da493da8fc1b5b7a5742
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Thu Mar 16 17:36:07 2017 +0000

    Accidentally removed OPENSSL compile flag

commit 213eeaa0439602d70383b16b4cff354a09136457
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Thu Mar 16 17:11:46 2017 +0000

    Change MacOS semaphore implementation and other build fixes

commit 4e00e4c322cb07285e559e736c579f0c2806d09e
Merge: 2baa87d 159c152
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Thu Mar 16 14:24:34 2017 +0000

    Merge branch 'fixes' of ssh://github.com/eclipse/paho.mqtt.c into fixes

commit 2baa87d83caf457bbf08a1fad34c06ef6e4820f3
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Thu Mar 16 14:18:19 2017 +0000

    Add USE_NAMED_SEMAPHORES compile flag for OSX

commit 159c1527be4e09fd42d0a4ae99d766d145f1a573
Author: Ian Craggs <icraggs@gmail.com>
Date:   Wed Mar 15 23:04:42 2017 +0000

    Correct test3 invocation

commit 15989ba1bdcf181cd9f9d21fbc0e952d046968b4
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Mar 15 18:47:23 2017 +0000

    Run proxy for test9

commit 3c7cc3c4fcdb65b2a4d600859f8dd44aece641ed
Author: Ian Craggs <icraggs@paho-mbp.hursley.uk.ibm.com>
Date:   Wed Mar 15 12:06:42 2017 +0000

    More build/test changes

commit a4bbb576dc27a8dc96f0fc1cd0af097090270ffc
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Mar 15 11:06:55 2017 +0000

    Stop mosquitto first

commit 3da32b8477c7fa2e0cdeab012288d8bac028eabe
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Mar 15 09:16:54 2017 +0000

    Start mosquitto

commit c000141195426ddfd1c2c00d079c30b345a8f64a
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Mar 15 09:09:27 2017 +0000

    Try starting mosquitto alternatively

commit 1a800225407aa9e8c989994f04a6d2410fa9edf9
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Mar 15 08:58:45 2017 +0000

    Environment variable

commit bc5e4609e3ae0e636e7944ed4326a1e46dbab386
Author: Ian Craggs <icraggs@gmail.com>
Date:   Tue Mar 14 21:27:24 2017 +0000

    Environment variables

commit fea6358def6b4da465e9e6c79ab9ba0044824166
Author: Ian Craggs <icraggs@paho-mbp.hursley.uk.ibm.com>
Date:   Tue Mar 14 15:03:47 2017 +0000

    Fix certs dir

commit 0f7f8a47d94b9324edd7a2e14cdf7eb3c5c5db19
Author: Ian Craggs <icraggs@paho-mbp.hursley.uk.ibm.com>
Date:   Tue Mar 14 11:52:03 2017 +0000

    Update certs dir

commit eacb0b62b70880b3dc81468b525435866c7bcb65
Author: Ian Craggs <icraggs@paho-mbp.hursley.uk.ibm.com>
Date:   Tue Mar 14 11:35:39 2017 +0000

    Another attempt at updating Mosquitto

commit 8e2071d237186ba498b8f3c4f08327b6d7235f49
Author: Ian Craggs <icraggs@paho-mbp.hursley.uk.ibm.com>
Date:   Tue Mar 14 11:01:54 2017 +0000

    Allow mosquitto upgrade

commit 9d608cc9f0a6b1e1f784547c7595bd936bf5a29d
Author: Ian Craggs <icraggs@gmail.com>
Date:   Mon Mar 13 23:32:37 2017 +0000

    Other build fix attempt

commit 043d8e1eb79ea2b50b79a405bd9d52dd489dcf3f
Merge: f234399 80b3d30
Author: Ian Craggs <icraggs@gmail.com>
Date:   Mon Mar 13 23:21:56 2017 +0000

    Merge branch 'fixes' of ssh://github.com/eclipse/paho.mqtt.c into fixes

commit f234399d480d603d3e725c427d1c3c17ad2a76cc
Author: Ian Craggs <icraggs@gmail.com>
Date:   Mon Mar 13 23:18:32 2017 +0000

    MQTTClient unpersist fix and local mosquitto

commit 80b3d3057a1c06f5de64da8521123469afeb61d5
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Mar 8 10:48:23 2017 +0000

    Try to fix up certs path

commit bb72cba38e2b5e9149715ae0fb523d765d867cab
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Wed Mar 8 10:24:12 2017 +0000

    Fix up test certificate paths

commit f26fb76633676493919b242721ba12a004265d75
Author: Ian Craggs <icraggs@gmail.com>
Date:   Wed Mar 8 00:28:13 2017 +0000

    Add OPENSSL compile definition to add the TLS code

commit 9ff1f033a6572700eb91efcb7e59448290223f66
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Mon Mar 6 11:06:05 2017 +0000

    Remove local mosquitto start

commit 500b4e0a51268ccc4ddb319fa4d7a0300edfeef3
Merge: 730cceb d710ad1
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Mon Mar 6 10:43:19 2017 +0000

    Merge branch 'fixes' of github.com:eclipse/paho.mqtt.c into fixes

commit 730cceb6bd2976cfc1ef7f7c7b22cac42f9826ed
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Mon Mar 6 10:37:00 2017 +0000

    Change test broker to mqtt.iotree.co.uk

commit d710ad1373689b9e0eba23c771a1045b1edceed9
Author: Ian Craggs <icraggs@gmail.com>
Date:   Mon Mar 6 00:12:36 2017 +0000

    More mosquitto config changes

commit a5e38b7cb60c94cc9c1564edf4360f96b7cb7d91
Merge: 011dace b3af687
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Sun Mar 5 23:51:00 2017 +0000

    Merge branch 'fixes' of github.com:eclipse/paho.mqtt.c into fixes

commit 011dace5a4f1d5a6ecb7699ce153079a28786434
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Sun Mar 5 23:50:17 2017 +0000

    Add mosquitto server config

commit b3af687a1a17eeceb0997a15a63dbe2a93c9c5d5
Author: Ian Craggs <icraggs@gmail.com>
Date:   Sun Mar 5 23:39:27 2017 +0000

    Change mosquitto config

commit 79c142f28f7b3f27b63cf96fdaa823b4d811088c
Author: Ian Craggs <icraggs@uk.ibm.com>
Date:   Sun Mar 5 23:20:53 2017 +0000

    Add mosquitto config for testing

commit 75ddf836924eed7a58b3a073ea0c92e48e4c4e84
Author: Ian Craggs <icraggs@gmail.com>
Date:   Sun Mar 5 18:55:47 2017 +0000

    Update CMake version on Ubuntu

commit ce88bd235d63037c88372f0c433b6f8bc0bfd505
Author: Ian Craggs <icraggs@gmail.com>
Date:   Sun Mar 5 13:45:09 2017 +0000

    Print out CMake version number

commit 8bacd62993341fbc033bae94994b44f8e36e826b
Author: Ian Craggs <icraggs@gmail.com>
Date:   Sat Mar 4 23:20:50 2017 +0000

    Run tests on Linux

commit bb64075c41e27a957b23f6dc8b151919037bfb73
Merge: fee1c80 d923d0e
Author: Ian Craggs <icraggs@gmail.com>
Date:   Sat Mar 4 16:09:17 2017 +0000

    Merge branch 'cmake-tests-travis' of https://github.com/orpiske/paho.mqtt.c into fixes

commit d923d0e972
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Tue Feb 14 13:23:08 2017 +0100

    Remove duplicated build code for Travis CI

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit d630ed1f7c
Author: Otavio R. Piske <opiske@redhat.com>
Date:   Mon Feb 13 22:03:44 2017 +0100

    Include the OpenSSL directories earlier in the build/configuration

    Compilation may fail when cross-compiling due to CMake/compilers forcely
    excluding /usr/include from the include path. Therefore, in this case it's
    required to add the include path for OpenSSL earlier in the process so that
    OpenSSL-dependent code can access the headers.

    Signed-off-by: Otavio R. Piske <opiske@redhat.com>

commit 74d3af9e58
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Tue Feb 7 17:50:54 2017 +0100

    Do use the OpenSSL crypto library otherwise linking of SSL versions of the libraries fail due to missing symbols

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 99aecbfbf8
Author: Ryan Pendleton <me@ryanp.me>
Date:   Mon Jun 20 13:26:50 2016 -0600

    add missing OPENSSL define to CMakeLists.txt

    Signed-off-by: Ryan Pendleton <me@ryanp.me>

commit 9f88345618
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Mon Feb 6 10:49:16 2017 +0100

    Link w/ compat library on FreeBSD otherwise it fails due to missing ftime function

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit f6bba5e326
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Thu Feb 2 10:16:40 2017 +0100

    Start mosquitto daemon accordingly to what is used on each support Travis CI OS

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit adcf8220bf
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Thu Feb 2 09:33:38 2017 +0100

    Enable mosquitto installation on OS X and do execute it on all available Travis CI OSes

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 683c6a0b98
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Wed Feb 1 17:56:07 2017 +0100

    Removed the non-existent test7

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 78b8ebd2f6
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Wed Feb 1 17:49:31 2017 +0100

    Prevent all the tests from running for too long otherwise it can cause the Travis CI build to fail

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit dcf574164a
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Wed Feb 1 17:02:09 2017 +0100

    Use a timeout for the test, otherwise Travis CI abort the execution

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 9b7b3c27a7
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Wed Feb 1 16:36:41 2017 +0100

    Conditionally resolve POSIX thread library to allow a more flexible linkage handling in systems that do not use pthreads

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 8ba0271b1e
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Wed Feb 1 16:30:55 2017 +0100

    Changed the build to only build SSL test cases if building with SSL support

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 2cef15f31c
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Wed Feb 1 16:14:24 2017 +0100

    Added missing make command to the build script

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 08eb556549
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Wed Feb 1 16:06:08 2017 +0100

    Use the APT addon from Travis to install the Mosquitto dependency

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 60a1f4e61b
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Wed Feb 1 16:00:28 2017 +0100

    Sudo is required on Travis build since we need to install mosquitto to run the unit tests

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 779460cd06
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Wed Feb 1 15:55:54 2017 +0100

    Adjusted the build on Travis CI so that unit tests are also run

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 7afe13bcb6
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Wed Feb 1 09:27:32 2017 +0100

    Initial work towards supporting unit tests with the CMake build system

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit e54b44dd62
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Sat Dec 31 17:06:55 2016 +0100

    Decrease mininum required version so that it can be built on EL7

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 21e3203994
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Sat Dec 31 15:39:20 2016 +0100

    Fix the library directory name for RHEL and Fedora

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>

commit 56199edfde
Author: Otavio Rodolfo Piske <opiske@redhat.com>
Date:   Tue Jan 17 08:27:27 2017 +0100

    Added missing make command to Travis build script

    Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-03-17 09:22:53 +00:00
Otavio Rodolfo Piske c463fc4c33 Do not override protocol log settings from environment variables
Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-03-07 21:11:05 +01:00
Guilherme Maciel Ferreira 2ce80b1039 Remove one_iteration() argument
The one_iteration() function accepts no parameters.

Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
2017-03-06 11:55:23 -06:00
Guilherme Maciel Ferreira 7b92bc3ec9 Using standard constants for exit(3) and return
According to ISO/IEC 9899:2011, section 7.22.4.4 (The exit function),
"the constant EXIT_FAILURE is the implementation independent way to
issue failures to exit(3)." Whereas EXIT_SUCCESS is the portable way
to return success.

Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
2017-03-06 11:55:23 -06:00
Guilherme Maciel Ferreira 6e88fdffbc Ensure an empty parameter list using void
According to ISO/IEC 9899:2011, section 6.7.6.3 (Function declarators
including prototypes): "The special case of an unnamed parameter of
type void as the only item in the list specifies that the function
has no parameters."

Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
2017-03-06 11:44:52 -06:00
Otavio Rodolfo Piske cdc70102c3 Split the test number parameter otherwise CMake pass it as one
parameter and the test code won't interpret is as individual test
invocation

Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-03-06 14:45:16 +01:00
Otavio Rodolfo Piske 2a28436485 Use CMake/CTest to orchestrate the multiple possible test executions
within each test program.

Among other things, this lead to better test reports from CTest which
improves integration in CI tools and environments (ie.: Jenkins), since
each test execution can be intepreted individually by the CI.

Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-03-06 14:16:03 +01:00
Otavio Rodolfo Piske ee26be0c52 Fixed copying the DLLs to the test directory
Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-02-07 14:28:33 +01:00
Otavio Rodolfo Piske 7a66543ec2 Fix compilation errors on test2 due to multiple symbol redefinitions
Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-02-07 14:28:33 +01:00
Otavio Rodolfo Piske 81357e97a8 Fixed invocation of the copy script
Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-02-07 14:28:33 +01:00
Otavio Rodolfo Piske b02b18043b "Added a build target to copy dll files to the test directory
This is a work-around to prevent test execution to fail due to not finding the DLLs. This affects only Windows builds and is work-in-progress as the directory locations for the binaries may be adjusted in the future.

Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-02-07 14:28:33 +01:00
Otavio Rodolfo Piske 248b068978 Temporarily disables building test9 on Windows, since the compilation is broken
Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-02-07 14:28:33 +01:00
Otavio Rodolfo Piske e06b1e35d1 Removed the non-existent test7
Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-02-07 14:28:33 +01:00
Otavio Rodolfo Piske 47c93f0fe0 Prevent all the tests from running for too long otherwise it can cause the Travis CI build to fail
Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-02-07 14:28:33 +01:00
Otavio Rodolfo Piske eac7ee5621 Use a timeout for the test, otherwise Travis CI abort the execution
Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-02-07 14:28:33 +01:00
Otavio Rodolfo Piske d7452281f1 Changed the build to only build SSL test cases if building with SSL support
Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-02-07 14:28:33 +01:00
Otavio Rodolfo Piske 891faf0fdb Initial work towards supporting unit tests with the CMake build system
Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-02-07 14:28:32 +01:00
Otavio Rodolfo Piske 17fccfca21 Initial work towards supporting unit tests with the CMake build system
Signed-off-by: Otavio Rodolfo Piske <opiske@redhat.com>
2017-02-07 13:49:27 +01:00
Ian Craggs a3ec008874 Fix test 4 on Windows 2016-06-17 05:11:38 +01:00
Ian Craggs e315ce26dc Build test2 and test3 on Windows 2016-06-16 23:01:26 +01:00
Ian Craggs 23aebfa546 Add function and test for max buffered messages 2016-06-14 22:20:57 -04:00
Ian Craggs eb738d627d Check getPendingTokens == 0 2016-06-14 19:56:31 -04:00
Ian Craggs 5829d3e837 Add test 2 for offline buffering 2016-06-14 18:33:15 -04:00
Ian Craggs a8f4c9d326 Change python proxy to use Python2 2016-06-06 00:38:45 +01:00
Ian Craggs 2a8dad13d3 Add offline buffering test, and reconnect function 2016-06-05 23:40:21 +01:00
Ian Craggs 00bdf98996 Merge branch 'issue_2' into develop
Automatic reconnect and offline buffering
2016-05-31 12:21:01 +01:00
Ian Craggs b62244d5b3 Add Python interface for easier testing 2016-05-01 21:20:54 +01:00
Ian Craggs 2b9ce5e02a Fix counting in test2 2015-12-15 12:16:37 +00:00
Ian Craggs d467046384 Lengthen wait in test2.c test1 2015-12-15 11:15:08 +00:00
Ian Craggs 9cde3e531b Lengthen wait time and alter check in test2 2015-12-15 10:50:41 +00:00
Ian Craggs e8ec3da35f Test2 test working - remove excess debug messages 2015-11-10 23:40:33 +00:00
Ian Craggs ca795ebd64 More debugging in test2.c 2015-11-10 23:32:31 +00:00
Ian Craggs bfd717e08e Add another missing volatile 2015-11-10 23:22:02 +00:00
Ian Craggs 2263edc821 Add mutex locks to correct callback 2015-11-10 23:17:51 +00:00
Ian Craggs 12b4bca84c Protect delivery complete count from multiple access 2015-11-10 22:53:41 +00:00
Ian Craggs 7c03c4adb7 Add volatile to count, to try to get multi-thread test working properly 2015-11-10 22:37:50 +00:00
Ian Craggs 5deab80ded Fix build - reduce log output 2015-08-13 16:08:12 +01:00
Ian Craggs 8a93fed2bc Fix multi-thread access for MQTTClient
Bug: 474905
2015-08-13 15:09:14 +01:00
Ian Craggs e93f8006d1 Call failure callbacks when commands are incomplete
Bug: 444103
2015-08-11 15:20:12 +01:00
Ian Craggs 7132c136e7 Lengthen some timeouts in test1 2015-02-09 13:31:12 +00:00
Ian Craggs 8ffd07f12c Merge branch 'develop'
Conflicts:
	src/MQTTAsync.c
2014-10-04 12:31:35 +01:00
Ian Craggs 9909826e9b Turn off some warnings 2014-10-03 16:40:31 +01:00
Ian Craggs 04e69596c2 Remove compiler warning in test4.c 2014-10-03 16:33:49 +01:00
Ian Craggs cf409bd15e Test4.c updates for reliability 2014-10-03 16:29:46 +01:00
Ian Craggs 69d9be4d02 Merge branch 'develop'
Conflicts:
	CONTRIBUTING.md
2014-10-01 16:04:06 +01:00
Ian Craggs e91516b94d Remove test debugging settings 2014-09-25 21:51:32 +01:00
Ian Craggs 8b0906f841 More debug for test4 2014-09-25 21:22:20 +01:00
Ian Craggs 399968b6fc Debug for test4 2014-09-25 13:48:06 +01:00
Ian Craggs 64528d2ddd Restore test1 trace to default 2014-09-04 12:05:20 +01:00
Ian Craggs a4901bac1d Debug for test1 on Windows 2014-08-28 14:45:59 +01:00
Ian Craggs 2c969cfaa5 Remove assertion which fails against Mosquitto 2014-08-26 21:28:49 +01:00
Ian Craggs 1eb002b1b4 Remove debug in tests and add modification comment - remove retry default
Bug: 442400
2014-08-26 20:38:05 +01:00
Ian Craggs 033e682c2f Optimize debug in test 2014-08-26 12:57:10 +01:00
Ian Craggs 10f840944b Higher level of debug 2014-08-26 12:47:47 +01:00
Ian Craggs 0db1166495 Debug test 5 2014-08-26 12:40:10 +01:00
Ian Craggs 0f8eca4955 Debug test4 2014-08-26 11:51:30 +01:00
Ian Craggs 732a941b88 Fix test temporarily 2014-08-26 11:37:28 +01:00
Ian Craggs 2dd357ff20 Increase timeouts in test3 to help with Mac build tests 2014-08-20 12:07:21 +01:00
Ian Craggs a29ac8bd11 Remove compiler warning in a test 2014-08-20 11:40:22 +01:00
Ian Craggs 2ba53a3832 add MQTTAsync_waitForCompletion and MQTTAsync_isComplete
Bug: 433871
2014-08-18 19:19:57 +01:00
Ian Craggs 404909dd4f Improve checking of connection lost test 2014-07-22 11:25:04 +01:00
rxiang 96faf843fc 43204 review
Signed-off-by: rxiang <xiangr@cn.ibm.com>
2014-07-07 03:11:51 +08:00
Ian Craggs cc77570d69 Add subscribe failure return code processing for MQTT 3.1.1
Bug: 436049
2014-06-10 16:21:36 +01:00
Ian Craggs 0dd83c1d10 Return connack information for MQTT 3.1.1 in the async client
Bug: 436049
2014-06-06 15:18:45 +01:00
Ian Craggs 2d2bd98c14 MQTT 3.1.1 support - sessionPresent for MQTTClient
Bug: 436049
2014-06-05 16:36:19 +01:00
Ian Craggs 3b79c88c08 Merge ssh://git.eclipse.org:29418/paho/org.eclipse.paho.mqtt.c into develop
Conflicts:
	src/MQTTAsync.c
	src/MQTTClient.c
	src/MQTTProtocolOut.c
2014-05-29 13:46:25 +01:00
Ian Craggs 587f674ed6 Windows build for Hudson and Visual Studio 2014-05-15 16:42:36 +01:00
Ian Craggs 33c5108b69 Remove OSX compiler warnings 2014-05-08 14:14:39 +01:00
Ian Craggs bf67bab405 Get rid of compiler warnings on MacOSX 2014-05-08 13:54:52 +01:00
Ian Craggs 2380b26dfb Add WIN64 to WIN32 conditional compilation statements 2014-04-10 14:41:57 +01:00
Ian Craggs d409a9487e Some corrections to interops test 2014-03-19 16:43:47 +00:00
Ian Craggs d5b49f7ee2 Add remaining interops tests to sync_client_test.c 2014-03-14 19:06:26 +00:00
Ian Craggs 86dcb19667 Add sync client interops test 2014-03-14 14:01:06 +00:00
Ian Craggs 2c108549bf MQTT 3.1.1 changes in tests and synchronous client 2014-03-14 10:17:07 +00:00
Ian Craggs 5ea7496633 Allow applications to choose MQTT 3.1 or 3.1.1 explicitly 2014-03-13 15:15:56 +00:00
Ian Craggs fa68280d04 Fix buffering of connect packet 2014-03-12 15:45:22 +00:00
Ian Craggs bc11ecc07a Turn on test tracing for debug 2014-03-11 16:11:55 +00:00
Ian Craggs 7c30485c5e Update header commments for 3.1.1 updates 2014-03-03 12:43:56 +00:00
Ian Craggs 28e3c0182d MQTT 3.1.1 2014-03-03 00:21:44 +00:00
Ian Craggs d4ef7186ce Update location of SSL certs for new build 2014-02-14 16:58:19 +00:00
Ian Craggs 253842cedb Build clean on gcc 4.7 2013-11-15 23:07:06 +00:00
Ian Craggs 0a385f482b All ssl configuration files needed for SSL tests 2013-11-13 11:35:36 +00:00
Ian Craggs 5c2ebb84ea Remove anonymous cipher test 2013-10-24 13:48:49 +01:00
Ian Craggs a2b08b8e8d Restore test3 back - removing debug 2013-10-23 22:42:45 +01:00
Ian Craggs 6388cd1750 Test3 debugging 2013-10-14 17:09:27 +01:00
Ian Craggs 678d5c73eb Test3 debugging 2013-10-14 16:59:12 +01:00
Ian Craggs 391bed8f41 Test3 debugging 2013-10-14 16:50:38 +01:00
Ian Craggs 9c4d19f3c2 Test3 debugging 2013-10-14 16:41:14 +01:00
Ian Craggs da03142e46 Test3 debugging 2013-10-14 16:34:56 +01:00
Ian Craggs 0da905c55d Test3 debugging 2013-10-14 16:29:30 +01:00
Ian Craggs bf5f08dba3 Test3 debugging 2013-10-14 15:49:55 +01:00
Ian Craggs 8b8ec8093b More debugging for test3 2013-10-14 15:12:38 +01:00
Ian Craggs 0e06d1678e Temporary changes to test3 for debugging 2013-10-14 15:00:57 +01:00
Ian Craggs baeaf2dca9 Tracing for test3.c 2013-10-11 16:21:29 +01:00
Ian Craggs 57a3cd1529 Another clientid to shorten in test4.c 2013-10-11 15:48:47 +01:00
Ian Craggs f54ff292ef Shorten clientid in test4.c test6, to be less than 23 chars 2013-10-11 15:44:47 +01:00
Ian Craggs 735662d6ed Test4 tracing 2013-10-11 15:40:40 +01:00
Ian Craggs dd2a4063a8 Threading updates for bug #419233 2013-10-11 15:20:50 +01:00
Ian Craggs be218ab65a Reset trace settings to error only 2013-10-09 11:42:24 +01:00
Ian Craggs 4795d896bb Turn on trace to debug occasional error 2013-09-12 16:59:21 +01:00
Ian Craggs 648f057f39 Token not set in one call to publish in test1.c 2013-09-09 22:30:40 +01:00
Ian Craggs 19bedf9350 Change back test trace level 2013-08-30 15:14:12 +01:00
Ian Craggs 77d7dae4ce Improve tests - will messages and ha connect options 2013-08-28 16:46:28 +01:00
Ian Craggs 3ed9a7b36d SSL test debugging 2013-08-28 13:10:15 +01:00
Ian Craggs 8fff598c71 Latest test changes 2013-08-27 13:54:09 +01:00
Ian Craggs fd74d05107 Test updates 2013-08-22 14:16:33 +01:00
Ian Craggs 7ae71b966c Debugging aids 2013-08-21 15:51:04 +01:00
Ian Craggs 037e0068d4 Add test reporting for all tests 2013-08-21 15:21:27 +01:00
Ian Craggs 342e70ff5f Add test status reporting for all tests 2013-08-21 13:55:54 +01:00
Ian Craggs e0b8916281 full trace 2013-08-21 12:31:24 +01:00
Ian Craggs 1cec765adb Change server ports for SSL tests 2013-08-21 12:25:00 +01:00
Ian Craggs 23f12a6c5a Full tracing for test3 2013-08-21 00:04:44 +01:00
Ian Craggs 6e79a6b078 Update test3 with better diagnostics and results 2013-08-20 23:46:45 +01:00
Ian Craggs 9c95da1c10 Add trace to SSL test for debug 2013-08-19 19:37:53 +01:00
Ian Craggs 2bcdd5d5c7 Add debug info 2013-08-19 18:57:58 +01:00
Ian Craggs 22dc82e1bc Getting test1 to work 2013-08-19 17:59:10 +01:00
Ian Craggs c48ba9551f New SSL test configuration 2013-08-19 17:29:14 +01:00
Ian Craggs e588254115 SSL client library builds and testing 2013-08-09 17:25:06 +01:00
Ian Craggs 6b8984fb28 Fix test name 2013-07-19 17:07:58 +01:00
Ian Craggs 8b3b243489 timing and add both tests 2013-07-19 16:44:50 +01:00
Ian Craggs 1bfa39433d Add test4 2013-07-19 16:30:30 +01:00
Ian Craggs 581a926778 One time to be fixed 2013-07-19 12:08:53 +01:00
Ian Craggs 323597d736 Correct test times 2013-07-19 11:51:24 +01:00
Ian Craggs 72c69a002e Try to fix test timing 2013-07-19 11:36:01 +01:00
Ian Craggs a1f895292f Correct XML report format in test1.c 2013-07-18 16:54:01 +01:00
Ian Craggs 6d400792dc Change build level to date and update test4 and test5 2013-07-18 16:43:02 +01:00
Ian Craggs bd954ae73a Make test 3 pass 2013-07-18 16:06:08 +01:00
Ian Craggs ef16f95a33 Add timings to test report 2013-07-18 15:15:18 +01:00
Ian Craggs 1cda472894 Add test running and reporting 2013-07-18 12:30:03 +01:00
Ian Craggs d5608340db Ant build plus tests 2013-07-16 16:33:10 +01:00