(cabal check) Add "No internal name clash" test
[cabal.git] / cabal-testsuite / PackageTests / Init / init.test.hs
blob83a512d5893d7bfa78b42fca190bb8dfa8dffd7f
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"]
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