Add test cases that reproduce #7241.
[cabal.git] / cabal-testsuite / PackageTests / BuildableField / setup.test.hs
blob6342e4275697790934dce92e10f8ee22cb972136
1 import Test.Cabal.Prelude
2 -- Test that setup can choose flags to disable building a component when that
3 -- component's dependencies are unavailable. The build should succeed without
4 -- requiring the component's dependencies or imports.
5 main = setupAndCabalTest $ do
6 r <- setup' "configure" ["-v"]
7 assertOutputContains "Flags chosen: build-exe=False" r
8 setup "build" []