1. 01 Jun, 2018 1 commit
  2. 24 May, 2018 2 commits
  3. 23 May, 2018 2 commits
  4. 28 Apr, 2018 1 commit
  5. 16 Mar, 2018 2 commits
  6. 15 Mar, 2018 1 commit
  7. 14 Mar, 2018 2 commits
  8. 09 Mar, 2018 1 commit
    • Luca Boccassi's avatar
      Problem: TIPC availability check is too strict (#2977) · 19060345
      Luca Boccassi authored
      * Problem: TIPC availability check is too strict
      
      Solution: at build time only check if the API is available. In the tests
      do a first check and a skip if the functionality is not available.
      
      TIPC needs an in-tree but not loaded by default kernel module, tipc.ko
      to be loaded, which requires root, so it is unlikely to be available on
      any build system by default.
      This will allow most distributions to ship with TIPC support built in,
      and to avoid tests failure if the module is not there.
      
      * Problem: no Travis tests for TIPC
      
      Solution: mark one job with sudo: required and load the kernel module
      
      * Problem: CMake fails when test returns 77 (skip)
      
      Solution: set property to let it mark the test as skipped as intended
      19060345
  9. 07 Mar, 2018 1 commit
  10. 02 Mar, 2018 1 commit
  11. 13 Feb, 2018 1 commit
  12. 11 Feb, 2018 1 commit
  13. 20 Nov, 2017 1 commit
  14. 19 Nov, 2017 1 commit
  15. 05 Oct, 2017 1 commit
  16. 19 Sep, 2017 1 commit
    • Luca Boccassi's avatar
      Problem: zmq_connect fails after disconnect due to RECONNECT_IVL == -1 · edb4ca10
      Luca Boccassi authored
      Solution: when a connection breaks and ZMQ_RECONNECT_IVL is set to -1,
      which means a reconnection will not be attempted, send a message from
      the I/O thread to the application thread to make the socket call
      term_endpoint, which is the equivalent of manually calling
      zmq_disconnect.
      This way subsequent zmq_connect call to the same endpoint will attempt
      again to do a connection.
      Otherwise, for some socket types like SUBs, those new connects will
      fail as the endpoint is recorded, despite the connection having been
      permanently closed.
      
      Add test cases to exercise this corner case with TCP and IPC.
      edb4ca10
  17. 01 Sep, 2017 1 commit
  18. 22 Aug, 2017 1 commit
  19. 21 Aug, 2017 1 commit
  20. 17 Aug, 2017 1 commit
  21. 15 Aug, 2017 1 commit
    • Simon Giesecke's avatar
      [WIP, do not merge] Problem: insufficient tests for ZMTP-CURVE protocol errors (#2680) · d5e4319e
      Simon Giesecke authored
      * Extracted connect_vanilla_socket function
      
      * Problem: no tests for ZMTP-CURVE protocol errors
      
      Solution: added two test cases with erroneous HELLO commands
      
      * Problem: insufficient tests for ZMTP-CURVE protocol errors
      
      Solution: added two test cases with erroneous HELLO command version
      
      * Problem: test HELLO message is invalid apart from deliberate errors
      
      Solution: create cryptographically correct HELLO message
      add tweetnacl.c to test_security_curve
      
      * Problem: nonce is incorrect, build fails with GCC
      
      Solution: use correct non prefix
      
      * Problem: make builds are failing
      
      Solution: transfer CMake changes to (auto)make files
      
      * Problem: nonce is incorrect, build fails with GCC
      
      Solution: use correct non prefix
      
      * Problem: make builds are failing
      
      Solution: transfer CMake changes to (auto)make files
      
      * Problem: no test with INITIATE command with invalid length
      
      Solution: added test case
      
      * Problem: code duplication between test_security_curve.cpp and curve_client.cpp
      
      Solution: extracted parts of zmq::curve_client_t::produce_hello into reusable function
      
      * Problem: code duplication between test_security_curve.cpp and curve_client.cpp
      
      Solution: extracted further parts of zmq::curve_client_t into reusable functions
      added missing file
      
      * Problem: mechanism_t::add_property can be declared static
      
      Solution: declare mechanism_t::add_property static
      
      * Problem: intermediate crypto data needs to be passed between static function calls to curve_client_tools_t
      
      Solution: add non-static member functions
      
      * Problem: msg_t instance may be closed twice
      
      Solution: remove offending close
      
      * Problem: prepare_hello uses static curve_client_tools_t::produce_hello
      
      Solution: Use non-static curve_client_tools_t::produce_hello
      
      * Problem: no test with invalid command name where INITIATE command is expected
      
      Solution: added test case
      
      * Problem: make builds are failing due to curve_client_tools.hpp not being found
      
      Solution: add curve_client_tools.hpp to list of source files
      
      * Problem: wrong initializer order in zmq::curve_client_t
      
      Solution: reorder
      
      * Problem: under non-Windows systems, test fails because random_open was not called
      
      Solution: call random_open/random_close within test
      
      * Problem: conflict between custom function htonll and macro definition on Darwin
      
      Solution: define htonll function only if not defined as a macro
      
      * Problem: nullptr not defined on all platforms
      
      Solution: replace nullptr by NULL
      
      * Problem: libsodium builds not working
      
      Solution: adapt compile and link file sets for libsodium builds
      
      * Problem: Makefile.am broken
      
      Solution: Fix syntax
      
      * Problem: no tests for garbage encrypted cookie or content in INITIATE
      
      Solution: added test cases
      
      * Problem: test cases accidentally excluded from build
      
      Solution: remove #if/#endif
      
      * Solution: some error cases are unreachable
      
      Problem: for the time being, added some comments without changing the code
      
      * Added comments on hard-to-test cases
      d5e4319e
  22. 04 Aug, 2017 2 commits
  23. 14 Jun, 2017 1 commit
  24. 24 Apr, 2017 1 commit
  25. 12 Apr, 2017 1 commit
  26. 05 Apr, 2017 1 commit
  27. 26 Dec, 2016 1 commit
  28. 01 Nov, 2016 1 commit
  29. 24 Sep, 2016 1 commit
  30. 12 Jul, 2016 1 commit
  31. 19 May, 2016 1 commit
  32. 15 May, 2016 1 commit
  33. 08 May, 2016 1 commit
    • hitstergtd's avatar
      Problem: Not all ancillary API methods tested · 206771af
      hitstergtd authored
      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.
      206771af
  34. 02 May, 2016 2 commits