[GHC] #9543: Testsuite driver: replace "extra_clean" by "git clean -X"

GHC ghc-devs at haskell.org
Thu Jun 11 21:38:28 UTC 2015


#9543: Testsuite driver: replace "extra_clean" by "git clean -X"
-------------------------------------+-------------------------------------
        Reporter:  thomie            |                   Owner:  thomie
            Type:  task              |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Test Suite        |                 Version:
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by thomie):

 This approach doesn't quite work, because it should also be possible to
 delete only the files that a single test generates.

 A simpler solution: enforce the rule that all files which a test generates
 go into a single subdirectory. The directory could have the same name as
 the test.

 test('T1234', normal, ..., ...) can only create files in the directory
 'T1234'.

 Then 'make CLEANUP=1' just removes that directory afterwards.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9543#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list