On Fri, May 30, 2025 at 09:03:27PM +0200, Harald Anlauf wrote:
>
> the time needed for running the gfortran testsuite has increased so
> much that I am looking for options to get this down to something
> that is more bearable when working on a Fortran-only patch.
>
> I am already building with --disable-bootstrap, as I cannot afford
> a full bootstrap. It is also not needed when dealing only with
> Fortran.
>
> Part of the cost seems to be the cycling through various optimization
> options ("torture testing"), which is unfortunately the default.
> I am nowadays considering the dg-options for each new test if cycling
> is really needed or not. But this does not help with existing tests.
>
> So how does one stop the cycling temporarily, and select only a certain
> default option, like "-O2"? I tried to edit fortran-torture.exp, but
> my attempts did not pull the right strings. Does anybody have a
> working example?
>
When I'm working on a particular area of gfortran, I tend
to use RUNTESTFLAGS to limit what is tested. For example,
I just fixed SPREAD() for scalar source and ncopies < 1.
I do
% cd obj
% gmake
% cd gcc
% gmake check-fortran RUNTESTFLAGS="dg.exp=spread\*.f90"
This only runs 63 tests. Of course, for final testing
I do a full regression test.
--
Steve