• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# -*- Makefile -*-
2
3EXTRA_DIST = \
4	util.h
5
6if ENABLE_UNIT_TESTS
7
8AM_CPPFLAGS  = -Wall -I${top_srcdir}/include/linux-private -I${top_srcdir}/include -I${top_builddir}/include -D_GNU_SOURCE -DSYSCONFDIR=\"$(sysconfdir)/libnl\"
9
10LDADD = \
11	${top_builddir}/lib/libnl-3.la \
12	${top_builddir}/lib/libnl-nf-3.la \
13	${top_builddir}/lib/libnl-genl-3.la \
14	${top_builddir}/lib/libnl-route-3.la \
15	@CHECK_LIBS@
16
17AM_CFLAGS = @CHECK_CFLAGS@
18
19UNIT_TESTS = check-all
20
21check_PROGRAMS = \
22	test-create-bond \
23	test-create-vlan \
24	test-create-vxlan \
25	test-create-veth \
26	test-create-bridge \
27	test-create-ip6tnl \
28	test-create-ipgre \
29	test-create-ipip \
30	test-create-ipvti \
31	test-create-sit \
32	test-delete-link \
33	test-socket-creation \
34	test-complex-HTB-with-hash-filters \
35	test-u32-filter-with-actions \
36	${UNIT_TESTS}
37
38TESTS = \
39	${UNIT_TESTS}
40
41if ENABLE_CLI
42LDADD += ${top_builddir}/src/lib/libnl-cli-3.la
43check_PROGRAMS += \
44	test-cache-mngr \
45	test-genl \
46	test-nf-cache-mngr
47endif
48
49test_cache_mngr_SOURCES = test-cache-mngr.c
50test_create_bond_SOURCES = test-create-bond.c
51test_create_vlan_SOURCES = test-create-vlan.c
52test_create_vxlan_SOURCES = test-create-vxlan.c
53test_create_veth_SOURCES = test-create-veth.c
54test_create_bridge_SOURCES = test-create-bridge.c
55test_delete_link_SOURCES = test-delete-link.c
56test_genl_SOURCES = test-genl.c
57test_nf_cache_mngr_SOURCES = test-nf-cache-mngr.c
58test_socket_creation_SOURCES = test-socket-creation.c
59test_complex_HTB_with_hash_filters_SOURCES = test-complex-HTB-with-hash-filters.c
60test_u32_filter_with_actions_SOURCES = test-u32-filter-with-actions.c
61
62# Unit tests
63check_all_SOURCES = \
64	check-all.c \
65	check-addr.c \
66	check-attr.c
67endif
68