mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-28 04:46:31 +03:00
13 lines
440 B
Haskell
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"
|