(cabal check) Add "Autogen include" test for ts
[cabal.git] / cabal-testsuite / PackageTests / DuplicateModuleName / setup.test.hs
blob3739c793e8fecddd39639186bf73fa0d49cf08f3
1 import Test.Cabal.Prelude
2 -- Test that if two components have the same module name, they do not
3 -- clobber each other.
4 main = setupAndCabalTest $ do
5 skipUnless "no Cabal for GHC" =<< hasCabalForGhc -- use of library test suite
6 setup_build ["--enable-tests"]
7 r1 <- fails $ setup' "test" ["foo"]
8 assertOutputContains "test B" r1
9 assertOutputContains "test A" r1
10 r2 <- fails $ setup' "test" ["foo2"]
11 assertOutputContains "test C" r2
12 assertOutputContains "test A" r2