aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorChristoph Müllner <christoph.muellner@vrull.eu>2022-10-10 12:05:34 +0200
committerChristoph Müllner <christoph.muellner@vrull.eu>2022-10-11 09:29:28 +0200
commit60f654cf6b7a072f1e840a037881237cdbcff0ee (patch)
tree59a8fd8277fcb079e9b44f889c5f11691dfda120 /README.md
parent60c52678af488db7f819f7004bd27947e58fb454 (diff)
downloadriscv-gnu-toolchain-60f654cf6b7a072f1e840a037881237cdbcff0ee.zip
riscv-gnu-toolchain-60f654cf6b7a072f1e840a037881237cdbcff0ee.tar.gz
riscv-gnu-toolchain-60f654cf6b7a072f1e840a037881237cdbcff0ee.tar.bz2
README: Document usage of RUNTESTFLAGS for `make check`
Let's document how to use the environment variable RUNTESTFLAGS for selecting the tests that should be executed. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6af46c4..1d7cc0d 100644
--- a/README.md
+++ b/README.md
@@ -210,6 +210,25 @@ Note:
- spike only support rv64* bare-metal/elf toolchain.
- gdb simulator only support bare-metal/elf toolchain.
+#### Selecting the tests to run in GCC's regression test suite
+
+By default GCC will execute all tests of its regression test suite.
+While running them in parallel (e.g. `make -j$(nproc) report`) will
+significanlty speed up the execution time on multi-processor systems,
+the required time for executing all tests is usually too high for
+typical development cycles. Therefore GCC allows to select the tests
+that are being executed using the environment variable `RUNTESTFLAGS`.
+
+To restrict a test run to only RISC-V specific tests
+the following command can be used:
+
+ RUNTESTFLAGS="riscv.exp" make report
+
+To to restrict a test run to only RISC-V specific tests with match the
+pattern "zb*.c" and "sm*.c" the following command can be used:
+
+ RUNTESTFLAGS="riscv.exp=zb*.c\ sm*.c" make report
+
#### Testing GCC, Binutils, and glibc of a Linux toolchain
The default Makefile target to run toolchain tests is `report`.