Merge pull request #10525 from 9999years/field-stanza-names
[cabal.git] / cabal-testsuite / PackageTests / DuplicateModuleName / setup.test.hs
blob005578ce184a43affabdfacd153cbccdcaedaf01
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 skipIfAllCabalVersion "< 2.2"
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