[PATCH 2/3] libstdc++: Improve output verbosity options and default

Matthias Kretz m.kretz@gsi.de
Tue Jun 8 08:59:02 GMT 2021

For most uses --quiet was too quiet while the default was too noisy. Now
the default output, if stdout is a tty, shows the last successful test
on the same line. With --percentage it adds a percentage at the start of
the line. --percentage is not default because it requires more resources
and might not be 100% compatible to all environments.
If stdout is not a tty the default is quiet output like for dejagnu.

Additionally, argument parsing now recognizes contracted short options
which is easier to use with e.g. DRIVEROPTS=-pxk.


	* testsuite/experimental/simd/driver.sh: Rewrite output
	verbosity logic. Add -p/--percentage option. Allow -v/--verbose
	to be used twice. Add -x and -o short options. Parse long
	options with = instead of separating space generically. Parce
	contracted short options. Make unrecognized options an error.
	If same-line output is active, trap on EXIT to increment the
	progress (only with --percentage), erase the line and print the
	current status.
	* testsuite/experimental/simd/generate_makefile.sh: Initialize
	helper files for progress account keeping. Update help target
	for changes to DRIVEROPTS.

Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
 .../testsuite/experimental/simd/driver.sh     | 137 +++++++++++++-----
 .../experimental/simd/generate_makefile.sh    |  33 +++--
 2 files changed, 121 insertions(+), 49 deletions(-)

 Dr. Matthias Kretz                           https://mattkretz.github.io
 GSI Helmholtz Centre for Heavy Ion Research               https://gsi.de
 std::experimental::simd              https://github.com/VcDevel/std-simd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-libstdc-Improve-output-verbosity-options-and-default.patch
Type: text/x-patch
Size: 10318 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210608/66c939e8/attachment-0001.bin>

More information about the Gcc-patches mailing list