hledger/Setup.hs
2009-09-22 16:51:27 +00:00

13 lines
440 B
Haskell

#!/usr/bin/env runhaskell
import Distribution.Simple
import Distribution.Simple.LocalBuildInfo
import Distribution.PackageDescription
import System.FilePath
import System.Process
main = defaultMainWithHooks $ simpleUserHooks{runTests=runTests'}
runTests' :: Args -> Bool -> PackageDescription -> LocalBuildInfo -> IO ()
runTests' _ _ _ lbi = system testprog >> return ()
where testprog = buildDir lbi </> "hledger" </> "hledger test"