diff --git a/README-hacking b/README-hacking index 8ed073b5..e7cc3b19 100644 --- a/README-hacking +++ b/README-hacking @@ -45,8 +45,8 @@ processes tabs in its input. * Working from the repository -These notes intend to help people working on the checked-out sources. -These requirements do not apply when building from a distribution tarball. +These notes intend to help people working on the checked-out sources. These +requirements do not apply when building from a distribution tarball. ** 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. ** TESTSUITEFLAGS - To run just the testsuite (not the tests related to the examples), run `make check-local`. @@ -212,6 +211,10 @@ can be sped up in two ways: Using -j, in a make-like fashion, for example: $ 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 with AT_KEYWORDS([[category]]). Categories include: - 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++' Both can be combined. + $ make check-local TESTSUITEFLAGS='-j8 -k c++' ** Typical errors If the test suite shows failures such as the following one diff --git a/cfg.mk b/cfg.mk index a4383fc8..1170d6f3 100644 --- a/cfg.mk +++ b/cfg.mk @@ -26,6 +26,9 @@ regen: _version manual_title = The Yacc-compatible Parser Generator 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 # 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*