]>
Commit | Line | Data |
---|---|---|
525421c9 SG |
1 | if ENABLE_TESTS |
2 | ||
26419a7a | 3 | LDADD = ../lxc/liblxc.la |
fd5c4f90 | 4 | |
691544a0 CB |
5 | lxc_test_api_reboot_SOURCES = api_reboot.c |
6 | lxc_test_apparmor_SOURCES = aa.c | |
7 | lxc_test_attach_SOURCES = attach.c | |
c8208ff0 | 8 | lxc_test_basic_SOURCES = basic.c |
ae5c8b8e | 9 | lxc_test_cgpath_SOURCES = cgpath.c |
9be53773 | 10 | lxc_test_clonetest_SOURCES = clonetest.c |
691544a0 CB |
11 | lxc_test_concurrent_SOURCES = concurrent.c |
12 | lxc_test_config_jump_table_SOURCES = config_jump_table.c lxctest.h | |
0115f8fd | 13 | lxc_test_console_SOURCES = console.c |
a52c1c68 | 14 | lxc_test_console_log_SOURCES = console_log.c lxctest.h |
691544a0 CB |
15 | lxc_test_containertests_SOURCES = containertests.c |
16 | lxc_test_createtest_SOURCES = createtest.c | |
17 | lxc_test_criu_check_feature_SOURCES = criu_check_feature.c lxctest.h | |
99258734 | 18 | lxc_test_cve_2019_5736_SOURCES = cve-2019-5736.c lxctest.h |
691544a0 | 19 | lxc_test_destroytest_SOURCES = destroytest.c |
710bde5e | 20 | lxc_test_device_add_remove_SOURCES = device_add_remove.c |
691544a0 CB |
21 | lxc_test_getkeys_SOURCES = getkeys.c |
22 | lxc_test_get_item_SOURCES = get_item.c | |
23 | lxc_test_list_SOURCES = list.c | |
24 | lxc_test_locktests_SOURCES = locktests.c | |
25 | lxc_test_lxcpath_SOURCES = lxcpath.c | |
26 | lxc_test_may_control_SOURCES = may_control.c | |
27 | lxc_test_mount_injection_SOURCES = mount_injection.c lxctest.h | |
c3e3c21a CB |
28 | lxc_test_parse_config_file_SOURCES = parse_config_file.c \ |
29 | lxctest.h | |
1f797c3a CB |
30 | lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \ |
31 | lxctest.h \ | |
32 | ../lxc/namespace.c ../lxc/namespace.h \ | |
33 | ../lxc/raw_syscalls.c ../lxc/raw_syscalls.h | |
34 | ../lxc/utils.c ../lxc/utils.h | |
691544a0 CB |
35 | lxc_test_reboot_SOURCES = reboot.c |
36 | lxc_test_saveconfig_SOURCES = saveconfig.c | |
37 | lxc_test_share_ns_SOURCES = share_ns.c lxctest.h | |
3df9fa82 | 38 | lxc_test_shortlived_SOURCES = shortlived.c |
691544a0 CB |
39 | lxc_test_shutdowntest_SOURCES = shutdowntest.c |
40 | lxc_test_snapshot_SOURCES = snapshot.c | |
41 | lxc_test_startone_SOURCES = startone.c | |
fc788340 | 42 | lxc_test_state_server_SOURCES = state_server.c lxctest.h |
691544a0 | 43 | lxc_test_utils_SOURCES = lxc-test-utils.c lxctest.h |
72d0e1cb | 44 | |
ca1e6c02 | 45 | AM_CFLAGS=-DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \ |
691544a0 CB |
46 | -DLXCPATH=\"$(LXCPATH)\" \ |
47 | -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \ | |
48 | -DLXCINITDIR=\"$(LXCINITDIR)\" \ | |
49 | -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \ | |
50 | -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \ | |
51 | -I $(top_srcdir)/src \ | |
52 | -I $(top_srcdir)/src/lxc \ | |
691544a0 CB |
53 | -I $(top_srcdir)/src/lxc/cgroups \ |
54 | -I $(top_srcdir)/src/lxc/tools \ | |
55 | -pthread | |
72d0e1cb | 56 | |
72863294 DE |
57 | if ENABLE_APPARMOR |
58 | AM_CFLAGS += -DHAVE_APPARMOR | |
59 | endif | |
60 | ||
c3e3c21a CB |
61 | if ENABLE_SECCOMP |
62 | AM_CFLAGS += -DHAVE_SECCOMP \ | |
63 | $(SECCOMP_CFLAGS) | |
64 | endif | |
65 | ||
72863294 DE |
66 | if ENABLE_SELINUX |
67 | AM_CFLAGS += -DHAVE_SELINUX | |
68 | endif | |
69 | ||
691544a0 CB |
70 | bin_PROGRAMS = lxc-test-api-reboot \ |
71 | lxc-test-apparmor \ | |
72 | lxc-test-attach \ | |
73 | lxc-test-basic \ | |
74 | lxc-test-cgpath \ | |
75 | lxc-test-clonetest \ | |
76 | lxc-test-concurrent \ | |
77 | lxc-test-config-jump-table \ | |
78 | lxc-test-console \ | |
79 | lxc-test-console-log \ | |
80 | lxc-test-containertests \ | |
81 | lxc-test-createtest \ | |
82 | lxc-test-criu-check-feature \ | |
99258734 | 83 | lxc-test-cve-2019-5736 \ |
691544a0 CB |
84 | lxc-test-destroytest \ |
85 | lxc-test-device-add-remove \ | |
86 | lxc-test-getkeys \ | |
87 | lxc-test-get_item \ | |
88 | lxc-test-list \ | |
89 | lxc-test-locktests \ | |
90 | lxc-test-lxcpath \ | |
91 | lxc-test-may-control \ | |
92 | lxc-test-mount-injection \ | |
93 | lxc-test-parse-config-file \ | |
94 | lxc-test-raw-clone \ | |
95 | lxc-test-reboot \ | |
96 | lxc-test-saveconfig \ | |
97 | lxc-test-share-ns \ | |
98 | lxc-test-shortlived \ | |
99 | lxc-test-shutdowntest \ | |
100 | lxc-test-snapshot \ | |
101 | lxc-test-startone \ | |
102 | lxc-test-state-server \ | |
103 | lxc-test-utils | |
20ab58c7 | 104 | |
a9145d62 CB |
105 | bin_SCRIPTS = |
106 | if ENABLE_TOOLS | |
107 | bin_SCRIPTS += lxc-test-automount \ | |
691544a0 CB |
108 | lxc-test-autostart \ |
109 | lxc-test-cloneconfig \ | |
110 | lxc-test-createconfig \ | |
111 | lxc-test-no-new-privs \ | |
112 | lxc-test-rootfs | |
525421c9 | 113 | |
025f59ab | 114 | if DISTRO_UBUNTU |
691544a0 CB |
115 | bin_SCRIPTS += lxc-test-lxc-attach \ |
116 | lxc-test-apparmor-mount \ | |
117 | lxc-test-apparmor-generated \ | |
118 | lxc-test-checkpoint-restore \ | |
119 | lxc-test-snapdeps \ | |
120 | lxc-test-symlink \ | |
121 | lxc-test-unpriv \ | |
122 | lxc-test-usernic | |
025f59ab | 123 | endif |
a9145d62 | 124 | endif |
025f59ab | 125 | |
525421c9 | 126 | endif |
90341b9e | 127 | |
691544a0 CB |
128 | EXTRA_DIST = basic.c \ |
129 | cgpath.c \ | |
130 | clonetest.c \ | |
131 | concurrent.c \ | |
132 | config_jump_table.c \ | |
133 | console.c \ | |
134 | console_log.c \ | |
135 | containertests.c \ | |
136 | createtest.c \ | |
137 | criu_check_feature.c \ | |
99258734 | 138 | cve-2019-5736.c \ |
691544a0 CB |
139 | destroytest.c \ |
140 | device_add_remove.c \ | |
141 | get_item.c \ | |
142 | getkeys.c \ | |
143 | list.c \ | |
144 | locktests.c \ | |
145 | lxcpath.c \ | |
146 | lxc_raw_clone.c \ | |
147 | lxc-test-lxc-attach \ | |
148 | lxc-test-automount \ | |
149 | lxc-test-rootfs \ | |
150 | lxc-test-autostart \ | |
151 | lxc-test-apparmor-mount \ | |
152 | lxc-test-apparmor-generated \ | |
153 | lxc-test-checkpoint-restore \ | |
154 | lxc-test-cloneconfig \ | |
155 | lxc-test-createconfig \ | |
156 | lxc-test-no-new-privs \ | |
157 | lxc-test-snapdeps \ | |
158 | lxc-test-symlink \ | |
159 | lxc-test-unpriv \ | |
160 | lxc-test-utils.c \ | |
161 | may_control.c \ | |
162 | mount_injection.c \ | |
163 | parse_config_file.c \ | |
164 | saveconfig.c \ | |
165 | shortlived.c \ | |
166 | shutdowntest.c \ | |
167 | snapshot.c \ | |
168 | startone.c \ | |
169 | state_server.c \ | |
170 | share_ns.c | |
24b9970e CB |
171 | |
172 | clean-local: | |
173 | rm -f lxc-test-utils-* | |
9c61a6d6 | 174 | rm -f lxc-parse-config-file-* |