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