This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: how to make a testsuite file optional
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Bud Davis <bdavis9659 at comcast dot net>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Mon, 29 Nov 2004 15:48:45 -0800
- Subject: Re: how to make a testsuite file optional
- References: <1101405281.27596.5.camel@localhost.localdomain>
On Thu, Nov 25, 2004 at 11:54:41AM -0600, Bud Davis wrote:
> <sent to gcc-patches>
>
> is there a way to make a testsuite file optional ?
>
> we have some fortran tests that make very large files and take a long
> time. they take too long to be run all the time, but they do test
> functionality that needs to be tested. {gfortran would be hated if we
> added 20 minutes to the time required for a "make check-f95"}
>
> can this be done under the existing framework ?
Sure. The .exp file can check an environment variable to determine
whether or not to run the test. See gcc.dg/compat/struct-layout-1.exp
which decides how much work to do based on an environment variable.
You could use a similar test to prune the list of tests to run.
Janis