1 ## Process this file with automake to produce Makefile.in -*- makefile -*-
4 tests/data/datasheet-test \
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/ll-test \
18 tests/libpspp/llx-test \
19 tests/libpspp/range-map-test \
20 tests/libpspp/range-set-test \
21 tests/libpspp/sparse-array-test \
22 tests/libpspp/sparse-xarray-test \
23 tests/libpspp/str-test \
24 tests/libpspp/string-map-test \
25 tests/libpspp/stringi-map-test \
26 tests/libpspp/string-set-test \
27 tests/libpspp/stringi-set-test \
28 tests/libpspp/tower-test \
29 tests/libpspp/u8-istream-test \
30 tests/output/render-test
32 check-programs: $(check_PROGRAMS)
34 tests_data_datasheet_test_SOURCES = \
35 tests/data/datasheet-test.c
36 tests_data_datasheet_test_LDADD = src/libpspp-core.la $(LIBINTL)
37 tests_data_datasheet_test_CFLAGS = $(AM_CFLAGS)
39 tests_data_sack_SOURCES = \
41 tests_data_sack_LDADD = src/libpspp-core.la $(LIBINTL)
42 tests_data_sack_CFLAGS = $(AM_CFLAGS)
44 tests_libpspp_ll_test_SOURCES = \
46 tests/libpspp/ll-test.c
47 tests_libpspp_ll_test_LDADD = gl/libgl.la $(LIBINTL)
48 tests_libpspp_ll_test_CFLAGS = $(AM_CFLAGS)
50 tests_libpspp_llx_test_SOURCES = \
53 tests/libpspp/llx-test.c
54 tests_libpspp_llx_test_LDADD = gl/libgl.la $(LIBINTL)
55 tests_libpspp_llx_test_CFLAGS = $(AM_CFLAGS)
57 tests_libpspp_encoding_guesser_test_SOURCES = \
58 tests/libpspp/encoding-guesser-test.c
59 tests_libpspp_encoding_guesser_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
61 tests_libpspp_heap_test_SOURCES = \
64 src/libpspp/temp-file.c \
65 tests/libpspp/heap-test.c
66 tests_libpspp_heap_test_LDADD = gl/libgl.la $(LIBINTL)
67 tests_libpspp_heap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
69 tests_libpspp_hmap_test_SOURCES = \
71 tests/libpspp/hmap-test.c
72 tests_libpspp_hmap_test_LDADD = gl/libgl.la $(LIBINTL)
73 tests_libpspp_hmap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
75 tests_libpspp_hmapx_test_SOURCES = \
78 tests/libpspp/hmapx-test.c
79 tests_libpspp_hmapx_test_LDADD = gl/libgl.la $(LIBINTL)
80 tests_libpspp_hmapx_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
82 tests_libpspp_i18n_test_SOURCES = tests/libpspp/i18n-test.c
83 tests_libpspp_i18n_test_LDADD = src/libpspp/libpspp.la gl/libgl.la $(LIBINTL)
85 tests_libpspp_abt_test_SOURCES = \
87 tests/libpspp/abt-test.c
88 tests_libpspp_abt_test_LDADD = gl/libgl.la $(LIBINTL)
89 tests_libpspp_abt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
91 tests_libpspp_bt_test_SOURCES = \
93 tests/libpspp/bt-test.c
94 tests_libpspp_bt_test_LDADD = gl/libgl.la
95 tests_libpspp_bt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
97 tests_libpspp_range_map_test_SOURCES = \
99 src/libpspp/range-map.c \
100 tests/libpspp/range-map-test.c
101 tests_libpspp_range_map_test_LDADD = gl/libgl.la $(LIBINTL)
102 tests_libpspp_range_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
104 tests_libpspp_range_set_test_SOURCES = \
107 src/libpspp/range-set.c \
108 src/libpspp/temp-file.c \
109 tests/libpspp/range-set-test.c
110 tests_libpspp_range_set_test_LDADD = gl/libgl.la $(LIBINTL)
111 tests_libpspp_range_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
113 tests_libpspp_str_test_SOURCES = \
114 tests/libpspp/str-test.c
115 tests_libpspp_str_test_LDADD = src/libpspp/libpspp.la gl/libgl.la $(LIBINTL)
117 tests_libpspp_string_map_test_SOURCES = \
118 src/libpspp/hash-functions.c \
120 src/libpspp/string-map.c \
121 src/libpspp/string-set.c \
122 tests/libpspp/string-map-test.c
123 tests_libpspp_string_map_test_LDADD = gl/libgl.la $(LIBINTL)
124 tests_libpspp_string_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
126 tests_libpspp_stringi_map_test_SOURCES = \
127 src/libpspp/hash-functions.c \
131 src/libpspp/stringi-map.c \
132 src/libpspp/string-set.c \
133 src/libpspp/stringi-set.c \
134 src/libpspp/temp-file.c \
135 tests/libpspp/stringi-map-test.c
136 tests_libpspp_stringi_map_test_LDADD = gl/libgl.la $(LIBINTL)
137 tests_libpspp_stringi_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
139 tests_libpspp_string_set_test_SOURCES = \
140 src/libpspp/hash-functions.c \
142 src/libpspp/string-set.c \
143 tests/libpspp/string-set-test.c
144 tests_libpspp_string_set_test_LDADD = gl/libgl.la $(LIBINTL)
145 tests_libpspp_string_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
147 tests_libpspp_stringi_set_test_SOURCES = \
148 src/libpspp/hash-functions.c \
152 src/libpspp/stringi-set.c \
153 src/libpspp/temp-file.c \
154 tests/libpspp/stringi-set-test.c
155 tests_libpspp_stringi_set_test_LDADD = gl/libgl.la $(LIBINTL)
156 tests_libpspp_stringi_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
158 tests_libpspp_tower_test_SOURCES = \
161 src/libpspp/temp-file.c \
162 src/libpspp/tower.c \
163 tests/libpspp/tower-test.c
164 tests_libpspp_tower_test_LDADD = gl/libgl.la $(LIBINTL)
165 tests_libpspp_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
167 tests_libpspp_u8_istream_test_SOURCES = tests/libpspp/u8-istream-test.c
168 tests_libpspp_u8_istream_test_LDADD = src/libpspp/libpspp.la gl/libgl.la
170 tests_libpspp_sparse_array_test_SOURCES = \
171 src/libpspp/sparse-array.c \
173 tests/libpspp/sparse-array-test.c \
174 src/libpspp/temp-file.c
175 tests_libpspp_sparse_array_test_LDADD = gl/libgl.la $(LIBINTL)
176 tests_libpspp_sparse_array_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
178 tests_libpspp_sparse_xarray_test_SOURCES = \
179 src/libpspp/argv-parser.c \
181 src/libpspp/deque.c \
182 src/libpspp/ext-array.c \
183 src/libpspp/model-checker.c \
184 src/libpspp/range-set.c \
185 src/libpspp/sparse-array.c \
186 src/libpspp/sparse-xarray.c \
189 src/libpspp/temp-file.c \
190 tests/libpspp/sparse-xarray-test.c
191 tests_libpspp_sparse_xarray_test_LDADD = gl/libgl.la $(LIBINTL)
192 tests_libpspp_sparse_xarray_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
194 tests_data_inexactify_SOURCES = tests/data/inexactify.c
196 noinst_PROGRAMS += tests/dissect-sysfile
197 tests_dissect_sysfile_SOURCES = \
198 src/libpspp/integer-format.c \
199 src/libpspp/float-format.c \
200 tests/dissect-sysfile.c
201 tests_dissect_sysfile_LDADD = gl/libgl.la $(LIBINTL)
202 tests_dissect_sysfile_CPPFLAGS = $(AM_CPPFLAGS) -DINSTALLDIR=\"$(bindir)\"
204 check_PROGRAMS += tests/language/lexer/command-name-test
205 tests_language_lexer_command_name_test_SOURCES = \
206 src/data/identifier.c \
207 src/language/lexer/command-name.c \
208 tests/language/lexer/command-name-test.c
209 tests_language_lexer_command_name_test_LDADD = \
210 src/libpspp/libpspp.la \
213 tests_language_lexer_command_name_test_CFLAGS = $(AM_CFLAGS)
215 check_PROGRAMS += tests/language/lexer/scan-test
216 tests_language_lexer_scan_test_SOURCES = \
217 src/data/identifier.c \
218 src/language/lexer/command-name.c \
219 src/language/lexer/scan.c \
220 src/language/lexer/segment.c \
221 src/language/lexer/token.c \
223 src/libpspp/prompt.c \
225 src/libpspp/temp-file.c \
226 tests/language/lexer/scan-test.c
227 tests_language_lexer_scan_test_LDADD = gl/libgl.la $(LIBINTL)
228 tests_language_lexer_scan_test_CFLAGS = $(AM_CFLAGS)
230 check_PROGRAMS += tests/language/lexer/segment-test
231 tests_language_lexer_segment_test_SOURCES = \
232 src/data/identifier.c \
233 src/language/lexer/command-name.c \
234 src/language/lexer/segment.c \
236 src/libpspp/prompt.c \
238 src/libpspp/temp-file.c \
239 tests/language/lexer/segment-test.c
240 tests_language_lexer_segment_test_LDADD = gl/libgl.la $(LIBINTL)
241 tests_language_lexer_segment_test_CFLAGS = $(AM_CFLAGS)
243 check_PROGRAMS += tests/output/render-test
244 tests_output_render_test_SOURCES = tests/output/render-test.c
245 tests_output_render_test_LDADD = \
247 src/libpspp-core.la \
254 tests/data/bcd-in.expected.cmp.gz \
255 tests/data/binhex-in.expected.cmp.gz \
256 tests/data/binhex-out.expected.gz \
257 tests/data/legacy-in.expected.cmp.gz \
258 tests/data/num-in.expected.gz \
259 tests/data/num-out-cmp.pl \
260 tests/data/num-out.expected.cmp.gz \
263 tests/language/data-io/Book1.gnm.unzipped
265 CLEANFILES += *.save pspp.* foo*
267 EXTRA_DIST += tests/OChangeLog
276 $(srcdir)/package.m4 \
280 tests/data/calendar.at \
281 tests/data/data-in.at \
282 tests/data/data-out.at \
283 tests/data/datasheet-test.at \
284 tests/data/format-guesser.at \
285 tests/data/por-file.at \
286 tests/data/sys-file-reader.at \
287 tests/data/sys-file.at \
288 tests/language/command.at \
289 tests/language/control/do-if.at \
290 tests/language/control/do-repeat.at \
291 tests/language/control/loop.at \
292 tests/language/control/temporary.at \
293 tests/language/data-io/add-files.at \
294 tests/language/data-io/data-list.at \
295 tests/language/data-io/data-reader.at \
296 tests/language/data-io/file-handle.at \
297 tests/language/data-io/get-data-gnm.at \
298 tests/language/data-io/get-data-psql.at \
299 tests/language/data-io/get-data-txt.at \
300 tests/language/data-io/get.at \
301 tests/language/data-io/inpt-pgm.at \
302 tests/language/data-io/list.at \
303 tests/language/data-io/match-files.at \
304 tests/language/data-io/print-space.at \
305 tests/language/data-io/print.at \
306 tests/language/data-io/save.at \
307 tests/language/data-io/save-translate.at \
308 tests/language/data-io/update.at \
309 tests/language/dictionary/attributes.at \
310 tests/language/dictionary/formats.at \
311 tests/language/dictionary/missing-values.at \
312 tests/language/dictionary/mrsets.at \
313 tests/language/dictionary/rename-variables.at \
314 tests/language/dictionary/split-file.at \
315 tests/language/dictionary/sys-file-info.at \
316 tests/language/dictionary/value-labels.at \
317 tests/language/dictionary/variable-display.at \
318 tests/language/dictionary/vector.at \
319 tests/language/dictionary/weight.at \
320 tests/language/expressions/evaluate.at \
321 tests/language/expressions/parse.at \
322 tests/language/lexer/command-name.at \
323 tests/language/lexer/lexer.at \
324 tests/language/lexer/q2c.at \
325 tests/language/lexer/scan.at \
326 tests/language/lexer/segment.at \
327 tests/language/lexer/variable-parser.at \
328 tests/language/stats/aggregate.at \
329 tests/language/stats/autorecode.at \
330 tests/language/stats/correlations.at \
331 tests/language/stats/crosstabs.at \
332 tests/language/stats/descriptives.at \
333 tests/language/stats/examine.at \
334 tests/language/stats/factor.at \
335 tests/language/stats/flip.at \
336 tests/language/stats/frequencies.at \
337 tests/language/stats/npar.at \
338 tests/language/stats/oneway.at \
339 tests/language/stats/quick-cluster.at \
340 tests/language/stats/rank.at \
341 tests/language/stats/regression.at \
342 tests/language/stats/reliability.at \
343 tests/language/stats/roc.at \
344 tests/language/stats/sort-cases.at \
345 tests/language/stats/t-test.at \
346 tests/language/utilities/cache.at \
347 tests/language/utilities/date.at \
348 tests/language/utilities/insert.at \
349 tests/language/utilities/permissions.at \
350 tests/language/utilities/set.at \
351 tests/language/utilities/title.at \
352 tests/language/xforms/compute.at \
353 tests/language/xforms/count.at \
354 tests/language/xforms/recode.at \
355 tests/language/xforms/sample.at \
356 tests/language/xforms/select-if.at \
357 tests/libpspp/abt.at \
358 tests/libpspp/bt.at \
359 tests/libpspp/encoding-guesser.at \
360 tests/libpspp/float-format.at \
361 tests/libpspp/heap.at \
362 tests/libpspp/hmap.at \
363 tests/libpspp/hmapx.at \
364 tests/libpspp/i18n.at \
365 tests/libpspp/ll.at \
366 tests/libpspp/llx.at \
367 tests/libpspp/range-map.at \
368 tests/libpspp/range-set.at \
369 tests/libpspp/sparse-array.at \
370 tests/libpspp/sparse-xarray-test.at \
371 tests/libpspp/str.at \
372 tests/libpspp/string-map.at \
373 tests/libpspp/stringi-map.at \
374 tests/libpspp/string-set.at \
375 tests/libpspp/stringi-set.at \
376 tests/libpspp/tower.at \
377 tests/libpspp/u8-istream.at \
378 tests/math/moments.at \
379 tests/math/randist.at \
380 tests/output/ascii.at \
381 tests/output/charts.at \
382 tests/output/output.at \
383 tests/output/paper-size.at \
384 tests/output/render.at \
385 tests/ui/terminal/main.at \
388 TESTSUITE = $(srcdir)/tests/testsuite
389 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
390 AUTOTEST_PATH = tests/data:tests/language/lexer:tests/libpspp:tests/output:src/ui/terminal
392 $(srcdir)/tests/testsuite.at: tests/testsuite.in tests/automake.mk
394 for t in $(TESTSUITE_AT); do \
395 echo "m4_include([$$t])" >> $@ ;\
397 EXTRA_DIST += tests/testsuite.at
399 CHECK_LOCAL += tests_check
400 tests_check: tests/atconfig tests/atlocal $(TESTSUITE) $(check_PROGRAMS)
401 $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) $(TESTSUITEFLAGS)
403 CLEAN_LOCAL += tests_clean
405 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
407 AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
408 AUTOTEST = $(AUTOM4TE) --language=autotest
409 $(TESTSUITE): package.m4 $(srcdir)/tests/testsuite.at $(TESTSUITE_AT)
410 $(AUTOTEST) -I '$(srcdir)' $@.at | sed 's/@<00A0>@/ /g' > $@.tmp
413 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
414 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
416 echo '# Signature of the current package.' && \
417 echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
418 echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
419 echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
420 echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
421 echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' && \
422 echo 'm4_define([AT_PACKAGE_URL], [$(PACKAGE_URL)])'; \
423 } >'$(srcdir)/package.m4'
425 # valgrind support for Autotest testsuite
427 valgrind_wrappers = \
428 tests/valgrind/datasheet-test \
429 tests/valgrind/command-name-test \
430 tests/valgrind/scan-test \
431 tests/valgrind/segment-test \
432 tests/valgrind/abt-test \
433 tests/valgrind/bt-test \
434 tests/valgrind/encoding-guesser-test \
435 tests/valgrind/heap-test \
436 tests/valgrind/hmap-test \
437 tests/valgrind/hmapx-test \
438 tests/valgrind/i18n-test \
439 tests/valgrind/ll-test \
440 tests/valgrind/llx-test \
441 tests/valgrind/range-map-test \
442 tests/valgrind/range-set-test \
443 tests/valgrind/sparse-array-test \
444 tests/valgrind/sparse-xarray-test \
445 tests/valgrind/str-test \
446 tests/valgrind/string-map-test \
447 tests/valgrind/stringi-map-test \
448 tests/valgrind/string-set-test \
449 tests/valgrind/stringi-set-test \
450 tests/valgrind/tower-test \
451 tests/valgrind/u8-istream-test \
452 tests/valgrind/render-test \
455 $(valgrind_wrappers): tests/valgrind-wrapper.in
456 @test -d tests/valgrind || mkdir tests/valgrind
457 sed -e 's,[@]wrap_program[@],$@,' \
458 $(top_srcdir)/tests/valgrind-wrapper.in > $@.tmp
461 CLEANFILES += $(valgrind_wrappers)
462 EXTRA_DIST += tests/valgrind-wrapper.in
464 VALGRIND = $(SHELL) $(abs_top_builddir)/libtool --mode=execute valgrind --log-file=valgrind.%p --leak-check=full --num-callers=20
465 check-valgrind: all tests/atconfig tests/atlocal $(TESTSUITE) $(valgrind_wrappers)
466 $(SHELL) '$(TESTSUITE)' -C tests VALGRIND='$(VALGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS)
468 @echo '--------------------------------'
469 @echo 'Valgrind output is in:'
470 @echo 'tests/testsuite.dir/*/valgrind.*'
471 @echo '--------------------------------'