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/tabs.sh \
14 tests/command/update.sh \
15 tests/command/use.sh \
16 tests/command/variable-display.sh \
17 tests/command/vector.sh \
18 tests/command/very-long-strings.sh \
19 tests/command/weight.sh \
20 tests/formats/bcd-in.sh \
21 tests/formats/binhex-out.sh \
22 tests/formats/date-in.sh \
23 tests/formats/date-out.sh \
24 tests/formats/float-format.sh \
25 tests/formats/format-guesser.sh \
26 tests/formats/ib-in.sh \
27 tests/formats/legacy-in.sh \
28 tests/formats/month-in.sh \
29 tests/formats/month-out.sh \
30 tests/formats/num-in.sh \
31 tests/formats/num-out.sh \
32 tests/formats/time-in.sh \
33 tests/formats/time-out.sh \
34 tests/formats/wkday-in.sh \
35 tests/formats/wkday-out.sh \
36 tests/formats/360.sh \
37 tests/bugs/big-input.sh \
38 tests/bugs/big-input-2.sh \
39 tests/bugs/case-map.sh \
40 tests/bugs/comment-at-eof.sh \
41 tests/bugs/compression.sh \
42 tests/bugs/curtailed.sh \
43 tests/bugs/data-crash.sh \
45 tests/bugs/get-no-file.sh \
46 tests/bugs/if_crash.sh \
47 tests/bugs/input-crash.sh \
48 tests/bugs/multipass.sh \
49 tests/bugs/overwrite-input-file.sh \
50 tests/bugs/overwrite-special-file.sh \
51 tests/bugs/random.sh \
52 tests/bugs/shbang.sh \
53 tests/bugs/signals.sh \
54 tests/bugs/temporary.sh \
55 tests/bugs/unwritable-dir.sh \
56 tests/bugs/val-labs.sh \
57 tests/bugs/val-labs-trailing-slash.sh \
58 tests/bugs/keep-all.sh \
59 tests/data/datasheet-test.sh \
60 tests/libpspp/sparse-xarray-test.sh \
61 tests/output/paper-size.sh \
62 tests/expressions/randist.sh \
63 tests/expressions/valuelabel.sh \
64 tests/expressions/variables.sh \
65 tests/expressions/vectors.sh
67 TESTS = $(dist_TESTS) $(nodist_TESTS)
71 tests/data/datasheet-test \
72 tests/formats/inexactify \
73 tests/libpspp/abt-test \
74 tests/libpspp/bt-test \
75 tests/libpspp/heap-test \
76 tests/libpspp/hmap-test \
77 tests/libpspp/hmapx-test \
78 tests/libpspp/i18n-test \
79 tests/libpspp/ll-test \
80 tests/libpspp/llx-test \
81 tests/libpspp/range-map-test \
82 tests/libpspp/range-set-test \
83 tests/libpspp/sparse-array-test \
84 tests/libpspp/sparse-xarray-test \
85 tests/libpspp/str-test \
86 tests/libpspp/string-map-test \
87 tests/libpspp/stringi-map-test \
88 tests/libpspp/string-set-test \
89 tests/libpspp/stringi-set-test \
90 tests/libpspp/tower-test \
91 tests/output/render-test
93 tests_data_datasheet_test_SOURCES = \
94 tests/data/datasheet-test.c
95 tests_data_datasheet_test_LDADD = src/libpspp-core.la $(LIBINTL)
96 tests_data_datasheet_test_CFLAGS = $(AM_CFLAGS)
98 tests_libpspp_ll_test_SOURCES = \
100 tests/libpspp/ll-test.c
101 tests_libpspp_ll_test_LDADD = gl/libgl.la $(LIBINTL)
102 tests_libpspp_ll_test_CFLAGS = $(AM_CFLAGS)
104 tests_libpspp_llx_test_SOURCES = \
107 tests/libpspp/llx-test.c
108 tests_libpspp_llx_test_LDADD = gl/libgl.la $(LIBINTL)
109 tests_libpspp_llx_test_CFLAGS = $(AM_CFLAGS)
111 tests_libpspp_heap_test_SOURCES = \
114 src/libpspp/temp-file.c \
115 tests/libpspp/heap-test.c
116 tests_libpspp_heap_test_LDADD = gl/libgl.la $(LIBINTL)
117 tests_libpspp_heap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
119 tests_libpspp_hmap_test_SOURCES = \
121 tests/libpspp/hmap-test.c
122 tests_libpspp_hmap_test_LDADD = gl/libgl.la $(LIBINTL)
123 tests_libpspp_hmap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
125 tests_libpspp_hmapx_test_SOURCES = \
127 src/libpspp/hmapx.c \
128 tests/libpspp/hmapx-test.c
129 tests_libpspp_hmapx_test_LDADD = gl/libgl.la $(LIBINTL)
130 tests_libpspp_hmapx_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
132 tests_libpspp_i18n_test_SOURCES = tests/libpspp/i18n-test.c
133 tests_libpspp_i18n_test_LDADD = src/libpspp/libpspp.la gl/libgl.la $(LIBINTL)
135 tests_libpspp_abt_test_SOURCES = \
137 tests/libpspp/abt-test.c
138 tests_libpspp_abt_test_LDADD = gl/libgl.la $(LIBINTL)
139 tests_libpspp_abt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
141 tests_libpspp_bt_test_SOURCES = \
143 tests/libpspp/bt-test.c
144 tests_libpspp_bt_test_LDADD = gl/libgl.la
145 tests_libpspp_bt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
147 tests_libpspp_range_map_test_SOURCES = \
149 src/libpspp/range-map.c \
150 tests/libpspp/range-map-test.c
151 tests_libpspp_range_map_test_LDADD = gl/libgl.la $(LIBINTL)
152 tests_libpspp_range_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
154 tests_libpspp_range_set_test_SOURCES = \
157 src/libpspp/range-set.c \
158 src/libpspp/temp-file.c \
159 tests/libpspp/range-set-test.c
160 tests_libpspp_range_set_test_LDADD = gl/libgl.la $(LIBINTL)
161 tests_libpspp_range_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
163 tests_libpspp_str_test_SOURCES = \
164 tests/libpspp/str-test.c
165 tests_libpspp_str_test_LDADD = src/libpspp/libpspp.la gl/libgl.la $(LIBINTL)
167 tests_libpspp_string_map_test_SOURCES = \
168 src/libpspp/hash-functions.c \
170 src/libpspp/string-map.c \
171 src/libpspp/string-set.c \
172 tests/libpspp/string-map-test.c
173 tests_libpspp_string_map_test_LDADD = gl/libgl.la $(LIBINTL)
174 tests_libpspp_string_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
176 tests_libpspp_stringi_map_test_SOURCES = \
177 src/libpspp/hash-functions.c \
181 src/libpspp/stringi-map.c \
182 src/libpspp/string-set.c \
183 src/libpspp/stringi-set.c \
184 src/libpspp/temp-file.c \
185 tests/libpspp/stringi-map-test.c
186 tests_libpspp_stringi_map_test_LDADD = gl/libgl.la $(LIBINTL)
187 tests_libpspp_stringi_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
189 tests_libpspp_string_set_test_SOURCES = \
190 src/libpspp/hash-functions.c \
192 src/libpspp/string-set.c \
193 tests/libpspp/string-set-test.c
194 tests_libpspp_string_set_test_LDADD = gl/libgl.la $(LIBINTL)
195 tests_libpspp_string_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
197 tests_libpspp_stringi_set_test_SOURCES = \
198 src/libpspp/hash-functions.c \
202 src/libpspp/stringi-set.c \
203 src/libpspp/temp-file.c \
204 tests/libpspp/stringi-set-test.c
205 tests_libpspp_stringi_set_test_LDADD = gl/libgl.la $(LIBINTL)
206 tests_libpspp_stringi_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
208 tests_libpspp_tower_test_SOURCES = \
211 src/libpspp/temp-file.c \
212 src/libpspp/tower.c \
213 tests/libpspp/tower-test.c
214 tests_libpspp_tower_test_LDADD = gl/libgl.la $(LIBINTL)
215 tests_libpspp_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
217 tests_libpspp_sparse_array_test_SOURCES = \
218 src/libpspp/sparse-array.c \
220 tests/libpspp/sparse-array-test.c \
221 src/libpspp/temp-file.c
222 tests_libpspp_sparse_array_test_LDADD = gl/libgl.la $(LIBINTL)
223 tests_libpspp_sparse_array_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
225 tests_libpspp_sparse_xarray_test_SOURCES = \
226 src/libpspp/argv-parser.c \
228 src/libpspp/deque.c \
229 src/libpspp/ext-array.c \
230 src/libpspp/model-checker.c \
231 src/libpspp/range-set.c \
232 src/libpspp/sparse-array.c \
233 src/libpspp/sparse-xarray.c \
236 src/libpspp/temp-file.c \
237 tests/libpspp/sparse-xarray-test.c
238 tests_libpspp_sparse_xarray_test_LDADD = gl/libgl.la $(LIBINTL)
239 tests_libpspp_sparse_xarray_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
241 tests_formats_inexactify_SOURCES = tests/formats/inexactify.c
243 noinst_PROGRAMS += tests/dissect-sysfile
244 tests_dissect_sysfile_SOURCES = \
245 src/libpspp/integer-format.c \
246 src/libpspp/float-format.c \
247 tests/dissect-sysfile.c
248 tests_dissect_sysfile_LDADD = gl/libgl.la $(LIBINTL)
249 tests_dissect_sysfile_CPPFLAGS = $(AM_CPPFLAGS) -DINSTALLDIR=\"$(bindir)\"
251 check_PROGRAMS += tests/output/render-test
252 tests_output_render_test_SOURCES = tests/output/render-test.c
253 tests_output_render_test_LDADD = \
255 src/libpspp-core.la \
262 tests/weighting.data \
263 tests/coverage.sh tests/test_template \
264 tests/v13.sav tests/v14.sav \
265 tests/expressions/randist/beta.out \
266 tests/expressions/randist/cauchy.out \
267 tests/expressions/randist/chisq.out \
268 tests/expressions/randist/exp.out \
269 tests/expressions/randist/f.out \
270 tests/expressions/randist/gamma.out \
271 tests/expressions/randist/laplace.out \
272 tests/expressions/randist/lnormal.out \
273 tests/expressions/randist/logistic.out \
274 tests/expressions/randist/normal.out \
275 tests/expressions/randist/pareto.out \
276 tests/expressions/randist/compare.pl \
277 tests/expressions/randist/randist.pl \
278 tests/expressions/randist/randist.txt \
279 tests/expressions/randist/t.out \
280 tests/expressions/randist/uniform.out \
281 tests/expressions/randist/weibull.out \
282 tests/formats/bcd-in.expected.cmp.gz \
283 tests/formats/binhex-out.expected.gz \
284 tests/formats/ib-in.expected.cmp.gz \
285 tests/formats/legacy-in.expected.cmp.gz \
286 tests/formats/num-in.expected.gz \
287 tests/formats/num-out.expected.cmp.gz \
288 tests/formats/num-out-cmp.pl \
289 tests/formats/num-out-compare.pl \
290 tests/formats/num-out-decmp.pl \
291 tests/formats/num-out.pl \
292 tests/language/data-io/Book1.gnm.unzipped
294 CLEANFILES += *.save pspp.* foo*
296 check-for-export-var-val:
297 @if grep -q 'export .*=' $(dist_TESTS) ; then \
298 echo 'One or more tests contain non-portable "export VAR=val" syntax' ; \
302 DIST_HOOKS += check-for-export-var-val
304 EXTRA_DIST += tests/OChangeLog
313 $(srcdir)/package.m4 \
317 tests/data/calendar.at \
318 tests/data/data-in.at \
319 tests/data/sys-file.at \
320 tests/language/command.at \
321 tests/language/control/do-if.at \
322 tests/language/control/do-repeat.at \
323 tests/language/control/loop.at \
324 tests/language/data-io/add-files.at \
325 tests/language/data-io/data-list.at \
326 tests/language/data-io/data-reader.at \
327 tests/language/data-io/file-handle.at \
328 tests/language/data-io/get-data-gnm.at \
329 tests/language/data-io/get-data-psql.at \
330 tests/language/data-io/get-data-txt.at \
331 tests/language/data-io/list.at \
332 tests/language/data-io/match-files.at \
333 tests/language/data-io/print.at \
334 tests/language/data-io/save.at \
335 tests/language/data-io/save-translate.at \
336 tests/language/dictionary/attributes.at \
337 tests/language/dictionary/missing-values.at \
338 tests/language/dictionary/mrsets.at \
339 tests/language/dictionary/rename-variables.at \
340 tests/language/dictionary/split-file.at \
341 tests/language/dictionary/sys-file-info.at \
342 tests/language/expressions/evaluate.at \
343 tests/language/lexer/variable-parser.at \
344 tests/language/stats/aggregate.at \
345 tests/language/stats/autorecode.at \
346 tests/language/stats/correlations.at \
347 tests/language/stats/crosstabs.at \
348 tests/language/stats/descriptives.at \
349 tests/language/stats/examine.at \
350 tests/language/stats/factor.at \
351 tests/language/stats/flip.at \
352 tests/language/stats/frequencies.at \
353 tests/language/stats/npar.at \
354 tests/language/stats/oneway.at \
355 tests/language/stats/rank.at \
356 tests/language/stats/regression.at \
357 tests/language/stats/reliability.at \
358 tests/language/stats/roc.at \
359 tests/language/stats/sort-cases.at \
360 tests/language/stats/t-test.at \
361 tests/language/utilities/insert.at \
362 tests/language/utilities/permissions.at \
363 tests/language/utilities/set.at \
364 tests/language/utilities/title.at \
365 tests/language/xforms/compute.at \
366 tests/language/xforms/count.at \
367 tests/language/xforms/recode.at \
368 tests/language/xforms/sample.at \
369 tests/language/xforms/select-if.at \
370 tests/libpspp/abt.at \
371 tests/libpspp/bt.at \
372 tests/libpspp/heap.at \
373 tests/libpspp/hmap.at \
374 tests/libpspp/hmapx.at \
375 tests/libpspp/i18n.at \
376 tests/libpspp/ll.at \
377 tests/libpspp/llx.at \
378 tests/libpspp/range-map.at \
379 tests/libpspp/range-set.at \
380 tests/libpspp/sparse-array.at \
381 tests/libpspp/str.at \
382 tests/libpspp/string-map.at \
383 tests/libpspp/stringi-map.at \
384 tests/libpspp/string-set.at \
385 tests/libpspp/stringi-set.at \
386 tests/libpspp/tower.at \
387 tests/math/moments.at \
388 tests/output/render.at \
389 tests/output/charts.at \
390 tests/ui/terminal/main.at \
393 TESTSUITE = $(srcdir)/tests/testsuite
394 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
396 $(srcdir)/tests/testsuite.at: tests/testsuite.in Makefile
398 for t in $(TESTSUITE_AT); do \
399 echo "m4_include([$$t])" >> $@ ;\
403 CHECK_LOCAL += tests_check
404 tests_check: tests/atconfig tests/atlocal $(TESTSUITE) $(check_PROGRAMS)
405 $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=tests/libpspp:tests/output:src/ui/terminal $(TESTSUITEFLAGS)
407 CLEAN_LOCAL += tests_clean
409 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
411 AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
412 AUTOTEST = $(AUTOM4TE) --language=autotest
413 $(TESTSUITE): package.m4 $(srcdir)/tests/testsuite.at $(TESTSUITE_AT)
414 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
417 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
418 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
420 echo '# Signature of the current package.' && \
421 echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
422 echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
423 echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
424 echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
425 echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' && \
426 echo 'm4_define([AT_PACKAGE_URL], [$(PACKAGE_URL)])'; \
427 } >'$(srcdir)/package.m4'