labeling, with clabels and slabels, all seems to work right
[pspp] / tests / automake.mk
1 # PSPP - a program for statistical analysis.
2 # Copyright (C) 2017 Free Software Foundation, Inc.
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 #
17 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
18
19 check-programs: $(check_PROGRAMS)
20
21 check_PROGRAMS += tests/data/datasheet-test
22 tests_data_datasheet_test_SOURCES = \
23         tests/data/datasheet-test.c
24 tests_data_datasheet_test_LDADD = src/libpspp-core.la
25 tests_data_datasheet_test_CFLAGS = $(AM_CFLAGS)
26
27 check_PROGRAMS += tests/data/sack
28 tests_data_sack_SOURCES = \
29         tests/data/sack.c
30 tests_data_sack_LDADD = src/libpspp-core.la
31 tests_data_sack_CFLAGS = $(AM_CFLAGS)
32
33 check_PROGRAMS += tests/data/spreadsheet-test
34 tests_data_spreadsheet_test_SOURCES = \
35         tests/data/spreadsheet-test.c
36 tests_data_spreadsheet_test_LDADD = src/libpspp-core.la
37 tests_data_spreadsheet_test_CFLAGS = $(AM_CFLAGS)
38
39 check_PROGRAMS += tests/libpspp/line-reader-test
40 tests_libpspp_line_reader_test_SOURCES = tests/libpspp/line-reader-test.c
41 tests_libpspp_line_reader_test_LDADD = src/libpspp-core.la
42
43 check_PROGRAMS += tests/libpspp/ll-test
44 tests_libpspp_ll_test_SOURCES = \
45         src/libpspp/ll.c \
46         tests/libpspp/ll-test.c
47 tests_libpspp_ll_test_CFLAGS = $(AM_CFLAGS)
48
49 check_PROGRAMS += tests/libpspp/llx-test
50 tests_libpspp_llx_test_SOURCES = \
51         src/libpspp/ll.c \
52         src/libpspp/llx.c \
53         tests/libpspp/llx-test.c
54 tests_libpspp_llx_test_CFLAGS = $(AM_CFLAGS)
55
56 check_PROGRAMS += tests/libpspp/encoding-guesser-test
57 tests_libpspp_encoding_guesser_test_SOURCES = \
58         tests/libpspp/encoding-guesser-test.c
59 tests_libpspp_encoding_guesser_test_LDADD = src/libpspp-core.la
60
61 check_PROGRAMS += tests/libpspp/heap-test
62 tests_libpspp_heap_test_SOURCES = \
63         tests/libpspp/heap-test.c
64 tests_libpspp_heap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
65 tests_libpspp_heap_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
66
67 check_PROGRAMS += tests/libpspp/hmap-test
68 tests_libpspp_hmap_test_SOURCES = \
69         src/libpspp/hmap.c \
70         tests/libpspp/hmap-test.c
71 tests_libpspp_hmap_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
72
73 check_PROGRAMS += tests/libpspp/hmapx-test
74 tests_libpspp_hmapx_test_SOURCES = \
75         src/libpspp/hmap.c \
76         src/libpspp/hmapx.c \
77         tests/libpspp/hmapx-test.c
78 tests_libpspp_hmapx_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
79
80 check_PROGRAMS += tests/libpspp/i18n-test
81 tests_libpspp_i18n_test_SOURCES = tests/libpspp/i18n-test.c
82 tests_libpspp_i18n_test_LDADD = src/libpspp-core.la gl/libgl.la
83
84 check_PROGRAMS += tests/libpspp/abt-test
85 tests_libpspp_abt_test_SOURCES = \
86         src/libpspp/abt.c \
87         tests/libpspp/abt-test.c
88 tests_libpspp_abt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
89
90 check_PROGRAMS += tests/libpspp/bt-test
91 tests_libpspp_bt_test_SOURCES = \
92         src/libpspp/bt.c \
93         tests/libpspp/bt-test.c
94 tests_libpspp_bt_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
95
96 check_PROGRAMS += tests/libpspp/cmac-aes256-test
97 tests_libpspp_cmac_aes256_test_SOURCES = \
98         src/libpspp/cmac-aes256.c \
99         tests/libpspp/cmac-aes256-test.c
100 tests_libpspp_cmac_aes256_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
101
102 check_PROGRAMS += tests/libpspp/range-map-test
103 tests_libpspp_range_map_test_SOURCES = \
104         src/libpspp/bt.c \
105         src/libpspp/range-map.c \
106         tests/libpspp/range-map-test.c
107 tests_libpspp_range_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
108
109 check_PROGRAMS += tests/libpspp/range-set-test
110 tests_libpspp_range_set_test_SOURCES = \
111         tests/libpspp/range-set-test.c
112 tests_libpspp_range_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
113 tests_libpspp_range_set_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
114
115 check_PROGRAMS += tests/libpspp/range-tower-test
116 tests_libpspp_range_tower_test_SOURCES = \
117         tests/libpspp/range-tower-test.c
118 tests_libpspp_range_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
119 tests_libpspp_range_tower_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
120
121 check_PROGRAMS += tests/libpspp/str-test
122 tests_libpspp_str_test_SOURCES = \
123         tests/libpspp/str-test.c
124 tests_libpspp_str_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
125
126 check_PROGRAMS += tests/libpspp/string-map-test
127 tests_libpspp_string_map_test_SOURCES = \
128         tests/libpspp/string-map-test.c
129 tests_libpspp_string_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
130 tests_libpspp_string_map_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
131
132 check_PROGRAMS += tests/libpspp/stringi-map-test
133 tests_libpspp_stringi_map_test_SOURCES = \
134         tests/libpspp/stringi-map-test.c
135 tests_libpspp_stringi_map_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
136 tests_libpspp_stringi_map_test_LDADD = src/libpspp-core.la
137
138 check_PROGRAMS += tests/libpspp/string-set-test
139 tests_libpspp_string_set_test_SOURCES = \
140         src/libpspp/hash-functions.c \
141         src/libpspp/hmap.c \
142         src/libpspp/string-set.c \
143         tests/libpspp/string-set-test.c
144 tests_libpspp_string_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
145
146 check_PROGRAMS += tests/libpspp/stringi-set-test
147 tests_libpspp_stringi_set_test_SOURCES = \
148         tests/libpspp/stringi-set-test.c
149 tests_libpspp_stringi_set_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
150 tests_libpspp_stringi_set_test_LDADD = src/libpspp-core.la
151
152 check_PROGRAMS += tests/libpspp/tower-test
153 tests_libpspp_tower_test_SOURCES = \
154         tests/libpspp/tower-test.c
155 tests_libpspp_tower_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
156 tests_libpspp_tower_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
157
158 check_PROGRAMS += tests/libpspp/u8-istream-test
159 tests_libpspp_u8_istream_test_SOURCES = tests/libpspp/u8-istream-test.c
160 tests_libpspp_u8_istream_test_LDADD = src/libpspp-core.la
161
162 check_PROGRAMS += tests/libpspp/sparse-array-test
163 tests_libpspp_sparse_array_test_SOURCES = \
164         tests/libpspp/sparse-array-test.c
165 tests_libpspp_sparse_array_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
166 tests_libpspp_sparse_array_test_LDADD = src/libpspp/liblibpspp.la gl/libgl.la
167
168 check_PROGRAMS += tests/libpspp/sparse-xarray-test
169 tests_libpspp_sparse_xarray_test_SOURCES = \
170         tests/libpspp/sparse-xarray-test.c
171 tests_libpspp_sparse_xarray_test_CPPFLAGS = $(AM_CPPFLAGS) -DASSERT_LEVEL=10
172 tests_libpspp_sparse_xarray_test_LDADD = src/libpspp/liblibpspp.la \
173         src/libpspp-core.la \
174         gl/libgl.la
175
176 check_PROGRAMS += tests/data/inexactify
177 tests_data_inexactify_SOURCES = tests/data/inexactify.c
178
179 check_PROGRAMS += tests/language/lexer/command-name-test
180 tests_language_lexer_command_name_test_SOURCES = \
181         src/data/identifier.c \
182         src/language/lexer/command-name.c \
183         tests/language/lexer/command-name-test.c
184 tests_language_lexer_command_name_test_LDADD = \
185         src/libpspp/liblibpspp.la \
186         gl/libgl.la
187 tests_language_lexer_command_name_test_CFLAGS = $(AM_CFLAGS)
188
189 check_PROGRAMS += tests/language/lexer/scan-test
190 tests_language_lexer_scan_test_SOURCES = \
191         src/data/identifier.c \
192         src/language/lexer/command-name.c \
193         src/language/lexer/scan.c \
194         src/language/lexer/segment.c \
195         src/language/lexer/token.c \
196         tests/language/lexer/scan-test.c
197 tests_language_lexer_scan_test_CFLAGS = $(AM_CFLAGS)
198 tests_language_lexer_scan_test_LDADD = \
199         src/libpspp/liblibpspp.la \
200         gl/libgl.la
201
202 check_PROGRAMS += tests/language/lexer/segment-test
203 tests_language_lexer_segment_test_SOURCES = \
204         src/data/identifier.c \
205         src/language/lexer/command-name.c \
206         src/language/lexer/segment.c \
207         tests/language/lexer/segment-test.c
208 tests_language_lexer_segment_test_CFLAGS = $(AM_CFLAGS)
209 tests_language_lexer_segment_test_LDADD = \
210         src/libpspp/liblibpspp.la \
211         gl/libgl.la
212
213 check_PROGRAMS += tests/libpspp/zip-test
214 tests_libpspp_zip_test_SOURCES = \
215         tests/libpspp/zip-test.c
216
217 tests_libpspp_zip_test_CFLAGS = $(AM_CFLAGS)
218 tests_libpspp_zip_test_LDADD = \
219         src/libpspp/liblibpspp.la \
220         src/libpspp-core.la \
221         gl/libgl.la
222
223 check_PROGRAMS += tests/math/chart-get-scale-test
224 tests_math_chart_get_scale_test_SOURCES = tests/math/chart-get-scale-test.c
225 tests_math_chart_get_scale_test_LDADD = \
226         src/math/libpspp-math.la \
227         src/libpspp/liblibpspp.la \
228         src/libpspp-core.la \
229         gl/libgl.la
230
231 check_PROGRAMS += tests/math/chart-get-ticks-format-test
232 tests_math_chart_get_ticks_format_test_SOURCES = tests/math/chart-get-ticks-format-test.c
233 tests_math_chart_get_ticks_format_test_LDADD = \
234         src/math/libpspp-math.la \
235         src/libpspp/liblibpspp.la \
236         src/libpspp-core.la \
237         gl/libgl.la
238
239 check_PROGRAMS += tests/output/pivot-table-test
240 tests_output_pivot_table_test_SOURCES = tests/output/pivot-table-test.c
241 tests_output_pivot_table_test_LDADD = \
242         src/libpspp.la \
243         src/libpspp-core.la \
244         gl/libgl.la \
245         $(CAIRO_LIBS)
246 EXTRA_DIST += tests/output/look.stt
247
248 check_PROGRAMS += tests/output/ascii-test
249 tests_output_ascii_test_SOURCES = tests/output/ascii-test.c
250 tests_output_ascii_test_LDADD = \
251         src/libpspp.la \
252         src/libpspp-core.la \
253         $(CAIRO_LIBS)
254
255 check_PROGRAMS += tests/ui/syntax-gen-test
256 tests_ui_syntax_gen_test_SOURCES = tests/ui/syntax-gen-test.c
257 tests_ui_syntax_gen_test_LDADD = \
258         src/ui/libuicommon.la \
259         src/libpspp-core.la \
260         $(CAIRO_LIBS)
261
262 check_PROGRAMS += tests/output/tex-glyphs
263 tests_output_tex_glyphs_SOURCES = \
264         tests/output/tex-glyphs.c
265 tests_output_tex_glyphs_LDADD = src/output/liboutput.la src/libpspp-core.la
266 tests_output_tex_glyphs_CFLAGS = $(AM_CFLAGS) -I $(top_srcdir)/src/output
267
268 check_PROGRAMS += tests/output/tex-strings
269 tests_output_tex_strings_SOURCES = \
270         tests/output/tex-strings.c
271 tests_output_tex_strings_LDADD = src/output/liboutput.la src/libpspp-core.la
272 tests_output_tex_strings_CFLAGS = $(AM_CFLAGS) -I $(top_srcdir)/src/output
273
274
275 EXTRA_DIST += \
276         tests/coverage.sh \
277         tests/data/repeating-2.ods \
278         tests/data/simple.ods \
279         tests/data/simple.gnumeric \
280         tests/data/sparse.ods \
281         tests/data/sparse.gnumeric \
282         tests/data/holey.ods \
283         tests/data/holey.gnumeric \
284         tests/data/multisheet.ods \
285         tests/data/multisheet.gnumeric \
286         tests/data/repeating.ods \
287         tests/data/repeating.gnumeric \
288         tests/data/one-thousand-by-fifty-three.ods \
289         tests/data/one-thousand-by-fifty-three.gnumeric \
290         tests/data/CVE-2017-10791.sav \
291         tests/data/CVE-2017-10792.sav \
292         tests/data/bcd-in.expected.cmp.gz \
293         tests/data/binhex-in.expected.cmp.gz \
294         tests/data/binhex-out.expected.gz \
295         tests/data/hotel-encrypted.sav \
296         tests/data/legacy-in.expected.cmp.gz \
297         tests/data/num-in.expected.gz \
298         tests/data/num-out.expected.cmp.gz \
299         tests/data/test-date-input.py \
300         tests/data/test-time-input.py \
301         tests/data/v13.sav \
302         tests/data/v14.sav \
303         tests/data/test-encrypted.sps \
304         tests/data/test-decrypted.spv \
305         tests/data/test-encrypted.spv \
306         tests/language/mann-whitney.txt \
307         tests/language/data-io/Book1.gnm.unzipped \
308         tests/language/data-io/test.ods \
309         tests/language/data-io/newone.ods \
310         tests/language/data-io/readnames.ods \
311         tests/language/stats/llz.zsav \
312         tests/utilities/regress.spv
313
314 CLEANFILES += *.save pspp.* foo*
315 \f
316 # Autotest testsuite
317
318 EXTRA_DIST += \
319         tests/testsuite.in \
320         $(TESTSUITE_AT) \
321         $(TESTSUITE) \
322         tests/atlocal.in \
323         $(srcdir)/package.m4 \
324         $(TESTSUITE)
325
326 TESTSUITE_AT = \
327         tests/data/calendar.at \
328         tests/data/data-in.at \
329         tests/data/data-out.at \
330         tests/data/datasheet-test.at \
331         tests/data/spreadsheet-test.at \
332         tests/data/dictionary.at \
333         tests/data/file.at \
334         tests/data/format-guesser.at \
335         tests/data/mdd-file.at \
336         tests/data/pc+-file-reader.at \
337         tests/data/por-file.at \
338         tests/data/sys-file-reader.at \
339         tests/data/sys-file.at \
340         tests/data/encrypted-file.at \
341         tests/language/command.at \
342         tests/language/control/define.at \
343         tests/language/control/do-if.at \
344         tests/language/control/do-repeat.at \
345         tests/language/control/loop.at \
346         tests/language/control/temporary.at \
347         tests/language/data-io/add-files.at \
348         tests/language/data-io/data-list.at \
349         tests/language/data-io/data-reader.at \
350         tests/language/data-io/dataset.at \
351         tests/language/data-io/file-handle.at \
352         tests/language/data-io/get-data-spreadsheet.at \
353         tests/language/data-io/get-data-psql.at \
354         tests/language/data-io/get-data-txt.at \
355         tests/language/data-io/get.at \
356         tests/language/data-io/inpt-pgm.at \
357         tests/language/data-io/list.at \
358         tests/language/data-io/match-files.at \
359         tests/language/data-io/matrix-data.at \
360         tests/language/data-io/matrix-reader.at \
361         tests/language/data-io/mconvert.at \
362         tests/language/data-io/print-space.at \
363         tests/language/data-io/print.at \
364         tests/language/data-io/save.at \
365         tests/language/data-io/save-translate.at \
366         tests/language/data-io/update.at \
367         tests/language/dictionary/attributes.at \
368         tests/language/dictionary/apply.at \
369         tests/language/dictionary/delete-variables.at \
370         tests/language/dictionary/formats.at \
371         tests/language/dictionary/missing-values.at \
372         tests/language/dictionary/mrsets.at \
373         tests/language/dictionary/modify-variables.at \
374         tests/language/dictionary/rename-variables.at \
375         tests/language/dictionary/sort-variables.at \
376         tests/language/dictionary/split-file.at \
377         tests/language/dictionary/sys-file-info.at \
378         tests/language/dictionary/value-labels.at \
379         tests/language/dictionary/variable-display.at \
380         tests/language/dictionary/vector.at \
381         tests/language/dictionary/weight.at \
382         tests/language/expressions/evaluate.at \
383         tests/language/expressions/parse.at \
384         tests/language/lexer/command-name.at \
385         tests/language/lexer/lexer.at \
386         tests/language/lexer/scan.at \
387         tests/language/lexer/segment.at \
388         tests/language/lexer/variable-parser.at \
389         tests/language/stats/aggregate.at \
390         tests/language/stats/autorecode.at \
391         tests/language/stats/correlations.at \
392         tests/language/stats/crosstabs.at \
393         tests/language/stats/ctables.at \
394         tests/language/stats/descriptives.at \
395         tests/language/stats/examine.at \
396         tests/language/stats/graph.at \
397         tests/language/stats/factor.at \
398         tests/language/stats/flip.at \
399         tests/language/stats/frequencies.at \
400         tests/language/stats/glm.at \
401         tests/language/stats/logistic.at \
402         tests/language/stats/matrix.at \
403         tests/language/stats/means.at \
404         tests/language/stats/npar.at \
405         tests/language/stats/oneway.at \
406         tests/language/stats/quick-cluster.at \
407         tests/language/stats/rank.at \
408         tests/language/stats/regression.at \
409         tests/language/stats/reliability.at \
410         tests/language/stats/roc.at \
411         tests/language/stats/sort-cases.at \
412         tests/language/stats/t-test.at \
413         tests/language/utilities/cache.at \
414         tests/language/utilities/cd.at \
415         tests/language/utilities/date.at \
416         tests/language/utilities/host.at \
417         tests/language/utilities/insert.at \
418         tests/language/utilities/permissions.at \
419         tests/language/utilities/set.at \
420         tests/language/utilities/show.at \
421         tests/language/utilities/title.at \
422         tests/language/xforms/compute.at \
423         tests/language/xforms/count.at \
424         tests/language/xforms/recode.at \
425         tests/language/xforms/sample.at \
426         tests/language/xforms/select-if.at \
427         tests/libpspp/abt.at \
428         tests/libpspp/bt.at \
429         tests/libpspp/encoding-guesser.at \
430         tests/libpspp/float-format.at \
431         tests/libpspp/heap.at \
432         tests/libpspp/hmap.at \
433         tests/libpspp/hmapx.at \
434         tests/libpspp/i18n.at \
435         tests/libpspp/line-reader.at \
436         tests/libpspp/ll.at \
437         tests/libpspp/llx.at \
438         tests/libpspp/range-map.at \
439         tests/libpspp/range-set.at \
440         tests/libpspp/range-tower.at \
441         tests/libpspp/sparse-array.at \
442         tests/libpspp/sparse-xarray-test.at \
443         tests/libpspp/str.at \
444         tests/libpspp/string-map.at \
445         tests/libpspp/stringi-map.at \
446         tests/libpspp/string-set.at \
447         tests/libpspp/stringi-set.at \
448         tests/libpspp/tower.at \
449         tests/libpspp/u8-istream.at \
450         tests/libpspp/zip.at \
451         tests/math/chart-geometry.at \
452         tests/math/moments.at \
453         tests/math/randist.at \
454         tests/output/ascii.at \
455         tests/output/charts.at \
456         tests/output/html.at \
457         tests/output/output.at \
458         tests/output/paper-size.at \
459         tests/output/pivot-table.at \
460         tests/output/render.at \
461         tests/output/tables.at \
462         tests/output/tex.at \
463         tests/ui/terminal/main.at \
464         tests/ui/syntax-gen.at \
465         tests/utilities/pspp-convert.at \
466         tests/utilities/pspp-output.at \
467         tests/perl-module.at
468
469 TESTSUITE = $(srcdir)/tests/testsuite
470 DISTCLEANFILES += tests/atconfig tests/atlocal
471 AUTOTEST_PATH = tests/data:tests/language/lexer:tests/libpspp:tests/output:tests/math:src/ui/terminal:utilities
472
473 $(srcdir)/tests/testsuite.at: tests/testsuite.in tests/automake.mk
474         $(AM_V_GEN)printf '\043 Generated automatically -- do not modify!    -*- buffer-read-only: t -*-\n' > $@,tmp
475         $(AM_V_at)cat $< >> $@,tmp
476         $(AM_V_at)for t in $(TESTSUITE_AT); do \
477           echo "m4_include([$$t])" >> $@,tmp ;\
478         done
479         mv $@,tmp $@
480
481 EXTRA_DIST += tests/testsuite.at
482
483 CHECK_LOCAL += tests_check
484 tests_check: tests/atconfig tests/atlocal $(TESTSUITE) $(check_PROGRAMS)
485         XTERM_LOCALE='' $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) RUNNER='$(RUNNER)' $(TESTSUITEFLAGS)
486
487 CLEAN_LOCAL += tests_clean
488 tests_clean:
489         test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
490
491 AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
492 AUTOTEST = $(AUTOM4TE) --language=autotest
493 $(TESTSUITE): package.m4 $(srcdir)/tests/testsuite.at $(TESTSUITE_AT)
494         $(AM_V_GEN)$(AUTOTEST) -I '$(srcdir)' $@.at | $(SED) 's/@<00A0>@/ /g' > $@.tmp
495         test -s $@.tmp
496         $(AM_V_at)mv $@.tmp $@
497
498 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
499 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
500         $(AM_V_GEN):;{ \
501           echo '# Signature of the current package.' && \
502           echo 'm4_define([AT_PACKAGE_NAME],      [$(PACKAGE_NAME)])' && \
503           echo 'm4_define([AT_PACKAGE_TARNAME],   [$(PACKAGE_TARNAME)])' && \
504           echo 'm4_define([AT_PACKAGE_VERSION],   [$(PACKAGE_VERSION)])' && \
505           echo 'm4_define([AT_PACKAGE_STRING],    [$(PACKAGE_STRING)])' && \
506           echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])' && \
507           echo 'm4_define([AT_PACKAGE_URL],       [$(PACKAGE_URL)])'; \
508         } >'$(srcdir)/package.m4'
509
510 check-valgrind:
511         $(MAKE) check RUNNER='$(SHELL) $(abs_top_builddir)/libtool --mode=execute valgrind --log-file=valgrind.%p --leak-check=full --num-callers=20 --suppressions=$(abs_top_srcdir)/tests/valgrind.supp --read-inline-info=yes --read-var-info=yes' TESTSUITEFLAGS='$(TESTSUITEFLAGS) -d'
512         @echo
513         @echo '--------------------------------'
514         @echo 'Valgrind output is in:'
515         @echo 'tests/testsuite.dir/*/valgrind.*'
516         @echo '--------------------------------'
517 EXTRA_DIST += tests/valgrind.supp tests/lsan.supp