]> git.proxmox.com Git - mirror_lxc.git/blob - src/tests/Makefile.am
Merge pull request #4003 from brauner/2021-10-19.fixes
[mirror_lxc.git] / src / tests / Makefile.am
1 if ENABLE_TESTS
2
3 LDADD = ../lxc/liblxc.la \
4 @CAP_LIBS@ \
5 @OPENSSL_LIBS@ \
6 @SECCOMP_LIBS@ \
7 @SELINUX_LIBS@ \
8 @DLOG_LIBS@ \
9 @LIBURING_LIBS@
10
11 LSM_SOURCES = ../lxc/lsm/lsm.c \
12 ../lxc/lsm/lsm.h \
13 ../lxc/lsm/nop.c
14
15 if ENABLE_APPARMOR
16 LSM_SOURCES += ../lxc/lsm/apparmor.c
17 endif
18
19 if ENABLE_SELINUX
20 LSM_SOURCES += ../lxc/lsm/selinux.c
21 endif
22
23 lxc_test_arch_parse_SOURCES = arch_parse.c \
24 lxctest.h \
25 ../lxc/lxc.h \
26 ../lxc/memory_utils.h
27
28 lxc_test_api_reboot_SOURCES = api_reboot.c \
29 ../lxc/af_unix.c ../lxc/af_unix.h \
30 ../lxc/caps.c ../lxc/caps.h \
31 ../lxc/cgroups/cgfsng.c \
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 \
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 \
40 ../lxc/error.c ../lxc/error.h \
41 ../lxc/file_utils.c ../lxc/file_utils.h \
42 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
43 ../lxc/initutils.c ../lxc/initutils.h \
44 ../lxc/log.c ../lxc/log.h \
45 ../lxc/lxclock.c ../lxc/lxclock.h \
46 ../lxc/mainloop.c ../lxc/mainloop.h \
47 ../lxc/monitor.c ../lxc/monitor.h \
48 ../lxc/mount_utils.c ../lxc/mount_utils.h \
49 ../lxc/namespace.c ../lxc/namespace.h \
50 ../lxc/network.c ../lxc/network.h \
51 ../lxc/nl.c ../lxc/nl.h \
52 ../lxc/parse.c ../lxc/parse.h \
53 ../lxc/process_utils.c ../lxc/process_utils.h \
54 ../lxc/ringbuf.c ../lxc/ringbuf.h \
55 ../lxc/start.c ../lxc/start.h \
56 ../lxc/state.c ../lxc/state.h \
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 \
68 ../lxc/sync.c ../lxc/sync.h \
69 ../lxc/string_utils.c ../lxc/string_utils.h \
70 ../lxc/terminal.c ../lxc/terminal.h \
71 ../lxc/utils.c ../lxc/utils.h \
72 ../lxc/uuid.c ../lxc/uuid.h \
73 $(LSM_SOURCES)
74 if ENABLE_SECCOMP
75 lxc_test_api_reboot_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
76 endif
77
78 if !HAVE_STRCHRNUL
79 lxc_test_api_reboot_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
80 endif
81
82 if !HAVE_STRLCPY
83 lxc_test_api_reboot_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
84 endif
85
86 if !HAVE_STRLCAT
87 lxc_test_api_reboot_SOURCES += ../include/strlcat.c ../include/strlcat.h
88 endif
89
90 if !HAVE_OPENPTY
91 lxc_test_api_reboot_SOURCES += ../include/openpty.c ../include/openpty.h
92 endif
93
94 if IS_BIONIC
95 lxc_test_api_reboot_SOURCES += ../include/fexecve.c ../include/fexecve.h \
96 ../include/lxcmntent.c ../include/lxcmntent.h
97 endif
98
99 if !HAVE_GETGRGID_R
100 lxc_test_api_reboot_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
101 endif
102
103 if !HAVE_PRLIMIT
104 if HAVE_PRLIMIT64
105 lxc_test_api_reboot_SOURCES += ../include/prlimit.c ../include/prlimit.h
106 endif
107 endif
108
109 lxc_test_apparmor_SOURCES = aa.c \
110 ../lxc/af_unix.c ../lxc/af_unix.h \
111 ../lxc/caps.c ../lxc/caps.h \
112 ../lxc/cgroups/cgfsng.c \
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 \
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 \
123 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
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 \
129 ../lxc/mount_utils.c ../lxc/mount_utils.h \
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 \
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 \
149 ../lxc/sync.c ../lxc/sync.h \
150 ../lxc/string_utils.c ../lxc/string_utils.h \
151 ../lxc/terminal.c ../lxc/terminal.h \
152 ../lxc/utils.c ../lxc/utils.h \
153 ../lxc/uuid.c ../lxc/uuid.h \
154 $(LSM_SOURCES)
155 if ENABLE_SECCOMP
156 lxc_test_apparmor_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
157 endif
158
159 if !HAVE_STRCHRNUL
160 lxc_test_apparmor_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
161 endif
162
163 if !HAVE_STRLCPY
164 lxc_test_apparmor_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
165 endif
166
167 if !HAVE_STRLCAT
168 lxc_test_apparmor_SOURCES += ../include/strlcat.c ../include/strlcat.h
169 endif
170
171 if !HAVE_OPENPTY
172 lxc_test_apparmor_SOURCES += ../include/openpty.c ../include/openpty.h
173 endif
174
175 if IS_BIONIC
176 lxc_test_apparmor_SOURCES += ../include/fexecve.c ../include/fexecve.h \
177 ../include/lxcmntent.c ../include/lxcmntent.h
178 endif
179
180 if !HAVE_GETGRGID_R
181 lxc_test_apparmor_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
182 endif
183
184 if !HAVE_PRLIMIT
185 if HAVE_PRLIMIT64
186 lxc_test_apparmor_SOURCES += ../include/prlimit.c ../include/prlimit.h
187 endif
188 endif
189
190 lxc_test_attach_SOURCES = attach.c \
191 ../lxc/af_unix.c ../lxc/af_unix.h \
192 ../lxc/caps.c ../lxc/caps.h \
193 ../lxc/cgroups/cgfsng.c \
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 \
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 \
202 ../lxc/error.c ../lxc/error.h \
203 ../lxc/file_utils.c ../lxc/file_utils.h \
204 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
205 ../lxc/initutils.c ../lxc/initutils.h \
206 ../lxc/log.c ../lxc/log.h \
207 ../lxc/lxclock.c ../lxc/lxclock.h \
208 ../lxc/mainloop.c ../lxc/mainloop.h \
209 ../lxc/monitor.c ../lxc/monitor.h \
210 ../lxc/mount_utils.c ../lxc/mount_utils.h \
211 ../lxc/namespace.c ../lxc/namespace.h \
212 ../lxc/network.c ../lxc/network.h \
213 ../lxc/nl.c ../lxc/nl.h \
214 ../lxc/parse.c ../lxc/parse.h \
215 ../lxc/process_utils.c ../lxc/process_utils.h \
216 ../lxc/ringbuf.c ../lxc/ringbuf.h \
217 ../lxc/start.c ../lxc/start.h \
218 ../lxc/state.c ../lxc/state.h \
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 \
230 ../lxc/sync.c ../lxc/sync.h \
231 ../lxc/string_utils.c ../lxc/string_utils.h \
232 ../lxc/terminal.c ../lxc/terminal.h \
233 ../lxc/utils.c ../lxc/utils.h \
234 ../lxc/uuid.c ../lxc/uuid.h \
235 $(LSM_SOURCES)
236 if ENABLE_SECCOMP
237 lxc_test_attach_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
238 endif
239
240 if !HAVE_STRCHRNUL
241 lxc_test_attach_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
242 endif
243
244 if !HAVE_STRLCPY
245 lxc_test_attach_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
246 endif
247
248 if !HAVE_STRLCAT
249 lxc_test_attach_SOURCES += ../include/strlcat.c ../include/strlcat.h
250 endif
251
252 if !HAVE_OPENPTY
253 lxc_test_attach_SOURCES += ../include/openpty.c ../include/openpty.h
254 endif
255
256 if IS_BIONIC
257 lxc_test_attach_SOURCES += ../include/fexecve.c ../include/fexecve.h \
258 ../include/lxcmntent.c ../include/lxcmntent.h
259 endif
260
261 if !HAVE_GETGRGID_R
262 lxc_test_attach_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
263 endif
264
265 if !HAVE_PRLIMIT
266 if HAVE_PRLIMIT64
267 lxc_test_attach_SOURCES += ../include/prlimit.c ../include/prlimit.h
268 endif
269 endif
270
271 lxc_test_basic_SOURCES = basic.c
272 lxc_test_cgpath_SOURCES = cgpath.c \
273 ../lxc/af_unix.c ../lxc/af_unix.h \
274 ../lxc/caps.c ../lxc/caps.h \
275 ../lxc/cgroups/cgfsng.c \
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 \
279 ../lxc/commands.c ../lxc/commands.h \
280 ../lxc/commands_utils.c ../lxc/commands_utils.h \
281 ../lxc/conf.c ../lxc/conf.h \
282 ../lxc/confile.c ../lxc/confile.h \
283 ../lxc/confile_utils.c ../lxc/confile_utils.h \
284 ../lxc/error.c ../lxc/error.h \
285 ../lxc/file_utils.c ../lxc/file_utils.h \
286 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
287 ../lxc/initutils.c ../lxc/initutils.h \
288 ../lxc/log.c ../lxc/log.h \
289 ../lxc/lxclock.c ../lxc/lxclock.h \
290 ../lxc/mainloop.c ../lxc/mainloop.h \
291 ../lxc/monitor.c ../lxc/monitor.h \
292 ../lxc/mount_utils.c ../lxc/mount_utils.h \
293 ../lxc/namespace.c ../lxc/namespace.h \
294 ../lxc/network.c ../lxc/network.h \
295 ../lxc/nl.c ../lxc/nl.h \
296 ../lxc/parse.c ../lxc/parse.h \
297 ../lxc/process_utils.c ../lxc/process_utils.h \
298 ../lxc/ringbuf.c ../lxc/ringbuf.h \
299 ../lxc/start.c ../lxc/start.h \
300 ../lxc/state.c ../lxc/state.h \
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 \
312 ../lxc/sync.c ../lxc/sync.h \
313 ../lxc/string_utils.c ../lxc/string_utils.h \
314 ../lxc/terminal.c ../lxc/terminal.h \
315 ../lxc/utils.c ../lxc/utils.h \
316 ../lxc/uuid.c ../lxc/uuid.h \
317 $(LSM_SOURCES)
318 if ENABLE_SECCOMP
319 lxc_test_cgpath_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
320 endif
321
322 if !HAVE_STRCHRNUL
323 lxc_test_cgpath_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
324 endif
325
326 if !HAVE_STRLCPY
327 lxc_test_cgpath_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
328 endif
329
330 if !HAVE_STRLCAT
331 lxc_test_cgpath_SOURCES += ../include/strlcat.c ../include/strlcat.h
332 endif
333
334 if !HAVE_OPENPTY
335 lxc_test_cgpath_SOURCES += ../include/openpty.c ../include/openpty.h
336 endif
337
338 if IS_BIONIC
339 lxc_test_cgpath_SOURCES += ../include/fexecve.c ../include/fexecve.h \
340 ../include/lxcmntent.c ../include/lxcmntent.h
341 endif
342
343 if !HAVE_GETGRGID_R
344 lxc_test_cgpath_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
345 endif
346
347 if !HAVE_PRLIMIT
348 if HAVE_PRLIMIT64
349 lxc_test_cgpath_SOURCES += ../include/prlimit.c ../include/prlimit.h
350 endif
351 endif
352
353 lxc_test_clonetest_SOURCES = clonetest.c
354 lxc_test_concurrent_SOURCES = concurrent.c
355 lxc_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 \
359 ../lxc/cgroups/cgfsng.c \
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 \
363 ../lxc/commands.c ../lxc/commands.h \
364 ../lxc/commands_utils.c ../lxc/commands_utils.h \
365 ../lxc/conf.c ../lxc/conf.h \
366 ../lxc/confile.c ../lxc/confile.h \
367 ../lxc/confile_utils.c ../lxc/confile_utils.h \
368 ../lxc/error.c ../lxc/error.h \
369 ../lxc/file_utils.c ../lxc/file_utils.h \
370 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
371 ../lxc/initutils.c ../lxc/initutils.h \
372 ../lxc/log.c ../lxc/log.h \
373 ../lxc/lxclock.c ../lxc/lxclock.h \
374 ../lxc/mainloop.c ../lxc/mainloop.h \
375 ../lxc/monitor.c ../lxc/monitor.h \
376 ../lxc/mount_utils.c ../lxc/mount_utils.h \
377 ../lxc/namespace.c ../lxc/namespace.h \
378 ../lxc/network.c ../lxc/network.h \
379 ../lxc/nl.c ../lxc/nl.h \
380 ../lxc/parse.c ../lxc/parse.h \
381 ../lxc/process_utils.c ../lxc/process_utils.h \
382 ../lxc/ringbuf.c ../lxc/ringbuf.h \
383 ../lxc/start.c ../lxc/start.h \
384 ../lxc/state.c ../lxc/state.h \
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 \
396 ../lxc/sync.c ../lxc/sync.h \
397 ../lxc/string_utils.c ../lxc/string_utils.h \
398 ../lxc/terminal.c ../lxc/terminal.h \
399 ../lxc/utils.c ../lxc/utils.h \
400 ../lxc/uuid.c ../lxc/uuid.h \
401 $(LSM_SOURCES)
402 if ENABLE_SECCOMP
403 lxc_test_config_jump_table_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
404 endif
405
406 if !HAVE_STRCHRNUL
407 lxc_test_config_jump_table_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
408 endif
409
410 if !HAVE_STRLCPY
411 lxc_test_config_jump_table_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
412 endif
413
414 if !HAVE_STRLCAT
415 lxc_test_config_jump_table_SOURCES += ../include/strlcat.c ../include/strlcat.h
416 endif
417
418 if !HAVE_OPENPTY
419 lxc_test_config_jump_table_SOURCES += ../include/openpty.c ../include/openpty.h
420 endif
421
422 if IS_BIONIC
423 lxc_test_config_jump_table_SOURCES += ../include/fexecve.c ../include/fexecve.h \
424 ../include/lxcmntent.c ../include/lxcmntent.h
425 endif
426
427 if !HAVE_GETGRGID_R
428 lxc_test_config_jump_table_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
429 endif
430
431 if !HAVE_PRLIMIT
432 if HAVE_PRLIMIT64
433 lxc_test_config_jump_table_SOURCES += ../include/prlimit.c ../include/prlimit.h
434 endif
435 endif
436
437 lxc_test_console_SOURCES = console.c
438 lxc_test_console_log_SOURCES = console_log.c lxctest.h
439 lxc_test_containertests_SOURCES = containertests.c
440 lxc_test_createtest_SOURCES = createtest.c
441 lxc_test_criu_check_feature_SOURCES = criu_check_feature.c lxctest.h
442 lxc_test_cve_2019_5736_SOURCES = cve-2019-5736.c lxctest.h
443 lxc_test_destroytest_SOURCES = destroytest.c
444 lxc_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 \
464 ../lxc/mount_utils.c ../lxc/mount_utils.h \
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)
490 if ENABLE_SECCOMP
491 lxc_test_device_add_remove_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
492 endif
493
494 if !HAVE_STRCHRNUL
495 lxc_test_device_add_remove_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
496 endif
497
498 if !HAVE_STRLCPY
499 lxc_test_device_add_remove_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
500 endif
501
502 if !HAVE_STRLCAT
503 lxc_test_device_add_remove_SOURCES += ../include/strlcat.c ../include/strlcat.h
504 endif
505
506 if !HAVE_OPENPTY
507 lxc_test_device_add_remove_SOURCES += ../include/openpty.c ../include/openpty.h
508 endif
509
510 if IS_BIONIC
511 lxc_test_device_add_remove_SOURCES += ../include/fexecve.c ../include/fexecve.h \
512 ../include/lxcmntent.c ../include/lxcmntent.h
513 endif
514
515 if !HAVE_GETGRGID_R
516 lxc_test_device_add_remove_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
517 endif
518
519 if !HAVE_PRLIMIT
520 if HAVE_PRLIMIT64
521 lxc_test_device_add_remove_SOURCES += ../include/prlimit.c ../include/prlimit.h
522 endif
523 endif
524
525 lxc_test_getkeys_SOURCES = getkeys.c
526 lxc_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 \
546 ../lxc/mount_utils.c ../lxc/mount_utils.h \
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)
572 if ENABLE_SECCOMP
573 lxc_test_get_item_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
574 endif
575
576 if !HAVE_STRCHRNUL
577 lxc_test_get_item_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
578 endif
579
580 if !HAVE_STRLCPY
581 lxc_test_get_item_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
582 endif
583
584 if !HAVE_STRLCAT
585 lxc_test_get_item_SOURCES += ../include/strlcat.c ../include/strlcat.h
586 endif
587
588 if !HAVE_OPENPTY
589 lxc_test_get_item_SOURCES += ../include/openpty.c ../include/openpty.h
590 endif
591
592 if IS_BIONIC
593 lxc_test_get_item_SOURCES += ../include/fexecve.c ../include/fexecve.h \
594 ../include/lxcmntent.c ../include/lxcmntent.h
595 endif
596
597 if !HAVE_GETGRGID_R
598 lxc_test_get_item_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
599 endif
600
601 if !HAVE_PRLIMIT
602 if HAVE_PRLIMIT64
603 lxc_test_get_item_SOURCES += ../include/prlimit.c ../include/prlimit.h
604 endif
605 endif
606
607 lxc_test_list_SOURCES = list.c
608 lxc_test_locktests_SOURCES = locktests.c \
609 ../lxc/af_unix.c ../lxc/af_unix.h \
610 ../lxc/caps.c ../lxc/caps.h \
611 ../lxc/cgroups/cgfsng.c \
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 \
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 \
621 ../lxc/file_utils.c ../lxc/file_utils.h \
622 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
623 ../lxc/initutils.c ../lxc/initutils.h \
624 ../lxc/log.c ../lxc/log.h \
625 ../lxc/lxclock.c ../lxc/lxclock.h \
626 ../lxc/mainloop.c ../lxc/mainloop.h \
627 ../lxc/monitor.c ../lxc/monitor.h \
628 ../lxc/mount_utils.c ../lxc/mount_utils.h \
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 \
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 \
648 ../lxc/sync.c ../lxc/sync.h \
649 ../lxc/string_utils.c ../lxc/string_utils.h \
650 ../lxc/terminal.c ../lxc/terminal.h \
651 ../lxc/utils.c ../lxc/utils.h \
652 ../lxc/uuid.c ../lxc/uuid.h \
653 $(LSM_SOURCES)
654 if ENABLE_SECCOMP
655 lxc_test_locktests_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
656 endif
657
658 if !HAVE_STRCHRNUL
659 lxc_test_locktests_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
660 endif
661
662 if !HAVE_STRLCPY
663 lxc_test_locktests_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
664 endif
665
666 if !HAVE_STRLCAT
667 lxc_test_locktests_SOURCES += ../include/strlcat.c ../include/strlcat.h
668 endif
669
670 if !HAVE_OPENPTY
671 lxc_test_locktests_SOURCES += ../include/openpty.c ../include/openpty.h
672 endif
673
674 if IS_BIONIC
675 lxc_test_locktests_SOURCES += ../include/fexecve.c ../include/fexecve.h \
676 ../include/lxcmntent.c ../include/lxcmntent.h
677 endif
678
679 if !HAVE_GETGRGID_R
680 lxc_test_locktests_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
681 endif
682
683 if !HAVE_PRLIMIT
684 if HAVE_PRLIMIT64
685 lxc_test_locktests_SOURCES += ../include/prlimit.c ../include/prlimit.h
686 endif
687 endif
688
689 lxc_test_lxcpath_SOURCES = lxcpath.c
690 lxc_test_may_control_SOURCES = may_control.c
691 lxc_test_mount_injection_SOURCES = mount_injection.c \
692 lxctest.h \
693 ../lxc/af_unix.c ../lxc/af_unix.h \
694 ../lxc/caps.c ../lxc/caps.h \
695 ../lxc/cgroups/cgfsng.c \
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 \
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 \
705 ../lxc/file_utils.c ../lxc/file_utils.h \
706 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
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 \
712 ../lxc/mount_utils.c ../lxc/mount_utils.h \
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 \
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 \
732 ../lxc/sync.c ../lxc/sync.h \
733 ../lxc/string_utils.c ../lxc/string_utils.h \
734 ../lxc/terminal.c ../lxc/terminal.h \
735 ../lxc/utils.c ../lxc/utils.h \
736 ../lxc/uuid.c ../lxc/uuid.h \
737 $(LSM_SOURCES)
738 if ENABLE_SECCOMP
739 lxc_test_mount_injection_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
740 endif
741
742 if !HAVE_STRCHRNUL
743 lxc_test_mount_injection_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
744 endif
745
746 if !HAVE_STRLCPY
747 lxc_test_mount_injection_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
748 endif
749
750 if !HAVE_STRLCAT
751 lxc_test_mount_injection_SOURCES += ../include/strlcat.c ../include/strlcat.h
752 endif
753
754 if !HAVE_OPENPTY
755 lxc_test_mount_injection_SOURCES += ../include/openpty.c ../include/openpty.h
756 endif
757
758 if IS_BIONIC
759 lxc_test_mount_injection_SOURCES += ../include/fexecve.c ../include/fexecve.h \
760 ../include/lxcmntent.c ../include/lxcmntent.h
761 endif
762
763 if !HAVE_GETGRGID_R
764 lxc_test_mount_injection_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
765 endif
766
767 if !HAVE_PRLIMIT
768 if HAVE_PRLIMIT64
769 lxc_test_mount_injection_SOURCES += ../include/prlimit.c ../include/prlimit.h
770 endif
771 endif
772
773 lxc_test_parse_config_file_SOURCES = parse_config_file.c \
774 lxctest.h \
775 ../lxc/af_unix.c ../lxc/af_unix.h \
776 ../lxc/caps.c ../lxc/caps.h \
777 ../lxc/cgroups/cgfsng.c \
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 \
781 ../lxc/commands.c ../lxc/commands.h \
782 ../lxc/commands_utils.c ../lxc/commands_utils.h \
783 ../lxc/conf.c ../lxc/conf.h \
784 ../lxc/confile.c ../lxc/confile.h \
785 ../lxc/confile_utils.c ../lxc/confile_utils.h \
786 ../lxc/error.c ../lxc/error.h \
787 ../lxc/file_utils.c ../lxc/file_utils.h \
788 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
789 ../lxc/initutils.c ../lxc/initutils.h \
790 ../lxc/log.c ../lxc/log.h \
791 ../lxc/lxclock.c ../lxc/lxclock.h \
792 ../lxc/mainloop.c ../lxc/mainloop.h \
793 ../lxc/monitor.c ../lxc/monitor.h \
794 ../lxc/mount_utils.c ../lxc/mount_utils.h \
795 ../lxc/namespace.c ../lxc/namespace.h \
796 ../lxc/network.c ../lxc/network.h \
797 ../lxc/nl.c ../lxc/nl.h \
798 ../lxc/parse.c ../lxc/parse.h \
799 ../lxc/process_utils.c ../lxc/process_utils.h \
800 ../lxc/ringbuf.c ../lxc/ringbuf.h \
801 ../lxc/start.c ../lxc/start.h \
802 ../lxc/state.c ../lxc/state.h \
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 \
814 ../lxc/sync.c ../lxc/sync.h \
815 ../lxc/string_utils.c ../lxc/string_utils.h \
816 ../lxc/terminal.c ../lxc/terminal.h \
817 ../lxc/utils.c ../lxc/utils.h \
818 ../lxc/uuid.c ../lxc/uuid.h \
819 $(LSM_SOURCES)
820 if ENABLE_SECCOMP
821 lxc_test_parse_config_file_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
822 endif
823
824 if !HAVE_STRCHRNUL
825 lxc_test_parse_config_file_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
826 endif
827
828 if !HAVE_STRLCPY
829 lxc_test_parse_config_file_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
830 endif
831
832 if !HAVE_STRLCAT
833 lxc_test_parse_config_file_SOURCES += ../include/strlcat.c ../include/strlcat.h
834 endif
835
836 if !HAVE_OPENPTY
837 lxc_test_parse_config_file_SOURCES += ../include/openpty.c ../include/openpty.h
838 endif
839
840 if IS_BIONIC
841 lxc_test_parse_config_file_SOURCES += ../include/fexecve.c ../include/fexecve.h \
842 ../include/lxcmntent.c ../include/lxcmntent.h
843 endif
844
845 if !HAVE_GETGRGID_R
846 lxc_test_parse_config_file_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
847 endif
848
849 if !HAVE_PRLIMIT
850 if HAVE_PRLIMIT64
851 lxc_test_parse_config_file_SOURCES += ../include/prlimit.c ../include/prlimit.h
852 endif
853 endif
854
855 lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \
856 lxctest.h \
857 ../lxc/af_unix.c ../lxc/af_unix.h \
858 ../lxc/caps.c ../lxc/caps.h \
859 ../lxc/cgroups/cgfsng.c \
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 \
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 \
869 ../lxc/file_utils.c ../lxc/file_utils.h \
870 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
871 ../lxc/initutils.c ../lxc/initutils.h \
872 ../lxc/log.c ../lxc/log.h \
873 ../lxc/lxclock.c ../lxc/lxclock.h \
874 ../lxc/mainloop.c ../lxc/mainloop.h \
875 ../lxc/monitor.c ../lxc/monitor.h \
876 ../lxc/mount_utils.c ../lxc/mount_utils.h \
877 ../lxc/namespace.c ../lxc/namespace.h \
878 ../lxc/network.c ../lxc/network.h \
879 ../lxc/nl.c ../lxc/nl.h \
880 ../lxc/parse.c ../lxc/parse.h \
881 ../lxc/process_utils.c ../lxc/process_utils.h \
882 ../lxc/ringbuf.c ../lxc/ringbuf.h \
883 ../lxc/start.c ../lxc/start.h \
884 ../lxc/state.c ../lxc/state.h \
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 \
896 ../lxc/sync.c ../lxc/sync.h \
897 ../lxc/string_utils.c ../lxc/string_utils.h \
898 ../lxc/terminal.c ../lxc/terminal.h \
899 ../lxc/utils.c ../lxc/utils.h \
900 ../lxc/uuid.c ../lxc/uuid.h \
901 $(LSM_SOURCES)
902 if ENABLE_SECCOMP
903 lxc_test_raw_clone_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
904 endif
905
906 if !HAVE_STRCHRNUL
907 lxc_test_raw_clone_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
908 endif
909
910 if !HAVE_STRLCPY
911 lxc_test_raw_clone_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
912 endif
913
914 if !HAVE_STRLCAT
915 lxc_test_raw_clone_SOURCES += ../include/strlcat.c ../include/strlcat.h
916 endif
917
918 if !HAVE_OPENPTY
919 lxc_test_raw_clone_SOURCES += ../include/openpty.c ../include/openpty.h
920 endif
921
922 if IS_BIONIC
923 lxc_test_raw_clone_SOURCES += ../include/fexecve.c ../include/fexecve.h \
924 ../include/lxcmntent.c ../include/lxcmntent.h
925 endif
926
927 if !HAVE_GETGRGID_R
928 lxc_test_raw_clone_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
929 endif
930
931 if !HAVE_PRLIMIT
932 if HAVE_PRLIMIT64
933 lxc_test_raw_clone_SOURCES += ../include/prlimit.c ../include/prlimit.h
934 endif
935 endif
936
937 lxc_test_reboot_SOURCES = reboot.c
938 lxc_test_saveconfig_SOURCES = saveconfig.c
939 lxc_test_share_ns_SOURCES = share_ns.c \
940 lxctest.h \
941 ../lxc/compiler.h
942
943 if !HAVE_STRLCPY
944 lxc_test_share_ns_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
945 endif
946
947 if !HAVE_STRLCAT
948 lxc_test_share_ns_SOURCES += ../include/strlcat.c ../include/strlcat.h
949 endif
950
951 if !HAVE_OPENPTY
952 lxc_test_share_ns_SOURCES += ../include/openpty.c ../include/openpty.h
953 endif
954
955 if IS_BIONIC
956 lxc_test_share_ns_SOURCES += ../include/fexecve.c ../include/fexecve.h \
957 ../include/lxcmntent.c ../include/lxcmntent.h
958 endif
959
960 if !HAVE_GETGRGID_R
961 lxc_test_share_ns_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
962 endif
963
964 if !HAVE_PRLIMIT
965 if HAVE_PRLIMIT64
966 lxc_test_share_ns_SOURCES += ../include/prlimit.c ../include/prlimit.h
967 endif
968 endif
969
970 lxc_test_shortlived_SOURCES = shortlived.c \
971 ../lxc/file_utils.c ../lxc/file_utils.h \
972 ../lxc/string_utils.c ../lxc/string_utils.h
973
974 if !HAVE_STRLCPY
975 lxc_test_shortlived_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
976 endif
977
978 if !HAVE_STRLCAT
979 lxc_test_shortlived_SOURCES += ../include/strlcat.c ../include/strlcat.h
980 endif
981
982 if !HAVE_OPENPTY
983 lxc_test_shortlived_SOURCES += ../include/openpty.c ../include/openpty.h
984 endif
985
986 if IS_BIONIC
987 lxc_test_shortlived_SOURCES += ../include/fexecve.c ../include/fexecve.h \
988 ../include/lxcmntent.c ../include/lxcmntent.h
989 endif
990
991 if !HAVE_GETGRGID_R
992 lxc_test_shortlived_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
993 endif
994
995 if !HAVE_PRLIMIT
996 if HAVE_PRLIMIT64
997 lxc_test_shortlived_SOURCES += ../include/prlimit.c ../include/prlimit.h
998 endif
999 endif
1000
1001 lxc_test_shutdowntest_SOURCES = shutdowntest.c
1002 lxc_test_snapshot_SOURCES = snapshot.c
1003 lxc_test_startone_SOURCES = startone.c
1004 lxc_test_state_server_SOURCES = state_server.c \
1005 lxctest.h \
1006 ../lxc/compiler.h
1007
1008 if !HAVE_STRLCPY
1009 lxc_test_state_server_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
1010 endif
1011
1012 if !HAVE_STRLCAT
1013 lxc_test_state_server_SOURCES += ../include/strlcat.c ../include/strlcat.h
1014 endif
1015
1016 if !HAVE_OPENPTY
1017 lxc_test_state_server_SOURCES += ../include/openpty.c ../include/openpty.h
1018 endif
1019
1020 if IS_BIONIC
1021 lxc_test_state_server_SOURCES += ../include/fexecve.c ../include/fexecve.h \
1022 ../include/lxcmntent.c ../include/lxcmntent.h
1023 endif
1024
1025 if !HAVE_GETGRGID_R
1026 lxc_test_state_server_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
1027 endif
1028
1029 if !HAVE_PRLIMIT
1030 if HAVE_PRLIMIT64
1031 lxc_test_state_server_SOURCES += ../include/prlimit.c ../include/prlimit.h
1032 endif
1033 endif
1034
1035 lxc_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 \
1039 ../lxc/cgroups/cgfsng.c \
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 \
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 \
1048 ../lxc/error.c ../lxc/error.h \
1049 ../lxc/file_utils.c ../lxc/file_utils.h \
1050 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
1051 ../lxc/initutils.c ../lxc/initutils.h \
1052 ../lxc/log.c ../lxc/log.h \
1053 ../lxc/lxclock.c ../lxc/lxclock.h \
1054 ../lxc/mainloop.c ../lxc/mainloop.h \
1055 ../lxc/monitor.c ../lxc/monitor.h \
1056 ../lxc/mount_utils.c ../lxc/mount_utils.h \
1057 ../lxc/namespace.c ../lxc/namespace.h \
1058 ../lxc/network.c ../lxc/network.h \
1059 ../lxc/nl.c ../lxc/nl.h \
1060 ../lxc/parse.c ../lxc/parse.h \
1061 ../lxc/process_utils.c ../lxc/process_utils.h \
1062 ../lxc/ringbuf.c ../lxc/ringbuf.h \
1063 ../lxc/start.c ../lxc/start.h \
1064 ../lxc/state.c ../lxc/state.h \
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 \
1076 ../lxc/sync.c ../lxc/sync.h \
1077 ../lxc/string_utils.c ../lxc/string_utils.h \
1078 ../lxc/terminal.c ../lxc/terminal.h \
1079 ../lxc/utils.c ../lxc/utils.h \
1080 ../lxc/uuid.c ../lxc/uuid.h \
1081 $(LSM_SOURCES)
1082 if ENABLE_SECCOMP
1083 lxc_test_utils_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
1084 endif
1085
1086 if !HAVE_STRCHRNUL
1087 lxc_test_utils_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
1088 endif
1089
1090 if !HAVE_STRLCPY
1091 lxc_test_utils_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
1092 endif
1093
1094 if !HAVE_STRLCAT
1095 lxc_test_utils_SOURCES += ../include/strlcat.c ../include/strlcat.h
1096 endif
1097
1098 if !HAVE_OPENPTY
1099 lxc_test_utils_SOURCES += ../include/openpty.c ../include/openpty.h
1100 endif
1101
1102 if IS_BIONIC
1103 lxc_test_utils_SOURCES += ../include/fexecve.c ../include/fexecve.h \
1104 ../include/lxcmntent.c ../include/lxcmntent.h
1105 endif
1106
1107 if !HAVE_GETGRGID_R
1108 lxc_test_utils_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
1109 endif
1110
1111 if !HAVE_PRLIMIT
1112 if HAVE_PRLIMIT64
1113 lxc_test_utils_SOURCES += ../include/prlimit.c ../include/prlimit.h
1114 endif
1115 endif
1116
1117 lxc_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)
1163 if ENABLE_SECCOMP
1164 lxc_test_sys_mixed_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
1165 endif
1166
1167 if !HAVE_STRCHRNUL
1168 lxc_test_sys_mixed_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
1169 endif
1170
1171 if !HAVE_STRLCPY
1172 lxc_test_sys_mixed_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
1173 endif
1174
1175 if !HAVE_STRLCAT
1176 lxc_test_sys_mixed_SOURCES += ../include/strlcat.c ../include/strlcat.h
1177 endif
1178
1179 if !HAVE_OPENPTY
1180 lxc_test_sys_mixed_SOURCES += ../include/openpty.c ../include/openpty.h
1181 endif
1182
1183 if IS_BIONIC
1184 lxc_test_sys_mixed_SOURCES += ../include/fexecve.c ../include/fexecve.h \
1185 ../include/lxcmntent.c ../include/lxcmntent.h
1186 endif
1187
1188 if !HAVE_GETGRGID_R
1189 lxc_test_sys_mixed_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
1190 endif
1191
1192 if !HAVE_PRLIMIT
1193 if HAVE_PRLIMIT64
1194 lxc_test_sys_mixed_SOURCES += ../include/prlimit.c ../include/prlimit.h
1195 endif
1196 endif
1197
1198 lxc_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)
1244 if ENABLE_SECCOMP
1245 lxc_test_rootfs_options_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
1246 endif
1247
1248 if !HAVE_STRCHRNUL
1249 lxc_test_rootfs_options_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
1250 endif
1251
1252 if !HAVE_STRLCPY
1253 lxc_test_rootfs_options_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
1254 endif
1255
1256 if !HAVE_STRLCAT
1257 lxc_test_rootfs_options_SOURCES += ../include/strlcat.c ../include/strlcat.h
1258 endif
1259
1260 if !HAVE_OPENPTY
1261 lxc_test_rootfs_options_SOURCES += ../include/openpty.c ../include/openpty.h
1262 endif
1263
1264 if IS_BIONIC
1265 lxc_test_rootfs_options_SOURCES += ../include/fexecve.c ../include/fexecve.h \
1266 ../include/lxcmntent.c ../include/lxcmntent.h
1267 endif
1268
1269 if !HAVE_GETGRGID_R
1270 lxc_test_rootfs_options_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
1271 endif
1272
1273 if !HAVE_PRLIMIT
1274 if HAVE_PRLIMIT64
1275 lxc_test_rootfs_options_SOURCES += ../include/prlimit.c ../include/prlimit.h
1276 endif
1277 endif
1278
1279 lxc_test_capabilities_SOURCES = capabilities.c \
1280 ../lxc/af_unix.c ../lxc/af_unix.h \
1281 ../lxc/caps.c ../lxc/caps.h \
1282 ../lxc/cgroups/cgfsng.c \
1283 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
1284 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
1285 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
1286 ../lxc/commands.c ../lxc/commands.h \
1287 ../lxc/commands_utils.c ../lxc/commands_utils.h \
1288 ../lxc/conf.c ../lxc/conf.h \
1289 ../lxc/confile.c ../lxc/confile.h \
1290 ../lxc/confile_utils.c ../lxc/confile_utils.h \
1291 ../lxc/error.c ../lxc/error.h \
1292 ../lxc/file_utils.c ../lxc/file_utils.h \
1293 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
1294 ../lxc/initutils.c ../lxc/initutils.h \
1295 ../lxc/log.c ../lxc/log.h \
1296 ../lxc/lxclock.c ../lxc/lxclock.h \
1297 ../lxc/mainloop.c ../lxc/mainloop.h \
1298 ../lxc/monitor.c ../lxc/monitor.h \
1299 ../lxc/mount_utils.c ../lxc/mount_utils.h \
1300 ../lxc/namespace.c ../lxc/namespace.h \
1301 ../lxc/network.c ../lxc/network.h \
1302 ../lxc/nl.c ../lxc/nl.h \
1303 ../lxc/parse.c ../lxc/parse.h \
1304 ../lxc/process_utils.c ../lxc/process_utils.h \
1305 ../lxc/ringbuf.c ../lxc/ringbuf.h \
1306 ../lxc/start.c ../lxc/start.h \
1307 ../lxc/state.c ../lxc/state.h \
1308 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
1309 ../lxc/storage/dir.c ../lxc/storage/dir.h \
1310 ../lxc/storage/loop.c ../lxc/storage/loop.h \
1311 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
1312 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
1313 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
1314 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
1315 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
1316 ../lxc/storage/storage.c ../lxc/storage/storage.h \
1317 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
1318 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
1319 ../lxc/sync.c ../lxc/sync.h \
1320 ../lxc/string_utils.c ../lxc/string_utils.h \
1321 ../lxc/terminal.c ../lxc/terminal.h \
1322 ../lxc/utils.c ../lxc/utils.h \
1323 ../lxc/uuid.c ../lxc/uuid.h \
1324 $(LSM_SOURCES)
1325 if ENABLE_SECCOMP
1326 lxc_test_capabilities_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
1327 endif
1328
1329 if !HAVE_STRCHRNUL
1330 lxc_test_capabilities_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
1331 endif
1332
1333 if !HAVE_STRLCPY
1334 lxc_test_capabilities_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
1335 endif
1336
1337 if !HAVE_STRLCAT
1338 lxc_test_capabilities_SOURCES += ../include/strlcat.c ../include/strlcat.h
1339 endif
1340
1341 if !HAVE_OPENPTY
1342 lxc_test_capabilities_SOURCES += ../include/openpty.c ../include/openpty.h
1343 endif
1344
1345 if IS_BIONIC
1346 lxc_test_capabilities_SOURCES += ../include/fexecve.c ../include/fexecve.h \
1347 ../include/lxcmntent.c ../include/lxcmntent.h
1348 endif
1349
1350 if !HAVE_GETGRGID_R
1351 lxc_test_capabilities_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
1352 endif
1353
1354 if !HAVE_PRLIMIT
1355 if HAVE_PRLIMIT64
1356 lxc_test_capabilities_SOURCES += ../include/prlimit.c ../include/prlimit.h
1357 endif
1358 endif
1359
1360 AM_CFLAGS += -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
1361 -DLXCPATH=\"$(LXCPATH)\" \
1362 -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \
1363 -DLXCINITDIR=\"$(LXCINITDIR)\" \
1364 -DLIBEXECDIR=\"$(LIBEXECDIR)\" \
1365 -DLOGPATH=\"$(LOGPATH)\" \
1366 -DLXCTEMPLATEDIR=\"$(LXCTEMPLATEDIR)\" \
1367 -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \
1368 -DDEFAULT_CGROUP_PATTERN=\"$(DEFAULT_CGROUP_PATTERN)\" \
1369 -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \
1370 -DSBINDIR=\"$(SBINDIR)\" \
1371 -I $(top_srcdir)/src \
1372 -I $(top_srcdir)/src/include \
1373 -I $(top_srcdir)/src/lxc \
1374 -I $(top_srcdir)/src/lxc/cgroups \
1375 -I $(top_srcdir)/src/lxc/tools \
1376 -I $(top_srcdir)/src/lxc/storage \
1377 -pthread
1378
1379 if ENABLE_APPARMOR
1380 AM_CFLAGS += -DHAVE_APPARMOR
1381 AM_CFLAGS += -DAPPARMOR_CACHE_DIR=\"$(APPARMOR_CACHE_DIR)\"
1382 endif
1383
1384 if ENABLE_SECCOMP
1385 AM_CFLAGS += -DHAVE_SECCOMP \
1386 $(SECCOMP_CFLAGS)
1387 endif
1388
1389 if ENABLE_SELINUX
1390 AM_CFLAGS += -DHAVE_SELINUX
1391 endif
1392
1393 bin_PROGRAMS = lxc-test-api-reboot \
1394 lxc-test-apparmor \
1395 lxc-test-arch-parse \
1396 lxc-test-attach \
1397 lxc-test-basic \
1398 lxc-test-capabilities \
1399 lxc-test-cgpath \
1400 lxc-test-clonetest \
1401 lxc-test-concurrent \
1402 lxc-test-config-jump-table \
1403 lxc-test-console \
1404 lxc-test-console-log \
1405 lxc-test-containertests \
1406 lxc-test-createtest \
1407 lxc-test-criu-check-feature \
1408 lxc-test-cve-2019-5736 \
1409 lxc-test-destroytest \
1410 lxc-test-device-add-remove \
1411 lxc-test-getkeys \
1412 lxc-test-get_item \
1413 lxc-test-list \
1414 lxc-test-locktests \
1415 lxc-test-lxcpath \
1416 lxc-test-may-control \
1417 lxc-test-mount-injection \
1418 lxc-test-parse-config-file \
1419 lxc-test-raw-clone \
1420 lxc-test-reboot \
1421 lxc-test-rootfs-options \
1422 lxc-test-saveconfig \
1423 lxc-test-share-ns \
1424 lxc-test-shortlived \
1425 lxc-test-shutdowntest \
1426 lxc-test-snapshot \
1427 lxc-test-startone \
1428 lxc-test-state-server \
1429 lxc-test-sys-mixed \
1430 lxc-test-utils
1431
1432 bin_SCRIPTS =
1433 if ENABLE_TOOLS
1434 bin_SCRIPTS += lxc-test-automount \
1435 lxc-test-autostart \
1436 lxc-test-cloneconfig \
1437 lxc-test-createconfig \
1438 lxc-test-exit-code \
1439 lxc-test-no-new-privs \
1440 lxc-test-rootfs \
1441 lxc-test-procsys \
1442 lxc-test-usernsexec
1443
1444 if DISTRO_UBUNTU
1445 bin_SCRIPTS += lxc-test-lxc-attach \
1446 lxc-test-apparmor-mount \
1447 lxc-test-apparmor-generated \
1448 lxc-test-checkpoint-restore \
1449 lxc-test-snapdeps \
1450 lxc-test-symlink \
1451 lxc-test-unpriv \
1452 lxc-test-usernic
1453 endif
1454 endif
1455
1456 if ENABLE_FUZZERS
1457 LIB_FUZZING_ENGINE ?= -fsanitize=fuzzer
1458
1459 # https://google.github.io/oss-fuzz/getting-started/new-project-guide/#Requirements
1460 nodist_EXTRA_fuzz_lxc_config_read_SOURCES = dummy.cxx
1461 fuzz_lxc_config_read_SOURCES = fuzz-lxc-config-read.c
1462 fuzz_lxc_config_read_CFLAGS = $(AM_CFLAGS)
1463 fuzz_lxc_config_read_CXXFLAGS = $(AM_CFLAGS)
1464 fuzz_lxc_config_read_LDFLAGS = $(AM_LDFLAGS) -static
1465 fuzz_lxc_config_read_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE)
1466
1467 nodist_EXTRA_fuzz_lxc_define_load_SOURCES = dummy.cxx
1468 fuzz_lxc_define_load_SOURCES = fuzz-lxc-define-load.c
1469 fuzz_lxc_define_load_CFLAGS = $(AM_CFLAGS)
1470 fuzz_lxc_define_load_CXXFLAGS = $(AM_CFLAGS)
1471 fuzz_lxc_define_load_LDFLAGS = $(AM_LDFLAGS) -static
1472 fuzz_lxc_define_load_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE)
1473
1474 nodist_EXTRA_fuzz_lxc_cgroup_init_SOURCES = dummy.cxx
1475 fuzz_lxc_cgroup_init_SOURCES = fuzz-lxc-cgroup-init.c
1476 fuzz_lxc_cgroup_init_CFLAGS = $(AM_CFLAGS)
1477 fuzz_lxc_cgroup_init_CXXFLAGS = $(AM_CFLAGS)
1478 fuzz_lxc_cgroup_init_LDFLAGS = $(AM_LDFLAGS) -static
1479 fuzz_lxc_cgroup_init_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE)
1480
1481 bin_PROGRAMS += fuzz-lxc-cgroup-init \
1482 fuzz-lxc-config-read \
1483 fuzz-lxc-define-load
1484
1485 bin_SCRIPTS += lxc-test-fuzzers
1486 endif
1487 endif
1488
1489 EXTRA_DIST = arch_parse.c \
1490 basic.c \
1491 capabilities.c \
1492 cgpath.c \
1493 clonetest.c \
1494 concurrent.c \
1495 config_jump_table.c \
1496 console.c \
1497 console_log.c \
1498 containertests.c \
1499 createtest.c \
1500 criu_check_feature.c \
1501 cve-2019-5736.c \
1502 destroytest.c \
1503 device_add_remove.c \
1504 get_item.c \
1505 getkeys.c \
1506 list.c \
1507 locktests.c \
1508 lxcpath.c \
1509 lxc_raw_clone.c \
1510 lxc-test-lxc-attach \
1511 lxc-test-automount \
1512 lxc-test-rootfs \
1513 lxc-test-procsys \
1514 lxc-test-autostart \
1515 lxc-test-apparmor-mount \
1516 lxc-test-apparmor-generated \
1517 lxc-test-checkpoint-restore \
1518 lxc-test-cloneconfig \
1519 lxc-test-createconfig \
1520 lxc-test-exit-code \
1521 lxc-test-no-new-privs \
1522 lxc-test-snapdeps \
1523 lxc-test-symlink \
1524 lxc-test-unpriv \
1525 lxc-test-usernsexec \
1526 lxc-test-utils.c \
1527 may_control.c \
1528 mount_injection.c \
1529 parse_config_file.c \
1530 rootfs_options.c \
1531 saveconfig.c \
1532 shortlived.c \
1533 shutdowntest.c \
1534 snapshot.c \
1535 startone.c \
1536 state_server.c \
1537 share_ns.c \
1538 sys_mixed.c
1539
1540 clean-local:
1541 rm -f lxc-test-utils-*
1542 rm -f lxc-parse-config-file-*