1 ## Process this file with automake to produce Makefile.in -*- makefile -*-
3 TESTS_ENVIRONMENT = top_srcdir='$(top_srcdir)' top_builddir='$(top_builddir)'
4 TESTS_ENVIRONMENT += PERL='$(PERL)' PG_CONFIG='$(PG_CONFIG)'
6 # Allow locale_charset to find charset.alias before running "make install".
7 TESTS_ENVIRONMENT += CHARSETALIASDIR='$(abs_top_builddir)/gl'
9 TESTS_ENVIRONMENT += LC_ALL=C
10 TESTS_ENVIRONMENT += EXEEXT=$(EXEEXT)
13 tests/command/erase.sh \
14 tests/command/examine.sh \
15 tests/command/examine-extremes.sh \
16 tests/command/examine-percentiles.sh \
17 tests/command/file-label.sh \
18 tests/command/file-handle.sh \
19 tests/command/filter.sh \
20 tests/command/get-data-txt.sh \
21 tests/command/get-data-txt-examples.sh \
22 tests/command/get-data-txt-importcases.sh \
23 tests/command/import-export.sh \
24 tests/command/insert.sh \
25 tests/command/lag.sh \
26 tests/command/line-ends.sh \
27 tests/command/list.sh \
28 tests/command/loop.sh \
29 tests/command/longvars.sh \
30 tests/command/match-files.sh \
31 tests/command/missing-values.sh \
32 tests/command/no_case_size.sh \
33 tests/command/n_of_cases.sh \
34 tests/command/npar-binomial.sh \
35 tests/command/npar-chisquare.sh \
36 tests/command/npar-wilcoxon.sh \
37 tests/command/npar-sign.sh \
38 tests/command/permissions.sh \
39 tests/command/print.sh \
40 tests/command/print-strings.sh \
41 tests/command/rank.sh \
42 tests/command/rename.sh \
43 tests/command/regression.sh \
44 tests/command/regression-qr.sh \
45 tests/command/reliability.sh \
46 tests/command/roc.sh \
47 tests/command/roc2.sh \
48 tests/command/sample.sh \
49 tests/command/sort.sh \
50 tests/command/sysfiles.sh \
51 tests/command/sysfiles-old.sh \
52 tests/command/sysfile-info.sh \
53 tests/command/split-file.sh \
54 tests/command/t-test-1-indep-val.sh \
55 tests/command/t-test-1-sample-missing-anal.sh \
56 tests/command/t-test-1-sample-missing-list.sh \
57 tests/command/t-test-1s.sh \
58 tests/command/t-test-groups.sh \
59 tests/command/t-test-indep-missing-anal.sh \
60 tests/command/t-test-indep-missing-list.sh \
61 tests/command/t-test-paired-missing-anal.sh \
62 tests/command/t-test-paired-missing-list.sh \
63 tests/command/t-test-pairs.sh \
64 tests/command/trimmed-mean.sh \
65 tests/command/tabs.sh \
66 tests/command/update.sh \
67 tests/command/use.sh \
68 tests/command/variable-display.sh \
69 tests/command/vector.sh \
70 tests/command/very-long-strings.sh \
71 tests/command/weight.sh \
72 tests/formats/bcd-in.sh \
73 tests/formats/binhex-out.sh \
74 tests/formats/date-in.sh \
75 tests/formats/date-out.sh \
76 tests/formats/float-format.sh \
77 tests/formats/format-guesser.sh \
78 tests/formats/ib-in.sh \
79 tests/formats/legacy-in.sh \
80 tests/formats/month-in.sh \
81 tests/formats/month-out.sh \
82 tests/formats/num-in.sh \
83 tests/formats/num-out.sh \
84 tests/formats/time-in.sh \
85 tests/formats/time-out.sh \
86 tests/formats/wkday-in.sh \
87 tests/formats/wkday-out.sh \
88 tests/formats/360.sh \
89 tests/bugs/big-input.sh \
90 tests/bugs/big-input-2.sh \
91 tests/bugs/case-map.sh \
92 tests/bugs/comment-at-eof.sh \
93 tests/bugs/compression.sh \
94 tests/bugs/curtailed.sh \
95 tests/bugs/data-crash.sh \
97 tests/bugs/examine-crash.sh \
98 tests/bugs/examine-crash2.sh \
99 tests/bugs/examine-crash3.sh \
100 tests/bugs/examine-1sample.sh \
101 tests/bugs/examine-missing.sh \
102 tests/bugs/examine-missing2.sh \
103 tests/bugs/get-no-file.sh \
104 tests/bugs/if_crash.sh \
105 tests/bugs/input-crash.sh \
106 tests/bugs/lag_crash.sh \
107 tests/bugs/list-overflow.sh \
108 tests/bugs/match-files-scratch.sh \
109 tests/bugs/multipass.sh \
110 tests/bugs/overwrite-input-file.sh \
111 tests/bugs/overwrite-special-file.sh \
112 tests/bugs/random.sh \
113 tests/bugs/shbang.sh \
114 tests/bugs/signals.sh \
115 tests/bugs/t-test-with-temp.sh \
116 tests/bugs/t-test.sh \
117 tests/bugs/t-test-alpha.sh \
118 tests/bugs/t-test-alpha2.sh \
119 tests/bugs/t-test-alpha3.sh \
120 tests/bugs/t-test-paired.sh \
121 tests/bugs/temporary.sh \
122 tests/bugs/unwritable-dir.sh \
123 tests/bugs/val-labs.sh \
124 tests/bugs/val-labs-trailing-slash.sh \
125 tests/bugs/print-crash.sh \
126 tests/bugs/keep-all.sh \
127 tests/data/datasheet-test.sh \
128 tests/libpspp/sparse-xarray-test.sh \
129 tests/output/paper-size.sh \
130 tests/expressions/randist.sh \
131 tests/expressions/valuelabel.sh \
132 tests/expressions/variables.sh \
133 tests/expressions/vectors.sh
136 dist_TESTS += tests/command/get-data-gnm.sh
140 dist_TESTS += tests/command/get-data-psql.sh
143 TESTS = $(dist_TESTS) $(nodist_TESTS)
147 tests/data/datasheet-test \
148 tests/formats/inexactify \
149 tests/libpspp/abt-test \
150 tests/libpspp/bt-test \
151 tests/libpspp/heap-test \
152 tests/libpspp/hmap-test \
153 tests/libpspp/hmapx-test \
154 tests/libpspp/i18n-test \
155 tests/libpspp/ll-test \
156 tests/libpspp/llx-test \
157 tests/libpspp/range-map-test \
158 tests/libpspp/range-set-test \
159 tests/libpspp/sparse-array-test \
160 tests/libpspp/sparse-xarray-test \
161 tests/libpspp/str-test \
162 tests/libpspp/string-map-test \
163 tests/libpspp/stringi-map-test \
164 tests/libpspp/string-set-test \
165 tests/libpspp/stringi-set-test \
166 tests/libpspp/tower-test \
167 tests/output/render-test
169 tests_data_datasheet_test_SOURCES = \
170 tests/data/datasheet-test.c
171 tests_data_datasheet_test_LDADD = src/libpspp-core.la $(LIBINTL)
172 tests_data_datasheet_test_CFLAGS = $(AM_CFLAGS)
174 tests_libpspp_ll_test_SOURCES = \
176 tests/libpspp/ll-test.c
177 tests_libpspp_ll_test_LDADD = gl/libgl.la $(LIBINTL)
178 tests_libpspp_ll_test_CFLAGS = $(AM_CFLAGS)
180 tests_libpspp_llx_test_SOURCES = \
183 tests/libpspp/llx-test.c
184 tests_libpspp_llx_test_LDADD = gl/libgl.la $(LIBINTL)
185 tests_libpspp_llx_test_CFLAGS = $(AM_CFLAGS)
187 tests_libpspp_heap_test_SOURCES = \
190 src/libpspp/temp-file.c \
191 tests/libpspp/heap-test.c
192 tests_libpspp_heap_test_LDADD = gl/libgl.la $(LIBINTL)
193 tests_libpspp_heap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
195 tests_libpspp_hmap_test_SOURCES = \
197 tests/libpspp/hmap-test.c
198 tests_libpspp_hmap_test_LDADD = gl/libgl.la $(LIBINTL)
199 tests_libpspp_hmap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
201 tests_libpspp_hmapx_test_SOURCES = \
203 src/libpspp/hmapx.c \
204 tests/libpspp/hmapx-test.c
205 tests_libpspp_hmapx_test_LDADD = gl/libgl.la $(LIBINTL)
206 tests_libpspp_hmapx_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
208 tests_libpspp_i18n_test_SOURCES = tests/libpspp/i18n-test.c
209 tests_libpspp_i18n_test_LDADD = src/libpspp/libpspp.la gl/libgl.la $(LIBINTL)
211 tests_libpspp_abt_test_SOURCES = \
213 tests/libpspp/abt-test.c
214 tests_libpspp_abt_test_LDADD = gl/libgl.la $(LIBINTL)
215 tests_libpspp_abt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
217 tests_libpspp_bt_test_SOURCES = \
219 tests/libpspp/bt-test.c
220 tests_libpspp_bt_test_LDADD = gl/libgl.la
221 tests_libpspp_bt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
223 tests_libpspp_range_map_test_SOURCES = \
225 src/libpspp/range-map.c \
226 tests/libpspp/range-map-test.c
227 tests_libpspp_range_map_test_LDADD = gl/libgl.la $(LIBINTL)
228 tests_libpspp_range_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
230 tests_libpspp_range_set_test_SOURCES = \
233 src/libpspp/range-set.c \
234 src/libpspp/temp-file.c \
235 tests/libpspp/range-set-test.c
236 tests_libpspp_range_set_test_LDADD = gl/libgl.la $(LIBINTL)
237 tests_libpspp_range_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
239 tests_libpspp_str_test_SOURCES = \
240 tests/libpspp/str-test.c
241 tests_libpspp_str_test_LDADD = src/libpspp/libpspp.la gl/libgl.la $(LIBINTL)
243 tests_libpspp_string_map_test_SOURCES = \
244 src/libpspp/hash-functions.c \
246 src/libpspp/string-map.c \
247 src/libpspp/string-set.c \
248 tests/libpspp/string-map-test.c
249 tests_libpspp_string_map_test_LDADD = gl/libgl.la $(LIBINTL)
250 tests_libpspp_string_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
252 tests_libpspp_stringi_map_test_SOURCES = \
253 src/libpspp/hash-functions.c \
257 src/libpspp/stringi-map.c \
258 src/libpspp/string-set.c \
259 src/libpspp/stringi-set.c \
260 src/libpspp/temp-file.c \
261 tests/libpspp/stringi-map-test.c
262 tests_libpspp_stringi_map_test_LDADD = gl/libgl.la $(LIBINTL)
263 tests_libpspp_stringi_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
265 tests_libpspp_string_set_test_SOURCES = \
266 src/libpspp/hash-functions.c \
268 src/libpspp/string-set.c \
269 tests/libpspp/string-set-test.c
270 tests_libpspp_string_set_test_LDADD = gl/libgl.la $(LIBINTL)
271 tests_libpspp_string_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
273 tests_libpspp_stringi_set_test_SOURCES = \
274 src/libpspp/hash-functions.c \
278 src/libpspp/stringi-set.c \
279 src/libpspp/temp-file.c \
280 tests/libpspp/stringi-set-test.c
281 tests_libpspp_stringi_set_test_LDADD = gl/libgl.la $(LIBINTL)
282 tests_libpspp_stringi_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
284 tests_libpspp_tower_test_SOURCES = \
287 src/libpspp/temp-file.c \
288 src/libpspp/tower.c \
289 tests/libpspp/tower-test.c
290 tests_libpspp_tower_test_LDADD = gl/libgl.la $(LIBINTL)
291 tests_libpspp_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
293 tests_libpspp_sparse_array_test_SOURCES = \
294 src/libpspp/sparse-array.c \
296 tests/libpspp/sparse-array-test.c \
297 src/libpspp/temp-file.c
298 tests_libpspp_sparse_array_test_LDADD = gl/libgl.la $(LIBINTL)
299 tests_libpspp_sparse_array_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
301 tests_libpspp_sparse_xarray_test_SOURCES = \
302 src/libpspp/argv-parser.c \
304 src/libpspp/deque.c \
305 src/libpspp/ext-array.c \
306 src/libpspp/model-checker.c \
307 src/libpspp/range-set.c \
308 src/libpspp/sparse-array.c \
309 src/libpspp/sparse-xarray.c \
312 src/libpspp/temp-file.c \
313 tests/libpspp/sparse-xarray-test.c
314 tests_libpspp_sparse_xarray_test_LDADD = gl/libgl.la $(LIBINTL)
315 tests_libpspp_sparse_xarray_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
317 tests_formats_inexactify_SOURCES = tests/formats/inexactify.c
319 noinst_PROGRAMS += tests/dissect-sysfile
320 tests_dissect_sysfile_SOURCES = \
321 src/libpspp/integer-format.c \
322 src/libpspp/float-format.c \
323 tests/dissect-sysfile.c
324 tests_dissect_sysfile_LDADD = gl/libgl.la $(LIBINTL)
325 tests_dissect_sysfile_CPPFLAGS = $(AM_CPPFLAGS) -DINSTALLDIR=\"$(bindir)\"
327 check_PROGRAMS += tests/output/render-test
328 tests_output_render_test_SOURCES = tests/output/render-test.c
329 tests_output_render_test_LDADD = \
331 src/libpspp-core.la \
338 tests/Book1.gnm.unzipped \
339 tests/weighting.data tests/data-list.data tests/list.data \
340 tests/no_case_size.sav \
341 tests/coverage.sh tests/test_template \
342 tests/v13.sav tests/v14.sav \
343 tests/expressions/randist/beta.out \
344 tests/expressions/randist/cauchy.out \
345 tests/expressions/randist/chisq.out \
346 tests/expressions/randist/exp.out \
347 tests/expressions/randist/f.out \
348 tests/expressions/randist/gamma.out \
349 tests/expressions/randist/laplace.out \
350 tests/expressions/randist/lnormal.out \
351 tests/expressions/randist/logistic.out \
352 tests/expressions/randist/normal.out \
353 tests/expressions/randist/pareto.out \
354 tests/expressions/randist/compare.pl \
355 tests/expressions/randist/randist.pl \
356 tests/expressions/randist/randist.txt \
357 tests/expressions/randist/t.out \
358 tests/expressions/randist/uniform.out \
359 tests/expressions/randist/weibull.out \
360 tests/formats/bcd-in.expected.cmp.gz \
361 tests/formats/binhex-out.expected.gz \
362 tests/formats/ib-in.expected.cmp.gz \
363 tests/formats/legacy-in.expected.cmp.gz \
364 tests/formats/num-in.expected.gz \
365 tests/formats/num-out.expected.cmp.gz \
366 tests/formats/num-out-cmp.pl \
367 tests/formats/num-out-compare.pl \
368 tests/formats/num-out-decmp.pl \
369 tests/formats/num-out.pl
371 CLEANFILES += *.save pspp.* foo*
373 check-for-export-var-val:
374 @if grep -q 'export .*=' $(dist_TESTS) ; then \
375 echo 'One or more tests contain non-portable "export VAR=val" syntax' ; \
379 DIST_HOOKS += check-for-export-var-val
381 EXTRA_DIST += tests/OChangeLog
389 $(srcdir)/package.m4 \
393 tests/data/calendar.at \
394 tests/data/data-in.at \
395 tests/language/control/do-if.at \
396 tests/language/control/do-repeat.at \
397 tests/language/data-io/add-files.at \
398 tests/language/data-io/data-list.at \
399 tests/language/data-io/data-reader.at \
400 tests/language/data-io/save.at \
401 tests/language/data-io/save-translate.at \
402 tests/language/dictionary/attributes.at \
403 tests/language/dictionary/mrsets.at \
404 tests/language/expressions/evaluate.at \
405 tests/language/stats/aggregate.at \
406 tests/language/stats/autorecode.at \
407 tests/language/stats/correlations.at \
408 tests/language/stats/crosstabs.at \
409 tests/language/stats/descriptives.at \
410 tests/language/stats/factor.at \
411 tests/language/stats/flip.at \
412 tests/language/stats/frequencies.at \
413 tests/language/stats/oneway.at \
414 tests/language/utilities/set.at \
415 tests/language/xforms/compute.at \
416 tests/language/xforms/count.at \
417 tests/language/xforms/recode.at \
418 tests/libpspp/abt.at \
419 tests/libpspp/bt.at \
420 tests/libpspp/heap.at \
421 tests/libpspp/hmap.at \
422 tests/libpspp/hmapx.at \
423 tests/libpspp/i18n.at \
424 tests/libpspp/ll.at \
425 tests/libpspp/llx.at \
426 tests/libpspp/range-map.at \
427 tests/libpspp/range-set.at \
428 tests/libpspp/sparse-array.at \
429 tests/libpspp/str.at \
430 tests/libpspp/string-map.at \
431 tests/libpspp/stringi-map.at \
432 tests/libpspp/string-set.at \
433 tests/libpspp/stringi-set.at \
434 tests/libpspp/tower.at \
435 tests/math/moments.at \
436 tests/output/render.at \
437 tests/output/charts.at \
440 TESTSUITE = $(srcdir)/tests/testsuite
441 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
443 $(srcdir)/tests/testsuite.at: tests/testsuite.in Makefile
445 for t in $(TESTSUITE_AT); do \
446 echo "m4_include([$$t])" >> $@ ;\
450 CHECK_LOCAL += tests_check
451 tests_check: tests/atconfig tests/atlocal $(TESTSUITE) $(check_PROGRAMS)
452 $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=tests/libpspp:tests/output:src/ui/terminal $(TESTSUITEFLAGS)
454 CLEAN_LOCAL += tests_clean
456 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
458 AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
459 AUTOTEST = $(AUTOM4TE) --language=autotest
460 $(TESTSUITE): package.m4 $(srcdir)/tests/testsuite.at $(TESTSUITE_AT)
461 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
464 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
465 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
467 echo '# Signature of the current package.' && \
468 echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
469 echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
470 echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
471 echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
472 echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' && \
473 echo 'm4_define([AT_PACKAGE_URL], [$(PACKAGE_URL)])'; \
474 } >'$(srcdir)/package.m4'