]> git.proxmox.com Git - mirror_lxc.git/blob - src/tests/Makefile.am
Merge pull request #1134 from brauner/2016-08-16/load_correct_ovl_module
[mirror_lxc.git] / src / tests / Makefile.am
1 if ENABLE_TESTS
2
3 LDADD = ../lxc/liblxc.so
4
5 lxc_test_containertests_SOURCES = containertests.c
6 lxc_test_locktests_SOURCES = locktests.c
7 lxc_test_startone_SOURCES = startone.c
8 lxc_test_destroytest_SOURCES = destroytest.c
9 lxc_test_saveconfig_SOURCES = saveconfig.c
10 lxc_test_createtest_SOURCES = createtest.c
11 lxc_test_shutdowntest_SOURCES = shutdowntest.c
12 lxc_test_get_item_SOURCES = get_item.c
13 lxc_test_getkeys_SOURCES = getkeys.c
14 lxc_test_lxcpath_SOURCES = lxcpath.c
15 lxc_test_cgpath_SOURCES = cgpath.c
16 lxc_test_clonetest_SOURCES = clonetest.c
17 lxc_test_console_SOURCES = console.c
18 lxc_test_snapshot_SOURCES = snapshot.c
19 lxc_test_concurrent_SOURCES = concurrent.c
20 lxc_test_may_control_SOURCES = may_control.c
21 lxc_test_reboot_SOURCES = reboot.c
22 lxc_test_list_SOURCES = list.c
23 lxc_test_attach_SOURCES = attach.c
24 lxc_test_device_add_remove_SOURCES = device_add_remove.c
25 lxc_test_apparmor_SOURCES = aa.c
26 lxc_test_utils_SOURCES = lxc-test-utils.c lxctest.h
27
28 AM_CFLAGS=-DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
29 -DLXCPATH=\"$(LXCPATH)\" \
30 -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \
31 -DLXCINITDIR=\"$(LXCINITDIR)\" \
32 -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \
33 -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \
34 -I $(top_srcdir)/src \
35 -I $(top_srcdir)/src/lxc \
36 -I $(top_srcdir)/src/lxc/bdev \
37 -I $(top_srcdir)/src/lxc/cgroups \
38 -I $(top_srcdir)/src/lxc/tools
39
40 if ENABLE_APPARMOR
41 AM_CFLAGS += -DHAVE_APPARMOR
42 endif
43
44 if ENABLE_SELINUX
45 AM_CFLAGS += -DHAVE_SELINUX
46 endif
47
48 bin_PROGRAMS = lxc-test-containertests lxc-test-locktests lxc-test-startone \
49 lxc-test-destroytest lxc-test-saveconfig lxc-test-createtest \
50 lxc-test-shutdowntest lxc-test-get_item lxc-test-getkeys lxc-test-lxcpath \
51 lxc-test-cgpath lxc-test-clonetest lxc-test-console \
52 lxc-test-snapshot lxc-test-concurrent lxc-test-may-control \
53 lxc-test-reboot lxc-test-list lxc-test-attach lxc-test-device-add-remove \
54 lxc-test-apparmor lxc-test-utils
55
56 bin_SCRIPTS = lxc-test-automount lxc-test-autostart lxc-test-cloneconfig \
57 lxc-test-createconfig
58
59 if DISTRO_UBUNTU
60 bin_SCRIPTS += \
61 lxc-test-lxc-attach \
62 lxc-test-apparmor-mount \
63 lxc-test-checkpoint-restore \
64 lxc-test-snapdeps \
65 lxc-test-symlink \
66 lxc-test-ubuntu \
67 lxc-test-unpriv \
68 lxc-test-usernic
69 endif
70
71 endif
72
73 EXTRA_DIST = \
74 cgpath.c \
75 clonetest.c \
76 concurrent.c \
77 console.c \
78 containertests.c \
79 createtest.c \
80 destroytest.c \
81 device_add_remove.c \
82 get_item.c \
83 getkeys.c \
84 list.c \
85 locktests.c \
86 lxcpath.c \
87 lxc-test-lxc-attach \
88 lxc-test-automount \
89 lxc-test-autostart \
90 lxc-test-apparmor-mount \
91 lxc-test-checkpoint-restore \
92 lxc-test-cloneconfig \
93 lxc-test-createconfig \
94 lxc-test-snapdeps \
95 lxc-test-symlink \
96 lxc-test-ubuntu \
97 lxc-test-unpriv \
98 lxc-test-utils.c \
99 may_control.c \
100 saveconfig.c \
101 shutdowntest.c \
102 snapshot.c \
103 startone.c