on master help sign in
Update to use new testfile location
088b805Max New
tests/libraries/LibraryTest.hs+4−2
@@ -25,13 +25,13 @@ main = do
25 , "--src-dir=IO"
25 , "--src-dir=IO"
26 , "--src-dir=Elm-Test"
26 , "--src-dir=Elm-Test"
27 , "--src-dir=" ++ "tests" </> "libraries"
27 , "--src-dir=" ++ "tests" </> "libraries"
28− , "Test.elm"
28+ , testFile <.> "elm"
29 ]
29 ]
30
30
31 -- run tests
31 -- run tests
32 let files = [ "IO" </> "share" </> "prescript.js"
32 let files = [ "IO" </> "share" </> "prescript.js"
33 , Elm.runtime
33 , Elm.runtime
34− , "build" </> "Test.js"
34+ , "build" </> testFile <.> "js"
35 , "IO" </> "share" </> "handler.js"
35 , "IO" </> "share" </> "handler.js"
36 ]
36 ]
37 testRunner = "build" </> "TestRunner.js"
37 testRunner = "build" </> "TestRunner.js"
@@ -41,6 +41,8 @@ main = do
41 removeDirectoryRecursive "cache"
41 removeDirectoryRecursive "cache"
42 removeDirectoryRecursive "build"
42 removeDirectoryRecursive "build"
43 exitWith exitCode
43 exitWith exitCode
44+ where
45+ testFile = "tests" </> "libraries" </> "Test"
44
46
45runCmd :: String -> [String] -> IO ()
47runCmd :: String -> [String] -> IO ()
46runCmd cmd args = do
48runCmd cmd args = do