Skip to content

Files

Latest commit

1dd5fef · Mar 16, 2017

History

History
This branch is 3038 commits behind zeromq/libzmq:master.

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 26, 2016
Jan 1, 2017
Jan 28, 2016
May 8, 2016
Jan 28, 2016
Jan 25, 2017
Sep 24, 2016
Jan 28, 2016
Jan 19, 2017
Jan 28, 2016
Feb 1, 2016
May 11, 2016
Jan 28, 2016
Jan 28, 2016
May 12, 2016
Dec 29, 2016
May 16, 2016
Jan 28, 2016
Jan 28, 2016
Feb 12, 2016
Feb 13, 2016
Jan 28, 2016
Feb 13, 2016
Jan 28, 2016
Feb 13, 2016
Feb 13, 2016
Sep 24, 2016
Jan 28, 2016
May 1, 2016
Jan 28, 2016
Jan 28, 2016
Jan 28, 2016
Apr 8, 2016
Jan 28, 2016
Dec 30, 2016
Feb 13, 2016
Jan 28, 2016
Jan 28, 2016
Jan 28, 2016
Jan 28, 2016
May 11, 2016
Jan 28, 2016
May 12, 2016
Jan 28, 2016
Feb 1, 2016
Feb 1, 2016
Feb 13, 2016
Jan 28, 2016
Oct 1, 2016
Apr 2, 2016
Apr 2, 2016
Jan 28, 2016
May 11, 2016
Jan 28, 2016
Jan 28, 2016
Oct 23, 2016
May 11, 2016
Jan 28, 2016
Jan 28, 2016
Jan 28, 2016
Feb 24, 2017
Feb 12, 2016
Apr 21, 2016
Dec 31, 2016
Feb 12, 2016
Feb 12, 2016
May 3, 2016
Jan 28, 2016
May 11, 2016
Feb 13, 2016
Mar 16, 2017
Feb 13, 2016
Feb 13, 2016
Feb 13, 2016
Feb 13, 2016
Feb 13, 2016
Jan 3, 2017
Jan 28, 2016
Jan 28, 2016
Jan 28, 2016
Dec 6, 2016
Jan 28, 2016
Jan 28, 2016
May 11, 2016
Sep 12, 2016
Apr 23, 2016
May 11, 2016
May 13, 2016
Jan 28, 2016
May 5, 2016
May 16, 2016
Jan 28, 2016
Aug 23, 2016
May 2, 2016
May 2, 2016
Jun 17, 2016
Jan 28, 2016
Jan 28, 2016
Dec 15, 2016
Dec 6, 2016

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.

All sources must contain the correct header. Please copy from test_system.cpp if you're not certain.

Please use only ANSI C99 in test cases, no C++. This is to make the code more reusable.

On many slower environments, like embedded systems, VMs or CI systems, test might fail because it takes time for sockets to settle after a connect. If you need to add a sleep, please be consistent with all the other tests and use: msleep (SETTLE_TIME);

Building tests in Windows

According to the version of your compiler, you should adapt the path libzmq.lib in the file tests/CMakeLists.txt.

Install CMAKE CMD> CMAKE libzmq/tests CMD> tests.sln CMD> # build all projects in the solution