18 |
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
19 |
## 02111-1307, USA. |
## 02111-1307, USA. |
20 |
|
|
21 |
# Distribute the testsuite since GNU M4 is needed to build it. |
EXTRA_DIST = atlocal.in bison $(TESTSUITE_AT) testsuite |
|
noinst_SCRIPTS = testsuite |
|
22 |
|
|
23 |
SUITE = calc.at regression.at |
DISTCLEANFILES = atconfig atlocal |
24 |
|
MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE) |
25 |
|
|
26 |
EXTRA_DIST = atgeneral.m4 suite.at $(SUITE) $(noinst_SCRIPTS) |
TESTSUITE_AT = \ |
27 |
|
testsuite.at \ |
28 |
|
output.at calc.at regression.at |
29 |
|
TESTSUITE = $(srcdir)/testsuite |
30 |
|
|
31 |
check-local: atconfig $(srcdir)/testsuite |
AUTOM4TE = autom4te |
32 |
$(SHELL) $(srcdir)/testsuite |
AUTOTEST = $(AUTOM4TE) --language=autotest |
33 |
|
$(srcdir)/$(TESTSUITE): $(TESTSUITE_AT) |
34 |
testsuite: atgeneral.m4 suite.at $(SUITE) |
$(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp |
35 |
$(M4) -I $(srcdir) atgeneral.m4 suite.at | \ |
mv $@.tmp $@ |
36 |
sed -e 's/[ ]*$$//' | \ |
|
37 |
sed -e '/^$$/N;/\n$$/D' > $@-tmp |
atconfig: $(top_builddir)/config.status |
38 |
chmod +x $@-tmp |
cd $(top_builddir) && ./config.status tests/$@ |
39 |
mv $@-tmp $@ |
|
40 |
|
atlocal: $(srcdir)/atlocal.in $(top_builddir)/config.status |
41 |
CLEANFILES = debug-*.sh empty |
cd $(top_builddir) && ./config.status tests/$@ |
42 |
DISTCLEANFILES = atconfig |
|
43 |
MAINTAINERCLEANFILES = testsuite |
clean-local: |
44 |
|
$(SHELL) $(TESTSUITE) --clean |
45 |
|
|
46 |
|
check-local: atconfig atlocal $(TESTSUITE) |
47 |
|
$(SHELL) $(TESTSUITE) |
48 |
|
|
49 |
|
# Run the test suite on the *installed* tree. |
50 |
|
installcheck-local: |
51 |
|
$(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin |