Rename subdir/tough2 test to tough2
authorIan Lynagh <ian@well-typed.com>
Thu, 24 Jan 2013 17:01:37 +0000 (17:01 +0000)
committerIan Lynagh <ian@well-typed.com>
Thu, 24 Jan 2013 17:03:27 +0000 (17:03 +0000)
It's now classified as a multimod_compile_and_run so that we can tell
it where its source file is.

tests/function2/test.T
tests/function2/tough2.stdout [moved from tests/function2/subdir/tough2.stdout with 100% similarity]

index 04f39b6..5337ca2 100644 (file)
@@ -8,10 +8,11 @@ hpc_prefix = "perl ../hpcrun.pl --clear --exeext=" + config.exeext + " --hpc='"
 # subdirectory and (b) it is a literate file.  We had a bug in this
 # area caused by the handling of line pragmas in the preprocessed
 # source file.
-test('subdir/tough2',
+test('tough2',
      [ literate,
        extra_clean(['Main.hs.html', 'hpc_index.html', 'hpc_index_alt.html',
-                    'hpc_index_exp.html', 'hpc_index_fun.html', 'tough2.tix']),
+                    'hpc_index_exp.html', 'hpc_index_fun.html',
+                    'subdir/tough2.hi', 'subdir/tough2.o', 'tough2.tix']),
        cmd_prefix(hpc_prefix),
        omit_ways(['ghci'] + prof_ways) ], # profile goes in the wrong place
-     compile_and_run, ['-fhpc'])
+     multimod_compile_and_run, ['subdir/tough2.lhs', '-fhpc'])