(cabal check) Add "No internal name clash" test
[cabal.git] / cabal-testsuite / PackageTests / TestNameCollision / setup.test.hs
blob19d2fc904683c09ab8479129c408d216c7e4873e
1 import Test.Cabal.Prelude
2 -- Test that if test suite has a name which conflicts with a package
3 -- which is in the database, we can still use the test case (they
4 -- should NOT shadow).
5 main = setupAndCabalTest $ do
6 skipUnless "cabal for ghc" =<< hasCabalForGhc -- use of library test suite
7 withPackageDb $ do
8 withDirectory "parent" $ setup_install []
9 withDirectory "child" $ do
10 setup_build ["--enable-tests"]
11 setup "test" []