This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to run the cpp(preprocessor) g++ tests?
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Andres Tiraboschi <andres dot tiraboschi at tallertechnologies dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 16 Oct 2015 08:09:37 -0500
- Subject: Re: How to run the cpp(preprocessor) g++ tests?
- Authentication-results: sourceware.org; auth=none
- References: <CAJZwELmS2nDKcOhmZTeH2mKNhQhqfA52mAHTLAdgcDLgp544iQ at mail dot gmail dot com> <20151015211008 dot GD818 at gate dot crashing dot org> <CAJZwEL=RMUqNXiPvSxyXGPqvSpd3OWD8=T3PHt7uZLBy_ThwgQ at mail dot gmail dot com>
On Fri, Oct 16, 2015 at 09:43:49AM -0300, Andres Tiraboschi wrote:
> 2015-10-15 18:10 GMT-03:00 Segher Boessenkool <segher@kernel.crashing.org>:
> > On Thu, Oct 15, 2015 at 05:47:05PM -0300, Andres Tiraboschi wrote:
> >> Hi, I've been working a bit with the gcc preprocessor but don't know
> >> exactly how to run just the cpp tests for g++(the tests located in the
> >> gccSource/gcc/testsuite/g++.dg/cpp/) without running all the
> >> testsuite.
> >> I couldn't find anything about it in the documentation.
> >
> > make -k check-gcc-g++ RUNTESTFLAGS=g++.dg='cpp/*'
> >
> > It also does c-c++-common/cpp/* but you might actually want that?
> > And it's fast anyway.
> Thanks, but when I try with:
> make -k check-gcc-g++ RUNTESTFLAGS=g++.dg='cpp/*'
> I have the the following error:
> make: *** No rule to make target `check-gcc-g++'.
That is strange, below it says you are testing GCC 5, and that supports those
targets just fine AFAICS. Are you running this from the (top-level) build
directory?
Oh! Bah. I meant "check-gcc-c++". Sorry!
> I tried running:
> make -k check RUNTESTFLAGS=g++.dg='cpp/*'
> but I couldn't get the summary from those test and I had this kind of errors:
> -----------------------------------------------------------------------------
> Illegal Argument "g++.dg=cpp/*"
I have no idea where that is coming from. Something in libatomic it seems.
"check-gcc" only tests the compiler, so that will avoid those dirs.
Segher