2006-10-17 14:22:29 +00:00
|
|
|
import Distribution.Simple
|
2008-08-09 16:51:08 +00:00
|
|
|
import System.Process ( runCommand, waitForProcess )
|
|
|
|
import System.Directory ( setCurrentDirectory )
|
|
|
|
|
|
|
|
main = defaultMainWithHooks (simpleUserHooks {runTests = runTestSuite})
|
|
|
|
|
|
|
|
testDir = "tests"
|
|
|
|
|
|
|
|
runTestSuite _ _ _ _ = do
|
|
|
|
setCurrentDirectory testDir
|
|
|
|
runCommand "runhaskell RunTests.hs" >>= waitForProcess
|
|
|
|
return ()
|
2008-02-09 03:20:42 +00:00
|
|
|
|