1. 14 Sep, 2015 1 commit
  2. 11 Sep, 2015 1 commit
    • Pieter Hintjens's avatar
      Problem: cannot build single test case in tests · d416ffce
      Pieter Hintjens authored
      This is due to the mangled include of platform.h, which was to make
      CMake happy.
      
      Solution: in CMakeLists.txt, define USING_CMAKE and then look for
      platform.h in current directory if that is defined, else look in
      ../src/ as one would expect.
      d416ffce
  3. 11 Aug, 2015 2 commits
  4. 28 Jul, 2015 1 commit
  5. 02 Jun, 2015 1 commit
  6. 30 Jan, 2015 1 commit
  7. 26 Jan, 2015 1 commit
  8. 23 Jan, 2015 1 commit
    • Pieter Hintjens's avatar
      Problem: commit afb24b53 broke ZMQ_STREAM contract · 6ced7027
      Pieter Hintjens authored
      Symptom is that ZMQ_STREAM sockets in 4.1.0 and 4.1.1 generate zero
      sized messages on each new connection, unlike 4.0.x which did not do
      this.
      
      Person who made this commit also changed test cases so that contract
      breakage did not show. Same person was later banned for persistently
      poor form in CZMQ contributions.
      
      Solution: enable connect notifications on ZMQ_STREAM sockets using a
      new ZMQ_STREAM_NOTIFY setting. By default, socket does not deliver
      notifications, and behaves as in 4.0.x.
      
      Fixes #1316
      6ced7027
  9. 22 Jan, 2015 1 commit
  10. 29 Dec, 2014 1 commit
  11. 23 Dec, 2014 1 commit
  12. 23 Jul, 2014 1 commit
  13. 27 Jun, 2014 1 commit
    • Pieter Hintjens's avatar
      Problem: two header files for a single library · a087ce55
      Pieter Hintjens authored
      Users who need e.g. zmq_curve_keypair() have to remember to include
      zmq_utils.h, which is counter-intuitive. The whole library should be
      represented by a single include file.
      
      Solution: merge all contents of zmq_utils.h into zmq.h, and deprecate
      zmq_utils.h. Existing apps can continue unchanged. New apps can ignore
      zmq_utils.h completely.
      a087ce55
  14. 20 May, 2014 1 commit
    • Pieter Hintjens's avatar
      Problem: security tests block on zmq_send · 11175a33
      Pieter Hintjens authored
      The expect_bounce_fail () helper assumed that messages could always
      be sent. However in some cases zmq_send() blocks, due to there not
      being any outgoing pipe. This changed in 77f5f7, where previously
      there would be a pipe that kept trying to reconnect forever.
      
      Solution: use a send timeout and check for EAGAIN if sending failed.
      11175a33
  15. 19 May, 2014 2 commits
  16. 02 May, 2014 2 commits
  17. 28 Apr, 2014 1 commit
    • Pieter Hintjens's avatar
      Problem: zmq_socket_monitor code is dirty · 9753de85
      Pieter Hintjens authored
      Specifically:
      
      * zmq_event_t should not be used internally in libzmq, it was
        meant to be an outward facing structure.
      
      * In 4.x, zmq_event_t does not correspond to monitor events, so
        I removed the structure entirely.
      
      * man page for zmq_socket_monitor is incomplete and the example
        code was particularly nasty.
      
      * test_monitor.cpp needed rewriting, it was not clean.
      9753de85
  18. 20 Jan, 2014 1 commit
  19. 02 Jan, 2014 1 commit
  20. 19 Nov, 2013 2 commits
  21. 06 Nov, 2013 1 commit
    • Pieter Hintjens's avatar
      Removed over-long pauses in tests · 5b60540e
      Pieter Hintjens authored
      - used msleep (10) in most places instead of zmq_sleep (1)
      - may cause failures on slower machines
      - to change, modify SETTLE_TIME in testutil.h
      - tested down to 1 msec on fast boxes
      5b60540e
  22. 18 Oct, 2013 1 commit
  23. 04 Oct, 2013 1 commit
  24. 20 Sep, 2013 2 commits
  25. 16 Sep, 2013 1 commit
  26. 15 Sep, 2013 1 commit
    • Pieter Hintjens's avatar
      Added z85 codec to ZMQ API · 576e3ca5
      Pieter Hintjens authored
      * Removed redundant Z85 code and include files from project
      * Simplified use of headers in test cases (now they all just use testutil.hpp)
      * Export zmq_z85_encode() and zmq_z85_decode() in API
      * Added man pages for these two functions
      576e3ca5
  27. 12 Sep, 2013 1 commit
  28. 02 Sep, 2013 2 commits
    • Pieter Hintjens's avatar
      Fixed ZAP authentication · fb67e160
      Pieter Hintjens authored
      - if ZAP server returns anything except 200, connection is closed
      - all security tests now pass correctly
      - test_security_curve now does proper client key authentication using test key
      - test_security_plain now does proper password authentication
      fb67e160
    • Pieter Hintjens's avatar
      Fixed 'make check' failures · fba56120
      Pieter Hintjens authored
      - Split off NULL security check from PLAIN
      - Cleaned up test_linger code a little
      - Got all tests to pass, added TODOs for outstanding issues
      - Added ZAP authentication for NULL test case
      - NULL mechanism was not passing server identity - fixed
      - cleaned up test_security_plain and removed option double-checks (made code ugly)
      - lowered timeout on expect_bounce_fail to 150 msec to speed up checks
      - removed all sleeps from test_fork and simplified code (it still passes :-)
      fba56120
  29. 31 Aug, 2013 1 commit
    • MinRK's avatar
      test failed CURVE auth · 9d94640e
      MinRK authored
      adds expect_bounce_fail test function
      
      which is like bounce, but fails if messages arrive.
      9d94640e
  30. 17 Aug, 2013 2 commits
  31. 07 Jul, 2013 1 commit
    • Pieter Hintjens's avatar
      Got new test cases working with libzmq · 9ca6898f
      Pieter Hintjens authored
      * disabled the specific tests that do not work (yet) on libzmq
      * cleaned up one source (test_spec_rep.c) but the others need similar work
      * added sleep in test_spec_rep to allow connects time to happen; this would
        not be needed if we connected out to the REP peers instead in from them,
        but I didn't want to change the logic of the test code.
      9ca6898f
  32. 05 Jul, 2013 1 commit
  33. 02 Jul, 2013 1 commit
    • Christian Kamm's avatar
      Add tests for Request-Reply pattern sockets. · 798b3940
      Christian Kamm authored
      * See http://rfc.zeromq.org/spec:28/REQREP
      * Not all testable statements are covered.
      * At this point, there are several failures:
        - test_spec_req: The REQ socket does not correctly discard messages
          from peers that are not currently being talked to.
        - test_spec_dealer/router: On disconnect, the queues seem to not be
          emptied. The DEALER can still receive a message the disconnected
          peer sent, the ROUTER can still send to the identity of the dis-
          connected peer.
      798b3940