[PATCH] gfortran testsuite: implicitly cleanup-modules

Bernhard Reutner-Fischer rep.dot.nop@gmail.com
Tue Mar 13 16:39:00 GMT 2012


On Fri, Mar 09, 2012 at 01:02:01AM +0100, Mikael Morin wrote:
>On 01/03/2012 22:09, Bernhard Reutner-Fischer wrote:
>> Hi,
>> 
>> By now we have quite some leftover modules in the testsuite, again.
>> Given that the previous suggestion in this thread -- to have a separate
>> script in contrib -- did not trigger any reaction, let me suggest the
>> patch below instead.
>> 
>> Teach the testsuite to cleanup the modules.
>> We do this by grepping for the module names and implicitly deleting them
>> when the test is finished. For the testcases that use modules from other
>> files we introduce a keep-modules procedure that keeps either all ("",
>> i.e. empty list) or the given modules of the source file.
>> 
>> A follow-up patch would remove the now superfluous cleanup-module calls
>> in the remaining testcases. Since that patch is pretty big (~360k) i do
>> not intend to send it in but want to apply it straight to the repo (it's
>> just a sed '/cleanup-modules/d' on the testcases that do not occur in
>> the below patch).
>> 
>> Is it ok to reference ../doc in the ChangeLog entry below to keep the
>> documentation change associated with the script itself?
>> 
>No, the changes are associated by being in the same commit (and their
>ChangeLog entries in the same subversion commit log).

done.
>
>> 
>> The patch was bootstrapped and regression tested using tcl-8.5 on
>> x86_64-linux-gnu with no new regressions.
>> 
>> Ok for trunk?
>
>According to http://tmml.sourceforge.net/doc/tcl/regexp.html
>you can use the -nocase option (= case insensitive) to simplify the
>regexp patterns.

Yes, but i am not sure how portable it is since there is no user of
-nocase in the tree at the moment. I prefer to keep it as is for now.

>I noticed one whitespace inconsistency in keep-modules.

Fixed.

>Otherwise it looks good to me (but I'm not a testsuite maintainer).

Attached an updated patch.
Could some of the testsuite maintainers please eyeball?

thanks,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gfortran-testsuite-implicitly-cleanup-modules.patch
Type: text/x-diff
Size: 26772 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120313/f0b9c78f/attachment.bin>


More information about the Fortran mailing list