Improve online docs for `includes:` field
[cabal.git] / cabal-testsuite / PackageTests / Init / init.test.hs
blobc7739c4fcb2a27dd214c2a1302b7a363a1219634
1 import Test.Cabal.Prelude
2 import System.Directory
4 main = cabalTest $ do
5 cwd <- fmap testCurrentDir getTestEnv
7 buildOut <- do
8 cabal "init" ["-n", "--exe", "-p", "app", "--application-dir=app", "--main-is=Main.hs"]
9 setup "configure" []
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