Luca Boccassi
c1d07c6cd6
Problem: test_reqrep_tcp does not have IPv6 tests
...
Solution: add them
2016-09-17 20:04:40 +01:00
Luca Boccassi
896192ff42
Problem: test_reqrep_tcp does not test multiple endpoints
...
Solution: add a test for this use case
2016-09-17 19:30:59 +01:00
Luca Boccassi
75219e33a7
Problem: test_reqrep_tcp does not test disconnect/unbind
...
Solution: add disconnect and unbind calls to the test
2016-09-17 19:30:35 +01:00
Luca Boccassi
8d723fee3d
Problem: test_reqrep_tcp is too limited
...
Solution: refactor it to allow for multiple functionalities to be
tested
2016-09-17 19:30:22 +01:00
Thomas Braun
c9c49f3e9f
Problem: Missing newline in printf statement
...
Solution: Add "\n" at end of format string.
2016-09-12 19:45:31 +02:00
Luca Boccassi
a9343dbbc3
Problem: testutil.hpp fails to build on Windows XP
...
Solution: ifdef is_ipv6_available to always return false if building
on Windows XP, as it doesn't support the needed standard libc
functions
2016-08-27 16:48:38 +01:00
Luca Boccassi
0002824fc0
Problem: is_ipv6_available needs context to work on Windows
...
Solution: call the function after the zmq_ctx has been created, not
before, so that the relevant Windows system calls have been setup.
2016-08-23 21:48:57 +01:00
Luca Boccassi
f486176741
Revert "is_ipv6_available: Create a fake zmq context on windows"
...
This reverts commit 9adf20aaeb2abfcbdf6baa08e524207c5b8c4dfb.
2016-08-23 21:46:43 +01:00
Thomas Braun
9adf20aaeb
is_ipv6_available: Create a fake zmq context on windows
...
This is required as zmq_ctx_new calls WSAStartup. Without that the IPV6
socket creation always fails.
2016-08-23 21:52:16 +02:00
Giuseppe Corbelli
7fdb167732
[tests/testutil.hpp] Problem: wrong windows.hpp path
...
Solution: correct path is ../src/windows.hpp. Also added automatic linking
of iphlpapi library if required and using MSVC
2016-07-12 15:58:17 +02:00
Giuseppe Corbelli
0b01cc1ebc
[tests/CMakeLists.txt] Problem: The libzmq.lib search path should be set
...
only if the library is found at a specific path
Solution: Search for libzmq.lib in ../bin/Win32/Debug/v120/dynamic, don't
know how to automatically search in correct path based on current build
configuration
2016-07-12 15:54:55 +02:00
Fedor Sheremetyev
813c738137
Add test for consistent unsubscription in XPUB manual mode.
...
Expect custom messages on both explicit unsubscription and pipe termination.
2016-06-17 11:36:13 +01:00
evoskuil
c050d95fcd
Problem: no unit tests for base85 or public curve functions.
2016-05-19 03:46:15 -07:00
hitstergtd
fed17746c6
Problem: Wrapping issue in test for SRCFD [style]
...
Solution:
Wrap it.
2016-05-16 20:47:47 +01:00
somdoron
c4d0146f2c
problem: udp doesn't enforce correct usage of bind/connect
...
solution: enforce that dish and gram can only bind and radio can only
connect
2016-05-16 13:34:38 +03:00
somdoron
6db8f1e74b
problem: test is using connect with dgram, dgram only support bind
2016-05-16 12:18:30 +03:00
Bitiquinho
23b3403fa5
Remove printf and add asserts on test
2016-05-15 15:37:33 -03:00
Bitiquinho
977e700893
Fix Copyright range
2016-05-15 15:37:33 -03:00
Bitiquinho
da14bb4bc2
Added ZMQ_DGRAM tests to build (Makefile.am and CMakeLists.txt)
2016-05-15 15:37:33 -03:00
Bitiquinho
94c53e541d
Added test for ZMQ_DGRAM socket type (unicast and multicast)
2016-05-15 15:37:33 -03:00
Constantin Rack
bd66cfe6f8
Merge pull request #1991 from hitstergtd/x-testcov-zmq-2
...
Problem: zmq_poller_destroy can segfault
2016-05-14 08:17:41 +02:00
Joe Eli McIlvain
71ba7df781
Merge pull request #1987 from hitstergtd/x-reduce-cliserv-sends
...
Problem: test send count too high for AppVeyor CI environment
2016-05-12 20:15:08 -07:00
hitstergtd
e82e4ea13e
Problem: test send count too high for AppVeyor
...
Solution:
Reduce send count so that the test does not timeout on AppVeyor CI
environment and older Windows boxes.
2016-05-13 04:04:08 +01:00
hitstergtd
477cc1cb12
Problem: zmq_poller_destroy parameter checking
...
Solution:
- Add checks for **poller_p_ to ensure that we do not segfault when either it
or the value within it are NULL
- Add tests for the above and increase error state coverage
2016-05-12 18:09:59 +01:00
hitstergtd
4842b6bd81
Problem: No coverage for ctx termination errors
...
Solution:
- Add error state coverage for zmq_ctx_term(), zmq_term() and
zmq_ctx_shutdown(); zmq_ctx_destroy() is already covered since it only
calls zmq_ctx_term()
- Add coverage for zmq_term()
2016-05-12 17:47:08 +01:00
Erik Hugne
f81ef1bc72
tipc: add support for address domain suffix
...
The TIPC protocol bindings in ZeroMQ defaults to a lookup domain
of 1.0.0 to prevent 'closest first' search, and instead always
do round robin if several sockets in the network or node have
the same name published. In retrospect, this might have been a
bad idea because it won't work on standalone configurations.
We solve this by allowing an optional domain suffix to be provided
in the address, and 0.0.0 should be used in that case, or if the
TIPC address range in the cluster configuration is defined to some
other value. Domain suffixes are only relevant for connecting
addresses.
Signed-off-by: Erik Hugne <erik.hugne@gmail.com>
2016-05-11 21:54:25 +02:00
hitstergtd
206771afd2
Problem: Not all ancillary API methods tested
...
Solution:
- Add file for testing ancillary API methods and any misc internal machinery
- Add tests for zmq_version(3) and zmq_strerror(3)
- Add test file into gitignore, Autotools and CMake build files
- Increase test coverage
Note:
MSVC solution files have not been updated.
2016-05-08 18:25:03 +01:00
Doron Somech
be741f604a
problem: timers test is flapping on windows
2016-05-05 14:24:47 +03:00
Doron Somech
a747f72450
problem:closed poller still associated with socket
2016-05-05 13:50:33 +03:00
somdoron
50c2f7af8f
fix sndbuf/rcvbuf tests
2016-05-03 19:46:34 +03:00
Luca Boccassi
6de24c190a
Problem: scatter/gather are not yet stable APIs
...
Solution: mark them as DRAFT APIs
2016-05-02 21:47:05 +01:00
Luca Boccassi
caaf66c32c
Problem: radio/dish are not yet stable APIs
...
Solution: mark them as DRAFT APIs
2016-05-02 21:47:05 +01:00
Luca Boccassi
32a1ef85a8
Problem: zmq_timers* are not yet stable APIs
...
Solution: mark them as DRAFT APIs
2016-05-02 21:47:05 +01:00
Luca Boccassi
738968082b
Problem: zmq_poller* are not yet stable APIs
...
Solution: mark them as DRAFT APIs
2016-05-02 21:47:05 +01:00
Luca Boccassi
7e700f1e73
Problem: client/server are not yet stable APIs
...
Solution: mark them as DRAFT APIs
2016-05-02 21:47:05 +01:00
Luca Boccassi
064cd1fbfb
Problem: no support for DRAFT API in build systems
...
Solution: add support for --enable-drafts/ENABLE_DRAFTS=ON in
Autools and CMake.
2016-05-02 21:47:05 +01:00
Luca Boccassi
f0a34e0ff5
Problem: test_poller/use_fd_ipc/tcp use draft API
...
Solution: only use ZMQ_SERVER/CLIENT if the defines are available.
2016-05-02 21:46:47 +01:00
Luca Boccassi
c293618ae8
Problem: testutil.hpp includes platform.hpp last
...
Solution: before including internal headers, include platform.hpp
so that the build time options are correctly applied to the included
headers.
2016-05-02 20:00:53 +01:00
hitstergtd
40dbbe342e
Problem: bounce() arguments reversed
...
Solution:
Put them in the right order to quiet Coverity.
Found by:
Coverity Scan
2016-05-01 21:40:08 +01:00
hitstergtd
e4539778a4
Problem: multiple issues with sendiov/recviov
...
Solution:
- Add check for the [count] parameter in zmq_sendiov() and zmq_recviov()
- Use and add test for zmq_sendiov() in tests/test_iov.cpp
- Add error state tests for zmq_sendiov() in tests/test_iov.cpp
- Add error state tests for zmq_recviov() in tests/test_iov.cpp
- Cleanup tests/test_iov.cpp for style, consistency and clarity
- Generally improve test coverage for both API methods
Hat-tip:
@somdoron, @bluca
2016-05-01 19:41:50 +01:00
Luca Boccassi
95acb29bfb
Merge pull request #1934 from somdoron/master
...
problem: no documentation for Radio-dish and UDP
2016-04-29 10:40:56 +01:00
somdoron
34d5028ea8
allow specify binding address on radio with udp
2016-04-29 12:17:17 +03:00
hitstergtd
8872809337
Problem: XPUB test broken since #1566 on Windows
...
Solution:
- Adjust test_xpub_proxy_unsubscribe_disconnect() to support different
protocol types
- Exclude the IPC tests on Windows and OpenVMS
H/T: @somdoron
2016-04-24 16:56:06 +01:00
Doron Somech
0655ed2e0e
fix test unbind wildcard
2016-04-23 22:30:10 +03:00
Doron Somech
0934bc784d
fix test term endpoint
2016-04-23 22:30:09 +03:00
Luca Boccassi
a93600309f
Problem: assertion in test_xpub_manual is swapped
...
Solution: check that both pointers passed as arguments to
test_missing_subscription are non-NULL, instead of the opposite.
2016-04-23 18:16:49 +01:00
hitstergtd
ff02862171
Problem: XPUB test broken on Windows since #1569
...
Solution:
- Adjust test_subscriptions() to support different protocol types
- Run TCP and IPC tests everywhere but on Windows and OpenVMS
2016-04-23 16:18:38 +01:00
hitstergtd
7f0e380c05
Problem: LD search path warnings if using Clang
...
Solution: PR #1906 did not solve this problem properly; subsequent Travis CI
indicated that the issue happens with Clang/LLVM, so make sure to fix the
issue by detecting if Cmake CMake is using Clang for building the tests.
2016-04-21 22:32:15 +01:00
Luca Boccassi
5178251587
Problem: test_ipc_wildcard is ran on Windows
...
Solution: move it to the unix-only section of Makefile.am and
tests/CMakeLists.txt since it uses Unix IPC sockets.
2016-04-21 14:17:10 +01:00
Doron Somech
d6a57ad589
Merge pull request #1912 from hitstergtd/hitstergtd-testsrcfd-win-fix
...
Problem: ZMQ_SRCFD test does not work on Windows
2016-04-21 15:38:05 +03:00