Running parts of the testsuite

Florian Weimer fweimer@redhat.com
Mon Jun 11 12:31:00 GMT 2012


<http://gcc.gnu.org/install/test.html> says:

----------------------------------------------------------------------

Likewise, in order to run only the g++ “old-deja” tests in the testsuite 
with filenames matching `9805*', you would use

      make check-g++ RUNTESTFLAGS="old-deja.exp=9805* other-options"

The *.exp files are located in the testsuite directories of the GCC 
source, the most important ones being compile.exp, execute.exp, dg.exp 
and old-deja.exp. To get a list of the possible *.exp files, pipe the 
output of `make check' into a file and look at the `Running ... .exp' 
lines.

----------------------------------------------------------------------

The target is called "check-c++" these days.  Even after fixing that, 
the command does not succeed in running parts of the test suite: some 
failing mudflap tests are run (even though I passed --disable-mudflap to 
./configure), and no other tests are attempted.  This is on x86_64, 
Fedora 17.

Is there currently a way to run only parts of the test suite?  If yes, 
what's the correct make command line?

-- 
Florian Weimer / Red Hat Product Security Team



More information about the Gcc mailing list