]> git.proxmox.com Git - mirror_lxc.git/blame - src/tests/Makefile.am
build: add src/include to build and simplify header inclusions
[mirror_lxc.git] / src / tests / Makefile.am
CommitLineData
525421c9
SG
1if ENABLE_TESTS
2
d6e12907
CB
3LDADD = ../lxc/liblxc.la \
4 @CAP_LIBS@ \
5 @OPENSSL_LIBS@ \
6 @SECCOMP_LIBS@ \
7 @SELINUX_LIBS@ \
543d2f83
CB
8 @DLOG_LIBS@ \
9 @LIBURING_LIBS@
fd5c4f90 10
ebbde173
CB
11LSM_SOURCES = ../lxc/lsm/lsm.c \
12 ../lxc/lsm/lsm.h \
13 ../lxc/lsm/nop.c
14
15if ENABLE_APPARMOR
16LSM_SOURCES += ../lxc/lsm/apparmor.c
17endif
18
19if ENABLE_SELINUX
20LSM_SOURCES += ../lxc/lsm/selinux.c
21endif
22
90658f16 23lxc_test_arch_parse_SOURCES = arch_parse.c \
90658f16 24 lxctest.h \
4fb70d07
CB
25 ../lxc/lxc.h \
26 ../lxc/memory_utils.h
90658f16 27
4a9ee78a
CB
28lxc_test_api_reboot_SOURCES = api_reboot.c \
29 ../lxc/af_unix.c ../lxc/af_unix.h \
30 ../lxc/caps.c ../lxc/caps.h \
59eac805 31 ../lxc/cgroups/cgfsng.c \
c332ec90
CB
32 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
33 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
34 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
4a9ee78a
CB
35 ../lxc/commands.c ../lxc/commands.h \
36 ../lxc/commands_utils.c ../lxc/commands_utils.h \
37 ../lxc/conf.c ../lxc/conf.h \
38 ../lxc/confile.c ../lxc/confile.h \
39 ../lxc/confile_utils.c ../lxc/confile_utils.h \
8c8cd087 40 ../lxc/error.c ../lxc/error.h \
4a9ee78a 41 ../lxc/file_utils.c ../lxc/file_utils.h \
59eac805 42 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
f575e7ef 43 ../lxc/initutils.c ../lxc/initutils.h \
07d1f84a 44 ../lxc/log.c ../lxc/log.h \
8c8cd087 45 ../lxc/lxclock.c ../lxc/lxclock.h \
d50aa57f 46 ../lxc/mainloop.c ../lxc/mainloop.h \
8c8cd087 47 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 48 ../lxc/mount_utils.c ../lxc/mount_utils.h \
9e20bf04 49 ../lxc/namespace.c ../lxc/namespace.h \
4a9ee78a
CB
50 ../lxc/network.c ../lxc/network.h \
51 ../lxc/nl.c ../lxc/nl.h \
a804cff7 52 ../lxc/parse.c ../lxc/parse.h \
92a10958 53 ../lxc/process_utils.c ../lxc/process_utils.h \
f6fea473 54 ../lxc/ringbuf.c ../lxc/ringbuf.h \
8c8cd087 55 ../lxc/start.c ../lxc/start.h \
1bf5f812 56 ../lxc/state.c ../lxc/state.h \
2284f8a5
CB
57 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
58 ../lxc/storage/dir.c ../lxc/storage/dir.h \
59 ../lxc/storage/loop.c ../lxc/storage/loop.h \
60 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
61 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
62 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
63 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
64 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
65 ../lxc/storage/storage.c ../lxc/storage/storage.h \
66 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
67 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
bf1ca416 68 ../lxc/sync.c ../lxc/sync.h \
cd6b82e4 69 ../lxc/string_utils.c ../lxc/string_utils.h \
5f1b0986 70 ../lxc/terminal.c ../lxc/terminal.h \
78ad1eb0 71 ../lxc/utils.c ../lxc/utils.h \
ebbde173
CB
72 ../lxc/uuid.c ../lxc/uuid.h \
73 $(LSM_SOURCES)
d6e12907
CB
74if ENABLE_SECCOMP
75lxc_test_api_reboot_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
76endif
77
317410da
CB
78if !HAVE_STRCHRNUL
79lxc_test_api_reboot_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
80endif
81
646b75b5
CB
82if !HAVE_STRLCPY
83lxc_test_api_reboot_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
84endif
85
86if !HAVE_STRLCAT
87lxc_test_api_reboot_SOURCES += ../include/strlcat.c ../include/strlcat.h
88endif
89
90if !HAVE_OPENPTY
91lxc_test_api_reboot_SOURCES += ../include/openpty.c ../include/openpty.h
92endif
93
94if IS_BIONIC
95lxc_test_api_reboot_SOURCES += ../include/fexecve.c ../include/fexecve.h \
96 ../include/lxcmntent.c ../include/lxcmntent.h
97endif
98
99if !HAVE_GETGRGID_R
100lxc_test_api_reboot_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
101endif
102
103if !HAVE_PRLIMIT
104if HAVE_PRLIMIT64
105lxc_test_api_reboot_SOURCES += ../include/prlimit.c ../include/prlimit.h
106endif
107endif
108
5f1b0986
CB
109lxc_test_apparmor_SOURCES = aa.c \
110 ../lxc/af_unix.c ../lxc/af_unix.h \
111 ../lxc/caps.c ../lxc/caps.h \
59eac805 112 ../lxc/cgroups/cgfsng.c \
c332ec90
CB
113 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
114 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
115 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
5f1b0986
CB
116 ../lxc/commands.c ../lxc/commands.h \
117 ../lxc/commands_utils.c ../lxc/commands_utils.h \
118 ../lxc/conf.c ../lxc/conf.h \
119 ../lxc/confile.c ../lxc/confile.h \
120 ../lxc/confile_utils.c ../lxc/confile_utils.h \
121 ../lxc/error.c ../lxc/error.h \
122 ../lxc/file_utils.c ../lxc/file_utils.h \
59eac805 123 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
5f1b0986
CB
124 ../lxc/initutils.c ../lxc/initutils.h \
125 ../lxc/log.c ../lxc/log.h \
126 ../lxc/lxclock.c ../lxc/lxclock.h \
127 ../lxc/mainloop.c ../lxc/mainloop.h \
128 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 129 ../lxc/mount_utils.c ../lxc/mount_utils.h \
5f1b0986
CB
130 ../lxc/namespace.c ../lxc/namespace.h \
131 ../lxc/network.c ../lxc/network.h \
132 ../lxc/nl.c ../lxc/nl.h \
133 ../lxc/parse.c ../lxc/parse.h \
134 ../lxc/process_utils.c ../lxc/process_utils.h \
135 ../lxc/ringbuf.c ../lxc/ringbuf.h \
136 ../lxc/start.c ../lxc/start.h \
137 ../lxc/state.c ../lxc/state.h \
2284f8a5
CB
138 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
139 ../lxc/storage/dir.c ../lxc/storage/dir.h \
140 ../lxc/storage/loop.c ../lxc/storage/loop.h \
141 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
142 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
143 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
144 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
145 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
146 ../lxc/storage/storage.c ../lxc/storage/storage.h \
147 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
148 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
5f1b0986
CB
149 ../lxc/sync.c ../lxc/sync.h \
150 ../lxc/string_utils.c ../lxc/string_utils.h \
151 ../lxc/terminal.c ../lxc/terminal.h \
78ad1eb0 152 ../lxc/utils.c ../lxc/utils.h \
ebbde173
CB
153 ../lxc/uuid.c ../lxc/uuid.h \
154 $(LSM_SOURCES)
5f1b0986
CB
155if ENABLE_SECCOMP
156lxc_test_apparmor_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
157endif
158
317410da
CB
159if !HAVE_STRCHRNUL
160lxc_test_apparmor_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
161endif
162
646b75b5
CB
163if !HAVE_STRLCPY
164lxc_test_apparmor_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
165endif
166
167if !HAVE_STRLCAT
168lxc_test_apparmor_SOURCES += ../include/strlcat.c ../include/strlcat.h
169endif
170
171if !HAVE_OPENPTY
172lxc_test_apparmor_SOURCES += ../include/openpty.c ../include/openpty.h
173endif
174
175if IS_BIONIC
176lxc_test_apparmor_SOURCES += ../include/fexecve.c ../include/fexecve.h \
177 ../include/lxcmntent.c ../include/lxcmntent.h
178endif
179
180if !HAVE_GETGRGID_R
181lxc_test_apparmor_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
182endif
183
184if !HAVE_PRLIMIT
185if HAVE_PRLIMIT64
186lxc_test_apparmor_SOURCES += ../include/prlimit.c ../include/prlimit.h
187endif
188endif
189
4a9ee78a
CB
190lxc_test_attach_SOURCES = attach.c \
191 ../lxc/af_unix.c ../lxc/af_unix.h \
192 ../lxc/caps.c ../lxc/caps.h \
59eac805 193 ../lxc/cgroups/cgfsng.c \
c332ec90
CB
194 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
195 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
196 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
4a9ee78a
CB
197 ../lxc/commands.c ../lxc/commands.h \
198 ../lxc/commands_utils.c ../lxc/commands_utils.h \
199 ../lxc/conf.c ../lxc/conf.h \
200 ../lxc/confile.c ../lxc/confile.h \
201 ../lxc/confile_utils.c ../lxc/confile_utils.h \
8c8cd087 202 ../lxc/error.c ../lxc/error.h \
4a9ee78a 203 ../lxc/file_utils.c ../lxc/file_utils.h \
59eac805 204 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
f575e7ef 205 ../lxc/initutils.c ../lxc/initutils.h \
07d1f84a 206 ../lxc/log.c ../lxc/log.h \
8c8cd087 207 ../lxc/lxclock.c ../lxc/lxclock.h \
d50aa57f 208 ../lxc/mainloop.c ../lxc/mainloop.h \
8c8cd087 209 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 210 ../lxc/mount_utils.c ../lxc/mount_utils.h \
9e20bf04 211 ../lxc/namespace.c ../lxc/namespace.h \
4a9ee78a
CB
212 ../lxc/network.c ../lxc/network.h \
213 ../lxc/nl.c ../lxc/nl.h \
a804cff7 214 ../lxc/parse.c ../lxc/parse.h \
92a10958 215 ../lxc/process_utils.c ../lxc/process_utils.h \
f6fea473 216 ../lxc/ringbuf.c ../lxc/ringbuf.h \
8c8cd087 217 ../lxc/start.c ../lxc/start.h \
1bf5f812 218 ../lxc/state.c ../lxc/state.h \
2284f8a5
CB
219 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
220 ../lxc/storage/dir.c ../lxc/storage/dir.h \
221 ../lxc/storage/loop.c ../lxc/storage/loop.h \
222 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
223 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
224 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
225 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
226 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
227 ../lxc/storage/storage.c ../lxc/storage/storage.h \
228 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
229 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
bf1ca416 230 ../lxc/sync.c ../lxc/sync.h \
cd6b82e4 231 ../lxc/string_utils.c ../lxc/string_utils.h \
5f1b0986 232 ../lxc/terminal.c ../lxc/terminal.h \
78ad1eb0 233 ../lxc/utils.c ../lxc/utils.h \
ebbde173
CB
234 ../lxc/uuid.c ../lxc/uuid.h \
235 $(LSM_SOURCES)
d6e12907
CB
236if ENABLE_SECCOMP
237lxc_test_attach_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
238endif
239
317410da
CB
240if !HAVE_STRCHRNUL
241lxc_test_attach_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
242endif
243
646b75b5
CB
244if !HAVE_STRLCPY
245lxc_test_attach_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
246endif
247
248if !HAVE_STRLCAT
249lxc_test_attach_SOURCES += ../include/strlcat.c ../include/strlcat.h
250endif
251
252if !HAVE_OPENPTY
253lxc_test_attach_SOURCES += ../include/openpty.c ../include/openpty.h
254endif
255
256if IS_BIONIC
257lxc_test_attach_SOURCES += ../include/fexecve.c ../include/fexecve.h \
258 ../include/lxcmntent.c ../include/lxcmntent.h
259endif
260
261if !HAVE_GETGRGID_R
262lxc_test_attach_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
263endif
264
265if !HAVE_PRLIMIT
266if HAVE_PRLIMIT64
267lxc_test_attach_SOURCES += ../include/prlimit.c ../include/prlimit.h
268endif
269endif
270
c8208ff0 271lxc_test_basic_SOURCES = basic.c
7ebbfe89
CB
272lxc_test_cgpath_SOURCES = cgpath.c \
273 ../lxc/af_unix.c ../lxc/af_unix.h \
63c2a0bf 274 ../lxc/caps.c ../lxc/caps.h \
59eac805 275 ../lxc/cgroups/cgfsng.c \
c332ec90
CB
276 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
277 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
278 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
7ebbfe89 279 ../lxc/commands.c ../lxc/commands.h \
94a5e86b 280 ../lxc/commands_utils.c ../lxc/commands_utils.h \
63c2a0bf
CB
281 ../lxc/conf.c ../lxc/conf.h \
282 ../lxc/confile.c ../lxc/confile.h \
f64e249d 283 ../lxc/confile_utils.c ../lxc/confile_utils.h \
8c8cd087 284 ../lxc/error.c ../lxc/error.h \
4a9ee78a 285 ../lxc/file_utils.c ../lxc/file_utils.h \
59eac805 286 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
f575e7ef 287 ../lxc/initutils.c ../lxc/initutils.h \
07d1f84a 288 ../lxc/log.c ../lxc/log.h \
8c8cd087 289 ../lxc/lxclock.c ../lxc/lxclock.h \
d50aa57f 290 ../lxc/mainloop.c ../lxc/mainloop.h \
8c8cd087 291 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 292 ../lxc/mount_utils.c ../lxc/mount_utils.h \
9e20bf04 293 ../lxc/namespace.c ../lxc/namespace.h \
63c2a0bf
CB
294 ../lxc/network.c ../lxc/network.h \
295 ../lxc/nl.c ../lxc/nl.h \
a804cff7 296 ../lxc/parse.c ../lxc/parse.h \
92a10958 297 ../lxc/process_utils.c ../lxc/process_utils.h \
f6fea473 298 ../lxc/ringbuf.c ../lxc/ringbuf.h \
8c8cd087 299 ../lxc/start.c ../lxc/start.h \
1bf5f812 300 ../lxc/state.c ../lxc/state.h \
2284f8a5
CB
301 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
302 ../lxc/storage/dir.c ../lxc/storage/dir.h \
303 ../lxc/storage/loop.c ../lxc/storage/loop.h \
304 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
305 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
306 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
307 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
308 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
309 ../lxc/storage/storage.c ../lxc/storage/storage.h \
310 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
311 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
bf1ca416 312 ../lxc/sync.c ../lxc/sync.h \
cd6b82e4 313 ../lxc/string_utils.c ../lxc/string_utils.h \
5f1b0986 314 ../lxc/terminal.c ../lxc/terminal.h \
78ad1eb0 315 ../lxc/utils.c ../lxc/utils.h \
ebbde173
CB
316 ../lxc/uuid.c ../lxc/uuid.h \
317 $(LSM_SOURCES)
d6e12907
CB
318if ENABLE_SECCOMP
319lxc_test_cgpath_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
320endif
321
317410da
CB
322if !HAVE_STRCHRNUL
323lxc_test_cgpath_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
324endif
325
646b75b5
CB
326if !HAVE_STRLCPY
327lxc_test_cgpath_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
328endif
329
330if !HAVE_STRLCAT
331lxc_test_cgpath_SOURCES += ../include/strlcat.c ../include/strlcat.h
332endif
333
334if !HAVE_OPENPTY
335lxc_test_cgpath_SOURCES += ../include/openpty.c ../include/openpty.h
336endif
337
338if IS_BIONIC
339lxc_test_cgpath_SOURCES += ../include/fexecve.c ../include/fexecve.h \
340 ../include/lxcmntent.c ../include/lxcmntent.h
341endif
342
343if !HAVE_GETGRGID_R
344lxc_test_cgpath_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
345endif
346
347if !HAVE_PRLIMIT
348if HAVE_PRLIMIT64
349lxc_test_cgpath_SOURCES += ../include/prlimit.c ../include/prlimit.h
350endif
351endif
352
9be53773 353lxc_test_clonetest_SOURCES = clonetest.c
691544a0 354lxc_test_concurrent_SOURCES = concurrent.c
63c2a0bf
CB
355lxc_test_config_jump_table_SOURCES = config_jump_table.c \
356 lxctest.h \
357 ../lxc/af_unix.c ../lxc/af_unix.h \
358 ../lxc/caps.c ../lxc/caps.h \
59eac805 359 ../lxc/cgroups/cgfsng.c \
c332ec90
CB
360 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
361 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
362 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
f64e249d
CB
363 ../lxc/commands.c ../lxc/commands.h \
364 ../lxc/commands_utils.c ../lxc/commands_utils.h \
63c2a0bf
CB
365 ../lxc/conf.c ../lxc/conf.h \
366 ../lxc/confile.c ../lxc/confile.h \
f64e249d 367 ../lxc/confile_utils.c ../lxc/confile_utils.h \
8c8cd087 368 ../lxc/error.c ../lxc/error.h \
4a9ee78a 369 ../lxc/file_utils.c ../lxc/file_utils.h \
59eac805 370 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
f575e7ef 371 ../lxc/initutils.c ../lxc/initutils.h \
07d1f84a 372 ../lxc/log.c ../lxc/log.h \
8c8cd087 373 ../lxc/lxclock.c ../lxc/lxclock.h \
d50aa57f 374 ../lxc/mainloop.c ../lxc/mainloop.h \
8c8cd087 375 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 376 ../lxc/mount_utils.c ../lxc/mount_utils.h \
9e20bf04 377 ../lxc/namespace.c ../lxc/namespace.h \
63c2a0bf
CB
378 ../lxc/network.c ../lxc/network.h \
379 ../lxc/nl.c ../lxc/nl.h \
a804cff7 380 ../lxc/parse.c ../lxc/parse.h \
92a10958 381 ../lxc/process_utils.c ../lxc/process_utils.h \
f6fea473 382 ../lxc/ringbuf.c ../lxc/ringbuf.h \
8c8cd087 383 ../lxc/start.c ../lxc/start.h \
1bf5f812 384 ../lxc/state.c ../lxc/state.h \
2284f8a5
CB
385 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
386 ../lxc/storage/dir.c ../lxc/storage/dir.h \
387 ../lxc/storage/loop.c ../lxc/storage/loop.h \
388 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
389 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
390 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
391 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
392 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
393 ../lxc/storage/storage.c ../lxc/storage/storage.h \
394 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
395 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
bf1ca416 396 ../lxc/sync.c ../lxc/sync.h \
cd6b82e4 397 ../lxc/string_utils.c ../lxc/string_utils.h \
5f1b0986 398 ../lxc/terminal.c ../lxc/terminal.h \
78ad1eb0 399 ../lxc/utils.c ../lxc/utils.h \
ebbde173
CB
400 ../lxc/uuid.c ../lxc/uuid.h \
401 $(LSM_SOURCES)
d6e12907
CB
402if ENABLE_SECCOMP
403lxc_test_config_jump_table_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
404endif
405
317410da
CB
406if !HAVE_STRCHRNUL
407lxc_test_config_jump_table_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
408endif
409
646b75b5
CB
410if !HAVE_STRLCPY
411lxc_test_config_jump_table_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
412endif
413
414if !HAVE_STRLCAT
415lxc_test_config_jump_table_SOURCES += ../include/strlcat.c ../include/strlcat.h
416endif
417
418if !HAVE_OPENPTY
419lxc_test_config_jump_table_SOURCES += ../include/openpty.c ../include/openpty.h
420endif
421
422if IS_BIONIC
423lxc_test_config_jump_table_SOURCES += ../include/fexecve.c ../include/fexecve.h \
424 ../include/lxcmntent.c ../include/lxcmntent.h
425endif
426
427if !HAVE_GETGRGID_R
428lxc_test_config_jump_table_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
429endif
430
431if !HAVE_PRLIMIT
432if HAVE_PRLIMIT64
433lxc_test_config_jump_table_SOURCES += ../include/prlimit.c ../include/prlimit.h
434endif
435endif
436
0115f8fd 437lxc_test_console_SOURCES = console.c
a52c1c68 438lxc_test_console_log_SOURCES = console_log.c lxctest.h
691544a0
CB
439lxc_test_containertests_SOURCES = containertests.c
440lxc_test_createtest_SOURCES = createtest.c
441lxc_test_criu_check_feature_SOURCES = criu_check_feature.c lxctest.h
99258734 442lxc_test_cve_2019_5736_SOURCES = cve-2019-5736.c lxctest.h
691544a0 443lxc_test_destroytest_SOURCES = destroytest.c
a4f24357
CB
444lxc_test_device_add_remove_SOURCES = device_add_remove.c \
445 ../lxc/af_unix.c ../lxc/af_unix.h \
446 ../lxc/caps.c ../lxc/caps.h \
447 ../lxc/cgroups/cgfsng.c \
448 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
449 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
450 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
451 ../lxc/commands.c ../lxc/commands.h \
452 ../lxc/commands_utils.c ../lxc/commands_utils.h \
453 ../lxc/conf.c ../lxc/conf.h \
454 ../lxc/confile.c ../lxc/confile.h \
455 ../lxc/confile_utils.c ../lxc/confile_utils.h \
456 ../lxc/error.c ../lxc/error.h \
457 ../lxc/file_utils.c ../lxc/file_utils.h \
458 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
459 ../lxc/initutils.c ../lxc/initutils.h \
460 ../lxc/log.c ../lxc/log.h \
461 ../lxc/lxclock.c ../lxc/lxclock.h \
462 ../lxc/mainloop.c ../lxc/mainloop.h \
463 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 464 ../lxc/mount_utils.c ../lxc/mount_utils.h \
a4f24357
CB
465 ../lxc/namespace.c ../lxc/namespace.h \
466 ../lxc/network.c ../lxc/network.h \
467 ../lxc/nl.c ../lxc/nl.h \
468 ../lxc/parse.c ../lxc/parse.h \
469 ../lxc/process_utils.c ../lxc/process_utils.h \
470 ../lxc/ringbuf.c ../lxc/ringbuf.h \
471 ../lxc/start.c ../lxc/start.h \
472 ../lxc/state.c ../lxc/state.h \
473 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
474 ../lxc/storage/dir.c ../lxc/storage/dir.h \
475 ../lxc/storage/loop.c ../lxc/storage/loop.h \
476 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
477 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
478 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
479 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
480 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
481 ../lxc/storage/storage.c ../lxc/storage/storage.h \
482 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
483 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
484 ../lxc/sync.c ../lxc/sync.h \
485 ../lxc/string_utils.c ../lxc/string_utils.h \
486 ../lxc/terminal.c ../lxc/terminal.h \
487 ../lxc/utils.c ../lxc/utils.h \
488 ../lxc/uuid.c ../lxc/uuid.h \
489 $(LSM_SOURCES)
490if ENABLE_SECCOMP
491lxc_test_device_add_remove_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
492endif
317410da
CB
493
494if !HAVE_STRCHRNUL
495lxc_test_device_add_remove_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
496endif
497
646b75b5
CB
498if !HAVE_STRLCPY
499lxc_test_device_add_remove_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
500endif
501
502if !HAVE_STRLCAT
503lxc_test_device_add_remove_SOURCES += ../include/strlcat.c ../include/strlcat.h
504endif
505
506if !HAVE_OPENPTY
507lxc_test_device_add_remove_SOURCES += ../include/openpty.c ../include/openpty.h
508endif
509
510if IS_BIONIC
511lxc_test_device_add_remove_SOURCES += ../include/fexecve.c ../include/fexecve.h \
512 ../include/lxcmntent.c ../include/lxcmntent.h
513endif
514
515if !HAVE_GETGRGID_R
516lxc_test_device_add_remove_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
517endif
518
519if !HAVE_PRLIMIT
520if HAVE_PRLIMIT64
521lxc_test_device_add_remove_SOURCES += ../include/prlimit.c ../include/prlimit.h
522endif
523endif
524
691544a0 525lxc_test_getkeys_SOURCES = getkeys.c
6f6c71cd
CB
526lxc_test_get_item_SOURCES = get_item.c \
527 ../lxc/af_unix.c ../lxc/af_unix.h \
528 ../lxc/caps.c ../lxc/caps.h \
529 ../lxc/cgroups/cgfsng.c \
530 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
531 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
532 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
533 ../lxc/commands.c ../lxc/commands.h \
534 ../lxc/commands_utils.c ../lxc/commands_utils.h \
535 ../lxc/conf.c ../lxc/conf.h \
536 ../lxc/confile.c ../lxc/confile.h \
537 ../lxc/confile_utils.c ../lxc/confile_utils.h \
538 ../lxc/error.c ../lxc/error.h \
539 ../lxc/file_utils.c ../lxc/file_utils.h \
540 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
541 ../lxc/initutils.c ../lxc/initutils.h \
542 ../lxc/log.c ../lxc/log.h \
543 ../lxc/lxclock.c ../lxc/lxclock.h \
544 ../lxc/mainloop.c ../lxc/mainloop.h \
545 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 546 ../lxc/mount_utils.c ../lxc/mount_utils.h \
6f6c71cd
CB
547 ../lxc/namespace.c ../lxc/namespace.h \
548 ../lxc/network.c ../lxc/network.h \
549 ../lxc/nl.c ../lxc/nl.h \
550 ../lxc/parse.c ../lxc/parse.h \
551 ../lxc/process_utils.c ../lxc/process_utils.h \
552 ../lxc/ringbuf.c ../lxc/ringbuf.h \
553 ../lxc/start.c ../lxc/start.h \
554 ../lxc/state.c ../lxc/state.h \
555 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
556 ../lxc/storage/dir.c ../lxc/storage/dir.h \
557 ../lxc/storage/loop.c ../lxc/storage/loop.h \
558 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
559 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
560 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
561 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
562 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
563 ../lxc/storage/storage.c ../lxc/storage/storage.h \
564 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
565 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
566 ../lxc/sync.c ../lxc/sync.h \
567 ../lxc/string_utils.c ../lxc/string_utils.h \
568 ../lxc/terminal.c ../lxc/terminal.h \
569 ../lxc/utils.c ../lxc/utils.h \
570 ../lxc/uuid.c ../lxc/uuid.h \
571 $(LSM_SOURCES)
572if ENABLE_SECCOMP
573lxc_test_get_item_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
574endif
317410da
CB
575
576if !HAVE_STRCHRNUL
577lxc_test_get_item_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
578endif
579
646b75b5
CB
580if !HAVE_STRLCPY
581lxc_test_get_item_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
582endif
583
584if !HAVE_STRLCAT
585lxc_test_get_item_SOURCES += ../include/strlcat.c ../include/strlcat.h
586endif
587
588if !HAVE_OPENPTY
589lxc_test_get_item_SOURCES += ../include/openpty.c ../include/openpty.h
590endif
591
592if IS_BIONIC
593lxc_test_get_item_SOURCES += ../include/fexecve.c ../include/fexecve.h \
594 ../include/lxcmntent.c ../include/lxcmntent.h
595endif
596
597if !HAVE_GETGRGID_R
598lxc_test_get_item_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
599endif
600
601if !HAVE_PRLIMIT
602if HAVE_PRLIMIT64
603lxc_test_get_item_SOURCES += ../include/prlimit.c ../include/prlimit.h
604endif
605endif
606
691544a0 607lxc_test_list_SOURCES = list.c
a7692df5 608lxc_test_locktests_SOURCES = locktests.c \
5f1b0986 609 ../lxc/af_unix.c ../lxc/af_unix.h \
a7692df5 610 ../lxc/caps.c ../lxc/caps.h \
59eac805 611 ../lxc/cgroups/cgfsng.c \
c332ec90
CB
612 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
613 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
614 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
5f1b0986
CB
615 ../lxc/commands.c ../lxc/commands.h \
616 ../lxc/commands_utils.c ../lxc/commands_utils.h \
617 ../lxc/conf.c ../lxc/conf.h \
618 ../lxc/confile.c ../lxc/confile.h \
619 ../lxc/confile_utils.c ../lxc/confile_utils.h \
620 ../lxc/error.c ../lxc/error.h \
a7692df5 621 ../lxc/file_utils.c ../lxc/file_utils.h \
59eac805 622 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
5f1b0986 623 ../lxc/initutils.c ../lxc/initutils.h \
a7692df5
CB
624 ../lxc/log.c ../lxc/log.h \
625 ../lxc/lxclock.c ../lxc/lxclock.h \
5f1b0986
CB
626 ../lxc/mainloop.c ../lxc/mainloop.h \
627 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 628 ../lxc/mount_utils.c ../lxc/mount_utils.h \
5f1b0986
CB
629 ../lxc/namespace.c ../lxc/namespace.h \
630 ../lxc/network.c ../lxc/network.h \
631 ../lxc/nl.c ../lxc/nl.h \
632 ../lxc/parse.c ../lxc/parse.h \
633 ../lxc/process_utils.c ../lxc/process_utils.h \
634 ../lxc/ringbuf.c ../lxc/ringbuf.h \
635 ../lxc/start.c ../lxc/start.h \
636 ../lxc/state.c ../lxc/state.h \
2284f8a5
CB
637 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
638 ../lxc/storage/dir.c ../lxc/storage/dir.h \
639 ../lxc/storage/loop.c ../lxc/storage/loop.h \
640 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
641 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
642 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
643 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
644 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
645 ../lxc/storage/storage.c ../lxc/storage/storage.h \
646 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
647 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
5f1b0986
CB
648 ../lxc/sync.c ../lxc/sync.h \
649 ../lxc/string_utils.c ../lxc/string_utils.h \
650 ../lxc/terminal.c ../lxc/terminal.h \
78ad1eb0 651 ../lxc/utils.c ../lxc/utils.h \
ebbde173
CB
652 ../lxc/uuid.c ../lxc/uuid.h \
653 $(LSM_SOURCES)
5f1b0986
CB
654if ENABLE_SECCOMP
655lxc_test_locktests_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
656endif
657
317410da
CB
658if !HAVE_STRCHRNUL
659lxc_test_locktests_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
660endif
661
646b75b5
CB
662if !HAVE_STRLCPY
663lxc_test_locktests_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
664endif
665
666if !HAVE_STRLCAT
667lxc_test_locktests_SOURCES += ../include/strlcat.c ../include/strlcat.h
668endif
669
670if !HAVE_OPENPTY
671lxc_test_locktests_SOURCES += ../include/openpty.c ../include/openpty.h
672endif
673
674if IS_BIONIC
675lxc_test_locktests_SOURCES += ../include/fexecve.c ../include/fexecve.h \
676 ../include/lxcmntent.c ../include/lxcmntent.h
677endif
678
679if !HAVE_GETGRGID_R
680lxc_test_locktests_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
681endif
682
683if !HAVE_PRLIMIT
684if HAVE_PRLIMIT64
685lxc_test_locktests_SOURCES += ../include/prlimit.c ../include/prlimit.h
686endif
687endif
688
691544a0
CB
689lxc_test_lxcpath_SOURCES = lxcpath.c
690lxc_test_may_control_SOURCES = may_control.c
4a9ee78a
CB
691lxc_test_mount_injection_SOURCES = mount_injection.c \
692 lxctest.h \
5f1b0986
CB
693 ../lxc/af_unix.c ../lxc/af_unix.h \
694 ../lxc/caps.c ../lxc/caps.h \
59eac805 695 ../lxc/cgroups/cgfsng.c \
c332ec90
CB
696 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
697 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
698 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
5f1b0986
CB
699 ../lxc/commands.c ../lxc/commands.h \
700 ../lxc/commands_utils.c ../lxc/commands_utils.h \
701 ../lxc/conf.c ../lxc/conf.h \
702 ../lxc/confile.c ../lxc/confile.h \
703 ../lxc/confile_utils.c ../lxc/confile_utils.h \
704 ../lxc/error.c ../lxc/error.h \
4a9ee78a 705 ../lxc/file_utils.c ../lxc/file_utils.h \
59eac805 706 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
5f1b0986
CB
707 ../lxc/initutils.c ../lxc/initutils.h \
708 ../lxc/log.c ../lxc/log.h \
709 ../lxc/lxclock.c ../lxc/lxclock.h \
710 ../lxc/mainloop.c ../lxc/mainloop.h \
711 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 712 ../lxc/mount_utils.c ../lxc/mount_utils.h \
5f1b0986
CB
713 ../lxc/namespace.c ../lxc/namespace.h \
714 ../lxc/network.c ../lxc/network.h \
715 ../lxc/nl.c ../lxc/nl.h \
716 ../lxc/parse.c ../lxc/parse.h \
717 ../lxc/process_utils.c ../lxc/process_utils.h \
718 ../lxc/ringbuf.c ../lxc/ringbuf.h \
719 ../lxc/start.c ../lxc/start.h \
720 ../lxc/state.c ../lxc/state.h \
2284f8a5
CB
721 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
722 ../lxc/storage/dir.c ../lxc/storage/dir.h \
723 ../lxc/storage/loop.c ../lxc/storage/loop.h \
724 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
725 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
726 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
727 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
728 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
729 ../lxc/storage/storage.c ../lxc/storage/storage.h \
730 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
731 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
5f1b0986
CB
732 ../lxc/sync.c ../lxc/sync.h \
733 ../lxc/string_utils.c ../lxc/string_utils.h \
734 ../lxc/terminal.c ../lxc/terminal.h \
78ad1eb0 735 ../lxc/utils.c ../lxc/utils.h \
ebbde173
CB
736 ../lxc/uuid.c ../lxc/uuid.h \
737 $(LSM_SOURCES)
5f1b0986
CB
738if ENABLE_SECCOMP
739lxc_test_mount_injection_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
740endif
741
317410da
CB
742if !HAVE_STRCHRNUL
743lxc_test_mount_injection_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
744endif
745
646b75b5
CB
746if !HAVE_STRLCPY
747lxc_test_mount_injection_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
748endif
749
750if !HAVE_STRLCAT
751lxc_test_mount_injection_SOURCES += ../include/strlcat.c ../include/strlcat.h
752endif
753
754if !HAVE_OPENPTY
755lxc_test_mount_injection_SOURCES += ../include/openpty.c ../include/openpty.h
756endif
757
758if IS_BIONIC
759lxc_test_mount_injection_SOURCES += ../include/fexecve.c ../include/fexecve.h \
760 ../include/lxcmntent.c ../include/lxcmntent.h
761endif
762
763if !HAVE_GETGRGID_R
764lxc_test_mount_injection_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
765endif
766
767if !HAVE_PRLIMIT
768if HAVE_PRLIMIT64
769lxc_test_mount_injection_SOURCES += ../include/prlimit.c ../include/prlimit.h
770endif
771endif
772
c3e3c21a 773lxc_test_parse_config_file_SOURCES = parse_config_file.c \
f64e249d
CB
774 lxctest.h \
775 ../lxc/af_unix.c ../lxc/af_unix.h \
776 ../lxc/caps.c ../lxc/caps.h \
59eac805 777 ../lxc/cgroups/cgfsng.c \
c332ec90
CB
778 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
779 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
780 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
8c8cd087
CB
781 ../lxc/commands.c ../lxc/commands.h \
782 ../lxc/commands_utils.c ../lxc/commands_utils.h \
f64e249d
CB
783 ../lxc/conf.c ../lxc/conf.h \
784 ../lxc/confile.c ../lxc/confile.h \
785 ../lxc/confile_utils.c ../lxc/confile_utils.h \
8c8cd087 786 ../lxc/error.c ../lxc/error.h \
4a9ee78a 787 ../lxc/file_utils.c ../lxc/file_utils.h \
59eac805 788 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
f575e7ef 789 ../lxc/initutils.c ../lxc/initutils.h \
07d1f84a 790 ../lxc/log.c ../lxc/log.h \
8c8cd087
CB
791 ../lxc/lxclock.c ../lxc/lxclock.h \
792 ../lxc/mainloop.c ../lxc/mainloop.h \
793 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 794 ../lxc/mount_utils.c ../lxc/mount_utils.h \
9e20bf04 795 ../lxc/namespace.c ../lxc/namespace.h \
f64e249d
CB
796 ../lxc/network.c ../lxc/network.h \
797 ../lxc/nl.c ../lxc/nl.h \
a804cff7 798 ../lxc/parse.c ../lxc/parse.h \
92a10958 799 ../lxc/process_utils.c ../lxc/process_utils.h \
f6fea473 800 ../lxc/ringbuf.c ../lxc/ringbuf.h \
8c8cd087 801 ../lxc/start.c ../lxc/start.h \
1bf5f812 802 ../lxc/state.c ../lxc/state.h \
2284f8a5
CB
803 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
804 ../lxc/storage/dir.c ../lxc/storage/dir.h \
805 ../lxc/storage/loop.c ../lxc/storage/loop.h \
806 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
807 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
808 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
809 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
810 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
811 ../lxc/storage/storage.c ../lxc/storage/storage.h \
812 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
813 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
bf1ca416 814 ../lxc/sync.c ../lxc/sync.h \
cd6b82e4 815 ../lxc/string_utils.c ../lxc/string_utils.h \
5f1b0986 816 ../lxc/terminal.c ../lxc/terminal.h \
78ad1eb0 817 ../lxc/utils.c ../lxc/utils.h \
ebbde173
CB
818 ../lxc/uuid.c ../lxc/uuid.h \
819 $(LSM_SOURCES)
d6e12907
CB
820if ENABLE_SECCOMP
821lxc_test_parse_config_file_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
822endif
823
317410da
CB
824if !HAVE_STRCHRNUL
825lxc_test_parse_config_file_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
826endif
827
646b75b5
CB
828if !HAVE_STRLCPY
829lxc_test_parse_config_file_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
830endif
831
832if !HAVE_STRLCAT
833lxc_test_parse_config_file_SOURCES += ../include/strlcat.c ../include/strlcat.h
834endif
835
836if !HAVE_OPENPTY
837lxc_test_parse_config_file_SOURCES += ../include/openpty.c ../include/openpty.h
838endif
839
840if IS_BIONIC
841lxc_test_parse_config_file_SOURCES += ../include/fexecve.c ../include/fexecve.h \
842 ../include/lxcmntent.c ../include/lxcmntent.h
843endif
844
845if !HAVE_GETGRGID_R
846lxc_test_parse_config_file_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
847endif
848
849if !HAVE_PRLIMIT
850if HAVE_PRLIMIT64
851lxc_test_parse_config_file_SOURCES += ../include/prlimit.c ../include/prlimit.h
852endif
853endif
854
1f797c3a
CB
855lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \
856 lxctest.h \
ebbde173 857 ../lxc/af_unix.c ../lxc/af_unix.h \
07d1f84a 858 ../lxc/caps.c ../lxc/caps.h \
59eac805 859 ../lxc/cgroups/cgfsng.c \
c332ec90
CB
860 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
861 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
862 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
ebbde173
CB
863 ../lxc/commands.c ../lxc/commands.h \
864 ../lxc/commands_utils.c ../lxc/commands_utils.h \
865 ../lxc/conf.c ../lxc/conf.h \
866 ../lxc/confile.c ../lxc/confile.h \
867 ../lxc/confile_utils.c ../lxc/confile_utils.h \
868 ../lxc/error.c ../lxc/error.h \
07d1f84a 869 ../lxc/file_utils.c ../lxc/file_utils.h \
59eac805 870 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
ebbde173 871 ../lxc/initutils.c ../lxc/initutils.h \
07d1f84a 872 ../lxc/log.c ../lxc/log.h \
ebbde173
CB
873 ../lxc/lxclock.c ../lxc/lxclock.h \
874 ../lxc/mainloop.c ../lxc/mainloop.h \
875 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 876 ../lxc/mount_utils.c ../lxc/mount_utils.h \
1f797c3a 877 ../lxc/namespace.c ../lxc/namespace.h \
ebbde173
CB
878 ../lxc/network.c ../lxc/network.h \
879 ../lxc/nl.c ../lxc/nl.h \
880 ../lxc/parse.c ../lxc/parse.h \
07d1f84a 881 ../lxc/process_utils.c ../lxc/process_utils.h \
ebbde173
CB
882 ../lxc/ringbuf.c ../lxc/ringbuf.h \
883 ../lxc/start.c ../lxc/start.h \
884 ../lxc/state.c ../lxc/state.h \
2284f8a5
CB
885 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
886 ../lxc/storage/dir.c ../lxc/storage/dir.h \
887 ../lxc/storage/loop.c ../lxc/storage/loop.h \
888 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
889 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
890 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
891 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
892 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
893 ../lxc/storage/storage.c ../lxc/storage/storage.h \
894 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
895 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
ebbde173 896 ../lxc/sync.c ../lxc/sync.h \
07d1f84a 897 ../lxc/string_utils.c ../lxc/string_utils.h \
ebbde173
CB
898 ../lxc/terminal.c ../lxc/terminal.h \
899 ../lxc/utils.c ../lxc/utils.h \
900 ../lxc/uuid.c ../lxc/uuid.h \
901 $(LSM_SOURCES)
902if ENABLE_SECCOMP
903lxc_test_raw_clone_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
904endif
905
317410da
CB
906if !HAVE_STRCHRNUL
907lxc_test_raw_clone_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
908endif
909
646b75b5
CB
910if !HAVE_STRLCPY
911lxc_test_raw_clone_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
912endif
913
914if !HAVE_STRLCAT
915lxc_test_raw_clone_SOURCES += ../include/strlcat.c ../include/strlcat.h
916endif
917
918if !HAVE_OPENPTY
919lxc_test_raw_clone_SOURCES += ../include/openpty.c ../include/openpty.h
920endif
921
922if IS_BIONIC
923lxc_test_raw_clone_SOURCES += ../include/fexecve.c ../include/fexecve.h \
924 ../include/lxcmntent.c ../include/lxcmntent.h
925endif
926
927if !HAVE_GETGRGID_R
928lxc_test_raw_clone_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
929endif
930
931if !HAVE_PRLIMIT
932if HAVE_PRLIMIT64
933lxc_test_raw_clone_SOURCES += ../include/prlimit.c ../include/prlimit.h
934endif
935endif
936
691544a0
CB
937lxc_test_reboot_SOURCES = reboot.c
938lxc_test_saveconfig_SOURCES = saveconfig.c
1b9aca11
CB
939lxc_test_share_ns_SOURCES = share_ns.c \
940 lxctest.h \
941 ../lxc/compiler.h
646b75b5
CB
942
943if !HAVE_STRLCPY
944lxc_test_share_ns_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
945endif
946
947if !HAVE_STRLCAT
948lxc_test_share_ns_SOURCES += ../include/strlcat.c ../include/strlcat.h
949endif
950
951if !HAVE_OPENPTY
952lxc_test_share_ns_SOURCES += ../include/openpty.c ../include/openpty.h
953endif
954
955if IS_BIONIC
956lxc_test_share_ns_SOURCES += ../include/fexecve.c ../include/fexecve.h \
957 ../include/lxcmntent.c ../include/lxcmntent.h
958endif
959
960if !HAVE_GETGRGID_R
961lxc_test_share_ns_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
962endif
963
964if !HAVE_PRLIMIT
965if HAVE_PRLIMIT64
966lxc_test_share_ns_SOURCES += ../include/prlimit.c ../include/prlimit.h
967endif
968endif
969
4a9ee78a
CB
970lxc_test_shortlived_SOURCES = shortlived.c \
971 ../lxc/file_utils.c ../lxc/file_utils.h \
972 ../lxc/string_utils.c ../lxc/string_utils.h
646b75b5
CB
973
974if !HAVE_STRLCPY
975lxc_test_shortlived_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
976endif
977
978if !HAVE_STRLCAT
979lxc_test_shortlived_SOURCES += ../include/strlcat.c ../include/strlcat.h
980endif
981
982if !HAVE_OPENPTY
983lxc_test_shortlived_SOURCES += ../include/openpty.c ../include/openpty.h
984endif
985
986if IS_BIONIC
987lxc_test_shortlived_SOURCES += ../include/fexecve.c ../include/fexecve.h \
988 ../include/lxcmntent.c ../include/lxcmntent.h
989endif
990
991if !HAVE_GETGRGID_R
992lxc_test_shortlived_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
993endif
994
995if !HAVE_PRLIMIT
996if HAVE_PRLIMIT64
997lxc_test_shortlived_SOURCES += ../include/prlimit.c ../include/prlimit.h
998endif
999endif
1000
691544a0
CB
1001lxc_test_shutdowntest_SOURCES = shutdowntest.c
1002lxc_test_snapshot_SOURCES = snapshot.c
1003lxc_test_startone_SOURCES = startone.c
2580145f
CB
1004lxc_test_state_server_SOURCES = state_server.c \
1005 lxctest.h \
1006 ../lxc/compiler.h
646b75b5
CB
1007
1008if !HAVE_STRLCPY
1009lxc_test_state_server_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
1010endif
1011
1012if !HAVE_STRLCAT
1013lxc_test_state_server_SOURCES += ../include/strlcat.c ../include/strlcat.h
1014endif
1015
1016if !HAVE_OPENPTY
1017lxc_test_state_server_SOURCES += ../include/openpty.c ../include/openpty.h
1018endif
1019
1020if IS_BIONIC
1021lxc_test_state_server_SOURCES += ../include/fexecve.c ../include/fexecve.h \
1022 ../include/lxcmntent.c ../include/lxcmntent.h
1023endif
1024
1025if !HAVE_GETGRGID_R
1026lxc_test_state_server_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
1027endif
1028
1029if !HAVE_PRLIMIT
1030if HAVE_PRLIMIT64
1031lxc_test_state_server_SOURCES += ../include/prlimit.c ../include/prlimit.h
1032endif
1033endif
1034
f64e249d
CB
1035lxc_test_utils_SOURCES = lxc-test-utils.c \
1036 lxctest.h \
1037 ../lxc/af_unix.c ../lxc/af_unix.h \
1038 ../lxc/caps.c ../lxc/caps.h \
59eac805 1039 ../lxc/cgroups/cgfsng.c \
c332ec90
CB
1040 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
1041 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
1042 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
f64e249d
CB
1043 ../lxc/commands.c ../lxc/commands.h \
1044 ../lxc/commands_utils.c ../lxc/commands_utils.h \
1045 ../lxc/conf.c ../lxc/conf.h \
1046 ../lxc/confile.c ../lxc/confile.h \
1047 ../lxc/confile_utils.c ../lxc/confile_utils.h \
8c8cd087 1048 ../lxc/error.c ../lxc/error.h \
4a9ee78a 1049 ../lxc/file_utils.c ../lxc/file_utils.h \
59eac805 1050 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
f575e7ef 1051 ../lxc/initutils.c ../lxc/initutils.h \
07d1f84a 1052 ../lxc/log.c ../lxc/log.h \
8c8cd087 1053 ../lxc/lxclock.c ../lxc/lxclock.h \
d50aa57f 1054 ../lxc/mainloop.c ../lxc/mainloop.h \
8c8cd087 1055 ../lxc/monitor.c ../lxc/monitor.h \
74ed30d7 1056 ../lxc/mount_utils.c ../lxc/mount_utils.h \
9e20bf04 1057 ../lxc/namespace.c ../lxc/namespace.h \
f64e249d
CB
1058 ../lxc/network.c ../lxc/network.h \
1059 ../lxc/nl.c ../lxc/nl.h \
a804cff7 1060 ../lxc/parse.c ../lxc/parse.h \
92a10958 1061 ../lxc/process_utils.c ../lxc/process_utils.h \
f6fea473 1062 ../lxc/ringbuf.c ../lxc/ringbuf.h \
8c8cd087 1063 ../lxc/start.c ../lxc/start.h \
1bf5f812 1064 ../lxc/state.c ../lxc/state.h \
2284f8a5
CB
1065 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
1066 ../lxc/storage/dir.c ../lxc/storage/dir.h \
1067 ../lxc/storage/loop.c ../lxc/storage/loop.h \
1068 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
1069 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
1070 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
1071 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
1072 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
1073 ../lxc/storage/storage.c ../lxc/storage/storage.h \
1074 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
1075 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
bf1ca416 1076 ../lxc/sync.c ../lxc/sync.h \
cd6b82e4 1077 ../lxc/string_utils.c ../lxc/string_utils.h \
5f1b0986 1078 ../lxc/terminal.c ../lxc/terminal.h \
78ad1eb0 1079 ../lxc/utils.c ../lxc/utils.h \
ebbde173
CB
1080 ../lxc/uuid.c ../lxc/uuid.h \
1081 $(LSM_SOURCES)
d6e12907
CB
1082if ENABLE_SECCOMP
1083lxc_test_utils_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
1084endif
72d0e1cb 1085
317410da
CB
1086if !HAVE_STRCHRNUL
1087lxc_test_utils_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
1088endif
1089
646b75b5
CB
1090if !HAVE_STRLCPY
1091lxc_test_utils_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
1092endif
1093
1094if !HAVE_STRLCAT
1095lxc_test_utils_SOURCES += ../include/strlcat.c ../include/strlcat.h
1096endif
1097
1098if !HAVE_OPENPTY
1099lxc_test_utils_SOURCES += ../include/openpty.c ../include/openpty.h
1100endif
1101
1102if IS_BIONIC
1103lxc_test_utils_SOURCES += ../include/fexecve.c ../include/fexecve.h \
1104 ../include/lxcmntent.c ../include/lxcmntent.h
1105endif
1106
1107if !HAVE_GETGRGID_R
1108lxc_test_utils_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
1109endif
1110
1111if !HAVE_PRLIMIT
1112if HAVE_PRLIMIT64
1113lxc_test_utils_SOURCES += ../include/prlimit.c ../include/prlimit.h
1114endif
1115endif
1116
d777ffcc
CB
1117lxc_test_sys_mixed_SOURCES = sys_mixed.c \
1118 ../lxc/af_unix.c ../lxc/af_unix.h \
1119 ../lxc/caps.c ../lxc/caps.h \
1120 ../lxc/cgroups/cgfsng.c \
1121 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
1122 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
1123 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
1124 ../lxc/commands.c ../lxc/commands.h \
1125 ../lxc/commands_utils.c ../lxc/commands_utils.h \
1126 ../lxc/conf.c ../lxc/conf.h \
1127 ../lxc/confile.c ../lxc/confile.h \
1128 ../lxc/confile_utils.c ../lxc/confile_utils.h \
1129 ../lxc/error.c ../lxc/error.h \
1130 ../lxc/file_utils.c ../lxc/file_utils.h \
1131 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
1132 ../lxc/initutils.c ../lxc/initutils.h \
1133 ../lxc/log.c ../lxc/log.h \
1134 ../lxc/lxclock.c ../lxc/lxclock.h \
1135 ../lxc/mainloop.c ../lxc/mainloop.h \
1136 ../lxc/monitor.c ../lxc/monitor.h \
1137 ../lxc/mount_utils.c ../lxc/mount_utils.h \
1138 ../lxc/namespace.c ../lxc/namespace.h \
1139 ../lxc/network.c ../lxc/network.h \
1140 ../lxc/nl.c ../lxc/nl.h \
1141 ../lxc/parse.c ../lxc/parse.h \
1142 ../lxc/process_utils.c ../lxc/process_utils.h \
1143 ../lxc/ringbuf.c ../lxc/ringbuf.h \
1144 ../lxc/start.c ../lxc/start.h \
1145 ../lxc/state.c ../lxc/state.h \
1146 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
1147 ../lxc/storage/dir.c ../lxc/storage/dir.h \
1148 ../lxc/storage/loop.c ../lxc/storage/loop.h \
1149 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
1150 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
1151 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
1152 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
1153 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
1154 ../lxc/storage/storage.c ../lxc/storage/storage.h \
1155 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
1156 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
1157 ../lxc/sync.c ../lxc/sync.h \
1158 ../lxc/string_utils.c ../lxc/string_utils.h \
1159 ../lxc/terminal.c ../lxc/terminal.h \
1160 ../lxc/utils.c ../lxc/utils.h \
1161 ../lxc/uuid.c ../lxc/uuid.h \
1162 $(LSM_SOURCES)
1163if ENABLE_SECCOMP
1164lxc_test_sys_mixed_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
1165endif
1166
1167if !HAVE_STRCHRNUL
1168lxc_test_sys_mixed_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
1169endif
1170
646b75b5
CB
1171if !HAVE_STRLCPY
1172lxc_test_sys_mixed_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
1173endif
1174
1175if !HAVE_STRLCAT
1176lxc_test_sys_mixed_SOURCES += ../include/strlcat.c ../include/strlcat.h
1177endif
1178
1179if !HAVE_OPENPTY
1180lxc_test_sys_mixed_SOURCES += ../include/openpty.c ../include/openpty.h
1181endif
1182
1183if IS_BIONIC
1184lxc_test_sys_mixed_SOURCES += ../include/fexecve.c ../include/fexecve.h \
1185 ../include/lxcmntent.c ../include/lxcmntent.h
1186endif
1187
1188if !HAVE_GETGRGID_R
1189lxc_test_sys_mixed_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
1190endif
1191
1192if !HAVE_PRLIMIT
1193if HAVE_PRLIMIT64
1194lxc_test_sys_mixed_SOURCES += ../include/prlimit.c ../include/prlimit.h
1195endif
1196endif
1197
587b2dff
CB
1198lxc_test_rootfs_options_SOURCES = rootfs_options.c \
1199 ../lxc/af_unix.c ../lxc/af_unix.h \
1200 ../lxc/caps.c ../lxc/caps.h \
1201 ../lxc/cgroups/cgfsng.c \
1202 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
1203 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
1204 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
1205 ../lxc/commands.c ../lxc/commands.h \
1206 ../lxc/commands_utils.c ../lxc/commands_utils.h \
1207 ../lxc/conf.c ../lxc/conf.h \
1208 ../lxc/confile.c ../lxc/confile.h \
1209 ../lxc/confile_utils.c ../lxc/confile_utils.h \
1210 ../lxc/error.c ../lxc/error.h \
1211 ../lxc/file_utils.c ../lxc/file_utils.h \
1212 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
1213 ../lxc/initutils.c ../lxc/initutils.h \
1214 ../lxc/log.c ../lxc/log.h \
1215 ../lxc/lxclock.c ../lxc/lxclock.h \
1216 ../lxc/mainloop.c ../lxc/mainloop.h \
1217 ../lxc/monitor.c ../lxc/monitor.h \
1218 ../lxc/mount_utils.c ../lxc/mount_utils.h \
1219 ../lxc/namespace.c ../lxc/namespace.h \
1220 ../lxc/network.c ../lxc/network.h \
1221 ../lxc/nl.c ../lxc/nl.h \
1222 ../lxc/parse.c ../lxc/parse.h \
1223 ../lxc/process_utils.c ../lxc/process_utils.h \
1224 ../lxc/ringbuf.c ../lxc/ringbuf.h \
1225 ../lxc/start.c ../lxc/start.h \
1226 ../lxc/state.c ../lxc/state.h \
1227 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
1228 ../lxc/storage/dir.c ../lxc/storage/dir.h \
1229 ../lxc/storage/loop.c ../lxc/storage/loop.h \
1230 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
1231 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
1232 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
1233 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
1234 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
1235 ../lxc/storage/storage.c ../lxc/storage/storage.h \
1236 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
1237 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
1238 ../lxc/sync.c ../lxc/sync.h \
1239 ../lxc/string_utils.c ../lxc/string_utils.h \
1240 ../lxc/terminal.c ../lxc/terminal.h \
1241 ../lxc/utils.c ../lxc/utils.h \
1242 ../lxc/uuid.c ../lxc/uuid.h \
1243 $(LSM_SOURCES)
1244if ENABLE_SECCOMP
1245lxc_test_rootfs_options_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
1246endif
1247
1248if !HAVE_STRCHRNUL
1249lxc_test_rootfs_options_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
1250endif
1251
646b75b5
CB
1252if !HAVE_STRLCPY
1253lxc_test_rootfs_options_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
1254endif
1255
1256if !HAVE_STRLCAT
1257lxc_test_rootfs_options_SOURCES += ../include/strlcat.c ../include/strlcat.h
1258endif
1259
1260if !HAVE_OPENPTY
1261lxc_test_rootfs_options_SOURCES += ../include/openpty.c ../include/openpty.h
1262endif
1263
1264if IS_BIONIC
1265lxc_test_rootfs_options_SOURCES += ../include/fexecve.c ../include/fexecve.h \
1266 ../include/lxcmntent.c ../include/lxcmntent.h
1267endif
1268
1269if !HAVE_GETGRGID_R
1270lxc_test_rootfs_options_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
1271endif
1272
1273if !HAVE_PRLIMIT
1274if HAVE_PRLIMIT64
1275lxc_test_rootfs_options_SOURCES += ../include/prlimit.c ../include/prlimit.h
1276endif
1277endif
1278
b59bc011
CB
1279AM_CFLAGS += -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
1280 -DLXCPATH=\"$(LXCPATH)\" \
1281 -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \
1282 -DLXCINITDIR=\"$(LXCINITDIR)\" \
1283 -DLIBEXECDIR=\"$(LIBEXECDIR)\" \
1284 -DLOGPATH=\"$(LOGPATH)\" \
1285 -DLXCTEMPLATEDIR=\"$(LXCTEMPLATEDIR)\" \
1286 -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \
1287 -DDEFAULT_CGROUP_PATTERN=\"$(DEFAULT_CGROUP_PATTERN)\" \
1288 -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \
1289 -DSBINDIR=\"$(SBINDIR)\" \
1290 -I $(top_srcdir)/src \
58db1a61 1291 -I $(top_srcdir)/src/include \
b59bc011
CB
1292 -I $(top_srcdir)/src/lxc \
1293 -I $(top_srcdir)/src/lxc/cgroups \
1294 -I $(top_srcdir)/src/lxc/tools \
1295 -I $(top_srcdir)/src/lxc/storage \
1296 -pthread
72d0e1cb 1297
72863294
DE
1298if ENABLE_APPARMOR
1299AM_CFLAGS += -DHAVE_APPARMOR
beff9939 1300AM_CFLAGS += -DAPPARMOR_CACHE_DIR=\"$(APPARMOR_CACHE_DIR)\"
72863294
DE
1301endif
1302
c3e3c21a
CB
1303if ENABLE_SECCOMP
1304AM_CFLAGS += -DHAVE_SECCOMP \
1305 $(SECCOMP_CFLAGS)
1306endif
1307
72863294
DE
1308if ENABLE_SELINUX
1309AM_CFLAGS += -DHAVE_SELINUX
1310endif
1311
691544a0
CB
1312bin_PROGRAMS = lxc-test-api-reboot \
1313 lxc-test-apparmor \
90658f16 1314 lxc-test-arch-parse \
691544a0
CB
1315 lxc-test-attach \
1316 lxc-test-basic \
1317 lxc-test-cgpath \
1318 lxc-test-clonetest \
1319 lxc-test-concurrent \
1320 lxc-test-config-jump-table \
1321 lxc-test-console \
1322 lxc-test-console-log \
1323 lxc-test-containertests \
1324 lxc-test-createtest \
1325 lxc-test-criu-check-feature \
99258734 1326 lxc-test-cve-2019-5736 \
691544a0
CB
1327 lxc-test-destroytest \
1328 lxc-test-device-add-remove \
1329 lxc-test-getkeys \
1330 lxc-test-get_item \
1331 lxc-test-list \
1332 lxc-test-locktests \
1333 lxc-test-lxcpath \
1334 lxc-test-may-control \
1335 lxc-test-mount-injection \
1336 lxc-test-parse-config-file \
1337 lxc-test-raw-clone \
1338 lxc-test-reboot \
587b2dff 1339 lxc-test-rootfs-options \
691544a0
CB
1340 lxc-test-saveconfig \
1341 lxc-test-share-ns \
1342 lxc-test-shortlived \
1343 lxc-test-shutdowntest \
1344 lxc-test-snapshot \
1345 lxc-test-startone \
1346 lxc-test-state-server \
d777ffcc 1347 lxc-test-sys-mixed \
691544a0 1348 lxc-test-utils
20ab58c7 1349
a9145d62
CB
1350bin_SCRIPTS =
1351if ENABLE_TOOLS
1352bin_SCRIPTS += lxc-test-automount \
691544a0
CB
1353 lxc-test-autostart \
1354 lxc-test-cloneconfig \
1355 lxc-test-createconfig \
188f8836 1356 lxc-test-exit-code \
691544a0 1357 lxc-test-no-new-privs \
9026f5c2 1358 lxc-test-rootfs \
493e00b6 1359 lxc-test-procsys \
9026f5c2 1360 lxc-test-usernsexec
525421c9 1361
025f59ab 1362if DISTRO_UBUNTU
691544a0
CB
1363bin_SCRIPTS += lxc-test-lxc-attach \
1364 lxc-test-apparmor-mount \
1365 lxc-test-apparmor-generated \
1366 lxc-test-checkpoint-restore \
1367 lxc-test-snapdeps \
1368 lxc-test-symlink \
1369 lxc-test-unpriv \
1370 lxc-test-usernic
025f59ab 1371endif
a9145d62 1372endif
025f59ab 1373
38718ccc
EV
1374if ENABLE_FUZZERS
1375LIB_FUZZING_ENGINE ?= -fsanitize=fuzzer
1376
1377# https://google.github.io/oss-fuzz/getting-started/new-project-guide/#Requirements
1378nodist_EXTRA_fuzz_lxc_config_read_SOURCES = dummy.cxx
1379fuzz_lxc_config_read_SOURCES = fuzz-lxc-config-read.c
1380fuzz_lxc_config_read_CFLAGS = $(AM_CFLAGS)
1381fuzz_lxc_config_read_CXXFLAGS = $(AM_CFLAGS)
1382fuzz_lxc_config_read_LDFLAGS = $(AM_LDFLAGS) -static
1383fuzz_lxc_config_read_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE)
1384
1385nodist_EXTRA_fuzz_lxc_define_load_SOURCES = dummy.cxx
1386fuzz_lxc_define_load_SOURCES = fuzz-lxc-define-load.c
1387fuzz_lxc_define_load_CFLAGS = $(AM_CFLAGS)
1388fuzz_lxc_define_load_CXXFLAGS = $(AM_CFLAGS)
1389fuzz_lxc_define_load_LDFLAGS = $(AM_LDFLAGS) -static
1390fuzz_lxc_define_load_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE)
1391
74951960
CB
1392nodist_EXTRA_fuzz_lxc_cgroup_init_SOURCES = dummy.cxx
1393fuzz_lxc_cgroup_init_SOURCES = fuzz-lxc-cgroup-init.c
1394fuzz_lxc_cgroup_init_CFLAGS = $(AM_CFLAGS)
1395fuzz_lxc_cgroup_init_CXXFLAGS = $(AM_CFLAGS)
1396fuzz_lxc_cgroup_init_LDFLAGS = $(AM_LDFLAGS) -static
1397fuzz_lxc_cgroup_init_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE)
1398
1399bin_PROGRAMS += fuzz-lxc-cgroup-init \
1400 fuzz-lxc-config-read \
1401 fuzz-lxc-define-load
aa967867
EV
1402
1403bin_SCRIPTS += lxc-test-fuzzers
38718ccc 1404endif
525421c9 1405endif
90341b9e 1406
4fb70d07
CB
1407EXTRA_DIST = arch_parse.c \
1408 basic.c \
691544a0
CB
1409 cgpath.c \
1410 clonetest.c \
1411 concurrent.c \
1412 config_jump_table.c \
1413 console.c \
1414 console_log.c \
1415 containertests.c \
1416 createtest.c \
1417 criu_check_feature.c \
99258734 1418 cve-2019-5736.c \
691544a0
CB
1419 destroytest.c \
1420 device_add_remove.c \
1421 get_item.c \
1422 getkeys.c \
1423 list.c \
1424 locktests.c \
1425 lxcpath.c \
1426 lxc_raw_clone.c \
1427 lxc-test-lxc-attach \
1428 lxc-test-automount \
1429 lxc-test-rootfs \
493e00b6 1430 lxc-test-procsys \
691544a0
CB
1431 lxc-test-autostart \
1432 lxc-test-apparmor-mount \
1433 lxc-test-apparmor-generated \
1434 lxc-test-checkpoint-restore \
1435 lxc-test-cloneconfig \
1436 lxc-test-createconfig \
fef909cf 1437 lxc-test-exit-code \
691544a0
CB
1438 lxc-test-no-new-privs \
1439 lxc-test-snapdeps \
1440 lxc-test-symlink \
1441 lxc-test-unpriv \
9026f5c2 1442 lxc-test-usernsexec \
691544a0
CB
1443 lxc-test-utils.c \
1444 may_control.c \
1445 mount_injection.c \
1446 parse_config_file.c \
587b2dff 1447 rootfs_options.c \
691544a0
CB
1448 saveconfig.c \
1449 shortlived.c \
1450 shutdowntest.c \
1451 snapshot.c \
1452 startone.c \
1453 state_server.c \
d777ffcc
CB
1454 share_ns.c \
1455 sys_mixed.c
24b9970e
CB
1456
1457clean-local:
1458 rm -f lxc-test-utils-*
9c61a6d6 1459 rm -f lxc-parse-config-file-*