mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 01:03:04 +00:00
tests: pass -jN from Make to the test suite
I am sooooo tired of typing "make -j5 TESTSUITEFLAGS=-j5"... Should have done this years ago. * cfg.mk (TESTSUITEFLAGS): here.
This commit is contained in:
@@ -45,8 +45,8 @@ processes tabs in its input.
|
|||||||
|
|
||||||
* Working from the repository
|
* Working from the repository
|
||||||
|
|
||||||
These notes intend to help people working on the checked-out sources.
|
These notes intend to help people working on the checked-out sources. These
|
||||||
These requirements do not apply when building from a distribution tarball.
|
requirements do not apply when building from a distribution tarball.
|
||||||
|
|
||||||
** Requirements
|
** Requirements
|
||||||
|
|
||||||
@@ -201,7 +201,6 @@ added the "[-Wother]" part to all the warnings). Part of the update can be
|
|||||||
done with a crude tool: tests/update-test. Read it for more information.
|
done with a crude tool: tests/update-test. Read it for more information.
|
||||||
|
|
||||||
** TESTSUITEFLAGS
|
** TESTSUITEFLAGS
|
||||||
|
|
||||||
To run just the testsuite (not the tests related to the examples), run `make
|
To run just the testsuite (not the tests related to the examples), run `make
|
||||||
check-local`.
|
check-local`.
|
||||||
|
|
||||||
@@ -212,6 +211,10 @@ can be sped up in two ways:
|
|||||||
Using -j, in a make-like fashion, for example:
|
Using -j, in a make-like fashion, for example:
|
||||||
$ make check-local TESTSUITEFLAGS='-j8'
|
$ make check-local TESTSUITEFLAGS='-j8'
|
||||||
|
|
||||||
|
Actually, when using GNU Make, TESTSUITEFLAGS defaults to the -jN passed to
|
||||||
|
it, so you may simply run
|
||||||
|
$ make check-local -j8
|
||||||
|
|
||||||
Running only the tests of a certain category, as specified in the AT files
|
Running only the tests of a certain category, as specified in the AT files
|
||||||
with AT_KEYWORDS([[category]]). Categories include:
|
with AT_KEYWORDS([[category]]). Categories include:
|
||||||
- c++, for c++ parsers
|
- c++, for c++ parsers
|
||||||
@@ -224,6 +227,7 @@ To run a specific set of tests, use -k (for "keyword"). For example:
|
|||||||
$ make check-local TESTSUITEFLAGS='-k c++'
|
$ make check-local TESTSUITEFLAGS='-k c++'
|
||||||
|
|
||||||
Both can be combined.
|
Both can be combined.
|
||||||
|
$ make check-local TESTSUITEFLAGS='-j8 -k c++'
|
||||||
|
|
||||||
** Typical errors
|
** Typical errors
|
||||||
If the test suite shows failures such as the following one
|
If the test suite shows failures such as the following one
|
||||||
|
|||||||
3
cfg.mk
3
cfg.mk
@@ -26,6 +26,9 @@ regen: _version
|
|||||||
manual_title = The Yacc-compatible Parser Generator
|
manual_title = The Yacc-compatible Parser Generator
|
||||||
gendocs_options_ = -I $(abs_top_srcdir)/doc -I $(abs_top_builddir)/doc
|
gendocs_options_ = -I $(abs_top_srcdir)/doc -I $(abs_top_builddir)/doc
|
||||||
|
|
||||||
|
# By default, propagate -j from make to Bison's test suite.
|
||||||
|
TESTSUITEFLAGS = $(filter -j%,$(MAKEFLAGS))
|
||||||
|
|
||||||
# It's useful to run maintainer-check* targets during development, but we
|
# It's useful to run maintainer-check* targets during development, but we
|
||||||
# don't want to wait on a recompile because of an update to $(VERSION). Thus,
|
# don't want to wait on a recompile because of an update to $(VERSION). Thus,
|
||||||
# override the _is-dist-target from GNUmakefile so that maintainer-check*
|
# override the _is-dist-target from GNUmakefile so that maintainer-check*
|
||||||
|
|||||||
Reference in New Issue
Block a user