(cabal check) Add "Autogen include" test for ts
[cabal.git] / cabal-testsuite / PackageTests / Init / init-legacy.test.hs
blobeac7b312fb5a5087b9e944a02f8f4ff0960933e3
1 import Test.Cabal.Prelude
3 main = cabalTest $
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"]
9 setup "configure" []
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