diff options
Diffstat (limited to 'Setup.hs')
-rw-r--r-- | Setup.hs | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,13 @@ import Distribution.Simple -main = defaultMain +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 () |