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