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", "--cabal-version=1.24"]
10 setup
' "build" ["app"]
12 assertFileDoesContain
(cwd
</> "app.cabal") "1.24"
13 assertFileDoesContain
(cwd
</> "app.cabal") "Simple"
14 assertFileDoesNotContain
(cwd
</> "app.cabal") "^>="
15 assertFileDoesContain
(cwd
</> "app/Main.hs") "This should remain as is!"
16 assertOutputContains
"Linking" buildOut