Un-ignore .bat files
[cabal.git] / cabal-testsuite / PackageTests / NewFreeze / T9799b / cabal.test.hs
blob64cb9a2541a62eeaa420eb2fd16beeaf6be151a0
1 import Test.Cabal.Prelude
2 main = cabalTest $ do
3 withRepo "repo" $ do
5 -- Show how using 'any' qualifiers always with relaxed bounds can violate that
6 -- cabal freeze --constraint=... && cabal build
7 -- should be equal to
8 -- cabal build --constraint=...
9 --
10 -- Therefore, the packages in a cabal.project.freeze file must be properly qualified
12 out1 <- cabal' "v2-build" ["--constraint=setup.libA == 0.1.0.0"]
13 assertOutputContains "Setup: libA-0.1.0.0" out1
14 assertOutputContains "Building: libA-0.2.0.0" out1
16 cabal "v2-freeze" ["--constraint=setup.libA == 0.1.0.0"]
18 expectBroken 9799 $ do -- fails when building
19 out2 <- cabal' "v2-build" []
20 -- After #9799 is fixed, these two lines should be changed to `assertOutputContains`
21 assertOutputDoesNotContain "Setup: libA-0.1.0.0" out2
22 assertOutputDoesNotContain "Building: libA-0.2.0.0" out2