From: Jonathan Wakely -O1 -D_GLIBCXX_ASSERTIONS
you could use:
make check RUNTESTFLAGS=--target_board=unix/-O1/-D_GLIBCXX_ASSERTIONS
-
- The --target_board
option can also be used to run the
- tests multiple times in different variations. For example, to run the
- entire testsuite three times using -O3
but with
- different -std
options:
-
make check 'RUNTESTFLAGS=--target_board=unix/-O3\"{-std=gnu++98,-std=gnu++11,-std=gnu++17}\"'
- N.B. that set of variations could also be written as
- unix/-O3\"{-std=gnu++98,-std=gnu++11,}\"
so that
- the third variation would use the default for -std
- (which is -std=gnu++17
as of GCC 11).
Since GCC 14, the libstdc++ testsuite has built-in support for running
tests with more than one -std
, similar to the G++ tests.
@@ -359,6 +349,9 @@ cat 27_io/objects/char/3_xin.in | a.out
GLIBCXX_TESTSUITE_STDS
environment variable, e.g. GLIBCXX_TESTSUITE_STDS=11,17,23
is equivalent to the v3_std_list
value above.
+ Before GCC 14, the --target_board
option could be
+ used to run the tests with different -std
options,
+ but this no longer works.
To run the libstdc++ test suite under the
debug mode, use
diff --git a/libstdc++-v3/doc/xml/manual/test.xml b/libstdc++-v3/doc/xml/manual/test.xml
index c4f501102dc..8e2729eedfd 100644
--- a/libstdc++-v3/doc/xml/manual/test.xml
+++ b/libstdc++-v3/doc/xml/manual/test.xml
@@ -584,18 +584,6 @@ cat 27_io/objects/char/3_xin.in | a.out
v3_std_list
value above.
+ Before GCC 14, the option could be
+ used to run the tests with different options,
+ but this no longer works.