elm/tests/Main.hs

22 lines
593 B
Haskell
Raw Normal View History

2013-08-14 01:36:07 +00:00
module Main where
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-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
tests <- blackBoxTests "tests/good" "dist/build/elm/elm" ".elm" bbtArgs
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