libzmq/tests
Pieter Hintjens 06acd76a21 Problem: people don't know how to write test cases
Solution: document the minimum rules in README.md
2016-02-12 15:48:37 +01:00
..
CMakeLists.txt Problem: ZMQ_USEFD does not follow conventions 2016-02-09 09:36:14 +00:00
README.md Problem: people don't know how to write test cases 2016-02-12 15:48:37 +01:00
test_abstract_ipc.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_atomics.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_bind_src_address.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_capabilities.cpp Problem: use of libsodium vs. tweetnacl is confused 2016-02-11 13:32:01 +01:00
test_client_server.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_conflate.cpp Revert "Revert "Problem: deprecated use and reference of zmq_term"" 2016-02-01 23:00:06 +01:00
test_connect_delay_tipc.cpp Revert "Revert "Problem: deprecated use and reference of zmq_term"" 2016-02-01 23:00:06 +01:00
test_connect_resolve.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_connect_rid.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_ctx_destroy.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_ctx_options.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_diffserv.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_disconnect_inproc.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_filter_ipc.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_fork.cpp Revert "Revert "Problem: deprecated use and reference of zmq_term"" 2016-02-01 23:00:06 +01:00
test_getsockopt_memset.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_heartbeats.cpp update for mingw's default _WIN32_WINNT 2016-02-06 23:03:12 +11:00
test_hwm_pubsub.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_hwm.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_immediate.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_inproc_connect.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_invalid_rep.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_iov.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_ipc_wildcard.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_issue_566.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_large_msg.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_last_endpoint.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_many_sockets.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_metadata.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_monitor.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_msg_ffn.cpp Problem: test case is using internal API 2016-02-06 14:12:43 +01:00
test_msg_flags.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_pair_inproc.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_pair_ipc.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_pair_tcp.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_pair_tipc.cpp Revert "Revert "Problem: deprecated use and reference of zmq_term"" 2016-02-01 23:00:06 +01:00
test_pair_vmci.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_poller.cpp Problem: deprecated zmq_utils.h is still included 2016-02-01 11:34:36 +01:00
test_probe_router.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_proxy_single_socket.cpp Problem: deprecated zmq_utils.h is still included 2016-02-01 11:34:36 +01:00
test_proxy_terminate.cpp Problem: deprecated zmq_utils.h is still included 2016-02-01 11:34:36 +01:00
test_proxy.cpp Problem: deprecated zmq_utils.h is still included 2016-02-01 11:34:36 +01:00
test_pub_invert_matching.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_radio_dish.cpp Fix compilation errors on windows 2016-01-30 13:29:41 +02:00
test_req_correlate.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_req_relaxed.cpp missing virtual modifier or session_base 2016-01-28 18:31:05 +02:00
test_reqrep_device_tipc.cpp Revert "Revert "Problem: deprecated use and reference of zmq_term"" 2016-02-01 23:00:06 +01:00
test_reqrep_device.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_reqrep_inproc.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_reqrep_ipc.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_reqrep_tcp.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_reqrep_tipc.cpp Revert "Revert "Problem: deprecated use and reference of zmq_term"" 2016-02-01 23:00:06 +01:00
test_reqrep_vmci.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_router_handover.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_router_mandatory_hwm.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_router_mandatory_tipc.cpp Revert "Revert "Problem: deprecated use and reference of zmq_term"" 2016-02-01 23:00:06 +01:00
test_router_mandatory.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_security_curve.cpp Problem: use of libsodium vs. tweetnacl is confused 2016-02-11 13:32:01 +01:00
test_security_null.cpp added ZMQ_HAVE_WINDOWS check to _WIN32_WINNT usage 2016-02-06 22:59:58 +11:00
test_security_plain.cpp added ZMQ_HAVE_WINDOWS check to _WIN32_WINNT usage 2016-02-06 22:58:38 +11:00
test_setsockopt.cpp Problem: test_large_msg kills my system temporarily 2016-02-09 10:55:09 +01:00
test_shutdown_stress_tipc.cpp Revert "Revert "Problem: deprecated use and reference of zmq_term"" 2016-02-01 23:00:06 +01:00
test_shutdown_stress.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_sockopt_hwm.cpp Update high water marking to allow changing high water mark after connection established. 2015-06-05 17:14:55 +01:00
test_spec_dealer.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_spec_pushpull.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_spec_rep.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_spec_req.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_spec_router.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_srcfd.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_stream_disconnect.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_stream_empty.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_stream_exceeds_buffer.cpp added windows includes as well as unix includes 2016-02-06 23:19:10 +11:00
test_stream_timeout.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_stream.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_sub_forward_tipc.cpp Revert "Revert "Problem: deprecated use and reference of zmq_term"" 2016-02-01 23:00:06 +01:00
test_sub_forward.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_system.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_term_endpoint_tipc.cpp Revert "Revert "Problem: deprecated use and reference of zmq_term"" 2016-02-01 23:00:06 +01:00
test_term_endpoint.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_thread_safe.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_timeo.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_timers.cpp Problem: unclear rules for passing null arguments 2016-02-06 14:13:13 +01:00
test_udp.cpp Fix compilation errors on windows 2016-01-30 13:29:41 +02:00
test_unbind_inproc.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_unbind_wildcard.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_use_fd_ipc.cpp Problem: ZMQ_USEFD does not follow conventions 2016-02-09 09:36:14 +00:00
test_use_fd_tcp.cpp Problem: ZMQ_USEFD does not follow conventions 2016-02-09 09:36:14 +00:00
test_xpub_manual.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_xpub_nodrop.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
test_xpub_welcome_msg.cpp Problem: copyright year is still 2015 2016-01-28 15:07:31 +01:00
testutil.hpp Problem: gyp does not build tests 2016-02-12 11:31:38 +01:00

Guidelines for tests

Write your test case as if you were writing clean application code. It should be safe to compile on all platforms.

The only include file you should use is testutil.hpp. Do not include files from src. Do not use the internal libzmq API or your test case is fair game to be deleted.

If you must write non-portable code, wrap it in #ifdefs to ensure it will compile and run on all systems.

Note that testutil.hpp includes platform.h. Do not include it yourself as it changes location depending on the build system and OS.