mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user