Don't leave .hi files after running Haddock tests
authorAlec Theriault <alec.theriault@gmail.com>
Thu, 28 Feb 2019 13:45:24 +0000 (05:45 -0800)
committerBen Gamari <ben@well-typed.com>
Mon, 4 Mar 2019 15:18:41 +0000 (10:18 -0500)
RyanGlScott observed in https://github.com/haskell/haddock/issues/1030
that running Haddock tests in GHC's testsuite left some `.hi` files
around in `utils/haddock`. This should fix that problem.

testsuite/tests/haddock/haddock_testsuite/Makefile

index 59a4a17..37b0a98 100644 (file)
@@ -18,6 +18,7 @@ haddockTest=$(TOP)/../utils/haddock/haddock-test/src/Test/Haddock.hs \
 htmlTest:
        '$(TEST_HC)' \
                -odir . \
+               -hidir . \
                -package Cabal \
                -o html-test \
                $(haddockTest) \
@@ -32,6 +33,7 @@ htmlTest:
 latexTest:
        '$(TEST_HC)' \
                -odir . \
+               -hidir . \
                -package Cabal \
                -o latex-test \
                $(haddockTest) \
@@ -46,6 +48,7 @@ latexTest:
 hoogleTest:
        '$(TEST_HC)' \
                -odir . \
+               -hidir . \
                -package Cabal \
                -o hoogle-test \
                $(haddockTest) \
@@ -60,6 +63,7 @@ hoogleTest:
 hypsrcTest:
        '$(TEST_HC)' \
                -odir . \
+               -hidir . \
                -package Cabal \
                -o hypsrc-test \
                $(haddockTest) \