mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-09 00:15:48 +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"
|