Makefile.am 5.81 KB
Newer Older
1 2
AM_CPPFLAGS = -I$(top_builddir)/include \
              -I$(top_srcdir)/include
3

4 5
LDADD = $(top_builddir)/src/libzmq.la

6 7
noinst_PROGRAMS = test_system \
                  test_pair_inproc \
8 9
                  test_pair_tcp \
                  test_reqrep_inproc \
Mikko Koppanen's avatar
Mikko Koppanen committed
10
                  test_reqrep_tcp \
11
                  test_hwm \
12
                  test_reqrep_device \
13
                  test_sub_forward \
14
                  test_invalid_rep \
15
                  test_msg_flags \
16
                  test_connect_resolve \
17
                  test_immediate \
18
                  test_last_endpoint \
19
                  test_term_endpoint \
20
                  test_srcfd \
21
                  test_monitor \
22
                  test_router_mandatory \
23
                  test_router_handover \
24
                  test_probe_router \
25
                  test_stream \
26
                  test_stream_empty \
Pieter Hintjens's avatar
Pieter Hintjens committed
27
                  test_stream_disconnect \
28
                  test_stream_timeout \
Pieter Hintjens's avatar
Pieter Hintjens committed
29
                  test_disconnect_inproc \
30
                  test_ctx_options \
31
                  test_ctx_destroy \
32 33
                  test_security_null \
                  test_security_plain \
Ian Barber's avatar
Ian Barber committed
34
                  test_security_curve \
35 36 37 38
                  test_iov \
                  test_spec_req \
                  test_spec_rep \
                  test_spec_dealer \
39
                  test_spec_router \
40
                  test_spec_pushpull \
41 42
                  test_req_correlate \
                  test_req_relaxed \
43
                  test_conflate \
44
                  test_inproc_connect \
45
                  test_issue_566 \
46
                  test_proxy \
47
                  test_many_sockets \
48
                  test_ipc_wildcard \
49
                  test_diffserv \
Pieter Hintjens's avatar
Pieter Hintjens committed
50
                  test_connect_rid \
51 52 53 54
                  test_bind_src_address \
                  test_metadata \
                  test_id2fd \
                  test_capabilities
Mikko Koppanen's avatar
Mikko Koppanen committed
55 56

if !ON_MINGW
57 58
noinst_PROGRAMS += test_shutdown_stress \
                   test_pair_ipc \
59
                   test_reqrep_ipc \
60
                   test_timeo \
61 62 63 64
                   test_filter_ipc
if HAVE_FORK
noinst_PROGRAMS += test_fork
endif
Mikko Koppanen's avatar
Mikko Koppanen committed
65
endif
66

67
if BUILD_TIPC
68 69 70 71 72 73 74 75 76 77
noinst_PROGRAMS += test_connect_delay_tipc \
                  test_pair_tipc \
                  test_reqrep_device_tipc \
                  test_reqrep_tipc \
                  test_router_mandatory_tipc \
                  test_shutdown_stress_tipc \
                  test_sub_forward_tipc \
                  test_term_endpoint_tipc
endif

78 79 80 81
if ON_LINUX
noinst_PROGRAMS += test_abstract_ipc
endif

