This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to make a testsuite file optional


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]