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