]> git.proxmox.com Git - mirror_frr.git/blame - tests/subdir.am
Merge pull request #9458 from anlancs/fix-ospf6-null
[mirror_frr.git] / tests / subdir.am
CommitLineData
a1286a32
DL
1#
2# tests
3#
4
a1286a32
DL
5if BGPD
6TESTS_BGPD = \
7 tests/bgpd/test_aspath \
8 tests/bgpd/test_capability \
9 tests/bgpd/test_packet \
10 tests/bgpd/test_peer_attr \
11 tests/bgpd/test_ecommunity \
12 tests/bgpd/test_mp_attr \
13 tests/bgpd/test_mpath \
14 tests/bgpd/test_bgp_table
b69d8488 15IGNORE_BGPD =
a1286a32
DL
16else
17TESTS_BGPD =
b69d8488 18IGNORE_BGPD = --ignore=bgpd/
a1286a32
DL
19endif
20
21if ISISD
a1286a32
DL
22TESTS_ISISD = \
23 tests/isisd/test_fuzz_isis_tlv \
9c0437ec 24 tests/isisd/test_isis_lspdb \
52a7c25e 25 tests/isisd/test_isis_spf \
a1286a32
DL
26 tests/isisd/test_isis_vertex_queue \
27 # end
b69d8488 28IGNORE_ISISD =
a1286a32
DL
29else
30TESTS_ISISD =
b69d8488 31IGNORE_ISISD = --ignore=isisd/
a1286a32
DL
32endif
33
7fd0729f
G
34if OSPFD
35TESTS_OSPFD = \
36 tests/ospfd/test_ospf_spf \
37 # end
34a22834 38IGNORE_OSPFD =
7fd0729f
G
39else
40TESTS_OSPFD =
34a22834 41IGNORE_OSPFD = --ignore=ospfd/
7fd0729f
G
42endif
43
a1286a32
DL
44if OSPF6D
45TESTS_OSPF6D = \
46 tests/ospf6d/test_lsdb \
47 # end
b69d8488 48IGNORE_OSPF6D =
a1286a32
DL
49else
50TESTS_OSPF6D =
b69d8488 51IGNORE_OSPF6D = --ignore=ospf6d/
a1286a32
DL
52endif
53
cdb2af42
PR
54if ZEBRA
55TESTS_ZEBRA = \
56 tests/zebra/test_lm_plugin \
57 #end
58IGNORE_ZEBRA =
59else
60TESTS_ZEBRA =
61IGNORE_ZEBRA = --ignore=zebra/
62endif
63
555f7625
DL
64if SCRIPTING
65TESTS_SCRIPTING = \
66 tests/lib/test_frrlua \
67 tests/lib/test_frrscript \
68 #end
69else
70TESTS_SCRIPTING =
71endif
72
94cfb069
DL
73clippy_scan += \
74 tests/lib/cli/test_cli.c \
75 tests/ospf6d/test_lsdb.c \
76 # end
a1286a32
DL
77
78check_PROGRAMS = \
8ed561e1 79 tests/lib/cxxcompat \
64dd7736 80 tests/lib/test_assert \
bcea0c0f 81 tests/lib/test_atomlist \
a1286a32
DL
82 tests/lib/test_buffer \
83 tests/lib/test_checksum \
84 tests/lib/test_heavy_thread \
85 tests/lib/test_heavy_wq \
86 tests/lib/test_heavy \
a94eca09 87 tests/lib/test_idalloc \
a1286a32
DL
88 tests/lib/test_memory \
89 tests/lib/test_nexthop_iter \
403e26cd 90 tests/lib/test_nexthop \
874035be 91 tests/lib/test_ntop \
fa8e714a 92 tests/lib/test_plist \
ec466f65 93 tests/lib/test_prefix2str \
b9911c2e 94 tests/lib/test_printfrr \
a1286a32
DL
95 tests/lib/test_privs \
96 tests/lib/test_ringbuf \
97 tests/lib/test_srcdest_table \
98 tests/lib/test_segv \
440d5faa 99 tests/lib/test_seqlock \
a1286a32
DL
100 tests/lib/test_sig \
101 tests/lib/test_stream \
102 tests/lib/test_table \
103 tests/lib/test_timer_correctness \
104 tests/lib/test_timer_performance \
105 tests/lib/test_ttable \
992f9967 106 tests/lib/test_typelist \
96673e06 107 tests/lib/test_versioncmp \
494d8420 108 tests/lib/test_xref \
a1286a32
DL
109 tests/lib/test_zlog \
110 tests/lib/test_graph \
111 tests/lib/cli/test_cli \
112 tests/lib/cli/test_commands \
1a4bc045 113 tests/lib/northbound/test_oper_data \
a1286a32
DL
114 $(TESTS_BGPD) \
115 $(TESTS_ISISD) \
7fd0729f 116 $(TESTS_OSPFD) \
a1286a32 117 $(TESTS_OSPF6D) \
cdb2af42 118 $(TESTS_ZEBRA) \
555f7625 119 $(TESTS_SCRIPTING) \
a1286a32
DL
120 # end
121
deca28a3
CH
122if GRPC
123check_PROGRAMS += \
124 tests/lib/test_grpc \
125 #end
126endif
127
a1286a32
DL
128if ZEROMQ
129check_PROGRAMS += \
130 tests/lib/test_zmq \
131 # end
132endif
133
134tests/lib/cli/test_commands_defun.c: vtysh/vtysh_cmd.c
d32ee243 135 mkdir -p tests/lib/cli
a1286a32
DL
136 sed \
137 -e 's%"vtysh/vtysh\.h"%"tests/helpers/c/tests.h"%' \
138 -e 's/vtysh_init_cmd/test_init_cmd/' \
139 -e 's/VTYSH_[A-Z][A-Z_0-9]*/0/g' \
140 < vtysh/vtysh_cmd.c \
141 > "$@"
67cf020d 142CLEANFILES += tests/lib/cli/test_commands_defun.c
a1286a32
DL
143
144tests/isisd/test_fuzz_isis_tlv_tests.h: $(top_srcdir)/tests/isisd/test_fuzz_isis_tlv_tests.h.gz
d32ee243 145 mkdir -p tests/isisd
a1286a32
DL
146 gzip -d < $(top_srcdir)/tests/isisd/test_fuzz_isis_tlv_tests.h.gz > "$@"
147CLEANFILES += tests/isisd/test_fuzz_isis_tlv_tests.h
148
149tests/isisd/tests_isisd_test_fuzz_isis_tlv-test_fuzz_isis_tlv.$(OBJEXT): \
150 tests/isisd/test_fuzz_isis_tlv_tests.h
151tests/isisd/test_fuzz_isis_tlv-test_fuzz_isis_tlv.$(OBJEXT): \
152 tests/isisd/test_fuzz_isis_tlv_tests.h
153
154noinst_HEADERS += \
155 tests/helpers/c/prng.h \
156 tests/helpers/c/tests.h \
157 tests/lib/cli/common_cli.h \
992f9967 158 tests/lib/test_typelist.h \
52a7c25e 159 tests/isisd/test_common.h \
7fd0729f 160 tests/ospfd/common.h \
a1286a32
DL
161 # end
162
163#
164# *sigh* - there is no way to get CPPFLAGS or CFLAGS for a group of files :(
165#
166
167TESTS_CPPFLAGS = $(AM_CPPFLAGS) \
168 -I$(top_srcdir)/tests/helpers/c \
169 -I$(top_builddir)/tests/helpers/c \
170 # end
fdbd8086 171TESTS_CFLAGS = \
0c4285d7 172 $(AC_CFLAGS) \
fdbd8086
DL
173 $(LIBYANG_CFLAGS) \
174 $(SAN_FLAGS) \
175 # end
a1286a32
DL
176# note no -Werror
177
deca28a3
CH
178TESTS_CXXFLAGS = \
179 $(AC_CXXFLAGS) \
180 $(LIBYANG_CFLAGS) \
181 $(SAN_FLAGS) \
182 # end
183# note no -Werror
184
fdbd8086 185ALL_TESTS_LDADD = lib/libfrr.la $(LIBCAP)
3bb513c3 186BGP_TEST_LDADD = bgpd/libbgp.a $(RFPLDADD) $(ALL_TESTS_LDADD) $(LIBYANG_LIBS) -lm
a1286a32 187ISISD_TEST_LDADD = isisd/libisis.a $(ALL_TESTS_LDADD)
deca28a3
CH
188if GRPC
189GRPC_TESTS_LDADD = staticd/libstatic.a grpc/libfrrgrpc_pb.la -lgrpc++ -lprotobuf $(ALL_TESTS_LDADD) $(LIBYANG_LIBS) -lm
190endif
7fd0729f 191OSPFD_TEST_LDADD = ospfd/libfrrospf.a $(ALL_TESTS_LDADD)
a1286a32 192OSPF6_TEST_LDADD = ospf6d/libospf6.a $(ALL_TESTS_LDADD)
cdb2af42 193ZEBRA_TEST_LDADD = zebra/label_manager.o $(ALL_TESTS_LDADD)
a1286a32
DL
194
195tests_bgpd_test_aspath_CFLAGS = $(TESTS_CFLAGS)
196tests_bgpd_test_aspath_CPPFLAGS = $(TESTS_CPPFLAGS)
197tests_bgpd_test_aspath_LDADD = $(BGP_TEST_LDADD)
198tests_bgpd_test_aspath_SOURCES = tests/bgpd/test_aspath.c
199tests_bgpd_test_bgp_table_CFLAGS = $(TESTS_CFLAGS)
200tests_bgpd_test_bgp_table_CPPFLAGS = $(TESTS_CPPFLAGS)
201tests_bgpd_test_bgp_table_LDADD = $(BGP_TEST_LDADD)
202tests_bgpd_test_bgp_table_SOURCES = tests/bgpd/test_bgp_table.c
203tests_bgpd_test_capability_CFLAGS = $(TESTS_CFLAGS)
204tests_bgpd_test_capability_CPPFLAGS = $(TESTS_CPPFLAGS)
205tests_bgpd_test_capability_LDADD = $(BGP_TEST_LDADD)
206tests_bgpd_test_capability_SOURCES = tests/bgpd/test_capability.c
207tests_bgpd_test_ecommunity_CFLAGS = $(TESTS_CFLAGS)
208tests_bgpd_test_ecommunity_CPPFLAGS = $(TESTS_CPPFLAGS)
209tests_bgpd_test_ecommunity_LDADD = $(BGP_TEST_LDADD)
210tests_bgpd_test_ecommunity_SOURCES = tests/bgpd/test_ecommunity.c
211tests_bgpd_test_mp_attr_CFLAGS = $(TESTS_CFLAGS)
212tests_bgpd_test_mp_attr_CPPFLAGS = $(TESTS_CPPFLAGS)
213tests_bgpd_test_mp_attr_LDADD = $(BGP_TEST_LDADD)
214tests_bgpd_test_mp_attr_SOURCES = tests/bgpd/test_mp_attr.c
215tests_bgpd_test_mpath_CFLAGS = $(TESTS_CFLAGS)
216tests_bgpd_test_mpath_CPPFLAGS = $(TESTS_CPPFLAGS)
217tests_bgpd_test_mpath_LDADD = $(BGP_TEST_LDADD)
218tests_bgpd_test_mpath_SOURCES = tests/bgpd/test_mpath.c
219tests_bgpd_test_packet_CFLAGS = $(TESTS_CFLAGS)
220tests_bgpd_test_packet_CPPFLAGS = $(TESTS_CPPFLAGS)
221tests_bgpd_test_packet_LDADD = $(BGP_TEST_LDADD)
222tests_bgpd_test_packet_SOURCES = tests/bgpd/test_packet.c
223tests_bgpd_test_peer_attr_CFLAGS = $(TESTS_CFLAGS)
224tests_bgpd_test_peer_attr_CPPFLAGS = $(TESTS_CPPFLAGS)
225tests_bgpd_test_peer_attr_LDADD = $(BGP_TEST_LDADD)
226tests_bgpd_test_peer_attr_SOURCES = tests/bgpd/test_peer_attr.c
227
228tests_isisd_test_fuzz_isis_tlv_CFLAGS = $(TESTS_CFLAGS) -I$(top_builddir)/tests/isisd
229tests_isisd_test_fuzz_isis_tlv_CPPFLAGS = $(TESTS_CPPFLAGS) -I$(top_builddir)/tests/isisd
230tests_isisd_test_fuzz_isis_tlv_LDADD = $(ISISD_TEST_LDADD)
52a7c25e 231tests_isisd_test_fuzz_isis_tlv_SOURCES = tests/isisd/test_fuzz_isis_tlv.c tests/isisd/test_common.c
a1286a32 232nodist_tests_isisd_test_fuzz_isis_tlv_SOURCES = tests/isisd/test_fuzz_isis_tlv_tests.h
9c0437ec
CF
233tests_isisd_test_isis_lspdb_CFLAGS = $(TESTS_CFLAGS)
234tests_isisd_test_isis_lspdb_CPPFLAGS = $(TESTS_CPPFLAGS)
235tests_isisd_test_isis_lspdb_LDADD = $(ISISD_TEST_LDADD)
52a7c25e
RW
236tests_isisd_test_isis_lspdb_SOURCES = tests/isisd/test_isis_lspdb.c tests/isisd/test_common.c
237tests_isisd_test_isis_spf_CFLAGS = $(TESTS_CFLAGS)
238tests_isisd_test_isis_spf_CPPFLAGS = $(TESTS_CPPFLAGS)
239tests_isisd_test_isis_spf_LDADD = $(ISISD_TEST_LDADD)
240tests_isisd_test_isis_spf_SOURCES = tests/isisd/test_isis_spf.c tests/isisd/test_common.c tests/isisd/test_topologies.c
241nodist_tests_isisd_test_isis_spf_SOURCES = yang/frr-isisd.yang.c
a1286a32
DL
242tests_isisd_test_isis_vertex_queue_CFLAGS = $(TESTS_CFLAGS)
243tests_isisd_test_isis_vertex_queue_CPPFLAGS = $(TESTS_CPPFLAGS)
244tests_isisd_test_isis_vertex_queue_LDADD = $(ISISD_TEST_LDADD)
52a7c25e 245tests_isisd_test_isis_vertex_queue_SOURCES = tests/isisd/test_isis_vertex_queue.c tests/isisd/test_common.c
a1286a32 246
7fd0729f
G
247tests_ospfd_test_ospf_spf_CFLAGS = $(TESTS_CFLAGS)
248tests_ospfd_test_ospf_spf_CPPFLAGS = $(TESTS_CPPFLAGS)
249tests_ospfd_test_ospf_spf_LDADD = $(OSPFD_TEST_LDADD)
250tests_ospfd_test_ospf_spf_SOURCES = tests/ospfd/test_ospf_spf.c tests/ospfd/common.c tests/ospfd/topologies.c
251
8ed561e1
DL
252tests_lib_cxxcompat_CFLAGS = $(TESTS_CFLAGS) $(CXX_COMPAT_CFLAGS) $(WERROR)
253tests_lib_cxxcompat_CPPFLAGS = $(TESTS_CPPFLAGS)
254tests_lib_cxxcompat_SOURCES = tests/lib/cxxcompat.c
255tests_lib_cxxcompat_LDADD = $(ALL_TESTS_LDADD)
a1286a32
DL
256tests_lib_cli_test_cli_CFLAGS = $(TESTS_CFLAGS)
257tests_lib_cli_test_cli_CPPFLAGS = $(TESTS_CPPFLAGS)
258tests_lib_cli_test_cli_LDADD = $(ALL_TESTS_LDADD)
259tests_lib_cli_test_cli_SOURCES = tests/lib/cli/test_cli.c tests/lib/cli/common_cli.c
260tests_lib_cli_test_commands_CFLAGS = $(TESTS_CFLAGS)
261tests_lib_cli_test_commands_CPPFLAGS = $(TESTS_CPPFLAGS)
262tests_lib_cli_test_commands_LDADD = $(ALL_TESTS_LDADD)
67cf020d
DL
263nodist_tests_lib_cli_test_commands_SOURCES = tests/lib/cli/test_commands_defun.c
264tests_lib_cli_test_commands_SOURCES = tests/lib/cli/test_commands.c tests/helpers/c/prng.c
1a4bc045
RW
265tests_lib_northbound_test_oper_data_CFLAGS = $(TESTS_CFLAGS)
266tests_lib_northbound_test_oper_data_CPPFLAGS = $(TESTS_CPPFLAGS)
267tests_lib_northbound_test_oper_data_LDADD = $(ALL_TESTS_LDADD)
268tests_lib_northbound_test_oper_data_SOURCES = tests/lib/northbound/test_oper_data.c
269nodist_tests_lib_northbound_test_oper_data_SOURCES = yang/frr-test-module.yang.c
deca28a3
CH
270if GRPC
271tests_lib_test_grpc_CXXFLAGS = $(WERROR) $(TESTS_CXXFLAGS)
272tests_lib_test_grpc_CPPFLAGS = $(TESTS_CPPFLAGS)
273tests_lib_test_grpc_LDADD = $(GRPC_TESTS_LDADD)
274tests_lib_test_grpc_SOURCES = tests/lib/test_grpc.cpp
275endif
64dd7736
DL
276tests_lib_test_assert_CFLAGS = $(TESTS_CFLAGS)
277tests_lib_test_assert_CPPFLAGS = $(TESTS_CPPFLAGS)
278tests_lib_test_assert_LDADD = $(ALL_TESTS_LDADD)
279tests_lib_test_assert_SOURCES = tests/lib/test_assert.c
bcea0c0f
DL
280tests_lib_test_atomlist_CFLAGS = $(TESTS_CFLAGS)
281tests_lib_test_atomlist_CPPFLAGS = $(TESTS_CPPFLAGS)
282tests_lib_test_atomlist_LDADD = $(ALL_TESTS_LDADD)
283tests_lib_test_atomlist_SOURCES = tests/lib/test_atomlist.c
a1286a32
DL
284tests_lib_test_buffer_CFLAGS = $(TESTS_CFLAGS)
285tests_lib_test_buffer_CPPFLAGS = $(TESTS_CPPFLAGS)
286tests_lib_test_buffer_LDADD = $(ALL_TESTS_LDADD)
287tests_lib_test_buffer_SOURCES = tests/lib/test_buffer.c
288tests_lib_test_checksum_CFLAGS = $(TESTS_CFLAGS)
289tests_lib_test_checksum_CPPFLAGS = $(TESTS_CPPFLAGS)
290tests_lib_test_checksum_LDADD = $(ALL_TESTS_LDADD)
291tests_lib_test_checksum_SOURCES = tests/lib/test_checksum.c
555f7625 292if SCRIPTING
e06feaf8
DL
293tests_lib_test_frrlua_CFLAGS = $(TESTS_CFLAGS)
294tests_lib_test_frrlua_CPPFLAGS = $(TESTS_CPPFLAGS)
295tests_lib_test_frrlua_LDADD = $(ALL_TESTS_LDADD)
296tests_lib_test_frrlua_SOURCES = tests/lib/test_frrlua.c
1e0e4d23
DL
297tests_lib_test_frrscript_CFLAGS = $(TESTS_CFLAGS)
298tests_lib_test_frrscript_CPPFLAGS = $(TESTS_CPPFLAGS)
299tests_lib_test_frrscript_LDADD = $(ALL_TESTS_LDADD)
300tests_lib_test_frrscript_SOURCES = tests/lib/test_frrscript.c
555f7625 301endif
a1286a32
DL
302tests_lib_test_graph_CFLAGS = $(TESTS_CFLAGS)
303tests_lib_test_graph_CPPFLAGS = $(TESTS_CPPFLAGS)
304tests_lib_test_graph_LDADD = $(ALL_TESTS_LDADD)
305tests_lib_test_graph_SOURCES = tests/lib/test_graph.c
306tests_lib_test_heavy_CFLAGS = $(TESTS_CFLAGS)
307tests_lib_test_heavy_CPPFLAGS = $(TESTS_CPPFLAGS)
308tests_lib_test_heavy_LDADD = $(ALL_TESTS_LDADD) -lm
309tests_lib_test_heavy_SOURCES = tests/lib/test_heavy.c tests/helpers/c/main.c
310tests_lib_test_heavy_thread_CFLAGS = $(TESTS_CFLAGS)
311tests_lib_test_heavy_thread_CPPFLAGS = $(TESTS_CPPFLAGS)
312tests_lib_test_heavy_thread_LDADD = $(ALL_TESTS_LDADD) -lm
313tests_lib_test_heavy_thread_SOURCES = tests/lib/test_heavy_thread.c tests/helpers/c/main.c
314tests_lib_test_heavy_wq_CFLAGS = $(TESTS_CFLAGS)
315tests_lib_test_heavy_wq_CPPFLAGS = $(TESTS_CPPFLAGS)
316tests_lib_test_heavy_wq_LDADD = $(ALL_TESTS_LDADD) -lm
317tests_lib_test_heavy_wq_SOURCES = tests/lib/test_heavy_wq.c tests/helpers/c/main.c
a94eca09
MS
318tests_lib_test_idalloc_CFLAGS = $(TESTS_CFLAGS)
319tests_lib_test_idalloc_LDADD = $(ALL_TESTS_LDADD)
320tests_lib_test_idalloc_SOURCES = tests/lib/test_idalloc.c
a1286a32
DL
321tests_lib_test_memory_CFLAGS = $(TESTS_CFLAGS)
322tests_lib_test_memory_CPPFLAGS = $(TESTS_CPPFLAGS)
323tests_lib_test_memory_LDADD = $(ALL_TESTS_LDADD)
324tests_lib_test_memory_SOURCES = tests/lib/test_memory.c
325tests_lib_test_nexthop_iter_CFLAGS = $(TESTS_CFLAGS)
326tests_lib_test_nexthop_iter_CPPFLAGS = $(TESTS_CPPFLAGS)
327tests_lib_test_nexthop_iter_LDADD = $(ALL_TESTS_LDADD)
328tests_lib_test_nexthop_iter_SOURCES = tests/lib/test_nexthop_iter.c tests/helpers/c/prng.c
403e26cd
MS
329tests_lib_test_nexthop_CFLAGS = $(TESTS_CFLAGS)
330tests_lib_test_nexthop_CPPFLAGS = $(TESTS_CPPFLAGS)
331tests_lib_test_nexthop_LDADD = $(ALL_TESTS_LDADD)
332tests_lib_test_nexthop_SOURCES = tests/lib/test_nexthop.c
874035be 333tests_lib_test_ntop_CFLAGS = $(TESTS_CFLAGS)
8dff30f8 334tests_lib_test_ntop_CPPFLAGS = $(CPPFLAGS_BASE) # no assert override
874035be
DL
335tests_lib_test_ntop_LDADD = # none
336tests_lib_test_ntop_SOURCES = tests/lib/test_ntop.c tests/helpers/c/prng.c
fa8e714a
DL
337tests_lib_test_plist_CFLAGS = $(TESTS_CFLAGS)
338tests_lib_test_plist_CPPFLAGS = $(TESTS_CPPFLAGS)
339tests_lib_test_plist_LDADD = $(ALL_TESTS_LDADD)
340tests_lib_test_plist_SOURCES = tests/lib/test_plist.c tests/lib/cli/common_cli.c
ec466f65
QY
341tests_lib_test_prefix2str_CFLAGS = $(TESTS_CFLAGS)
342tests_lib_test_prefix2str_CPPFLAGS = $(TESTS_CPPFLAGS)
343tests_lib_test_prefix2str_LDADD = $(ALL_TESTS_LDADD)
344tests_lib_test_prefix2str_SOURCES = tests/lib/test_prefix2str.c tests/helpers/c/prng.c
b9911c2e
DL
345tests_lib_test_printfrr_CFLAGS = $(TESTS_CFLAGS)
346tests_lib_test_printfrr_CPPFLAGS = $(TESTS_CPPFLAGS)
347tests_lib_test_printfrr_LDADD = $(ALL_TESTS_LDADD)
348tests_lib_test_printfrr_SOURCES = tests/lib/test_printfrr.c
a1286a32
DL
349tests_lib_test_privs_CFLAGS = $(TESTS_CFLAGS)
350tests_lib_test_privs_CPPFLAGS = $(TESTS_CPPFLAGS)
351tests_lib_test_privs_LDADD = $(ALL_TESTS_LDADD)
352tests_lib_test_privs_SOURCES = tests/lib/test_privs.c
353tests_lib_test_ringbuf_CFLAGS = $(TESTS_CFLAGS)
354tests_lib_test_ringbuf_CPPFLAGS = $(TESTS_CPPFLAGS)
355tests_lib_test_ringbuf_LDADD = $(ALL_TESTS_LDADD)
356tests_lib_test_ringbuf_SOURCES = tests/lib/test_ringbuf.c
357tests_lib_test_segv_CFLAGS = $(TESTS_CFLAGS)
358tests_lib_test_segv_CPPFLAGS = $(TESTS_CPPFLAGS)
359tests_lib_test_segv_LDADD = $(ALL_TESTS_LDADD)
360tests_lib_test_segv_SOURCES = tests/lib/test_segv.c
440d5faa
DL
361tests_lib_test_seqlock_CFLAGS = $(TESTS_CFLAGS)
362tests_lib_test_seqlock_CPPFLAGS = $(TESTS_CPPFLAGS)
363tests_lib_test_seqlock_LDADD = $(ALL_TESTS_LDADD)
364tests_lib_test_seqlock_SOURCES = tests/lib/test_seqlock.c
a1286a32
DL
365tests_lib_test_sig_CFLAGS = $(TESTS_CFLAGS)
366tests_lib_test_sig_CPPFLAGS = $(TESTS_CPPFLAGS)
367tests_lib_test_sig_LDADD = $(ALL_TESTS_LDADD)
368tests_lib_test_sig_SOURCES = tests/lib/test_sig.c
369tests_lib_test_srcdest_table_CFLAGS = $(TESTS_CFLAGS)
370tests_lib_test_srcdest_table_CPPFLAGS = $(TESTS_CPPFLAGS)
371tests_lib_test_srcdest_table_LDADD = $(ALL_TESTS_LDADD)
372tests_lib_test_srcdest_table_SOURCES = tests/lib/test_srcdest_table.c tests/helpers/c/prng.c
373tests_lib_test_stream_CFLAGS = $(TESTS_CFLAGS)
374tests_lib_test_stream_CPPFLAGS = $(TESTS_CPPFLAGS)
375tests_lib_test_stream_LDADD = $(ALL_TESTS_LDADD)
376tests_lib_test_stream_SOURCES = tests/lib/test_stream.c
377tests_lib_test_table_CFLAGS = $(TESTS_CFLAGS)
378tests_lib_test_table_CPPFLAGS = $(TESTS_CPPFLAGS)
379tests_lib_test_table_LDADD = $(ALL_TESTS_LDADD) -lm
380tests_lib_test_table_SOURCES = tests/lib/test_table.c
381tests_lib_test_timer_correctness_CFLAGS = $(TESTS_CFLAGS)
382tests_lib_test_timer_correctness_CPPFLAGS = $(TESTS_CPPFLAGS)
383tests_lib_test_timer_correctness_LDADD = $(ALL_TESTS_LDADD)
384tests_lib_test_timer_correctness_SOURCES = tests/lib/test_timer_correctness.c tests/helpers/c/prng.c
385tests_lib_test_timer_performance_CFLAGS = $(TESTS_CFLAGS)
386tests_lib_test_timer_performance_CPPFLAGS = $(TESTS_CPPFLAGS)
387tests_lib_test_timer_performance_LDADD = $(ALL_TESTS_LDADD)
388tests_lib_test_timer_performance_SOURCES = tests/lib/test_timer_performance.c tests/helpers/c/prng.c
389tests_lib_test_ttable_CFLAGS = $(TESTS_CFLAGS)
390tests_lib_test_ttable_CPPFLAGS = $(TESTS_CPPFLAGS)
391tests_lib_test_ttable_LDADD = $(ALL_TESTS_LDADD)
392tests_lib_test_ttable_SOURCES = tests/lib/test_ttable.c
992f9967
DL
393tests_lib_test_typelist_CFLAGS = $(TESTS_CFLAGS)
394tests_lib_test_typelist_CPPFLAGS = $(TESTS_CPPFLAGS)
395tests_lib_test_typelist_LDADD = $(ALL_TESTS_LDADD)
396tests_lib_test_typelist_SOURCES = tests/lib/test_typelist.c tests/helpers/c/prng.c
96673e06
DL
397tests_lib_test_versioncmp_CFLAGS = $(TESTS_CFLAGS)
398tests_lib_test_versioncmp_CPPFLAGS = $(TESTS_CPPFLAGS)
399tests_lib_test_versioncmp_LDADD = $(ALL_TESTS_LDADD)
400tests_lib_test_versioncmp_SOURCES = tests/lib/test_versioncmp.c
494d8420
DL
401tests_lib_test_xref_CFLAGS = $(TESTS_CFLAGS)
402tests_lib_test_xref_CPPFLAGS = $(TESTS_CPPFLAGS)
403tests_lib_test_xref_LDADD = $(ALL_TESTS_LDADD)
404tests_lib_test_xref_SOURCES = tests/lib/test_xref.c
a1286a32
DL
405tests_lib_test_zlog_CFLAGS = $(TESTS_CFLAGS)
406tests_lib_test_zlog_CPPFLAGS = $(TESTS_CPPFLAGS)
407tests_lib_test_zlog_LDADD = $(ALL_TESTS_LDADD)
408tests_lib_test_zlog_SOURCES = tests/lib/test_zlog.c
409tests_lib_test_zmq_CFLAGS = $(TESTS_CFLAGS) $(ZEROMQ_CFLAGS)
410tests_lib_test_zmq_CPPFLAGS = $(TESTS_CPPFLAGS)
411tests_lib_test_zmq_LDADD = lib/libfrrzmq.la $(ALL_TESTS_LDADD) $(ZEROMQ_LIBS)
412tests_lib_test_zmq_SOURCES = tests/lib/test_zmq.c
413
414tests_ospf6d_test_lsdb_CFLAGS = $(TESTS_CFLAGS)
415tests_ospf6d_test_lsdb_CPPFLAGS = $(TESTS_CPPFLAGS)
416tests_ospf6d_test_lsdb_LDADD = $(OSPF6_TEST_LDADD)
417tests_ospf6d_test_lsdb_SOURCES = tests/ospf6d/test_lsdb.c tests/lib/cli/common_cli.c
418
cdb2af42
PR
419tests_zebra_test_lm_plugin_CFLAGS = $(TESTS_CFLAGS)
420tests_zebra_test_lm_plugin_CPPFLAGS = $(TESTS_CPPFLAGS)
421tests_zebra_test_lm_plugin_LDADD = $(ZEBRA_TEST_LDADD)
422tests_zebra_test_lm_plugin_SOURCES = tests/zebra/test_lm_plugin.c
423
a1286a32
DL
424EXTRA_DIST += \
425 tests/runtests.py \
426 tests/bgpd/test_aspath.py \
427 tests/bgpd/test_capability.py \
428 tests/bgpd/test_ecommunity.py \
429 tests/bgpd/test_mp_attr.py \
430 tests/bgpd/test_mpath.py \
431 tests/bgpd/test_peer_attr.py \
432 tests/helpers/python/frrsix.py \
433 tests/helpers/python/frrtest.py \
434 tests/isisd/test_fuzz_isis_tlv.py \
435 tests/isisd/test_fuzz_isis_tlv_tests.h.gz \
9c0437ec 436 tests/isisd/test_isis_lspdb.py \
52a7c25e
RW
437 tests/isisd/test_isis_spf.py \
438 tests/isisd/test_isis_spf.in \
439 tests/isisd/test_isis_spf.refout \
a1286a32 440 tests/isisd/test_isis_vertex_queue.py \
7fd0729f 441 tests/ospfd/test_ospf_spf.py \
66dc21bb
G
442 tests/ospfd/test_ospf_spf.in \
443 tests/ospfd/test_ospf_spf.refout \
a1286a32
DL
444 tests/lib/cli/test_commands.in \
445 tests/lib/cli/test_commands.py \
446 tests/lib/cli/test_commands.refout \
447 tests/lib/cli/test_cli.in \
448 tests/lib/cli/test_cli.py \
449 tests/lib/cli/test_cli.refout \
1a4bc045
RW
450 tests/lib/northbound/test_oper_data.in \
451 tests/lib/northbound/test_oper_data.py \
452 tests/lib/northbound/test_oper_data.refout \
64dd7736 453 tests/lib/test_assert.py \
bcea0c0f 454 tests/lib/test_atomlist.py \
a1286a32 455 tests/lib/test_nexthop_iter.py \
403e26cd 456 tests/lib/test_nexthop.py \
874035be 457 tests/lib/test_ntop.py \
ec466f65 458 tests/lib/test_prefix2str.py \
b9911c2e 459 tests/lib/test_printfrr.py \
a1286a32
DL
460 tests/lib/test_ringbuf.py \
461 tests/lib/test_srcdest_table.py \
462 tests/lib/test_stream.py \
463 tests/lib/test_stream.refout \
464 tests/lib/test_table.py \
465 tests/lib/test_timer_correctness.py \
466 tests/lib/test_ttable.py \
467 tests/lib/test_ttable.refout \
992f9967 468 tests/lib/test_typelist.py \
96673e06 469 tests/lib/test_versioncmp.py \
494d8420 470 tests/lib/test_xref.py \
a1286a32
DL
471 tests/lib/test_zlog.py \
472 tests/lib/test_graph.py \
473 tests/lib/test_graph.refout \
474 tests/ospf6d/test_lsdb.py \
475 tests/ospf6d/test_lsdb.in \
476 tests/ospf6d/test_lsdb.refout \
cdb2af42
PR
477 tests/zebra/test_lm_plugin.py \
478 tests/zebra/test_lm_plugin.refout \
a1286a32
DL
479 # end
480
555f7625
DL
481
482if SCRIPTING
483EXTRA_DIST += \
484 tests/lib/test_frrscript.py \
485 tests/lib/test_frrlua.py \
486 #end
487endif
488
a1286a32
DL
489.PHONY: tests/tests.xml
490tests/tests.xml: $(check_PROGRAMS)
34a22834 491 ( cd tests; $(PYTHON) ../$(srcdir)/tests/runtests.py --junitxml=tests.xml -v ../$(srcdir)/tests $(IGNORE_BGPD) $(IGNORE_ISISD) $(IGNORE_OSPFD) $(IGNORE_OSPF6D); )
a1286a32 492check: tests/tests.xml
67cf020d
DL
493
494clean-local: clean-tests
495.PHONY: clean-tests
496clean-tests:
497 -rm -f tests/tests.xml