hledger/Setup.hs

13 lines
440 B
Haskell
Raw Normal View History

2008-10-01 11:56:21 +04:00
#!/usr/bin/env runhaskell
import Distribution.Simple
2009-07-31 21:03:35 +04:00
import Distribution.Simple.LocalBuildInfo
import Distribution.PackageDescription
import System.FilePath
import System.Process
2009-07-31 21:03:35 +04:00
main = defaultMainWithHooks $ simpleUserHooks{runTests=runTests'}
runTests' :: Args -> Bool -> PackageDescription -> LocalBuildInfo -> IO ()
runTests' _ _ _ lbi = system testprog >> return ()
2009-09-22 20:51:27 +04:00
where testprog = buildDir lbi </> "hledger" </> "hledger test"