2013-08-14 01:36:07 +00:00
|
|
|
module Main where
|
2013-07-14 17:51:52 +00:00
|
|
|
|
2013-08-16 10:26:51 +00:00
|
|
|
import System.Directory
|
|
|
|
import System.Exit (exitWith)
|
|
|
|
import System.Environment (getArgs)
|
|
|
|
import Test.Framework.TestManager
|
2013-08-15 00:41:02 +00:00
|
|
|
import Test.Framework.BlackBoxTest
|
2013-07-14 17:51:52 +00:00
|
|
|
|
2013-08-15 00:41:02 +00:00
|
|
|
main :: IO ()
|
2013-08-16 10:09:53 +00:00
|
|
|
main = do
|
2013-08-16 10:26:51 +00:00
|
|
|
args <- getArgs
|
2013-08-20 00:47:37 +00:00
|
|
|
tests <- blackBoxTests "tests" "dist/build/elm/elm" ".elm" bbtArgs
|
2013-08-16 10:26:51 +00:00
|
|
|
code <- runTestWithArgs args tests
|
|
|
|
removeDirectoryRecursive "cache"
|
|
|
|
removeDirectoryRecursive "build"
|
|
|
|
exitWith code
|
2013-08-15 00:41:02 +00:00
|
|
|
|
2013-08-16 10:26:51 +00:00
|
|
|
bbtArgs = defaultBBTArgs { bbtArgs_stdoutDiff = ignoreDiff
|
|
|
|
, bbtArgs_stderrDiff = ignoreDiff }
|
2013-08-16 10:09:53 +00:00
|
|
|
|
|
|
|
ignoreDiff :: Diff
|
|
|
|
ignoreDiff _ _ = return Nothing
|