tests: Remove file and Makefile contents that are no longer necessary.
[pspp-builds.git] / tests / automake.mk
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3 check_PROGRAMS += \
4         tests/data/datasheet-test \
5         tests/data/inexactify \
6         tests/libpspp/abt-test \
7         tests/libpspp/bt-test \
8         tests/libpspp/heap-test \
9         tests/libpspp/hmap-test \
10         tests/libpspp/hmapx-test \
11         tests/libpspp/i18n-test \
12         tests/libpspp/ll-test \
13         tests/libpspp/llx-test \
14         tests/libpspp/range-map-test \
15         tests/libpspp/range-set-test \
16         tests/libpspp/sparse-array-test \
17         tests/libpspp/sparse-xarray-test \
18         tests/libpspp/str-test \
19         tests/libpspp/string-map-test \
20         tests/libpspp/stringi-map-test \
21         tests/libpspp/string-set-test \
22         tests/libpspp/stringi-set-test \
23         tests/libpspp/tower-test \
24         tests/output/render-test
25
26 tests_data_datasheet_test_SOURCES = \
27         tests/data/datasheet-test.c
28 tests_data_datasheet_test_LDADD = src/libpspp-core.la $(LIBINTL) 
29 tests_data_datasheet_test_CFLAGS = $(AM_CFLAGS)
30
31 tests_libpspp_ll_test_SOURCES = \
32         src/libpspp/ll.c \
33         tests/libpspp/ll-test.c
34 tests_libpspp_ll_test_LDADD = gl/libgl.la $(LIBINTL)
35 tests_libpspp_ll_test_CFLAGS = $(AM_CFLAGS)
36
37 tests_libpspp_llx_test_SOURCES = \
38         src/libpspp/ll.c \
39         src/libpspp/llx.c \
40         tests/libpspp/llx-test.c
41 tests_libpspp_llx_test_LDADD = gl/libgl.la $(LIBINTL)
42 tests_libpspp_llx_test_CFLAGS = $(AM_CFLAGS)
43
44 tests_libpspp_heap_test_SOURCES = \
45         src/libpspp/heap.c \
46         src/libpspp/pool.c \
47         src/libpspp/temp-file.c \
48         tests/libpspp/heap-test.c
49 tests_libpspp_heap_test_LDADD = gl/libgl.la $(LIBINTL) 
50 tests_libpspp_heap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
51
52 tests_libpspp_hmap_test_SOURCES = \
53         src/libpspp/hmap.c \
54         tests/libpspp/hmap-test.c
55 tests_libpspp_hmap_test_LDADD = gl/libgl.la $(LIBINTL)
56 tests_libpspp_hmap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
57
58 tests_libpspp_hmapx_test_SOURCES = \
59         src/libpspp/hmap.c \
60         src/libpspp/hmapx.c \
61         tests/libpspp/hmapx-test.c
62 tests_libpspp_hmapx_test_LDADD = gl/libgl.la $(LIBINTL)
63 tests_libpspp_hmapx_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
64
65 tests_libpspp_i18n_test_SOURCES = tests/libpspp/i18n-test.c
66 tests_libpspp_i18n_test_LDADD = src/libpspp/libpspp.la gl/libgl.la $(LIBINTL) 
67
68 tests_libpspp_abt_test_SOURCES = \
69         src/libpspp/abt.c \
70         tests/libpspp/abt-test.c
71 tests_libpspp_abt_test_LDADD = gl/libgl.la $(LIBINTL)
72 tests_libpspp_abt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
73
74 tests_libpspp_bt_test_SOURCES = \
75         src/libpspp/bt.c \
76         tests/libpspp/bt-test.c
77 tests_libpspp_bt_test_LDADD = gl/libgl.la
78 tests_libpspp_bt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
79
80 tests_libpspp_range_map_test_SOURCES = \
81         src/libpspp/bt.c \
82         src/libpspp/range-map.c \
83         tests/libpspp/range-map-test.c
84 tests_libpspp_range_map_test_LDADD = gl/libgl.la $(LIBINTL)
85 tests_libpspp_range_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
86
87 tests_libpspp_range_set_test_SOURCES = \
88         src/libpspp/bt.c \
89         src/libpspp/pool.c \
90         src/libpspp/range-set.c \
91         src/libpspp/temp-file.c \
92         tests/libpspp/range-set-test.c
93 tests_libpspp_range_set_test_LDADD = gl/libgl.la $(LIBINTL) 
94 tests_libpspp_range_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
95
96 tests_libpspp_str_test_SOURCES = \
97         tests/libpspp/str-test.c
98 tests_libpspp_str_test_LDADD = src/libpspp/libpspp.la gl/libgl.la $(LIBINTL) 
99
100 tests_libpspp_string_map_test_SOURCES = \
101         src/libpspp/hash-functions.c \
102         src/libpspp/hmap.c \
103         src/libpspp/string-map.c \
104         src/libpspp/string-set.c \
105         tests/libpspp/string-map-test.c
106 tests_libpspp_string_map_test_LDADD = gl/libgl.la $(LIBINTL)
107 tests_libpspp_string_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
108
109 tests_libpspp_stringi_map_test_SOURCES = \
110         src/libpspp/hash-functions.c \
111         src/libpspp/hmap.c \
112         src/libpspp/pool.c \
113         src/libpspp/str.c \
114         src/libpspp/stringi-map.c \
115         src/libpspp/string-set.c \
116         src/libpspp/stringi-set.c \
117         src/libpspp/temp-file.c \
118         tests/libpspp/stringi-map-test.c
119 tests_libpspp_stringi_map_test_LDADD = gl/libgl.la $(LIBINTL)
120 tests_libpspp_stringi_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
121
122 tests_libpspp_string_set_test_SOURCES = \
123         src/libpspp/hash-functions.c \
124         src/libpspp/hmap.c \
125         src/libpspp/string-set.c \
126         tests/libpspp/string-set-test.c
127 tests_libpspp_string_set_test_LDADD = gl/libgl.la $(LIBINTL)
128 tests_libpspp_string_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
129
130 tests_libpspp_stringi_set_test_SOURCES = \
131         src/libpspp/hash-functions.c \
132         src/libpspp/hmap.c \
133         src/libpspp/pool.c \
134         src/libpspp/str.c \
135         src/libpspp/stringi-set.c \
136         src/libpspp/temp-file.c \
137         tests/libpspp/stringi-set-test.c
138 tests_libpspp_stringi_set_test_LDADD = gl/libgl.la $(LIBINTL)
139 tests_libpspp_stringi_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
140
141 tests_libpspp_tower_test_SOURCES = \
142         src/libpspp/abt.c \
143         src/libpspp/pool.c \
144         src/libpspp/temp-file.c \
145         src/libpspp/tower.c \
146         tests/libpspp/tower-test.c
147 tests_libpspp_tower_test_LDADD = gl/libgl.la $(LIBINTL) 
148 tests_libpspp_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
149
150 tests_libpspp_sparse_array_test_SOURCES = \
151         src/libpspp/sparse-array.c \
152         src/libpspp/pool.c \
153         tests/libpspp/sparse-array-test.c \
154         src/libpspp/temp-file.c
155 tests_libpspp_sparse_array_test_LDADD = gl/libgl.la $(LIBINTL) 
156 tests_libpspp_sparse_array_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
157
158 tests_libpspp_sparse_xarray_test_SOURCES = \
159         src/libpspp/argv-parser.c \
160         src/libpspp/bt.c \
161         src/libpspp/deque.c \
162         src/libpspp/ext-array.c \
163         src/libpspp/model-checker.c \
164         src/libpspp/range-set.c \
165         src/libpspp/sparse-array.c \
166         src/libpspp/sparse-xarray.c \
167         src/libpspp/str.c \
168         src/libpspp/pool.c \
169         src/libpspp/temp-file.c \
170         tests/libpspp/sparse-xarray-test.c
171 tests_libpspp_sparse_xarray_test_LDADD = gl/libgl.la $(LIBINTL) 
172 tests_libpspp_sparse_xarray_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
173
174 tests_data_inexactify_SOURCES = tests/data/inexactify.c
175
176 noinst_PROGRAMS += tests/dissect-sysfile
177 tests_dissect_sysfile_SOURCES = \
178         src/libpspp/integer-format.c \
179         src/libpspp/float-format.c \
180         tests/dissect-sysfile.c
181 tests_dissect_sysfile_LDADD = gl/libgl.la $(LIBINTL) 
182 tests_dissect_sysfile_CPPFLAGS = $(AM_CPPFLAGS) -DINSTALLDIR=\"$(bindir)\"
183
184 check_PROGRAMS += tests/output/render-test
185 tests_output_render_test_SOURCES = tests/output/render-test.c
186 tests_output_render_test_LDADD = \
187         src/libpspp.la \
188         src/libpspp-core.la \
189         $(CAIRO_LIBS) \
190         $(LIBICONV) \
191         $(LIBINTL)
192
193 EXTRA_DIST += \
194         tests/coverage.sh \
195         tests/data/bcd-in.expected.cmp.gz \
196         tests/data/binhex-in.expected.cmp.gz \
197         tests/data/binhex-out.expected.gz \
198         tests/data/legacy-in.expected.cmp.gz \
199         tests/data/num-in.expected.gz \
200         tests/data/num-out-cmp.pl \
201         tests/data/num-out.expected.cmp.gz \
202         tests/data/v13.sav \
203         tests/data/v14.sav \
204         tests/language/data-io/Book1.gnm.unzipped
205
206 CLEANFILES += *.save pspp.* foo*
207
208 EXTRA_DIST += tests/OChangeLog
209 \f
210 # Autotest testsuite
211
212 EXTRA_DIST += \
213         tests/testsuite.in \
214         $(TESTSUITE_AT) \
215         $(TESTSUITE) \
216         tests/atlocal.in \
217         $(srcdir)/package.m4 \
218         $(TESTSUITE)
219
220 TESTSUITE_AT = \
221         tests/data/calendar.at \
222         tests/data/data-in.at \
223         tests/data/data-out.at \
224         tests/data/datasheet-test.at \
225         tests/data/format-guesser.at \
226         tests/data/por-file.at \
227         tests/data/sys-file.at \
228         tests/language/command.at \
229         tests/language/control/do-if.at \
230         tests/language/control/do-repeat.at \
231         tests/language/control/loop.at \
232         tests/language/control/temporary.at \
233         tests/language/data-io/add-files.at \
234         tests/language/data-io/data-list.at \
235         tests/language/data-io/data-reader.at \
236         tests/language/data-io/file-handle.at \
237         tests/language/data-io/get-data-gnm.at \
238         tests/language/data-io/get-data-psql.at \
239         tests/language/data-io/get-data-txt.at \
240         tests/language/data-io/get.at \
241         tests/language/data-io/inpt-pgm.at \
242         tests/language/data-io/list.at \
243         tests/language/data-io/match-files.at \
244         tests/language/data-io/print.at \
245         tests/language/data-io/save.at \
246         tests/language/data-io/save-translate.at \
247         tests/language/data-io/update.at \
248         tests/language/dictionary/attributes.at \
249         tests/language/dictionary/missing-values.at \
250         tests/language/dictionary/mrsets.at \
251         tests/language/dictionary/rename-variables.at \
252         tests/language/dictionary/split-file.at \
253         tests/language/dictionary/sys-file-info.at \
254         tests/language/dictionary/value-labels.at \
255         tests/language/dictionary/variable-display.at \
256         tests/language/dictionary/vector.at \
257         tests/language/dictionary/weight.at \
258         tests/language/expressions/evaluate.at \
259         tests/language/expressions/parse.at \
260         tests/language/lexer/lexer.at \
261         tests/language/lexer/q2c.at \
262         tests/language/lexer/variable-parser.at \
263         tests/language/stats/aggregate.at \
264         tests/language/stats/autorecode.at \
265         tests/language/stats/correlations.at \
266         tests/language/stats/crosstabs.at \
267         tests/language/stats/descriptives.at \
268         tests/language/stats/examine.at \
269         tests/language/stats/factor.at \
270         tests/language/stats/flip.at \
271         tests/language/stats/frequencies.at \
272         tests/language/stats/npar.at \
273         tests/language/stats/oneway.at \
274         tests/language/stats/rank.at \
275         tests/language/stats/regression.at \
276         tests/language/stats/reliability.at \
277         tests/language/stats/roc.at \
278         tests/language/stats/sort-cases.at \
279         tests/language/stats/t-test.at \
280         tests/language/utilities/date.at \
281         tests/language/utilities/insert.at \
282         tests/language/utilities/permissions.at \
283         tests/language/utilities/set.at \
284         tests/language/utilities/title.at \
285         tests/language/xforms/compute.at \
286         tests/language/xforms/count.at \
287         tests/language/xforms/recode.at \
288         tests/language/xforms/sample.at \
289         tests/language/xforms/select-if.at \
290         tests/libpspp/abt.at \
291         tests/libpspp/bt.at \
292         tests/libpspp/float-format.at \
293         tests/libpspp/heap.at \
294         tests/libpspp/hmap.at \
295         tests/libpspp/hmapx.at \
296         tests/libpspp/i18n.at \
297         tests/libpspp/ll.at \
298         tests/libpspp/llx.at \
299         tests/libpspp/range-map.at \
300         tests/libpspp/range-set.at \
301         tests/libpspp/sparse-array.at \
302         tests/libpspp/sparse-xarray-test.at \
303         tests/libpspp/str.at \
304         tests/libpspp/string-map.at \
305         tests/libpspp/stringi-map.at \
306         tests/libpspp/string-set.at \
307         tests/libpspp/stringi-set.at \
308         tests/libpspp/tower.at \
309         tests/math/moments.at \
310         tests/math/randist.at \
311         tests/output/charts.at \
312         tests/output/output.at \
313         tests/output/paper-size.at \
314         tests/output/render.at \
315         tests/ui/terminal/main.at \
316         tests/perl-module.at
317
318 TESTSUITE = $(srcdir)/tests/testsuite
319 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
320
321 $(srcdir)/tests/testsuite.at: tests/testsuite.in tests/automake.mk
322         cp $< $@
323         for t in $(TESTSUITE_AT); do \
324           echo "m4_include([$$t])" >> $@ ;\
325         done
326 EXTRA_DIST += tests/testsuite.at
327
328 CHECK_LOCAL += tests_check
329 tests_check: tests/atconfig tests/atlocal $(TESTSUITE) $(check_PROGRAMS)
330         $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=tests/data:tests/libpspp:tests/output:src/ui/terminal $(TESTSUITEFLAGS)
331
332 CLEAN_LOCAL += tests_clean
333 tests_clean:
334         test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
335
336 AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
337 AUTOTEST = $(AUTOM4TE) --language=autotest
338 $(TESTSUITE): package.m4 $(srcdir)/tests/testsuite.at $(TESTSUITE_AT) 
339         $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
340         mv $@.tmp $@
341
342 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
343 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
344         :;{ \
345           echo '# Signature of the current package.' && \
346           echo 'm4_define([AT_PACKAGE_NAME],      [$(PACKAGE_NAME)])' && \
347           echo 'm4_define([AT_PACKAGE_TARNAME],   [$(PACKAGE_TARNAME)])' && \
348           echo 'm4_define([AT_PACKAGE_VERSION],   [$(PACKAGE_VERSION)])' && \
349           echo 'm4_define([AT_PACKAGE_STRING],    [$(PACKAGE_STRING)])' && \
350           echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' && \
351           echo 'm4_define([AT_PACKAGE_URL],       [$(PACKAGE_URL)])'; \
352         } >'$(srcdir)/package.m4'