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
12 tests/command/add-files.sh \
13 tests/command/attributes.sh \
14 tests/command/beg-data.sh \
15 tests/command/bignum.sh \
16 tests/command/count.sh \
17 tests/command/correlation.sh \
18 tests/command/data-list.sh \
19 tests/command/do-if.sh \
20 tests/command/do-repeat.sh \
21 tests/command/erase.sh \
22 tests/command/examine.sh \
23 tests/command/examine-extremes.sh \
24 tests/command/examine-percentiles.sh \
25 tests/command/file-label.sh \
26 tests/command/file-handle.sh \
27 tests/command/filter.sh \
28 tests/command/flip.sh \
29 tests/command/get-data-txt.sh \
30 tests/command/get-data-txt-examples.sh \
31 tests/command/get-data-txt-importcases.sh \
32 tests/command/import-export.sh \
33 tests/command/insert.sh \
34 tests/command/lag.sh \
35 tests/command/line-ends.sh \
36 tests/command/list.sh \
37 tests/command/loop.sh \
38 tests/command/longvars.sh \
39 tests/command/match-files.sh \
40 tests/command/missing-values.sh \
41 tests/command/no_case_size.sh \
42 tests/command/n_of_cases.sh \
43 tests/command/npar-binomial.sh \
44 tests/command/npar-chisquare.sh \
45 tests/command/npar-wilcoxon.sh \
46 tests/command/npar-sign.sh \
47 tests/command/oneway.sh \
48 tests/command/oneway-missing.sh \
49 tests/command/oneway-with-splits.sh \
50 tests/command/permissions.sh \
51 tests/command/print.sh \
52 tests/command/print-strings.sh \
53 tests/command/rank.sh \
54 tests/command/rename.sh \
55 tests/command/regression.sh \
56 tests/command/regression-qr.sh \
57 tests/command/reliability.sh \
58 tests/command/roc.sh \
59 tests/command/roc2.sh \
60 tests/command/sample.sh \
61 tests/command/sort.sh \
62 tests/command/sysfiles.sh \
63 tests/command/sysfiles-old.sh \
64 tests/command/sysfile-info.sh \
65 tests/command/split-file.sh \
66 tests/command/t-test-1-indep-val.sh \
67 tests/command/t-test-1-sample-missing-anal.sh \
68 tests/command/t-test-1-sample-missing-list.sh \
69 tests/command/t-test-1s.sh \
70 tests/command/t-test-groups.sh \
71 tests/command/t-test-indep-missing-anal.sh \
72 tests/command/t-test-indep-missing-list.sh \
73 tests/command/t-test-paired-missing-anal.sh \
74 tests/command/t-test-paired-missing-list.sh \
75 tests/command/t-test-pairs.sh \
76 tests/command/trimmed-mean.sh \
77 tests/command/tabs.sh \
78 tests/command/update.sh \
79 tests/command/use.sh \
80 tests/command/variable-display.sh \
81 tests/command/vector.sh \
82 tests/command/very-long-strings.sh \
83 tests/command/weight.sh \
84 tests/formats/bcd-in.sh \
85 tests/formats/binhex-out.sh \
86 tests/formats/date-in.sh \
87 tests/formats/date-out.sh \
88 tests/formats/float-format.sh \
89 tests/formats/format-guesser.sh \
90 tests/formats/ib-in.sh \
91 tests/formats/legacy-in.sh \
92 tests/formats/month-in.sh \
93 tests/formats/month-out.sh \
94 tests/formats/num-in.sh \
95 tests/formats/num-out.sh \
96 tests/formats/time-in.sh \
97 tests/formats/time-out.sh \
98 tests/formats/wkday-in.sh \
99 tests/formats/wkday-out.sh \
100 tests/formats/360.sh \
101 tests/bugs/big-input.sh \
102 tests/bugs/big-input-2.sh \
103 tests/bugs/case-map.sh \
104 tests/bugs/comment-at-eof.sh \
105 tests/bugs/compression.sh \
106 tests/bugs/curtailed.sh \
107 tests/bugs/data-crash.sh \
108 tests/bugs/empty-do-repeat.sh \
110 tests/bugs/examine-crash.sh \
111 tests/bugs/examine-crash2.sh \
112 tests/bugs/examine-crash3.sh \
113 tests/bugs/examine-1sample.sh \
114 tests/bugs/examine-missing.sh \
115 tests/bugs/examine-missing2.sh \
116 tests/bugs/get-no-file.sh \
117 tests/bugs/if_crash.sh \
118 tests/bugs/input-crash.sh \
119 tests/bugs/lag_crash.sh \
120 tests/bugs/list-overflow.sh \
121 tests/bugs/match-files-scratch.sh \
122 tests/bugs/multipass.sh \
123 tests/bugs/overwrite-input-file.sh \
124 tests/bugs/overwrite-special-file.sh \
125 tests/bugs/random.sh \
126 tests/bugs/shbang.sh \
127 tests/bugs/signals.sh \
128 tests/bugs/t-test-with-temp.sh \
129 tests/bugs/t-test.sh \
130 tests/bugs/t-test-alpha.sh \
131 tests/bugs/t-test-alpha2.sh \
132 tests/bugs/t-test-alpha3.sh \
133 tests/bugs/t-test-paired.sh \
134 tests/bugs/temporary.sh \
135 tests/bugs/unwritable-dir.sh \
136 tests/bugs/val-labs.sh \
137 tests/bugs/val-labs-trailing-slash.sh \
138 tests/bugs/print-crash.sh \
139 tests/bugs/keep-all.sh \
140 tests/data/datasheet-test.sh \
141 tests/libpspp/sparse-xarray-test.sh \
142 tests/output/paper-size.sh \
143 tests/stats/moments.sh \
144 tests/expressions/expressions.sh \
145 tests/expressions/epoch.sh \
146 tests/expressions/randist.sh \
147 tests/expressions/valuelabel.sh \
148 tests/expressions/variables.sh \
149 tests/expressions/vectors.sh
152 dist_TESTS += tests/command/get-data-gnm.sh
156 dist_TESTS += tests/command/get-data-psql.sh
160 tests/libpspp/abt-test \
161 tests/libpspp/bt-test \
162 tests/libpspp/heap-test \
163 tests/libpspp/hmap-test \
164 tests/libpspp/hmapx-test \
165 tests/libpspp/ll-test \
166 tests/libpspp/llx-test \
167 tests/libpspp/range-map-test \
168 tests/libpspp/range-set-test \
169 tests/libpspp/sparse-array-test \
170 tests/libpspp/str-test \
171 tests/libpspp/string-map-test \
172 tests/libpspp/stringi-map-test \
173 tests/libpspp/string-set-test \
174 tests/libpspp/stringi-set-test \
175 tests/libpspp/tower-test
177 TESTS = $(dist_TESTS) $(nodist_TESTS)
181 tests/data/datasheet-test \
182 tests/formats/inexactify \
183 tests/libpspp/sparse-xarray-test \
184 tests/output/render-test
186 tests_data_datasheet_test_SOURCES = \
187 tests/data/datasheet-test.c
188 tests_data_datasheet_test_LDADD = gl/libgl.la src/libpspp-core.la $(LIBINTL)
189 tests_data_datasheet_test_CFLAGS = $(AM_CFLAGS)
191 tests_libpspp_ll_test_SOURCES = \
194 tests/libpspp/ll-test.c
195 tests_libpspp_ll_test_LDADD = gl/libgl.la $(LIBINTL)
196 tests_libpspp_ll_test_CFLAGS = $(AM_CFLAGS)
198 tests_libpspp_llx_test_SOURCES = \
203 tests/libpspp/llx-test.c
204 tests_libpspp_llx_test_LDADD = gl/libgl.la $(LIBINTL)
205 tests_libpspp_llx_test_CFLAGS = $(AM_CFLAGS)
207 tests_libpspp_heap_test_SOURCES = \
212 tests/libpspp/heap-test.c
213 tests_libpspp_heap_test_LDADD = gl/libgl.la $(LIBINTL)
214 tests_libpspp_heap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
216 tests_libpspp_hmap_test_SOURCES = \
219 tests/libpspp/hmap-test.c
220 tests_libpspp_hmap_test_LDADD = gl/libgl.la $(LIBINTL)
221 tests_libpspp_hmap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
223 tests_libpspp_hmapx_test_SOURCES = \
226 src/libpspp/hmapx.c \
227 src/libpspp/hmapx.h \
228 tests/libpspp/hmapx-test.c
229 tests_libpspp_hmapx_test_LDADD = gl/libgl.la $(LIBINTL)
230 tests_libpspp_hmapx_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
232 tests_libpspp_abt_test_SOURCES = \
235 tests/libpspp/abt-test.c
236 tests_libpspp_abt_test_LDADD = gl/libgl.la $(LIBINTL)
237 tests_libpspp_abt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
239 tests_libpspp_bt_test_SOURCES = \
242 tests/libpspp/bt-test.c
243 tests_libpspp_bt_test_LDADD = gl/libgl.la
244 tests_libpspp_bt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
246 tests_libpspp_range_map_test_SOURCES = \
249 src/libpspp/range-map.c \
250 src/libpspp/range-map.h \
251 tests/libpspp/range-map-test.c
252 tests_libpspp_range_map_test_LDADD = gl/libgl.la $(LIBINTL)
253 tests_libpspp_range_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
255 tests_libpspp_range_set_test_SOURCES = \
260 src/libpspp/range-set.c \
261 src/libpspp/range-set.h \
262 tests/libpspp/range-set-test.c
263 tests_libpspp_range_set_test_LDADD = gl/libgl.la $(LIBINTL)
264 tests_libpspp_range_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
266 tests_libpspp_str_test_SOURCES = \
267 tests/libpspp/str-test.c
268 tests_libpspp_str_test_LDADD = src/libpspp/libpspp.la gl/libgl.la $(LIBINTL)
270 tests_libpspp_string_map_test_SOURCES = \
271 src/libpspp/hash-functions.c \
273 src/libpspp/string-map.c \
274 src/libpspp/string-set.c \
275 tests/libpspp/string-map-test.c
276 tests_libpspp_string_map_test_LDADD = gl/libgl.la $(LIBINTL)
277 tests_libpspp_string_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
279 tests_libpspp_stringi_map_test_SOURCES = \
280 src/libpspp/hash-functions.c \
284 src/libpspp/stringi-map.c \
285 src/libpspp/string-set.c \
286 src/libpspp/stringi-set.c \
287 tests/libpspp/stringi-map-test.c
288 tests_libpspp_stringi_map_test_LDADD = gl/libgl.la $(LIBINTL)
289 tests_libpspp_stringi_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
291 tests_libpspp_string_set_test_SOURCES = \
292 src/libpspp/hash-functions.c \
294 src/libpspp/string-set.c \
295 tests/libpspp/string-set-test.c
296 tests_libpspp_string_set_test_LDADD = gl/libgl.la $(LIBINTL)
297 tests_libpspp_string_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
299 tests_libpspp_stringi_set_test_SOURCES = \
300 src/libpspp/hash-functions.c \
304 src/libpspp/stringi-set.c \
305 tests/libpspp/stringi-set-test.c
306 tests_libpspp_stringi_set_test_LDADD = gl/libgl.la $(LIBINTL)
307 tests_libpspp_stringi_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
309 tests_libpspp_tower_test_SOURCES = \
314 src/libpspp/tower.c \
315 src/libpspp/tower.h \
316 tests/libpspp/tower-test.c
317 tests_libpspp_tower_test_LDADD = gl/libgl.la $(LIBINTL)
318 tests_libpspp_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
320 tests_libpspp_sparse_array_test_SOURCES = \
321 src/libpspp/sparse-array.c \
322 src/libpspp/sparse-array.h \
325 tests/libpspp/sparse-array-test.c
326 tests_libpspp_sparse_array_test_LDADD = gl/libgl.la $(LIBINTL)
327 tests_libpspp_sparse_array_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
329 tests_libpspp_sparse_xarray_test_SOURCES = \
330 src/libpspp/argv-parser.c \
332 src/libpspp/deque.c \
333 src/libpspp/model-checker.c \
334 src/libpspp/range-set.c \
335 src/libpspp/sparse-array.c \
336 src/libpspp/sparse-xarray.c \
339 src/libpspp/tmpfile.c \
340 tests/libpspp/sparse-xarray-test.c
341 tests_libpspp_sparse_xarray_test_LDADD = gl/libgl.la $(LIBINTL)
342 tests_libpspp_sparse_xarray_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
344 tests_formats_inexactify_SOURCES = tests/formats/inexactify.c
346 noinst_PROGRAMS += tests/dissect-sysfile
347 tests_dissect_sysfile_SOURCES = \
348 src/libpspp/integer-format.c \
349 src/libpspp/float-format.c \
350 tests/dissect-sysfile.c
351 tests_dissect_sysfile_LDADD = gl/libgl.la $(LIBINTL)
352 tests_dissect_sysfile_CPPFLAGS = $(AM_CPPFLAGS) -DINSTALLDIR=\"$(bindir)\"
354 check_PROGRAMS += tests/output/render-test
355 tests_output_render_test_SOURCES = tests/output/render-test.c
356 tests_output_render_test_LDADD = \
358 src/libpspp-core.la \
365 tests/Book1.gnm.unzipped \
366 tests/weighting.data tests/data-list.data tests/list.data \
367 tests/no_case_size.sav \
368 tests/coverage.sh tests/test_template \
369 tests/v13.sav tests/v14.sav \
370 tests/expressions/randist/beta.out \
371 tests/expressions/randist/cauchy.out \
372 tests/expressions/randist/chisq.out \
373 tests/expressions/randist/exp.out \
374 tests/expressions/randist/f.out \
375 tests/expressions/randist/gamma.out \
376 tests/expressions/randist/laplace.out \
377 tests/expressions/randist/lnormal.out \
378 tests/expressions/randist/logistic.out \
379 tests/expressions/randist/normal.out \
380 tests/expressions/randist/pareto.out \
381 tests/expressions/randist/compare.pl \
382 tests/expressions/randist/randist.pl \
383 tests/expressions/randist/randist.txt \
384 tests/expressions/randist/t.out \
385 tests/expressions/randist/uniform.out \
386 tests/expressions/randist/weibull.out \
387 tests/formats/bcd-in.expected.cmp.gz \
388 tests/formats/binhex-out.expected.gz \
389 tests/formats/ib-in.expected.cmp.gz \
390 tests/formats/legacy-in.expected.cmp.gz \
391 tests/formats/num-in.expected.gz \
392 tests/formats/num-out.expected.cmp.gz \
393 tests/formats/num-out-cmp.pl \
394 tests/formats/num-out-compare.pl \
395 tests/formats/num-out-decmp.pl \
396 tests/formats/num-out.pl
398 CLEANFILES += *.save pspp.* foo*
400 check-for-export-var-val:
401 @if grep -q 'export .*=' $(dist_TESTS) ; then \
402 echo 'One or more tests contain non-portable "export VAR=val" syntax' ; \
406 DIST_HOOKS += check-for-export-var-val
408 EXTRA_DIST += tests/OChangeLog
416 $(srcdir)/package.m4 \
420 tests/language/dictionary/mrsets.at \
421 tests/language/stats/aggregate.at \
422 tests/language/stats/autorecode.at \
423 tests/language/stats/crosstabs.at \
424 tests/language/stats/descriptives.at \
425 tests/language/stats/factor.at \
426 tests/language/stats/frequencies.at \
427 tests/language/xforms/compute.at \
428 tests/language/xforms/recode.at \
429 tests/output/render.at \
431 TESTSUITE = $(srcdir)/tests/testsuite
432 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
434 CHECK_LOCAL += tests_check
435 tests_check: tests/atconfig tests/atlocal $(TESTSUITE)
436 $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=tests/output:src/ui/terminal $(TESTSUITEFLAGS)
438 CLEAN_LOCAL += tests_clean
440 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
442 AUTOM4TE = $(SHELL) $(srcdir)/missing --run autom4te
443 AUTOTEST = $(AUTOM4TE) --language=autotest
444 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
445 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
448 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
449 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
451 echo '# Signature of the current package.' && \
452 echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
453 echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
454 echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
455 echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
456 echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' && \
457 echo 'm4_define([AT_PACKAGE_URL], [$(PACKAGE_URL)])'; \
458 } >'$(srcdir)/package.m4'