packages feed

hackport-0.5.5: cabal/cabal-testsuite/PackageTests/DuplicateModuleName/setup.test.hs

import Test.Cabal.Prelude
-- Test that if two components have the same module name, they do not
-- clobber each other.
main = setupAndCabalTest $ do
    skipUnless =<< hasCabalForGhc -- use of library test suite
    setup_build ["--enable-tests"]
    r1 <- fails $ setup' "test" ["foo"]
    assertOutputContains "test B" r1
    assertOutputContains "test A" r1
    r2 <- fails $ setup' "test" ["foo2"]
    assertOutputContains "test C" r2
    assertOutputContains "test A" r2