From 1d6e1cf9f3d45147538aee639e00a3ae95260055 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 13 Aug 2014 08:12:07 -0700 Subject: Removed special testHook from Setup. This was just too fragile and dependent on a changing Cabal API (see #1526). Instead of passing the bulid directory to the test program, we now let the test program find itself (using executable-path) and then find the pandoc executable relative to itself. --- Setup.hs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Setup.hs') diff --git a/Setup.hs b/Setup.hs index c1c3f6472..55a7c2178 100644 --- a/Setup.hs +++ b/Setup.hs @@ -38,10 +38,6 @@ main :: IO () main = do defaultMainWithHooks $ simpleUserHooks { postBuild = makeManPages - , testHook = \pkg lbi _ flags -> - -- pass build directory as first argument to test program - test pkg lbi flags{ testOptions = - toPathTemplate (buildDir lbi) : testOptions flags } , postCopy = \ _ flags pkg lbi -> installManpages pkg lbi (fromFlag $ copyVerbosity flags) (fromFlag $ copyDest flags) -- cgit v1.2.3