mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-25 22:30:51 +08:00
da31917f4f
Relicense permission collected from all relevant authors as tallied at: https://github.com/rlenferink/libzmq-relicense/blob/master/checklist.md The relicense grants are collected under RELICENSE/ and will be moved to the above repository in a later commit. Fixes https://github.com/zeromq/libzmq/issues/2376
73 lines
1.3 KiB
C++
73 lines
1.3 KiB
C++
/* SPDX-License-Identifier: MPL-2.0 */
|
|
|
|
#include "testutil.hpp"
|
|
#include "testutil_unity.hpp"
|
|
|
|
void setUp ()
|
|
{
|
|
}
|
|
|
|
void tearDown ()
|
|
{
|
|
}
|
|
|
|
void test_capabilities ()
|
|
{
|
|
#if defined(ZMQ_HAVE_IPC)
|
|
TEST_ASSERT_TRUE (zmq_has ("ipc"));
|
|
#else
|
|
TEST_ASSERT_TRUE (!zmq_has ("ipc"));
|
|
#endif
|
|
|
|
#if defined(ZMQ_HAVE_OPENPGM)
|
|
TEST_ASSERT_TRUE (zmq_has ("pgm"));
|
|
#else
|
|
TEST_ASSERT_TRUE (!zmq_has ("pgm"));
|
|
#endif
|
|
|
|
#if defined(ZMQ_HAVE_TIPC)
|
|
TEST_ASSERT_TRUE (zmq_has ("tipc"));
|
|
#else
|
|
TEST_ASSERT_TRUE (!zmq_has ("tipc"));
|
|
#endif
|
|
|
|
#if defined(ZMQ_HAVE_NORM)
|
|
TEST_ASSERT_TRUE (zmq_has ("norm"));
|
|
#else
|
|
TEST_ASSERT_TRUE (!zmq_has ("norm"));
|
|
#endif
|
|
|
|
#if defined(ZMQ_HAVE_CURVE)
|
|
TEST_ASSERT_TRUE (zmq_has ("curve"));
|
|
#else
|
|
TEST_ASSERT_TRUE (!zmq_has ("curve"));
|
|
#endif
|
|
|
|
#if defined(HAVE_LIBGSSAPI_KRB5)
|
|
TEST_ASSERT_TRUE (zmq_has ("gssapi"));
|
|
#else
|
|
TEST_ASSERT_TRUE (!zmq_has ("gssapi"));
|
|
#endif
|
|
|
|
#if defined(ZMQ_HAVE_VMCI)
|
|
TEST_ASSERT_TRUE (zmq_has ("vmci"));
|
|
#else
|
|
TEST_ASSERT_TRUE (!zmq_has ("vmci"));
|
|
#endif
|
|
|
|
#if defined(ZMQ_BUILD_DRAFT_API)
|
|
TEST_ASSERT_TRUE (zmq_has ("draft"));
|
|
#else
|
|
TEST_ASSERT_TRUE (!zmq_has ("draft"));
|
|
#endif
|
|
}
|
|
|
|
int main ()
|
|
{
|
|
setup_test_environment ();
|
|
|
|
UNITY_BEGIN ();
|
|
RUN_TEST (test_capabilities);
|
|
return UNITY_END ();
|
|
}
|