Skip to content
Snippets Groups Projects
Commit 38dc31b2 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Refine BuildAssumeDepsUpToDate test to start with --assume-deps-up-to-date.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent b9204a1e
No related branches found
No related tags found
No related merge requests found
...@@ -414,7 +414,9 @@ tests config = do ...@@ -414,7 +414,9 @@ tests config = do
pkg_dir <- packageDir pkg_dir <- packageDir
liftIO $ writeFile (pkg_dir </> "A.hs") "module A where\na = \"a1\"" liftIO $ writeFile (pkg_dir </> "A.hs") "module A where\na = \"a1\""
liftIO $ writeFile (pkg_dir </> "myprog/Main.hs") "import A\nmain = print (a ++ \" b1\")" liftIO $ writeFile (pkg_dir </> "myprog/Main.hs") "import A\nmain = print (a ++ \" b1\")"
cabal_build [] cabal "configure" []
cabal "build" ["--assume-deps-up-to-date", "BuildAssumeDepsUpToDate"]
cabal "build" ["--assume-deps-up-to-date", "myprog"]
runExe' "myprog" [] runExe' "myprog" []
>>= assertOutputContains "a1 b1" >>= assertOutputContains "a1 b1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment