diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-09-14 10:14:32 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-09-14 10:19:13 +0200 |
commit | 6c7b2dfe516a0402ac37ccefb869b6633f05d5ea (patch) | |
tree | 8ae9bf9db6c9eecb428ce00c34548bef504802e4 /README-hacking | |
parent | a3e201de023615009948ffab9f1701bd92e2dec3 (diff) | |
download | bison-6c7b2dfe516a0402ac37ccefb869b6633f05d5ea.tar.gz |
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.
Diffstat (limited to 'README-hacking')
-rw-r--r-- | README-hacking | 10 |
1 files changed, 7 insertions, 3 deletions
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 |