calc++: factor for other extracted tests.

* Makefile.am (TESTS, check_PROGRAMS): Initialize here.
	* examples/local.mk (doc, extexi): Define here.
	* examples/calc++/local.mk: Adjust accordingly.
	* configure.ac: Ask for parallel-tests (for the way the logs
	are handled).
	* examples/calc++/test: As a consequence, always be verbose.
	($prog): New.
	(run): Use it.
	Sort the tests in a more natural order (simplest first).
This commit is contained in:
Akim Demaille
2012-02-16 15:27:03 +01:00
parent aeb57fb68d
commit 2e4986a88d
5 changed files with 26 additions and 23 deletions

View File

@@ -19,8 +19,6 @@
## Extracting. ##
## ------------ ##
doc = $(top_srcdir)/doc/bison.texinfo
extexi = $(top_srcdir)/examples/extexi
# Extract in src.
$(top_srcdir)/examples/calc++/calc.stamp: $(doc) $(extexi)
$(AM_V_GEN)rm -f $@ $@.tmp
@@ -37,9 +35,9 @@ $(calc_extracted): $(top_srcdir)/examples/calc++/calc.stamp
$(MAKE) $(AM_MAKEFLAGS) $<; \
fi
## --------------------------- ##
## Building & testing calc++. ##
## --------------------------- ##
## -------------------- ##
## Building & testing. ##
## -------------------- ##
BUILT_SOURCES += $(calc_sources) examples/calc++/calc++-parser.h
CLEANFILES += *.tmp
@@ -59,13 +57,13 @@ calc_generated = \
calc_sources = \
$(calc_extracted) $(calc_generated)
if BISON_CXX_WORKS
check_PROGRAMS = examples/calc++/calc++
check_PROGRAMS += examples/calc++/calc++
examples_calc___calc___SOURCES = \
$(calc_sources) \
examples/calc++/y.tab.h \
examples/calc++/calc++-parser.hh
examples_calc___calc___CPPFLAGS = -I$(top_srcdir)/examples/calc++
TESTS = examples/calc++/test
TESTS += examples/calc++/test
endif
EXTRA_DIST += examples/calc++/test