[patch, testsuit] PR31883 dg directives of the gfortran testsuite

Dominique Dhumieres dominiq@lps.ens.fr
Mon May 21 07:40:00 GMT 2007


> If someone knows how to turn on the dg-ness for these directories, I
> could test.  We may find out some useful things (aka bugs we did not know
> about)

Sorry; I have not been clear enough in my comments #2 and #3:

> It requires to copy gcc/testsuite/gfortran.dg/dg.exp to
> gcc/testsuite/gfortran.fortran-torture/compile/compile.exp

and

> It requires to copy gcc/testsuite/gfortran.dg/dg.exp to
> gcc/testsuite/gfortran.fortran-torture/execute/execute.exp

Since, has it has been noticed, the dg directives are ignored by the
orignal Tcl scripts and the patches do not make sense if the orginal
compile.exp and execute.exp are kept.

In my opinion the long term solution is to move the 'compile' and 'execute'
directories to the gfortran.dg one, to remove the compile.exp and
execute.exp files, and to remove the gfortran.fortran-torture directory.
Although I did not test it (I can if there is some interest), my (very
limited) understanding of dejagnu is that in this case the moved
directories will automatically inherit the dg.exp script.

Now putting the patches in the gcc canonical form is a significant amount
of work (again if there is some interest, I can do it) and I won't argue if
it is given a low priority or if it is deemed worthless.  I have done these
patches as an excercise (the way I learn computer stuff) and to be able to
detect missing cleaning in the new testcases: it is easier to see a new
*.mod file if there is none expected!  These directories are quite inactive
and I don't mind to to replace the original directories by the modified
ones.  I'll continue to run the modified testsuite and report if I see a
failure on Darwin.

Dominique



More information about the Fortran mailing list