summaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-08-13 08:12:07 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-08-13 08:12:07 -0700
commit1d6e1cf9f3d45147538aee639e00a3ae95260055 (patch)
tree04328a2c7db0e54a7dd6c80464671a91237fcad9 /Setup.hs
parent22ab3367c6ce7a87a479a4630a6ba4305ad5d333 (diff)
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.
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs4
1 files changed, 0 insertions, 4 deletions
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)