]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/libsystemd-network/meson.build
test: extract dummy icmp6 utils for tests
[thirdparty/systemd.git] / src / libsystemd-network / meson.build
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 sources = files(
4 'arp-util.c',
5 'dhcp-identifier.c',
6 'dhcp-network.c',
7 'dhcp-option.c',
8 'dhcp-packet.c',
9 'dhcp6-network.c',
10 'dhcp6-option.c',
11 'dhcp6-protocol.c',
12 'icmp6-util.c',
13 'lldp-neighbor.c',
14 'lldp-network.c',
15 'ndisc-router.c',
16 'network-common.c',
17 'network-internal.c',
18 'sd-dhcp-client.c',
19 'sd-dhcp-lease.c',
20 'sd-dhcp-server.c',
21 'sd-dhcp6-client.c',
22 'sd-dhcp6-lease.c',
23 'sd-ipv4acd.c',
24 'sd-ipv4ll.c',
25 'sd-lldp-rx.c',
26 'sd-lldp-tx.c',
27 'sd-ndisc.c',
28 'sd-radv.c',
29 )
30
31 libsystemd_network = static_library(
32 'systemd-network',
33 sources,
34 include_directories : includes,
35 dependencies : userspace,
36 build_by_default : false)
37
38 libsystemd_network_includes = [includes, include_directories('.')]
39
40 ############################################################
41
42 network_test_template = test_template + {
43 'link_with' : [
44 libshared,
45 libsystemd_network,
46 ],
47 'suite' : 'network',
48 }
49
50 network_fuzz_template = fuzz_template + {
51 'link_with' : [
52 libshared,
53 libsystemd_network,
54 ],
55 }
56
57 executables += [
58 network_test_template + {
59 'sources' : files('test-acd.c'),
60 'type' : 'manual',
61 },
62 network_test_template + {
63 'sources' : files('test-dhcp-client.c'),
64 },
65 network_test_template + {
66 'sources' : files('test-dhcp-option.c'),
67 },
68 network_test_template + {
69 'sources' : files('test-dhcp-server.c'),
70 },
71 network_test_template + {
72 'sources' : files('test-dhcp6-client.c'),
73 },
74 network_test_template + {
75 'sources' : files('test-ipv4ll-manual.c'),
76 'type' : 'manual',
77 },
78 network_test_template + {
79 'sources' : files('test-ipv4ll.c'),
80 },
81 network_test_template + {
82 'sources' : files('test-lldp-rx.c'),
83 },
84 network_test_template + {
85 'sources' : files(
86 'test-ndisc-ra.c',
87 'icmp6-util-unix.c',
88 ),
89 },
90 network_test_template + {
91 'sources' : files(
92 'test-ndisc-rs.c',
93 'icmp6-util-unix.c',
94 ),
95 },
96 network_test_template + {
97 'sources' : files('test-sd-dhcp-lease.c'),
98 },
99 network_fuzz_template + {
100 'sources' : files('fuzz-dhcp-client.c'),
101 },
102 network_fuzz_template + {
103 'sources' : files('fuzz-dhcp6-client.c'),
104 },
105 network_fuzz_template + {
106 'sources' : files('fuzz-dhcp-server.c'),
107 },
108 network_fuzz_template + {
109 'sources' : files('fuzz-dhcp-server-relay.c'),
110 },
111 network_fuzz_template + {
112 'sources' : files('fuzz-lldp-rx.c'),
113 },
114 network_fuzz_template + {
115 'sources' : files(
116 'fuzz-ndisc-rs.c',
117 'icmp6-util-unix.c',
118 ),
119 },
120 ]