blob: 1c5b03ad9ef18bda34713d6c81b59a8b2094194d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
# Copyright © 2004-2013 Roger Leigh <rleigh@debian.org>
#
# schroot is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# schroot is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
#
#####################################################################
if USE_UNIT_TESTS
noinst_PROGRAMS += \
test/sbuild/chroot/chroot \
test/sbuild/chroot/plain \
test/sbuild/chroot/custom \
test/sbuild/chroot/file \
test/sbuild/chroot/directory \
test/sbuild/chroot/block-device \
test/sbuild/chroot/loopback \
test/sbuild/chroot/lvm-snapshot \
test/sbuild/chroot/btrfs-snapshot \
test/sbuild/chroot/config \
test/sbuild/chroot/facet/userdata \
test/sbuild/environment \
test/sbuild/keyfile \
test/sbuild/lock \
test/sbuild/log \
test/sbuild/nostream \
test/sbuild/parse-value \
test/sbuild/regex \
test/sbuild/run-parts \
test/sbuild/util \
test/bin-common/option-action
if BUILD_PERSONALITY
noinst_PROGRAMS += \
test/sbuild/personality
personality_tests = test/sbuild/personality
endif
# sbuild-lock is excluded, because it is timing dependent and can fail
# randomly on slow or heavily-loaded systems.
TESTS = test/setup-test-data \
test/sbuild/chroot/chroot \
test/sbuild/chroot/plain \
test/sbuild/chroot/custom \
test/sbuild/chroot/file \
test/sbuild/chroot/directory \
test/sbuild/chroot/block-device \
test/sbuild/chroot/loopback \
test/sbuild/chroot/lvm-snapshot \
test/sbuild/chroot/btrfs-snapshot \
test/sbuild/chroot/config \
test/sbuild/chroot/facet/userdata \
test/sbuild/environment \
test/sbuild/keyfile \
test/sbuild/log \
test/sbuild/nostream \
test/sbuild/parse-value \
$(personality_tests) \
test/sbuild/run-parts \
test/sbuild/regex \
test/sbuild/util \
test/bin-common/option-action \
test/cleanup-test-data
endif
if BUILD_BLOCKDEV
test_sbuild_chroot_blockdev_sources = \
test/sbuild/chroot/block-device.cc
endif
if BUILD_LOOPBACK
test_sbuild_chroot_loopback_sources = \
test/sbuild/chroot/loopback.cc
endif
if BUILD_LVMSNAP
test_sbuild_chroot_lvmsnap_sources = \
test/sbuild/chroot/lvm-snapshot.cc
endif
if BUILD_BTRFSSNAP
test_sbuild_chroot_btrfssnap_sources = \
test/sbuild/chroot/btrfs-snapshot.cc
endif
test_sbuild_chroot_chroot_SOURCES = \
test/sbuild/chroot/chroot.cc \
test/sbuild/chroot/chroot.h
test_sbuild_chroot_chroot_LDADD = lib/test/libtest.la
test_sbuild_chroot_plain_SOURCES = \
test/sbuild/chroot/plain.cc \
test/sbuild/chroot/chroot.h
test_sbuild_chroot_plain_LDADD = lib/test/libtest.la
test_sbuild_chroot_custom_SOURCES = \
test/sbuild/chroot/custom.cc \
test/sbuild/chroot/chroot.h
test_sbuild_chroot_custom_LDADD = lib/test/libtest.la
test_sbuild_chroot_file_SOURCES = \
test/sbuild/chroot/file.cc \
test/sbuild/chroot/chroot.h
test_sbuild_chroot_file_LDADD = lib/test/libtest.la
test_sbuild_chroot_directory_SOURCES = \
test/sbuild/chroot/directory.cc \
test/sbuild/chroot/chroot.h
test_sbuild_chroot_directory_LDADD = lib/test/libtest.la
test_sbuild_chroot_block_device_SOURCES = \
$(test_sbuild_chroot_blockdev_sources) \
test/sbuild/chroot/chroot.h
test_sbuild_chroot_block_device_LDADD = lib/test/libtest.la
test_sbuild_chroot_lvm_snapshot_SOURCES = \
$(test_sbuild_chroot_lvmsnap_sources) \
test/sbuild/chroot/chroot.h
test_sbuild_chroot_lvm_snapshot_LDADD = lib/test/libtest.la
test_sbuild_chroot_btrfs_snapshot_SOURCES = \
$(test_sbuild_chroot_btrfssnap_sources) \
test/sbuild/chroot/chroot.h
test_sbuild_chroot_btrfs_snapshot_LDADD = lib/test/libtest.la
test_sbuild_chroot_loopback_SOURCES = \
$(test_sbuild_chroot_loopback_sources) \
test/sbuild/chroot/chroot.h
test_sbuild_chroot_loopback_LDADD = lib/test/libtest.la
test_sbuild_chroot_facet_userdata_SOURCES = \
test/sbuild/chroot/facet/userdata.cc \
test/sbuild/chroot/chroot.h
test_sbuild_chroot_facet_userdata_LDADD = lib/test/libtest.la
test_sbuild_chroot_config_SOURCES = test/sbuild/chroot/config.cc
test_sbuild_chroot_config_LDADD = lib/test/libtest.la
test_sbuild_environment_SOURCES = test/sbuild/environment.cc
test_sbuild_environment_LDADD = lib/test/libtest.la
test_sbuild_keyfile_SOURCES = test/sbuild/keyfile.cc
test_sbuild_keyfile_LDADD = lib/test/libtest.la
test_sbuild_lock_SOURCES = test/sbuild/lock.cc
test_sbuild_lock_LDADD = lib/test/libtest.la
test_sbuild_log_SOURCES = test/sbuild/log.cc
test_sbuild_log_LDADD = lib/test/libtest.la
test_sbuild_nostream_SOURCES = test/sbuild/nostream.cc
test_sbuild_nostream_LDADD = lib/test/libtest.la
test_sbuild_parse_value_SOURCES = test/sbuild/parse-value.cc
test_sbuild_parse_value_LDADD = lib/test/libtest.la
test_sbuild_personality_SOURCES = test/sbuild/personality.cc
test_sbuild_personality_LDADD = lib/test/libtest.la
test_sbuild_regex_SOURCES = test/sbuild/regex.cc
test_sbuild_regex_LDADD = lib/test/libtest.la
test_sbuild_run_parts_SOURCES = test/sbuild/run-parts.cc
test_sbuild_run_parts_LDADD = lib/test/libtest.la
test_sbuild_util_SOURCES = test/sbuild/util.cc
test_sbuild_util_LDADD = lib/test/libtest.la
test_bin_common_option_action_SOURCES = test/bin-common/option-action.cc
test_bin_common_option_action_LDADD = $(top_builddir)/lib/bin-common/libbin-common.la lib/test/libtest.la
EXTRA_DIST += \
test/keyfile.ex1 \
test/config.ex1 \
test/config.ex2/file \
test/config.ex2/empty \
test/config.ex2/experimental \
test/config.ex2/sarge \
test/config.ex2/sid \
test/config.ex2/woody \
test/config-directory-deprecated.ex \
test/config-directory-fail.ex \
test/config-directory-valid.ex \
test/run-parts.ex1/10test1 \
test/run-parts.ex1/20test2 \
test/run-parts.ex1/30test3 \
test/run-parts.ex2 \
test/run-parts.ex3/50invalid \
test/setup-test-data \
test/cleanup-test-data
clean-local::
$(srcdir)/test/cleanup-test-data
|