1 import Test
.Cabal
.Prelude
4 withSourceCopyDir
"app" $ do
5 cwd
<- fmap testSourceCopyDir getTestEnv
7 buildOut
<- withDirectory cwd
$ do
8 cabal
"init" ["-n", "--exe", "--application-dir=app", "--main-is=Main.hs"]
10 setup
' "build" ["app"]
12 assertFileDoesContain
(cwd
</> "app.cabal") "Simple"
13 assertFileDoesContain
(cwd
</> "app.cabal") "base ^>="
14 assertFileDoesContain
(cwd
</> "app/Main.hs") "This should remain as is!"
15 assertOutputContains
"Linking" buildOut