1 import Test
.Cabal
.Prelude
2 -- Test that if two components have the same module name, they do not
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