(cabal check) Add "Version signatures" test
[cabal.git] / cabal-testsuite / PackageTests / Init / init-interactive.test.hs
blob95ff4b3aaee2e59dd69464aeedeef0ae8be483bd
1 import Test.Cabal.Prelude
3 main = cabalTest $
4 withSourceCopyDir "app" $ do
5 cwd <- fmap testSourceCopyDir getTestEnv
7 buildOut <- withDirectory cwd $ do
8 cabalWithStdin "init" ["-i"]
9 "2\n\n5\n\n\n2\n\n\n\n\n\n\n\n\n\n"
10 setup "configure" []
11 setup' "build" ["app"]
13 assertFileDoesContain (cwd </> "app.cabal") "3.0"
14 assertFileDoesContain (cwd </> "app.cabal") "BSD-3-Clause"
15 assertFileDoesContain (cwd </> "app.cabal") "Simple"
16 assertFileDoesContain (cwd </> "app/Main.hs") "This should remain as is!"
17 assertOutputContains "Linking" buildOut