b0039df456be5dffdbd5cae89c1d9a660650f700
[pspp-builds.git] / tests / automake.mk
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3 TESTS_ENVIRONMENT = top_srcdir='$(top_srcdir)' top_builddir='$(top_builddir)'
4 TESTS_ENVIRONMENT += PERL='@PERL@' PG_CONFIG='@PG_CONFIG@'
5
6 # Allow locale_charset to find charset.alias before running "make install".
7 TESTS_ENVIRONMENT += CHARSETALIASDIR='$(abs_top_builddir)/gl'
8
9 dist_TESTS = \
10         tests/command/aggregate.sh \
11         tests/command/autorecod.sh \
12         tests/command/beg-data.sh \
13         tests/command/bignum.sh \
14         tests/command/count.sh \
15         tests/command/datasheet.sh \
16         tests/command/data-list.sh \
17         tests/command/do-if.sh \
18         tests/command/do-repeat.sh \
19         tests/command/erase.sh \
20         tests/command/examine.sh \
21         tests/command/examine-extremes.sh \
22         tests/command/examine-percentiles.sh \
23         tests/command/file-label.sh \
24         tests/command/file-handle.sh \
25         tests/command/filter.sh \
26         tests/command/flip.sh \
27         tests/command/get-data-txt.sh \
28         tests/command/get-data-txt-examples.sh \
29         tests/command/get-data-txt-importcases.sh \
30         tests/command/import-export.sh \
31         tests/command/input-program.sh \
32         tests/command/insert.sh \
33         tests/command/lag.sh \
34         tests/command/list.sh \
35         tests/command/loop.sh \
36         tests/command/longvars.sh \
37         tests/command/match-files.sh \
38         tests/command/missing-values.sh \
39         tests/command/no_case_size.sh \
40         tests/command/n_of_cases.sh \
41         tests/command/npar-binomial.sh \
42         tests/command/npar-chisquare.sh \
43         tests/command/oneway.sh \
44         tests/command/oneway-missing.sh \
45         tests/command/oneway-with-splits.sh \
46         tests/command/permissions.sh \
47         tests/command/print.sh \
48         tests/command/print-strings.sh \
49         tests/command/rank.sh \
50         tests/command/rename.sh \
51         tests/command/regression.sh \
52         tests/command/regression-qr.sh \
53         tests/command/sample.sh \
54         tests/command/sort.sh \
55         tests/command/sysfiles.sh \
56         tests/command/sysfiles-old.sh \
57         tests/command/sysfile-info.sh \
58         tests/command/split-file.sh \
59         tests/command/t-test-1-indep-val.sh \
60         tests/command/t-test-1-sample-missing-anal.sh \
61         tests/command/t-test-1-sample-missing-list.sh \
62         tests/command/t-test-1s.sh \
63         tests/command/t-test-groups.sh \
64         tests/command/t-test-indep-missing-anal.sh \
65         tests/command/t-test-indep-missing-list.sh \
66         tests/command/t-test-paired-missing-anal.sh \
67         tests/command/t-test-paired-missing-list.sh \
68         tests/command/t-test-pairs.sh \
69         tests/command/trimmed-mean.sh \
70         tests/command/tabs.sh \
71         tests/command/use.sh \
72         tests/command/variable-display.sh \
73         tests/command/vector.sh \
74         tests/command/very-long-strings.sh \
75         tests/command/weight.sh \
76         tests/formats/bcd-in.sh \
77         tests/formats/binhex-out.sh \
78         tests/formats/date-in.sh \
79         tests/formats/date-out.sh \
80         tests/formats/float-format.sh \
81         tests/formats/format-guesser.sh \
82         tests/formats/ib-in.sh \
83         tests/formats/legacy-in.sh \
84         tests/formats/month-in.sh \
85         tests/formats/month-out.sh \
86         tests/formats/num-in.sh \
87         tests/formats/num-out.sh \
88         tests/formats/time-in.sh \
89         tests/formats/time-out.sh \
90         tests/formats/wkday-in.sh \
91         tests/formats/wkday-out.sh \
92         tests/formats/360.sh \
93         tests/bugs/agg_crash.sh \
94         tests/bugs/agg-crash-2.sh \
95         tests/bugs/alpha-freq.sh \
96         tests/bugs/big-input.sh \
97         tests/bugs/big-input-2.sh \
98         tests/bugs/case-map.sh \
99         tests/bugs/comment-at-eof.sh \
100         tests/bugs/compute-fmt.sh \
101         tests/bugs/compression.sh \
102         tests/bugs/crosstabs.sh \
103         tests/bugs/crosstabs-crash.sh \
104         tests/bugs/crosstabs-crash2.sh \
105         tests/bugs/curtailed.sh \
106         tests/bugs/data-crash.sh \
107         tests/bugs/double-frequency.sh \
108         tests/bugs/empty-do-repeat.sh \
109         tests/bugs/get.sh \
110         tests/bugs/examine-1sample.sh \
111         tests/bugs/examine-missing.sh \
112         tests/bugs/examine-missing2.sh \
113         tests/bugs/freq-nolabels.sh \
114         tests/bugs/get-no-file.sh \
115         tests/bugs/html-frequency.sh \
116         tests/bugs/if_crash.sh \
117         tests/bugs/input-crash.sh \
118         tests/bugs/lag_crash.sh \
119         tests/bugs/list-overflow.sh \
120         tests/bugs/match-files-scratch.sh \
121         tests/bugs/multipass.sh \
122         tests/bugs/overwrite-input-file.sh \
123         tests/bugs/overwrite-special-file.sh \
124         tests/bugs/piechart.sh \
125         tests/bugs/random.sh \
126         tests/bugs/signals.sh \
127         tests/bugs/t-test-with-temp.sh \
128         tests/bugs/t-test.sh \
129         tests/bugs/t-test-alpha.sh \
130         tests/bugs/t-test-alpha2.sh \
131         tests/bugs/t-test-alpha3.sh \
132         tests/bugs/temporary.sh \
133         tests/bugs/unwritable-dir.sh \
134         tests/bugs/val-labs.sh \
135         tests/bugs/val-labs-trailing-slash.sh \
136         tests/bugs/recode-copy-bug.sh \
137         tests/bugs/computebug.sh \
138         tests/bugs/compute-lv.sh \
139         tests/bugs/compute-sum.sh \
140         tests/bugs/temp-freq.sh \
141         tests/bugs/print-crash.sh \
142         tests/bugs/keep-all.sh \
143         tests/output/paper-size.sh \
144         tests/xforms/recode.sh \
145         tests/stats/descript-basic.sh \
146         tests/stats/descript-missing.sh \
147         tests/stats/descript-mean-bug.sh \
148         tests/stats/moments.sh \
149         tests/stats/percentiles-compatible.sh \
150         tests/stats/ntiles.sh \
151         tests/stats/percentiles-enhanced.sh \
152         tests/expressions/expressions.sh \
153         tests/expressions/epoch.sh \
154         tests/expressions/randist.sh \
155         tests/expressions/valuelabel.sh \
156         tests/expressions/variables.sh \
157         tests/expressions/vectors.sh
158
159 if GNM_SUPPORT
160 dist_TESTS += tests/command/get-data-gnm.sh 
161 endif
162
163 if PSQL_SUPPORT
164 dist_TESTS += tests/command/get-data-psql.sh 
165 endif
166
167 nodist_TESTS = \
168         tests/libpspp/abt-test \
169         tests/libpspp/bt-test \
170         tests/libpspp/heap-test \
171         tests/libpspp/ll-test \
172         tests/libpspp/llx-test \
173         tests/libpspp/range-map-test \
174         tests/libpspp/range-set-test \
175         tests/libpspp/sparse-array-test \
176         tests/libpspp/str-test \
177         tests/libpspp/tower-test
178
179 TESTS = $(dist_TESTS) $(nodist_TESTS)
180
181 check_PROGRAMS += \
182         $(nodist_TESTS) \
183         tests/formats/inexactify
184
185 tests_libpspp_ll_test_SOURCES = \
186         src/libpspp/ll.c \
187         src/libpspp/ll.h \
188         tests/libpspp/ll-test.c
189 tests_libpspp_ll_test_LDADD = gl/libgl.la @LIBINTL@
190
191 tests_libpspp_llx_test_SOURCES = \
192         src/libpspp/ll.c \
193         src/libpspp/ll.h \
194         src/libpspp/llx.c \
195         src/libpspp/llx.h \
196         tests/libpspp/llx-test.c
197 tests_libpspp_llx_test_LDADD = gl/libgl.la @LIBINTL@
198
199 tests_libpspp_heap_test_SOURCES = \
200         src/libpspp/heap.c \
201         src/libpspp/heap.h \
202         src/libpspp/pool.c \
203         src/libpspp/pool.h \
204         tests/libpspp/heap-test.c
205 tests_libpspp_heap_test_LDADD = gl/libgl.la @LIBINTL@
206 tests_libpspp_heap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
207
208 tests_libpspp_abt_test_SOURCES = \
209         src/libpspp/abt.c \
210         src/libpspp/abt.h \
211         tests/libpspp/abt-test.c
212 tests_libpspp_abt_test_LDADD = gl/libgl.la @LIBINTL@
213 tests_libpspp_abt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
214
215 tests_libpspp_bt_test_SOURCES = \
216         src/libpspp/bt.c \
217         src/libpspp/bt.h \
218         tests/libpspp/bt-test.c
219 tests_libpspp_bt_test_LDADD = gl/libgl.la
220 tests_libpspp_bt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
221
222 tests_libpspp_range_map_test_SOURCES = \
223         src/libpspp/bt.c \
224         src/libpspp/bt.h \
225         src/libpspp/range-map.c \
226         src/libpspp/range-map.h \
227         tests/libpspp/range-map-test.c
228 tests_libpspp_range_map_test_LDADD = gl/libgl.la @LIBINTL@
229 tests_libpspp_range_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
230
231 tests_libpspp_range_set_test_SOURCES = \
232         src/libpspp/bt.c \
233         src/libpspp/bt.h \
234         src/libpspp/pool.c \
235         src/libpspp/pool.h \
236         src/libpspp/range-set.c \
237         src/libpspp/range-set.h \
238         tests/libpspp/range-set-test.c
239 tests_libpspp_range_set_test_LDADD = gl/libgl.la @LIBINTL@
240 tests_libpspp_range_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
241
242 tests_libpspp_str_test_SOURCES = \
243         tests/libpspp/str-test.c
244 tests_libpspp_str_test_LDADD = src/libpspp/libpspp.a gl/libgl.la @LIBINTL@
245
246 tests_libpspp_tower_test_SOURCES = \
247         src/libpspp/abt.c \
248         src/libpspp/abt.h \
249         src/libpspp/pool.c \
250         src/libpspp/pool.h \
251         src/libpspp/tower.c \
252         src/libpspp/tower.h \
253         tests/libpspp/tower-test.c
254 tests_libpspp_tower_test_LDADD = gl/libgl.la @LIBINTL@
255 tests_libpspp_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
256
257 tests_libpspp_sparse_array_test_SOURCES = \
258         src/libpspp/sparse-array.c \
259         src/libpspp/sparse-array.h \
260         src/libpspp/pool.c \
261         src/libpspp/pool.h \
262         tests/libpspp/sparse-array-test.c
263 tests_libpspp_sparse_array_test_LDADD = gl/libgl.la @LIBINTL@
264 tests_libpspp_sparse_array_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
265
266 tests_formats_inexactify_SOURCES = tests/formats/inexactify.c
267
268 noinst_PROGRAMS += tests/dissect-sysfile
269 tests_dissect_sysfile_SOURCES = \
270         src/libpspp/integer-format.c \
271         src/libpspp/float-format.c \
272         tests/dissect-sysfile.c
273 tests_dissect_sysfile_LDADD = gl/libgl.la @LIBINTL@
274 tests_dissect_sysfile_CPPFLAGS = $(AM_CPPFLAGS) -DINSTALLDIR=\"$(bindir)\"
275
276 EXTRA_DIST += \
277         $(dist_TESTS) \
278         tests/Book1.gnm.unzipped \
279         tests/weighting.data tests/data-list.data tests/list.data \
280         tests/no_case_size.sav \
281         tests/coverage.sh tests/test_template \
282         tests/v13.sav tests/v14.sav \
283         tests/bugs/computebug.stat tests/bugs/computebug.out \
284         tests/bugs/recode-copy-bug-1.stat tests/bugs/recode-copy-bug-2.stat \
285         tests/bugs/recode-copy-bug-1.out tests/bugs/recode-copy-bug-2.out \
286         tests/expressions/randist/beta.out \
287         tests/expressions/randist/cauchy.out \
288         tests/expressions/randist/chisq.out \
289         tests/expressions/randist/exp.out \
290         tests/expressions/randist/f.out \
291         tests/expressions/randist/gamma.out \
292         tests/expressions/randist/laplace.out \
293         tests/expressions/randist/lnormal.out \
294         tests/expressions/randist/logistic.out \
295         tests/expressions/randist/normal.out \
296         tests/expressions/randist/pareto.out \
297         tests/expressions/randist/compare.pl \
298         tests/expressions/randist/randist.pl \
299         tests/expressions/randist/randist.txt \
300         tests/expressions/randist/t.out \
301         tests/expressions/randist/uniform.out \
302         tests/expressions/randist/weibull.out \
303         tests/formats/bcd-in.expected.cmp.gz \
304         tests/formats/binhex-out.expected.gz \
305         tests/formats/ib-in.expected.cmp.gz \
306         tests/formats/legacy-in.expected.cmp.gz \
307         tests/formats/num-in.expected.gz \
308         tests/formats/num-out.expected.cmp.gz \
309         tests/formats/num-out-cmp.pl \
310         tests/formats/num-out-compare.pl \
311         tests/formats/num-out-decmp.pl \
312         tests/formats/num-out.pl
313
314 CLEANFILES += *.save pspp.* foo*
315
316 DIST_HOOKS += check-for-export-var-val
317 check-for-export-var-val:
318         @if grep -q 'export .*=' $(dist_TESTS) ; then \
319          echo 'One or more tests contain non-portable "export VAR=val" syntax' ; \
320          false ; \
321         fi
322
323 EXTRA_DIST += tests/OChangeLog