[commit: hpc] master: Add some more test cleaning (ddcf0e9)

Ian Lynagh igloo at earth.li
Wed Jan 23 00:25:21 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/packages/hpc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/ddcf0e9ee60b040e154f6d64f8f08cd022ace0a7

>---------------------------------------------------------------

commit ddcf0e9ee60b040e154f6d64f8f08cd022ace0a7
Author: Ian Lynagh <ian at well-typed.com>
Date:   Tue Jan 22 19:30:18 2013 +0000

    Add some more test cleaning

>---------------------------------------------------------------

 tests/function/test.T |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/tests/function/test.T b/tests/function/test.T
index b37ffe4..cc1b785 100644
--- a/tests/function/test.T
+++ b/tests/function/test.T
@@ -4,7 +4,11 @@ setTestOpts(compose(only_compiler_types(['ghc']),
 
 hpc_prefix = "perl ../hpcrun.pl --clear --exeext=" + config.exeext + " --hpc='" + config.hpc + "'";
 
-test('tough', cmd_prefix(hpc_prefix), compile_and_run, ['-fhpc'])
+test('tough',
+     [cmd_prefix(hpc_prefix),
+      extra_clean(['Main.hs.html', 'hpc_index.html', 'hpc_index_alt.html',
+                   'hpc_index_exp.html', 'hpc_index_fun.html', 'tough.tix'])],
+     compile_and_run, ['-fhpc'])
 
 # Test that -fhpc still works when (a) the source file is in a
 # subdirectory and (b) it is a literate file.  We had a bug in this
@@ -12,6 +16,8 @@ test('tough', cmd_prefix(hpc_prefix), compile_and_run, ['-fhpc'])
 # source file.
 test('subdir/tough2',
      [ literate,
+       extra_clean(['Main.hs.html', 'hpc_index.html', 'hpc_index_alt.html',
+                    'hpc_index_exp.html', 'hpc_index_fun.html', 'tough2.tix']),
        cmd_prefix(hpc_prefix),
        omit_ways(['ghci'] + prof_ways) ], # profile goes in the wrong place
      compile_and_run, ['-fhpc'])





More information about the ghc-commits mailing list