tests/atlocal.in \
$(srcdir)/package.m4 \
$(TESTSUITE)
+
TESTSUITE_AT = \
- tests/testsuite.at \
tests/data/calendar.at \
tests/language/dictionary/mrsets.at \
tests/language/expressions/evaluate.at \
tests/language/xforms/recode.at \
tests/math/moments.at \
tests/output/render.at \
+ tests/output/charts.at \
tests/perl-module.at
+
TESTSUITE = $(srcdir)/tests/testsuite
DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
+$(srcdir)/tests/testsuite.at: tests/testsuite.in Makefile
+ cp $< $@
+ for t in $(TESTSUITE_AT); do \
+ echo "m4_include([$$t])" >> $@ ;\
+ done
+
+
CHECK_LOCAL += tests_check
tests_check: tests/atconfig tests/atlocal $(TESTSUITE)
$(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=tests/output:src/ui/terminal $(TESTSUITEFLAGS)
AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
AUTOTEST = $(AUTOM4TE) --language=autotest
-$(TESTSUITE): package.m4 $(TESTSUITE_AT)
+$(TESTSUITE): package.m4 $(srcdir)/tests/testsuite.at $(TESTSUITE_AT)
$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
mv $@.tmp $@
+++ /dev/null
-AT_INIT
-
-# Define SKIP_IF for compatibility with Autotest before 2.64
-m4_ifndef([AT_SKIP_IF],
- [m4_define([AT_SKIP_IF],
- [AT_CHECK([($1) \
-&& exit 77 || exit 0], [0], [ignore], [ignore])])])
-
-m4_include([tests/data/calendar.at])
-m4_include([tests/language/dictionary/mrsets.at])
-m4_include([tests/language/expressions/evaluate.at])
-m4_include([tests/language/stats/aggregate.at])
-m4_include([tests/language/stats/autorecode.at])
-m4_include([tests/language/stats/crosstabs.at])
-m4_include([tests/language/stats/descriptives.at])
-m4_include([tests/language/stats/factor.at])
-m4_include([tests/language/stats/flip.at])
-m4_include([tests/language/stats/frequencies.at])
-m4_include([tests/language/xforms/compute.at])
-m4_include([tests/language/xforms/recode.at])
-m4_include([tests/math/moments.at])
-m4_include([tests/output/render.at])
-m4_include([tests/output/charts.at])
-m4_include([tests/perl-module.at])
--- /dev/null
+AT_INIT
+
+# Define SKIP_IF for compatibility with Autotest before 2.64
+m4_ifndef([AT_SKIP_IF],
+ [m4_define([AT_SKIP_IF],
+ [AT_CHECK([($1) \
+&& exit 77 || exit 0], [0], [ignore], [ignore])])])
+