82
test_system_SOURCES = test_system.cpp
83 84 85 86
test_pair_inproc_SOURCES = test_pair_inproc.cpp testutil.hpp
test_pair_tcp_SOURCES = test_pair_tcp.cpp testutil.hpp
test_reqrep_inproc_SOURCES = test_reqrep_inproc.cpp testutil.hpp
test_reqrep_tcp_SOURCES = test_reqrep_tcp.cpp testutil.hpp
Mikko Koppanen's avatar
Mikko Koppanen committed
87
test_hwm_SOURCES = test_hwm.cpp
88
test_reqrep_device_SOURCES = test_reqrep_device.cpp
89
test_sub_forward_SOURCES = test_sub_forward.cpp
90
test_invalid_rep_SOURCES = test_invalid_rep.cpp
91
test_msg_flags_SOURCES = test_msg_flags.cpp
92
test_connect_resolve_SOURCES = test_connect_resolve.cpp
93
test_immediate_SOURCES = test_immediate.cpp
94
test_last_endpoint_SOURCES = test_last_endpoint.cpp
95
test_term_endpoint_SOURCES = test_term_endpoint.cpp
96
test_srcfd_SOURCES = test_srcfd.cpp
97
test_monitor_SOURCES = test_monitor.cpp
98
test_router_mandatory_SOURCES = test_router_mandatory.cpp
99
test_router_handover_SOURCES = test_router_handover.cpp
100
test_probe_router_SOURCES = test_probe_router.cpp
101
test_stream_SOURCES = test_stream.cpp
102
test_stream_empty_SOURCES = test_stream_empty.cpp
103
test_stream_timeout_SOURCES = test_stream_timeout.cpp
Pieter Hintjens's avatar
Pieter Hintjens committed
104
test_stream_disconnect_SOURCES = test_stream_disconnect.cpp
105
test_disconnect_inproc_SOURCES = test_disconnect_inproc.cpp
106
test_ctx_options_SOURCES = test_ctx_options.cpp
Pieter Hintjens's avatar
Pieter Hintjens committed
107
test_iov_SOURCES = test_iov.cpp
108
test_ctx_destroy_SOURCES = test_ctx_destroy.cpp
109 110
test_security_null_SOURCES = test_security_null.cpp
test_security_plain_SOURCES = test_security_plain.cpp
Ian Barber's avatar
Ian Barber committed
111
test_security_curve_SOURCES = test_security_curve.cpp
112 113 114 115
test_spec_req_SOURCES = test_spec_req.cpp
test_spec_rep_SOURCES = test_spec_rep.cpp
test_spec_dealer_SOURCES = test_spec_dealer.cpp
test_spec_router_SOURCES = test_spec_router.cpp
116
test_spec_pushpull_SOURCES = test_spec_pushpull.cpp
117 118
test_req_correlate_SOURCES = test_req_correlate.cpp
test_req_relaxed_SOURCES = test_req_relaxed.cpp
119
test_conflate_SOURCES = test_conflate.cpp
120
test_inproc_connect_SOURCES = test_inproc_connect.cpp
121
test_issue_566_SOURCES = test_issue_566.cpp
122
test_proxy_SOURCES = test_proxy.cpp
123
test_abstract_ipc_SOURCES = test_abstract_ipc.cpp
124
test_many_sockets_SOURCES = test_many_sockets.cpp
125
test_ipc_wildcard_SOURCES = test_ipc_wildcard.cpp
126
test_diffserv_SOURCES = test_diffserv.cpp
127
test_connect_rid_SOURCES = test_connect_rid.cpp
128
test_bind_src_address_SOURCES = test_bind_src_address.cpp
Pieter Hintjens's avatar
Pieter Hintjens committed
129
test_metadata_SOURCES = test_metadata.cpp
130
test_id2fd_SOURCES = test_id2fd.cpp
131
test_capabilities_SOURCES = test_capabilities.cpp
Mikko Koppanen's avatar
Mikko Koppanen committed
132
if !ON_MINGW
133
test_shutdown_stress_SOURCES = test_shutdown_stress.cpp
134 135
test_pair_ipc_SOURCES = test_pair_ipc.cpp testutil.hpp
test_reqrep_ipc_SOURCES = test_reqrep_ipc.cpp testutil.hpp
136
test_timeo_SOURCES = test_timeo.cpp
137
if HAVE_FORK
138
test_fork_SOURCES = test_fork.cpp
139
endif
140
test_filter_ipc_SOURCES = test_filter_ipc.cpp
Mikko Koppanen's avatar
Mikko Koppanen committed
141
endif
142
if BUILD_TIPC
143 144 145 146 147 148 149 150 151
test_connect_delay_tipc_SOURCES = test_connect_delay_tipc.cpp
test_pair_tipc_SOURCES = test_pair_tipc.cpp
test_reqrep_device_tipc_SOURCES = test_reqrep_device_tipc.cpp
test_reqrep_tipc_SOURCES = test_reqrep_tipc.cpp
test_router_mandatory_tipc_SOURCES = test_router_mandatory_tipc.cpp
test_shutdown_stress_tipc_SOURCES = test_shutdown_stress_tipc.cpp
test_sub_forward_tipc_SOURCES = test_sub_forward_tipc.cpp
test_term_endpoint_tipc_SOURCES = test_term_endpoint_tipc.cpp
endif
152

153
#  Run the test cases
154
TESTS = $(noinst_PROGRAMS)
155
XFAIL_TESTS =
156 157

if !ON_LINUX
158
XFAIL_TESTS += test_abstract_ipc
159
endif