Updated ca and es translations from translationproject.org
[pspp] / 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/sack \
6         tests/data/inexactify \
7         tests/language/lexer/command-name-test \
8         tests/language/lexer/scan-test \
9         tests/language/lexer/segment-test \
10         tests/libpspp/abt-test \
11         tests/libpspp/bt-test \
12         tests/libpspp/encoding-guesser-test \
13         tests/libpspp/heap-test \
14         tests/libpspp/hmap-test \
15         tests/libpspp/hmapx-test \
16         tests/libpspp/i18n-test \
17         tests/libpspp/line-reader-test \
18         tests/libpspp/ll-test \
19         tests/libpspp/llx-test \
20         tests/libpspp/range-map-test \
21         tests/libpspp/range-set-test \
22         tests/libpspp/range-tower-test \
23         tests/libpspp/sparse-array-test \
24         tests/libpspp/sparse-xarray-test \
25         tests/libpspp/str-test \
26         tests/libpspp/string-map-test \
27         tests/libpspp/stringi-map-test \
28         tests/libpspp/string-set-test \
29         tests/libpspp/stringi-set-test \
30         tests/libpspp/tower-test \
31         tests/libpspp/u8-istream-test \
32         tests/libpspp/zip-test \
33         tests/output/render-test
34
35 check-programs: $(check_PROGRAMS)
36
37 tests_data_datasheet_test_SOURCES = \
38         tests/data/datasheet-test.c
39 tests_data_datasheet_test_LDADD = src/libpspp-core.la
40 tests_data_datasheet_test_CFLAGS = $(AM_CFLAGS)
41
42 tests_data_sack_SOURCES = \
43         tests/data/sack.c
44 tests_data_sack_LDADD = src/libpspp-core.la 
45 tests_data_sack_CFLAGS = $(AM_CFLAGS)
46
47 tests_libpspp_line_reader_test_SOURCES = tests/libpspp/line-reader-test.c
48 tests_libpspp_line_reader_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
49
50 tests_libpspp_ll_test_SOURCES = \
51         src/libpspp/ll.c \
52         tests/libpspp/ll-test.c
53 tests_libpspp_ll_test_CFLAGS = $(AM_CFLAGS)
54
55 tests_libpspp_llx_test_SOURCES = \
56         src/libpspp/ll.c \
57         src/libpspp/llx.c \
58         tests/libpspp/llx-test.c
59 tests_libpspp_llx_test_CFLAGS = $(AM_CFLAGS)
60
61 tests_libpspp_encoding_guesser_test_SOURCES = \
62         tests/libpspp/encoding-guesser-test.c
63 tests_libpspp_encoding_guesser_test_LDADD = \
64         src/libpspp/liblibpspp.la \
65         gl/libgl.la
66
67 tests_libpspp_heap_test_SOURCES = \
68         tests/libpspp/heap-test.c
69 tests_libpspp_heap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
70 tests_libpspp_heap_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
71
72 tests_libpspp_hmap_test_SOURCES = \
73         src/libpspp/hmap.c \
74         tests/libpspp/hmap-test.c
75 tests_libpspp_hmap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
76
77 tests_libpspp_hmapx_test_SOURCES = \
78         src/libpspp/hmap.c \
79         src/libpspp/hmapx.c \
80         tests/libpspp/hmapx-test.c
81 tests_libpspp_hmapx_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
82
83 tests_libpspp_i18n_test_SOURCES = tests/libpspp/i18n-test.c
84 tests_libpspp_i18n_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la 
85
86 tests_libpspp_abt_test_SOURCES = \
87         src/libpspp/abt.c \
88         tests/libpspp/abt-test.c
89 tests_libpspp_abt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
90
91 tests_libpspp_bt_test_SOURCES = \
92         src/libpspp/bt.c \
93         tests/libpspp/bt-test.c
94 tests_libpspp_bt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
95
96 tests_libpspp_range_map_test_SOURCES = \
97         src/libpspp/bt.c \
98         src/libpspp/range-map.c \
99         tests/libpspp/range-map-test.c
100 tests_libpspp_range_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
101
102 tests_libpspp_range_set_test_SOURCES = \
103         tests/libpspp/range-set-test.c
104 tests_libpspp_range_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
105 tests_libpspp_range_set_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
106
107 tests_libpspp_range_tower_test_SOURCES = \
108         tests/libpspp/range-tower-test.c
109 tests_libpspp_range_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
110 tests_libpspp_range_tower_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
111
112 tests_libpspp_str_test_SOURCES = \
113         tests/libpspp/str-test.c
114 tests_libpspp_str_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la 
115
116 tests_libpspp_string_map_test_SOURCES = \
117         tests/libpspp/string-map-test.c
118 tests_libpspp_string_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
119 tests_libpspp_string_map_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
120
121 tests_libpspp_stringi_map_test_SOURCES = \
122         tests/libpspp/stringi-map-test.c
123 tests_libpspp_stringi_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
124 tests_libpspp_stringi_map_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
125
126 tests_libpspp_string_set_test_SOURCES = \
127         src/libpspp/hash-functions.c \
128         src/libpspp/hmap.c \
129         src/libpspp/string-set.c \
130         tests/libpspp/string-set-test.c
131 tests_libpspp_string_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
132
133 tests_libpspp_stringi_set_test_SOURCES = \
134         tests/libpspp/stringi-set-test.c
135 tests_libpspp_stringi_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
136 tests_libpspp_stringi_set_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
137
138 tests_libpspp_tower_test_SOURCES = \
139         tests/libpspp/tower-test.c
140 tests_libpspp_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
141 tests_libpspp_tower_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
142
143 tests_libpspp_u8_istream_test_SOURCES = tests/libpspp/u8-istream-test.c
144 tests_libpspp_u8_istream_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
145
146 tests_libpspp_sparse_array_test_SOURCES = \
147         tests/libpspp/sparse-array-test.c 
148 tests_libpspp_sparse_array_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
149 tests_libpspp_sparse_array_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
150
151 tests_libpspp_sparse_xarray_test_SOURCES = \
152         tests/libpspp/sparse-xarray-test.c
153 tests_libpspp_sparse_xarray_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
154 tests_libpspp_sparse_xarray_test_LDADD = src/libpspp/liblibpspp.la \
155         src/libpspp-core.la \
156         gl/libgl.la 
157
158 tests_data_inexactify_SOURCES = tests/data/inexactify.c
159
160 check_PROGRAMS += tests/language/lexer/command-name-test
161 tests_language_lexer_command_name_test_SOURCES = \
162         src/data/identifier.c \
163         src/language/lexer/command-name.c \
164         tests/language/lexer/command-name-test.c
165 tests_language_lexer_command_name_test_LDADD = \
166         src/libpspp/liblibpspp.la \
167         gl/libgl.la 
168 tests_language_lexer_command_name_test_CFLAGS = $(AM_CFLAGS)
169
170 check_PROGRAMS += tests/language/lexer/scan-test
171 tests_language_lexer_scan_test_SOURCES = \
172         src/data/identifier.c \
173         src/language/lexer/command-name.c \
174         src/language/lexer/scan.c \
175         src/language/lexer/segment.c \
176         src/language/lexer/token.c \
177         tests/language/lexer/scan-test.c
178 tests_language_lexer_scan_test_CFLAGS = $(AM_CFLAGS)
179 tests_language_lexer_scan_test_LDADD = \
180         src/libpspp/liblibpspp.la \
181         gl/libgl.la 
182
183 check_PROGRAMS += tests/language/lexer/segment-test
184 tests_language_lexer_segment_test_SOURCES = \
185         src/data/identifier.c \
186         src/language/lexer/command-name.c \
187         src/language/lexer/segment.c \
188         tests/language/lexer/segment-test.c
189 tests_language_lexer_segment_test_CFLAGS = $(AM_CFLAGS)
190 tests_language_lexer_segment_test_LDADD = \
191         src/libpspp/liblibpspp.la \
192         gl/libgl.la 
193
194 check_PROGRAMS += tests/libpspp/zip-test
195 tests_libpspp_zip_test_SOURCES = \
196         tests/libpspp/zip-test.c
197
198 tests_libpspp_zip_test_CFLAGS = $(AM_CFLAGS)
199 tests_libpspp_zip_test_LDADD = \
200         src/libpspp/liblibpspp.la \
201         src/libpspp-core.la \
202         gl/libgl.la 
203
204 check_PROGRAMS += tests/output/render-test
205 tests_output_render_test_SOURCES = tests/output/render-test.c
206 tests_output_render_test_LDADD = \
207         src/libpspp.la \
208         src/libpspp-core.la \
209         $(CAIRO_LIBS)
210
211 EXTRA_DIST += \
212         tests/coverage.sh \
213         tests/data/bcd-in.expected.cmp.gz \
214         tests/data/binhex-in.expected.cmp.gz \
215         tests/data/binhex-out.expected.gz \
216         tests/data/legacy-in.expected.cmp.gz \
217         tests/data/num-in.expected.gz \
218         tests/data/num-out-cmp.pl \
219         tests/data/num-out.expected.cmp.gz \
220         tests/data/v13.sav \
221         tests/data/v14.sav \
222         tests/language/data-io/Book1.gnm.unzipped \
223         tests/language/data-io/test.ods
224
225 CLEANFILES += *.save pspp.* foo*
226
227 EXTRA_DIST += tests/OChangeLog
228 \f
229 # Autotest testsuite
230
231 EXTRA_DIST += \
232         tests/testsuite.in \
233         $(TESTSUITE_AT) \
234         $(TESTSUITE) \
235         tests/atlocal.in \
236         $(srcdir)/package.m4 \
237         $(TESTSUITE)
238
239 TESTSUITE_AT = \
240         tests/data/calendar.at \
241         tests/data/data-in.at \
242         tests/data/data-out.at \
243         tests/data/datasheet-test.at \
244         tests/data/dictionary.at \
245         tests/data/format-guesser.at \
246         tests/data/por-file.at \
247         tests/data/sys-file-reader.at \
248         tests/data/sys-file.at \
249         tests/language/command.at \
250         tests/language/control/do-if.at \
251         tests/language/control/do-repeat.at \
252         tests/language/control/loop.at \
253         tests/language/control/temporary.at \
254         tests/language/data-io/add-files.at \
255         tests/language/data-io/data-list.at \
256         tests/language/data-io/data-reader.at \
257         tests/language/data-io/dataset.at \
258         tests/language/data-io/file-handle.at \
259         tests/language/data-io/get-data-spreadsheet.at \
260         tests/language/data-io/get-data-psql.at \
261         tests/language/data-io/get-data-txt.at \
262         tests/language/data-io/get.at \
263         tests/language/data-io/inpt-pgm.at \
264         tests/language/data-io/list.at \
265         tests/language/data-io/match-files.at \
266         tests/language/data-io/print-space.at \
267         tests/language/data-io/print.at \
268         tests/language/data-io/save.at \
269         tests/language/data-io/save-translate.at \
270         tests/language/data-io/update.at \
271         tests/language/dictionary/attributes.at \
272         tests/language/dictionary/delete-variables.at \
273         tests/language/dictionary/formats.at \
274         tests/language/dictionary/missing-values.at \
275         tests/language/dictionary/mrsets.at \
276         tests/language/dictionary/rename-variables.at \
277         tests/language/dictionary/split-file.at \
278         tests/language/dictionary/sys-file-info.at \
279         tests/language/dictionary/value-labels.at \
280         tests/language/dictionary/variable-display.at \
281         tests/language/dictionary/vector.at \
282         tests/language/dictionary/weight.at \
283         tests/language/expressions/evaluate.at \
284         tests/language/expressions/parse.at \
285         tests/language/lexer/command-name.at \
286         tests/language/lexer/lexer.at \
287         tests/language/lexer/q2c.at \
288         tests/language/lexer/scan.at \
289         tests/language/lexer/segment.at \
290         tests/language/lexer/variable-parser.at \
291         tests/language/stats/aggregate.at \
292         tests/language/stats/autorecode.at \
293         tests/language/stats/correlations.at \
294         tests/language/stats/crosstabs.at \
295         tests/language/stats/descriptives.at \
296         tests/language/stats/examine.at \
297         tests/language/stats/factor.at \
298         tests/language/stats/flip.at \
299         tests/language/stats/frequencies.at \
300         tests/language/stats/glm.at \
301         tests/language/stats/logistic.at \
302         tests/language/stats/means.at \
303         tests/language/stats/npar.at \
304         tests/language/stats/oneway.at \
305         tests/language/stats/quick-cluster.at \
306         tests/language/stats/rank.at \
307         tests/language/stats/regression.at \
308         tests/language/stats/reliability.at \
309         tests/language/stats/roc.at \
310         tests/language/stats/sort-cases.at \
311         tests/language/stats/t-test.at \
312         tests/language/utilities/cache.at \
313         tests/language/utilities/cd.at \
314         tests/language/utilities/date.at \
315         tests/language/utilities/insert.at \
316         tests/language/utilities/permissions.at \
317         tests/language/utilities/set.at \
318         tests/language/utilities/show.at \
319         tests/language/utilities/title.at \
320         tests/language/xforms/compute.at \
321         tests/language/xforms/count.at \
322         tests/language/xforms/recode.at \
323         tests/language/xforms/sample.at \
324         tests/language/xforms/select-if.at \
325         tests/libpspp/abt.at \
326         tests/libpspp/bt.at \
327         tests/libpspp/encoding-guesser.at \
328         tests/libpspp/float-format.at \
329         tests/libpspp/heap.at \
330         tests/libpspp/hmap.at \
331         tests/libpspp/hmapx.at \
332         tests/libpspp/i18n.at \
333         tests/libpspp/line-reader.at \
334         tests/libpspp/ll.at \
335         tests/libpspp/llx.at \
336         tests/libpspp/range-map.at \
337         tests/libpspp/range-set.at \
338         tests/libpspp/range-tower.at \
339         tests/libpspp/sparse-array.at \
340         tests/libpspp/sparse-xarray-test.at \
341         tests/libpspp/str.at \
342         tests/libpspp/string-map.at \
343         tests/libpspp/stringi-map.at \
344         tests/libpspp/string-set.at \
345         tests/libpspp/stringi-set.at \
346         tests/libpspp/tower.at \
347         tests/libpspp/u8-istream.at \
348         tests/libpspp/zip.at \
349         tests/math/moments.at \
350         tests/math/randist.at \
351         tests/output/ascii.at \
352         tests/output/charts.at \
353         tests/output/output.at \
354         tests/output/paper-size.at \
355         tests/output/render.at \
356         tests/ui/terminal/main.at \
357         tests/perl-module.at
358
359 TESTSUITE = $(srcdir)/tests/testsuite
360 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
361 AUTOTEST_PATH = tests/data:tests/language/lexer:tests/libpspp:tests/output:src/ui/terminal
362
363 $(srcdir)/tests/testsuite.at: tests/testsuite.in tests/automake.mk
364         cp $< $@
365         for t in $(TESTSUITE_AT); do \
366           echo "m4_include([$$t])" >> $@ ;\
367         done
368 EXTRA_DIST += tests/testsuite.at
369
370 CHECK_LOCAL += tests_check
371 tests_check: tests/atconfig tests/atlocal $(TESTSUITE) $(check_PROGRAMS)
372         XTERM_LOCALE='' $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) $(TESTSUITEFLAGS)
373
374 CLEAN_LOCAL += tests_clean
375 tests_clean:
376         test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
377
378 AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
379 AUTOTEST = $(AUTOM4TE) --language=autotest
380 $(TESTSUITE): package.m4 $(srcdir)/tests/testsuite.at $(TESTSUITE_AT) 
381         $(AUTOTEST) -I '$(srcdir)' $@.at | sed 's/@<00A0>@/ /g' > $@.tmp
382         mv $@.tmp $@
383
384 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
385 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
386         :;{ \
387           echo '# Signature of the current package.' && \
388           echo 'm4_define([AT_PACKAGE_NAME],      [$(PACKAGE_NAME)])' && \
389           echo 'm4_define([AT_PACKAGE_TARNAME],   [$(PACKAGE_TARNAME)])' && \
390           echo 'm4_define([AT_PACKAGE_VERSION],   [$(PACKAGE_VERSION)])' && \
391           echo 'm4_define([AT_PACKAGE_STRING],    [$(PACKAGE_STRING)])' && \
392           echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' && \
393           echo 'm4_define([AT_PACKAGE_URL],       [$(PACKAGE_URL)])'; \
394         } >'$(srcdir)/package.m4'
395 \f
396 # valgrind support for Autotest testsuite
397
398 valgrind_wrappers = \
399         tests/valgrind/datasheet-test \
400         tests/valgrind/command-name-test \
401         tests/valgrind/scan-test \
402         tests/valgrind/segment-test \
403         tests/valgrind/abt-test \
404         tests/valgrind/bt-test \
405         tests/valgrind/encoding-guesser-test \
406         tests/valgrind/heap-test \
407         tests/valgrind/hmap-test \
408         tests/valgrind/hmapx-test \
409         tests/valgrind/i18n-test \
410         tests/valgrind/ll-test \
411         tests/valgrind/llx-test \
412         tests/valgrind/range-map-test \
413         tests/valgrind/range-set-test \
414         tests/valgrind/range-tower-test \
415         tests/valgrind/sparse-array-test \
416         tests/valgrind/sparse-xarray-test \
417         tests/valgrind/str-test \
418         tests/valgrind/string-map-test \
419         tests/valgrind/stringi-map-test \
420         tests/valgrind/string-set-test \
421         tests/valgrind/stringi-set-test \
422         tests/valgrind/tower-test \
423         tests/valgrind/u8-istream-test \
424         tests/valgrind/render-test \
425         tests/valgrind/pspp
426
427 $(valgrind_wrappers): tests/valgrind-wrapper.in
428         @$(MKDIR_P) tests/valgrind
429         sed -e 's,[@]wrap_program[@],$@,' \
430                 $(top_srcdir)/tests/valgrind-wrapper.in > $@.tmp
431         chmod +x $@.tmp
432         mv $@.tmp $@
433 CLEANFILES += $(valgrind_wrappers)
434 EXTRA_DIST += tests/valgrind-wrapper.in
435
436 VALGRIND = $(SHELL) $(abs_top_builddir)/libtool --mode=execute valgrind --log-file=valgrind.%p --leak-check=full --num-callers=20
437 check-valgrind: all tests/atconfig tests/atlocal $(TESTSUITE) $(valgrind_wrappers)
438         XTERM_LOCALE='' $(SHELL) '$(TESTSUITE)' -C tests VALGRIND='$(VALGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS)
439         @echo
440         @echo '--------------------------------'
441         @echo 'Valgrind output is in:'
442         @echo 'tests/testsuite.dir/*/valgrind.*'
443         @echo '--------------------------------'