diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-08-13 08:12:07 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-08-13 08:12:07 -0700 |
commit | 1d6e1cf9f3d45147538aee639e00a3ae95260055 (patch) | |
tree | 04328a2c7db0e54a7dd6c80464671a91237fcad9 /Setup.hs | |
parent | 22ab3367c6ce7a87a479a4630a6ba4305ad5d333 (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.hs | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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) |