(cabal check) Add "No internal name clash" test
[cabal.git] / cabal-testsuite / PackageTests / NewConfigure / ConfigFile / cabal.test.hs
blobbc0a574738c227d1c3cc973a1cab42c52af2fec1
1 import Test.Cabal.Prelude
3 -- Test that 'cabal v2-configure' generates the config file appropriately
4 main = withShorterPathForNewBuildStore $ \storeDir ->
5 cabalTest . withSourceCopy $ do
6 cwd <- fmap testCurrentDir getTestEnv
7 let configFile = cwd </> "cabal.project.local"
9 shouldNotExist configFile
11 -- should not create config file with --dry-run or --only-download
12 cabalG ["--store-dir=" ++ storeDir] "v2-configure" ["--dry-run"]
13 cabalG ["--store-dir=" ++ storeDir] "v2-configure" ["--only-download"]
14 shouldNotExist configFile
16 -- should create the config file
17 cabalG ["--store-dir=" ++ storeDir] "v2-configure" []
18 shouldExist configFile