]> git.proxmox.com Git - mirror_lxc.git/blob - src/tests/Makefile.am
cve-2019-5736: add test
[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 lxctest.h
29 lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \
30 lxctest.h \
31 ../lxc/namespace.c ../lxc/namespace.h \
32 ../lxc/raw_syscalls.c ../lxc/raw_syscalls.h
33 ../lxc/utils.c ../lxc/utils.h
34 lxc_test_reboot_SOURCES = reboot.c
35 lxc_test_saveconfig_SOURCES = saveconfig.c
36 lxc_test_share_ns_SOURCES = share_ns.c lxctest.h
37 lxc_test_shortlived_SOURCES = shortlived.c
38 lxc_test_shutdowntest_SOURCES = shutdowntest.c
39 lxc_test_snapshot_SOURCES = snapshot.c
40 lxc_test_startone_SOURCES = startone.c
41 lxc_test_state_server_SOURCES = state_server.c lxctest.h
42 lxc_test_utils_SOURCES = lxc-test-utils.c lxctest.h
43
44 AM_CFLAGS=-DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
45 -DLXCPATH=\"$(LXCPATH)\" \
46 -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \
47 -DLXCINITDIR=\"$(LXCINITDIR)\" \
48 -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \
49 -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \
50 -I $(top_srcdir)/src \
51 -I $(top_srcdir)/src/lxc \
52 -I $(top_srcdir)/src/lxc/cgroups \
53 -I $(top_srcdir)/src/lxc/tools \
54 -pthread
55
56 if ENABLE_APPARMOR
57 AM_CFLAGS += -DHAVE_APPARMOR
58 endif
59
60 if ENABLE_SELINUX
61 AM_CFLAGS += -DHAVE_SELINUX
62 endif
63
64 bin_PROGRAMS = lxc-test-api-reboot \
65 lxc-test-apparmor \
66 lxc-test-attach \
67 lxc-test-basic \
68 lxc-test-cgpath \
69 lxc-test-clonetest \
70 lxc-test-concurrent \
71 lxc-test-config-jump-table \
72 lxc-test-console \
73 lxc-test-console-log \
74 lxc-test-containertests \
75 lxc-test-createtest \
76 lxc-test-criu-check-feature \
77 lxc-test-cve-2019-5736 \
78 lxc-test-destroytest \
79 lxc-test-device-add-remove \
80 lxc-test-getkeys \
81 lxc-test-get_item \
82 lxc-test-list \
83 lxc-test-locktests \
84 lxc-test-lxcpath \
85 lxc-test-may-control \
86 lxc-test-mount-injection \
87 lxc-test-parse-config-file \
88 lxc-test-raw-clone \
89 lxc-test-reboot \
90 lxc-test-saveconfig \
91 lxc-test-share-ns \
92 lxc-test-shortlived \
93 lxc-test-shutdowntest \
94 lxc-test-snapshot \
95 lxc-test-startone \
96 lxc-test-state-server \
97 lxc-test-utils
98
99 bin_SCRIPTS =
100 if ENABLE_TOOLS
101 bin_SCRIPTS += lxc-test-automount \
102 lxc-test-autostart \
103 lxc-test-cloneconfig \
104 lxc-test-createconfig \
105 lxc-test-no-new-privs \
106 lxc-test-rootfs
107
108 if DISTRO_UBUNTU
109 bin_SCRIPTS += lxc-test-lxc-attach \
110 lxc-test-apparmor-mount \
111 lxc-test-apparmor-generated \
112 lxc-test-checkpoint-restore \
113 lxc-test-snapdeps \
114 lxc-test-symlink \
115 lxc-test-unpriv \
116 lxc-test-usernic
117 endif
118 endif
119
120 endif
121
122 EXTRA_DIST = basic.c \
123 cgpath.c \
124 clonetest.c \
125 concurrent.c \
126 config_jump_table.c \
127 console.c \
128 console_log.c \
129 containertests.c \
130 createtest.c \
131 criu_check_feature.c \
132 cve-2019-5736.c \
133 destroytest.c \
134 device_add_remove.c \
135 get_item.c \
136 getkeys.c \
137 list.c \
138 locktests.c \
139 lxcpath.c \
140 lxc_raw_clone.c \
141 lxc-test-lxc-attach \
142 lxc-test-automount \
143 lxc-test-rootfs \
144 lxc-test-autostart \
145 lxc-test-apparmor-mount \
146 lxc-test-apparmor-generated \
147 lxc-test-checkpoint-restore \
148 lxc-test-cloneconfig \
149 lxc-test-createconfig \
150 lxc-test-no-new-privs \
151 lxc-test-snapdeps \
152 lxc-test-symlink \
153 lxc-test-unpriv \
154 lxc-test-utils.c \
155 may_control.c \
156 mount_injection.c \
157 parse_config_file.c \
158 saveconfig.c \
159 shortlived.c \
160 shutdowntest.c \
161 snapshot.c \
162 startone.c \
163 state_server.c \
164 share_ns.c
165
166 clean-local:
167 rm -f lxc-test-utils-*
168 rm -f lxc-parse-config-file-*