public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* Checking libstdcxx coverage
@ 2022-11-10 15:53 Jakub Rachucki
  2022-11-10 15:55 ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: Jakub Rachucki @ 2022-11-10 15:53 UTC (permalink / raw)
  To: libstdc++

[-- Attachment #1: Type: text/plain, Size: 1397 bytes --]

Dear all,

I am trying to check the coverage of the libstdc++. Is it possible to configure the build system to include coverage information only for libstdc++? So far, I have tried to configure the build system of the whole gcc using the --enable-coverage option and then run tests. Here is the complete configuration command:
../gcc/configure --prefix /home/jakub/gcc_install --enable-languages=c,c++ --disable-multilib --enable-coverage --disable-bootstrap

I build the GCC using:
make -j6

and run tests using:
make -k -j6 check

Running the test takes a very long time, most probably because of enabling the coverage flags for the whole GCC not only the C++ library. What's more, .gcno and .gcda files were not generated for libstdc++-v3.
I have also tried to run the libstdc++ test using :
make check-target-libstdc++-v3

or to enter the gcc-build-dir/x86_64-pc-linux-gnu/libstdc++-v3/ directory and run from there:
make -k check

In every case no coverage data is produced for libstdc++-v3.
I tried to manually include coverage flags in configure.ac and Makefile.am files. In this case coverage information were included. Nevertheless, the gcc build system is quite large and complex and I am not sure whether I have included the coverage flags in every needed place.

Is there an official way of generating coverage information for libstdc++-v3?
Best regards,
Jakub

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-16 16:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 15:53 Checking libstdcxx coverage Jakub Rachucki
2022-11-10 15:55 ` Jonathan Wakely
2022-11-10 16:00   ` Jakub Rachucki
2022-11-16 16:12     ` Jakub Rachucki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).