Debian Codegraph @

src/func_tests/Makefile.am

raw
1 # Include these two in all the Makefile.am's!!!
2 include $(top_srcdir)/Makefile.vars
3 include $(top_srcdir)/Makefile.rules
4 include $(top_srcdir)/Makefile.dirs
5
6 # General compilation flags
7 AM_CPPFLAGS = -I. -I$(top_builddir)/src/include -I$(top_srcdir)/src/testlib \
8 -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes \
9 -Wimplicit-function-declaration
10
11 AM_LDFLAGS = -lpthread
12
13 LDADD = $(top_builddir)/src/testlib/libsctputil.la \
14 $(top_builddir)/src/lib/libsctp.la
15
16 V6FLAGS = -DCONFIG_IPV6=1 -DTEST_V6=1 ${DEFS} ${INCLUDES} ${CFLAGS}
17
18 # Test programs and libraries to build
19 PASSING_KERN_TESTS = \
20 test_assoc_abort \
21 test_assoc_shutdown \
22 test_autoclose \
23 test_basic \
24 test_fragments \
25 test_inaddr_any \
26 test_peeloff \
27 test_sockopt \
28 test_connect \
29 test_connectx \
30 test_recvmsg \
31 test_timetolive \
32 test_sctp_sendrecvmsg \
33 test_getname \
34 test_tcp_style\
35 test_1_to_1_socket_bind_listen \
36 test_1_to_1_accept_close \
37 test_1_to_1_connect \
38 test_1_to_1_connectx \
39 test_1_to_1_send \
40 test_1_to_1_sendto \
41 test_1_to_1_sendmsg \
42 test_1_to_1_recvfrom \
43 test_1_to_1_recvmsg \
44 test_1_to_1_shutdown \
45 test_1_to_1_sockopt \
46 test_1_to_1_addrs \
47 test_1_to_1_nonblock \
48 test_1_to_1_rtoinfo \
49 test_1_to_1_events \
50 test_1_to_1_threads \
51 test_1_to_1_initmsg_connect
52
53 PASSING_V6_KERN_TESTS = \
54 test_basic_v6 \
55 test_sockopt_v6 \
56 test_fragments_v6 \
57 test_inaddr_any_v6 \
58 test_peeloff_v6 \
59 test_timetolive_v6 \
60 test_sctp_sendrecvmsg_v6 \
61 test_getname_v6 \
62 test_tcp_style_v6
63
64 if HAVE_SCTP_SENDV
65 PASSING_KERN_TESTS += \
66 test_sctp_sendvrecvv
67 PASSING_V6_KERN_TESTS += \
68 test_sctp_sendvrecvv_v6
69 endif
70
71 if HAVE_SCTP_FRAGMENT_INTERLEAVE
72 PASSING_KERN_TESTS += \
73 test_interleave
74 PASSING_V6_KERN_TESTS += \
75 test_interleave_v6
76 endif
77
78 if HAVE_SCTP_STREAM_RECONFIG
79 PASSING_KERN_TESTS += \
80 test_re_conf
81 PASSING_V6_KERN_TESTS += \
82 test_re_conf_v6
83 endif
84
85 noinst_PROGRAMS = ${PASSING_KERN_TESTS} ${PASSING_V6_KERN_TESTS}
86
87 $(top_builddir)/src/lib/libsctp.la:
88 $(MAKE) -C $(top_builddir)/src/lib libsctp.la
89
90 $(top_builddir)/src/testlib/libsctputil.la:
91 $(MAKE) -C $(top_builddir)/src/testlib libsctputil.la
92
93 # These are tests for live kernels which pass.
94 v4test: ${PASSING_KERN_TESTS}
95 @for a in $^; \
96 do \
97 echo "./$$a"; \
98 if ./$$a; \
99 then \
100 echo "$$a passes"; \
101 echo ""; \
102 else \
103 echo "$$a fails"; \
104 exit 1; \
105 fi; \
106 sleep 1; \
107 done
108 @echo "Hoody hoo!"
109
110 # These are tests for live kernels which pass.
111 v6test: ${PASSING_V6_KERN_TESTS}
112 @for a in $^; \
113 do \
114 echo "./$$a"; \
115 if ./$$a; \
116 then \
117 echo "$$a passes"; \
118 echo ""; \
119 else \
120 echo "$$a fails"; \
121 exit 1; \
122 fi; \
123 sleep 1; \
124 done
125 @echo "Hoody hoo!"
126
127 # Specifying the sources
128 test_assoc_abort_SOURCES = test_assoc_abort.c
129 test_assoc_shutdown_SOURCES = test_assoc_shutdown.c
130 test_autoclose_SOURCES = test_autoclose.c
131 test_basic_SOURCES = test_basic.c
132 test_fragments_SOURCES = test_fragments.c
133 test_inaddr_any_SOURCES = test_inaddr_any.c
134 test_peeloff_SOURCES = test_peeloff.c
135 test_sockopt_SOURCES = test_sockopt.c
136 test_connect_SOURCES = test_connect.c
137 test_connectx_SOURCES = test_connectx.c
138 test_recvmsg_SOURCES = test_recvmsg.c
139 test_timetolive_SOURCES = test_timetolive.c
140 test_sctp_sendrecvmsg_SOURCES = test_sctp_sendrecvmsg.c
141 test_sctp_sendvrecvv_SOURCES = test_sctp_sendvrecvv.c
142 test_getname_SOURCES = test_getname.c
143 test_tcp_style_SOURCES = test_tcp_style.c
144
145 test_1_to_1_socket_bind_listen_SOURCES = test_1_to_1_socket_bind_listen.c
146 test_1_to_1_accept_close_SOURCES = test_1_to_1_accept_close.c
147 test_1_to_1_connect_SOURCES = test_1_to_1_connect.c
148 test_1_to_1_connectx_SOURCES = test_1_to_1_connectx.c
149 test_1_to_1_send_SOURCES = test_1_to_1_send.c
150 test_1_to_1_sendto_SOURCES = test_1_to_1_sendto.c
151 test_1_to_1_sendmsg_SOURCES = test_1_to_1_sendmsg.c
152 test_1_to_1_recvfrom_SOURCES = test_1_to_1_recvfrom.c
153 test_1_to_1_recvmsg_SOURCES = test_1_to_1_recvmsg.c
154 test_1_to_1_shutdown_SOURCES = test_1_to_1_shutdown.c
155 test_1_to_1_sockopt_SOURCES = test_1_to_1_sockopt.c
156 test_1_to_1_addrs_SOURCES = test_1_to_1_addrs.c
157 test_1_to_1_nonblock_SOURCES = test_1_to_1_nonblock.c
158 test_1_to_1_rtoinfo_SOURCES = test_1_to_1_rtoinfo.c
159 test_1_to_1_events_SOURCES = test_1_to_1_events.c
160 test_1_to_1_threads_SOURCES = test_1_to_1_threads.c
161 test_1_to_1_initmsg_connect_SOURCES = test_1_to_1_initmsg_connect.c
162
163 #
164 # Specifying objects rules for "v6test"
165 #
166 test_basic_v6_SOURCES = test_basic.c
167 test_basic_v6_CFLAGS = ${V6FLAGS}
168
169 test_sockopt_v6_SOURCES = test_sockopt.c
170 test_sockopt_v6_CFLAGS = ${V6FLAGS}
171
172 test_fragments_v6_SOURCES = test_fragments.c
173 test_fragments_v6_CFLAGS = ${V6FLAGS}
174
175 test_inaddr_any_v6_SOURCES = test_inaddr_any.c
176 test_inaddr_any_v6_CFLAGS = ${V6FLAGS}
177
178 test_peeloff_v6_SOURCES = test_peeloff.c
179 test_peeloff_v6_CFLAGS = ${V6FLAGS}
180
181 test_timetolive_v6_SOURCES = test_timetolive.c
182 test_timetolive_v6_CFLAGS = ${V6FLAGS}
183
184 test_sctp_sendrecvmsg_v6_SOURCES = test_sctp_sendrecvmsg.c
185 test_sctp_sendvrecvv_v6_SOURCES = test_sctp_sendvrecvv.c
186 test_sctp_sendrecvmsg_v6_CFLAGS = ${V6FLAGS}
187 test_sctp_sendvrecvv_v6_CFLAGS = ${V6FLAGS}
188
189 test_getname_v6_SOURCES = test_getname.c
190 test_getname_v6_CFLAGS = ${V6FLAGS}
191
192 test_tcp_style_v6_SOURCES = test_tcp_style.c
193 test_tcp_style_v6_CFLAGS = ${V6FLAGS}
194
195 test_interleave_v6_SOURCES = test_interleave.c
196 test_interleave_v6_CFLAGS = ${V6FLAGS}
197
198 test_re_conf_v6_SOURCES = test_re_conf.c
199 test_re_conf_v6_CFLAGS = ${V6FLAGS}