]> git.proxmox.com Git - mirror_lxc.git/blob - src/tests/Makefile.am
Merge pull request #3235 from xinhua9569/master
[mirror_lxc.git] / src / tests / Makefile.am
1 if ENABLE_TESTS
2
3 LDADD = ../lxc/liblxc.la
4
5 lxc_test_api_reboot_SOURCES = api_reboot.c
6 lxc_test_apparmor_SOURCES = aa.c
7 lxc_test_attach_SOURCES = attach.c
8 lxc_test_basic_SOURCES = basic.c
9 lxc_test_cgpath_SOURCES = cgpath.c
10 lxc_test_clonetest_SOURCES = clonetest.c
11 lxc_test_concurrent_SOURCES = concurrent.c
12 lxc_test_config_jump_table_SOURCES = config_jump_table.c lxctest.h
13 lxc_test_console_SOURCES = console.c
14 lxc_test_console_log_SOURCES = console_log.c lxctest.h
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
18 lxc_test_cve_2019_5736_SOURCES = cve-2019-5736.c lxctest.h
19 lxc_test_destroytest_SOURCES = destroytest.c
20 lxc_test_device_add_remove_SOURCES = device_add_remove.c
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
28 lxc_test_parse_config_file_SOURCES = parse_config_file.c \
29 lxctest.h
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
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
38 lxc_test_shortlived_SOURCES = shortlived.c
39 lxc_test_shutdowntest_SOURCES = shutdowntest.c
40 lxc_test_snapshot_SOURCES = snapshot.c
41 lxc_test_startone_SOURCES = startone.c
42 lxc_test_state_server_SOURCES = state_server.c lxctest.h
43 lxc_test_utils_SOURCES = lxc-test-utils.c lxctest.h
44
45 AM_CFLAGS=-DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
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 \
53 -I $(top_srcdir)/src/lxc/cgroups \
54 -I $(top_srcdir)/src/lxc/tools \
55 -pthread
56
57 if ENABLE_APPARMOR
58 AM_CFLAGS += -DHAVE_APPARMOR
59 endif
60
61 if ENABLE_SECCOMP
62 AM_CFLAGS += -DHAVE_SECCOMP \
63 $(SECCOMP_CFLAGS)
64 endif
65
66 if ENABLE_SELINUX
67 AM_CFLAGS += -DHAVE_SELINUX
68 endif
69
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 \
83 lxc-test-cve-2019-5736 \
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
104
105 bin_SCRIPTS =
106 if ENABLE_TOOLS
107 bin_SCRIPTS += lxc-test-automount \
108 lxc-test-autostart \
109 lxc-test-cloneconfig \
110 lxc-test-createconfig \
111 lxc-test-exit-code \
112 lxc-test-no-new-privs \
113 lxc-test-rootfs
114
115 if DISTRO_UBUNTU
116 bin_SCRIPTS += lxc-test-lxc-attach \
117 lxc-test-apparmor-mount \
118 lxc-test-apparmor-generated \
119 lxc-test-checkpoint-restore \
120 lxc-test-snapdeps \
121 lxc-test-symlink \
122 lxc-test-unpriv \
123 lxc-test-usernic
124 endif
125 endif
126
127 endif
128
129 EXTRA_DIST = basic.c \
130 cgpath.c \
131 clonetest.c \
132 concurrent.c \
133 config_jump_table.c \
134 console.c \
135 console_log.c \
136 containertests.c \
137 createtest.c \
138 criu_check_feature.c \
139 cve-2019-5736.c \
140 destroytest.c \
141 device_add_remove.c \
142 get_item.c \
143 getkeys.c \
144 list.c \
145 locktests.c \
146 lxcpath.c \
147 lxc_raw_clone.c \
148 lxc-test-lxc-attach \
149 lxc-test-automount \
150 lxc-test-rootfs \
151 lxc-test-autostart \
152 lxc-test-apparmor-mount \
153 lxc-test-apparmor-generated \
154 lxc-test-checkpoint-restore \
155 lxc-test-cloneconfig \
156 lxc-test-createconfig \
157 lxc-test-no-new-privs \
158 lxc-test-snapdeps \
159 lxc-test-symlink \
160 lxc-test-unpriv \
161 lxc-test-utils.c \
162 may_control.c \
163 mount_injection.c \
164 parse_config_file.c \
165 saveconfig.c \
166 shortlived.c \
167 shutdowntest.c \
168 snapshot.c \
169 startone.c \
170 state_server.c \
171 share_ns.c
172
173 clean-local:
174 rm -f lxc-test-utils-*
175 rm -f lxc-parse-config-file-*