This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Running make check with forced g++ usage
- From: "Peryt, Sebastian" <sebastian dot peryt at intel dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Cc: "Peryt, Sebastian" <sebastian dot peryt at intel dot com>
- Date: Fri, 22 Sep 2017 14:23:12 +0000
- Subject: Running make check with forced g++ usage
- Authentication-results: sourceware.org; auth=none
- Dlp-product: dlpe-windows
- Dlp-reaction: no-action
- Dlp-version: 11.0.0.116
Hi,
I wanted to ask if/how it is possible to run specific tests like set from i386 testsuite
with specified tool like g++?
Basic approach would be e.g.: make check RUNTESTFLAGS="i386.exp=avx512vl-*".
I am also able to run it like this: make check-gcc RUNTESTFLAGS="i386.exp=avx512vl-*".
But once I want to run it with g++ it starts to look a little bit shady. To begin with
encouragement :) in GCC Internals for Testsuites chapter - FIXME: discuss non-C testsuites here.
Looking deeper into documentation I found in GCC install -> Testing manual info about
options like "make check-g++" and "make check-c++". Unfortunately, when I copy-pasted
line: make check-g++ RUNTESTFLAGS="--target_board=unix/-O3/-fmerge-constants"
I received error: make: *** No rule to make target 'check-g++'. Stop.
Make check-c++ apparently checks something completely different, because it throws
some unexpected errors likewise.
There is also some other option available: runtest --tool g++ --srcdir <directory>
but it doesn't work when I'm specifying path to i386 testsuite.
The last thing I tried was to change the file type of the test from *.c to *.cc and *.cpp
unfortunately with the same result.
Did I missed something, or C++ tests can be only run as those that are in g++ testsuite
directory and there is no chance of doing so with machine specific testsuites?
Thanks,
Sebastian