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)'
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/print.sh \
14 tests/command/print-strings.sh \
15 tests/command/rank.sh \
16 tests/command/rename.sh \
17 tests/command/regression.sh \
18 tests/command/regression-qr.sh \
19 tests/command/reliability.sh \
20 tests/command/roc.sh \
21 tests/command/roc2.sh \
22 tests/command/sample.sh \
23 tests/command/sort.sh \
24 tests/command/sysfiles.sh \
25 tests/command/sysfiles-old.sh \
26 tests/command/sysfile-info.sh \
27 tests/command/split-file.sh \
28 tests/command/t-test-1-indep-val.sh \
29 tests/command/t-test-1-sample-missing-anal.sh \
30 tests/command/t-test-1-sample-missing-list.sh \
31 tests/command/t-test-1s.sh \
32 tests/command/t-test-groups.sh \
33 tests/command/t-test-indep-missing-anal.sh \
34 tests/command/t-test-indep-missing-list.sh \
35 tests/command/t-test-paired-missing-anal.sh \
36 tests/command/t-test-paired-missing-list.sh \
37 tests/command/t-test-pairs.sh \
38 tests/command/trimmed-mean.sh \
39 tests/command/tabs.sh \
40 tests/command/update.sh \
41 tests/command/use.sh \
42 tests/command/variable-display.sh \
43 tests/command/vector.sh \
44 tests/command/very-long-strings.sh \
45 tests/command/weight.sh \
46 tests/formats/bcd-in.sh \
47 tests/formats/binhex-out.sh \
48 tests/formats/date-in.sh \
49 tests/formats/date-out.sh \
50 tests/formats/float-format.sh \
51 tests/formats/format-guesser.sh \
52 tests/formats/ib-in.sh \
53 tests/formats/legacy-in.sh \
54 tests/formats/month-in.sh \
55 tests/formats/month-out.sh \
56 tests/formats/num-in.sh \
57 tests/formats/num-out.sh \
58 tests/formats/time-in.sh \
59 tests/formats/time-out.sh \
60 tests/formats/wkday-in.sh \
61 tests/formats/wkday-out.sh \
62 tests/formats/360.sh \
63 tests/bugs/big-input.sh \
64 tests/bugs/big-input-2.sh \
65 tests/bugs/case-map.sh \
66 tests/bugs/comment-at-eof.sh \
67 tests/bugs/compression.sh \
68 tests/bugs/curtailed.sh \
69 tests/bugs/data-crash.sh \
71 tests/bugs/get-no-file.sh \
72 tests/bugs/if_crash.sh \
73 tests/bugs/input-crash.sh \
74 tests/bugs/multipass.sh \
75 tests/bugs/overwrite-input-file.sh \
76 tests/bugs/overwrite-special-file.sh \
77 tests/bugs/random.sh \
78 tests/bugs/shbang.sh \
79 tests/bugs/signals.sh \
80 tests/bugs/t-test-with-temp.sh \
81 tests/bugs/t-test.sh \
82 tests/bugs/t-test-alpha.sh \
83 tests/bugs/t-test-alpha2.sh \
84 tests/bugs/t-test-alpha3.sh \
85 tests/bugs/t-test-paired.sh \
86 tests/bugs/temporary.sh \
87 tests/bugs/unwritable-dir.sh \
88 tests/bugs/val-labs.sh \
89 tests/bugs/val-labs-trailing-slash.sh \
90 tests/bugs/print-crash.sh \
91 tests/bugs/keep-all.sh \
92 tests/data/datasheet-test.sh \
93 tests/libpspp/sparse-xarray-test.sh \
94 tests/output/paper-size.sh \
95 tests/expressions/randist.sh \
96 tests/expressions/valuelabel.sh \
97 tests/expressions/variables.sh \
98 tests/expressions/vectors.sh
100 TESTS = $(dist_TESTS) $(nodist_TESTS)
104 tests/data/datasheet-test \
105 tests/formats/inexactify \
106 tests/libpspp/abt-test \
107 tests/libpspp/bt-test \
108 tests/libpspp/heap-test \
109 tests/libpspp/hmap-test \
110 tests/libpspp/hmapx-test \
111 tests/libpspp/i18n-test \
112 tests/libpspp/ll-test \
113 tests/libpspp/llx-test \
114 tests/libpspp/range-map-test \
115 tests/libpspp/range-set-test \
116 tests/libpspp/sparse-array-test \
117 tests/libpspp/sparse-xarray-test \
118 tests/libpspp/str-test \
119 tests/libpspp/string-map-test \
120 tests/libpspp/stringi-map-test \
121 tests/libpspp/string-set-test \
122 tests/libpspp/stringi-set-test \
123 tests/libpspp/tower-test \
124 tests/output/render-test
126 tests_data_datasheet_test_SOURCES = \
127 tests/data/datasheet-test.c
128 tests_data_datasheet_test_LDADD = src/libpspp-core.la $(LIBINTL)
129 tests_data_datasheet_test_CFLAGS = $(AM_CFLAGS)
131 tests_libpspp_ll_test_SOURCES = \
133 tests/libpspp/ll-test.c
134 tests_libpspp_ll_test_LDADD = gl/libgl.la $(LIBINTL)
135 tests_libpspp_ll_test_CFLAGS = $(AM_CFLAGS)
137 tests_libpspp_llx_test_SOURCES = \
140 tests/libpspp/llx-test.c
141 tests_libpspp_llx_test_LDADD = gl/libgl.la $(LIBINTL)
142 tests_libpspp_llx_test_CFLAGS = $(AM_CFLAGS)
144 tests_libpspp_heap_test_SOURCES = \
147 src/libpspp/temp-file.c \
148 tests/libpspp/heap-test.c
149 tests_libpspp_heap_test_LDADD = gl/libgl.la $(LIBINTL)
150 tests_libpspp_heap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
152 tests_libpspp_hmap_test_SOURCES = \
154 tests/libpspp/hmap-test.c
155 tests_libpspp_hmap_test_LDADD = gl/libgl.la $(LIBINTL)
156 tests_libpspp_hmap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
158 tests_libpspp_hmapx_test_SOURCES = \
160 src/libpspp/hmapx.c \
161 tests/libpspp/hmapx-test.c
162 tests_libpspp_hmapx_test_LDADD = gl/libgl.la $(LIBINTL)
163 tests_libpspp_hmapx_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
165 tests_libpspp_i18n_test_SOURCES = tests/libpspp/i18n-test.c
166 tests_libpspp_i18n_test_LDADD = src/libpspp/libpspp.la gl/libgl.la $(LIBINTL)
168 tests_libpspp_abt_test_SOURCES = \
170 tests/libpspp/abt-test.c
171 tests_libpspp_abt_test_LDADD = gl/libgl.la $(LIBINTL)
172 tests_libpspp_abt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
174 tests_libpspp_bt_test_SOURCES = \
176 tests/libpspp/bt-test.c
177 tests_libpspp_bt_test_LDADD = gl/libgl.la
178 tests_libpspp_bt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
180 tests_libpspp_range_map_test_SOURCES = \
182 src/libpspp/range-map.c \
183 tests/libpspp/range-map-test.c
184 tests_libpspp_range_map_test_LDADD = gl/libgl.la $(LIBINTL)
185 tests_libpspp_range_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
187 tests_libpspp_range_set_test_SOURCES = \
190 src/libpspp/range-set.c \
191 src/libpspp/temp-file.c \
192 tests/libpspp/range-set-test.c
193 tests_libpspp_range_set_test_LDADD = gl/libgl.la $(LIBINTL)
194 tests_libpspp_range_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
196 tests_libpspp_str_test_SOURCES = \
197 tests/libpspp/str-test.c
198 tests_libpspp_str_test_LDADD = src/libpspp/libpspp.la gl/libgl.la $(LIBINTL)
200 tests_libpspp_string_map_test_SOURCES = \
201 src/libpspp/hash-functions.c \
203 src/libpspp/string-map.c \
204 src/libpspp/string-set.c \
205 tests/libpspp/string-map-test.c
206 tests_libpspp_string_map_test_LDADD = gl/libgl.la $(LIBINTL)
207 tests_libpspp_string_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
209 tests_libpspp_stringi_map_test_SOURCES = \
210 src/libpspp/hash-functions.c \
214 src/libpspp/stringi-map.c \
215 src/libpspp/string-set.c \
216 src/libpspp/stringi-set.c \
217 src/libpspp/temp-file.c \
218 tests/libpspp/stringi-map-test.c
219 tests_libpspp_stringi_map_test_LDADD = gl/libgl.la $(LIBINTL)
220 tests_libpspp_stringi_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
222 tests_libpspp_string_set_test_SOURCES = \
223 src/libpspp/hash-functions.c \
225 src/libpspp/string-set.c \
226 tests/libpspp/string-set-test.c
227 tests_libpspp_string_set_test_LDADD = gl/libgl.la $(LIBINTL)
228 tests_libpspp_string_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
230 tests_libpspp_stringi_set_test_SOURCES = \
231 src/libpspp/hash-functions.c \
235 src/libpspp/stringi-set.c \
236 src/libpspp/temp-file.c \
237 tests/libpspp/stringi-set-test.c
238 tests_libpspp_stringi_set_test_LDADD = gl/libgl.la $(LIBINTL)
239 tests_libpspp_stringi_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
241 tests_libpspp_tower_test_SOURCES = \
244 src/libpspp/temp-file.c \
245 src/libpspp/tower.c \
246 tests/libpspp/tower-test.c
247 tests_libpspp_tower_test_LDADD = gl/libgl.la $(LIBINTL)
248 tests_libpspp_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
250 tests_libpspp_sparse_array_test_SOURCES = \
251 src/libpspp/sparse-array.c \
253 tests/libpspp/sparse-array-test.c \
254 src/libpspp/temp-file.c
255 tests_libpspp_sparse_array_test_LDADD = gl/libgl.la $(LIBINTL)
256 tests_libpspp_sparse_array_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
258 tests_libpspp_sparse_xarray_test_SOURCES = \
259 src/libpspp/argv-parser.c \
261 src/libpspp/deque.c \
262 src/libpspp/ext-array.c \
263 src/libpspp/model-checker.c \
264 src/libpspp/range-set.c \
265 src/libpspp/sparse-array.c \
266 src/libpspp/sparse-xarray.c \
269 src/libpspp/temp-file.c \
270 tests/libpspp/sparse-xarray-test.c
271 tests_libpspp_sparse_xarray_test_LDADD = gl/libgl.la $(LIBINTL)
272 tests_libpspp_sparse_xarray_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
274 tests_formats_inexactify_SOURCES = tests/formats/inexactify.c
276 noinst_PROGRAMS += tests/dissect-sysfile
277 tests_dissect_sysfile_SOURCES = \
278 src/libpspp/integer-format.c \
279 src/libpspp/float-format.c \
280 tests/dissect-sysfile.c
281 tests_dissect_sysfile_LDADD = gl/libgl.la $(LIBINTL)
282 tests_dissect_sysfile_CPPFLAGS = $(AM_CPPFLAGS) -DINSTALLDIR=\"$(bindir)\"
284 check_PROGRAMS += tests/output/render-test
285 tests_output_render_test_SOURCES = tests/output/render-test.c
286 tests_output_render_test_LDADD = \
288 src/libpspp-core.la \
295 tests/weighting.data \
296 tests/coverage.sh tests/test_template \
297 tests/v13.sav tests/v14.sav \
298 tests/expressions/randist/beta.out \
299 tests/expressions/randist/cauchy.out \
300 tests/expressions/randist/chisq.out \
301 tests/expressions/randist/exp.out \
302 tests/expressions/randist/f.out \
303 tests/expressions/randist/gamma.out \
304 tests/expressions/randist/laplace.out \
305 tests/expressions/randist/lnormal.out \
306 tests/expressions/randist/logistic.out \
307 tests/expressions/randist/normal.out \
308 tests/expressions/randist/pareto.out \
309 tests/expressions/randist/compare.pl \
310 tests/expressions/randist/randist.pl \
311 tests/expressions/randist/randist.txt \
312 tests/expressions/randist/t.out \
313 tests/expressions/randist/uniform.out \
314 tests/expressions/randist/weibull.out \
315 tests/formats/bcd-in.expected.cmp.gz \
316 tests/formats/binhex-out.expected.gz \
317 tests/formats/ib-in.expected.cmp.gz \
318 tests/formats/legacy-in.expected.cmp.gz \
319 tests/formats/num-in.expected.gz \
320 tests/formats/num-out.expected.cmp.gz \
321 tests/formats/num-out-cmp.pl \
322 tests/formats/num-out-compare.pl \
323 tests/formats/num-out-decmp.pl \
324 tests/formats/num-out.pl \
325 tests/language/data-io/Book1.gnm.unzipped
327 CLEANFILES += *.save pspp.* foo*
329 check-for-export-var-val:
330 @if grep -q 'export .*=' $(dist_TESTS) ; then \
331 echo 'One or more tests contain non-portable "export VAR=val" syntax' ; \
335 DIST_HOOKS += check-for-export-var-val
337 EXTRA_DIST += tests/OChangeLog
346 $(srcdir)/package.m4 \
350 tests/data/calendar.at \
351 tests/data/data-in.at \
352 tests/data/sys-file.at \
353 tests/language/command.at \
354 tests/language/control/do-if.at \
355 tests/language/control/do-repeat.at \
356 tests/language/control/loop.at \
357 tests/language/data-io/add-files.at \
358 tests/language/data-io/data-list.at \
359 tests/language/data-io/data-reader.at \
360 tests/language/data-io/file-handle.at \
361 tests/language/data-io/get-data-gnm.at \
362 tests/language/data-io/get-data-psql.at \
363 tests/language/data-io/get-data-txt.at \
364 tests/language/data-io/list.at \
365 tests/language/data-io/match-files.at \
366 tests/language/data-io/save.at \
367 tests/language/data-io/save-translate.at \
368 tests/language/dictionary/attributes.at \
369 tests/language/dictionary/missing-values.at \
370 tests/language/dictionary/mrsets.at \
371 tests/language/expressions/evaluate.at \
372 tests/language/lexer/variable-parser.at \
373 tests/language/stats/aggregate.at \
374 tests/language/stats/autorecode.at \
375 tests/language/stats/correlations.at \
376 tests/language/stats/crosstabs.at \
377 tests/language/stats/descriptives.at \
378 tests/language/stats/examine.at \
379 tests/language/stats/factor.at \
380 tests/language/stats/flip.at \
381 tests/language/stats/frequencies.at \
382 tests/language/stats/npar.at \
383 tests/language/stats/oneway.at \
384 tests/language/utilities/insert.at \
385 tests/language/utilities/permissions.at \
386 tests/language/utilities/set.at \
387 tests/language/utilities/title.at \
388 tests/language/xforms/compute.at \
389 tests/language/xforms/count.at \
390 tests/language/xforms/recode.at \
391 tests/language/xforms/select-if.at \
392 tests/libpspp/abt.at \
393 tests/libpspp/bt.at \
394 tests/libpspp/heap.at \
395 tests/libpspp/hmap.at \
396 tests/libpspp/hmapx.at \
397 tests/libpspp/i18n.at \
398 tests/libpspp/ll.at \
399 tests/libpspp/llx.at \
400 tests/libpspp/range-map.at \
401 tests/libpspp/range-set.at \
402 tests/libpspp/sparse-array.at \
403 tests/libpspp/str.at \
404 tests/libpspp/string-map.at \
405 tests/libpspp/stringi-map.at \
406 tests/libpspp/string-set.at \
407 tests/libpspp/stringi-set.at \
408 tests/libpspp/tower.at \
409 tests/math/moments.at \
410 tests/output/render.at \
411 tests/output/charts.at \
414 TESTSUITE = $(srcdir)/tests/testsuite
415 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
417 $(srcdir)/tests/testsuite.at: tests/testsuite.in Makefile
419 for t in $(TESTSUITE_AT); do \
420 echo "m4_include([$$t])" >> $@ ;\
424 CHECK_LOCAL += tests_check
425 tests_check: tests/atconfig tests/atlocal $(TESTSUITE) $(check_PROGRAMS)
426 $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=tests/libpspp:tests/output:src/ui/terminal $(TESTSUITEFLAGS)
428 CLEAN_LOCAL += tests_clean
430 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
432 AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
433 AUTOTEST = $(AUTOM4TE) --language=autotest
434 $(TESTSUITE): package.m4 $(srcdir)/tests/testsuite.at $(TESTSUITE_AT)
435 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
438 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
439 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
441 echo '# Signature of the current package.' && \
442 echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
443 echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
444 echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
445 echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
446 echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' && \
447 echo 'm4_define([AT_PACKAGE_URL], [$(PACKAGE_URL)])'; \
448 } >'$(srcdir)/package.m4'