1 import Test
.Cabal
.Prelude
4 cwd
<- fmap testCurrentDir getTestEnv
6 buildOut
<- withDirectory cwd
$ do
7 cabalWithStdin
"init" ["-i", "-p", "app"]
8 "2\n\n5\n\n\n\n\n\n\n\n\n\n\n\n\n"
10 setup
' "build" ["app"]
12 assertFileDoesContain
(cwd
</> "app.cabal") "3.0"
13 assertFileDoesContain
(cwd
</> "app.cabal") "BSD-3-Clause"
14 assertFileDoesContain
(cwd
</> "app.cabal") "Simple"
15 assertFileDoesContain
(cwd
</> "app/Main.hs") "This should remain as is!"
16 assertOutputContains
"Linking" buildOut