Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
3d2db5d8
Commit
3d2db5d8
authored
Aug 20, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: test_capabilities not yet using unity
Solution: migrate to unity
parent
dc29361e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
19 deletions
+37
-19
Makefile.am
Makefile.am
+2
-1
test_capabilities.cpp
tests/test_capabilities.cpp
+35
-18
No files found.
Makefile.am
View file @
3d2db5d8
...
...
@@ -647,7 +647,8 @@ tests_test_metadata_SOURCES = tests/test_metadata.cpp
tests_test_metadata_LDADD
=
src/libzmq.la
tests_test_capabilities_SOURCES
=
tests/test_capabilities.cpp
tests_test_capabilities_LDADD
=
src/libzmq.la
tests_test_capabilities_LDADD
=
src/libzmq.la
${
UNITY_LIBS
}
tests_test_capabilities_CPPFLAGS
=
${
UNITY_CPPFLAGS
}
tests_test_xpub_nodrop_SOURCES
=
tests/test_xpub_nodrop.cpp
tests_test_xpub_nodrop_LDADD
=
src/libzmq.la
${
UNITY_LIBS
}
...
...
tests/test_capabilities.cpp
View file @
3d2db5d8
...
...
@@ -28,55 +28,72 @@
*/
#include "testutil.hpp"
#include "testutil_unity.hpp"
int
main
(
void
)
void
setUp
()
{
}
void
tearDown
()
{
}
void
test_capabilities
()
{
#if !defined(ZMQ_HAVE_WINDOWS) && !defined(ZMQ_HAVE_OPENVMS)
assert
(
zmq_has
(
"ipc"
));
TEST_ASSERT_TRUE
(
zmq_has
(
"ipc"
));
#else
assert
(
!
zmq_has
(
"ipc"
));
TEST_ASSERT_TRUE
(
!
zmq_has
(
"ipc"
));
#endif
#if defined(ZMQ_HAVE_OPENPGM)
assert
(
zmq_has
(
"pgm"
));
TEST_ASSERT_TRUE
(
zmq_has
(
"pgm"
));
#else
assert
(
!
zmq_has
(
"pgm"
));
TEST_ASSERT_TRUE
(
!
zmq_has
(
"pgm"
));
#endif
#if defined(ZMQ_HAVE_TIPC)
assert
(
zmq_has
(
"tipc"
));
TEST_ASSERT_TRUE
(
zmq_has
(
"tipc"
));
#else
assert
(
!
zmq_has
(
"tipc"
));
TEST_ASSERT_TRUE
(
!
zmq_has
(
"tipc"
));
#endif
#if defined(ZMQ_HAVE_NORM)
assert
(
zmq_has
(
"norm"
));
TEST_ASSERT_TRUE
(
zmq_has
(
"norm"
));
#else
assert
(
!
zmq_has
(
"norm"
));
TEST_ASSERT_TRUE
(
!
zmq_has
(
"norm"
));
#endif
#if defined(ZMQ_HAVE_CURVE)
assert
(
zmq_has
(
"curve"
));
TEST_ASSERT_TRUE
(
zmq_has
(
"curve"
));
#else
assert
(
!
zmq_has
(
"curve"
));
TEST_ASSERT_TRUE
(
!
zmq_has
(
"curve"
));
#endif
#if defined(HAVE_LIBGSSAPI_KRB5)
assert
(
zmq_has
(
"gssapi"
));
TEST_ASSERT_TRUE
(
zmq_has
(
"gssapi"
));
#else
assert
(
!
zmq_has
(
"gssapi"
));
TEST_ASSERT_TRUE
(
!
zmq_has
(
"gssapi"
));
#endif
#if defined(ZMQ_HAVE_VMCI)
assert
(
zmq_has
(
"vmci"
));
TEST_ASSERT_TRUE
(
zmq_has
(
"vmci"
));
#else
assert
(
!
zmq_has
(
"vmci"
));
TEST_ASSERT_TRUE
(
!
zmq_has
(
"vmci"
));
#endif
#if defined(ZMQ_BUILD_DRAFT_API)
assert
(
zmq_has
(
"draft"
));
TEST_ASSERT_TRUE
(
zmq_has
(
"draft"
));
#else
assert
(
!
zmq_has
(
"draft"
));
TEST_ASSERT_TRUE
(
!
zmq_has
(
"draft"
));
#endif
return
0
;
}
int
main
()
{
setup_test_environment
();
UNITY_BEGIN
();
RUN_TEST
(
test_capabilities
);
return
UNITY_END
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment