(cabal check) Add "Autogen include" test for ts
[cabal.git] / cabal-testsuite / PackageTests / Outdated / outdated_freeze.test.hs
blob35756590ea85a13db77496a8bd646bfcfa46cb14
1 import Test.Cabal.Prelude
2 main = cabalTest $ withRepo "repo" $ do
3 forM_ ["--v2-freeze-file", "--freeze-file"] $ \arg -> do
4 cabal' "outdated" [arg] >>=
5 (\out -> do
6 assertOutputContains "base" out
7 assertOutputContains "template-haskell" out
8 assertOutputContains "binary" out)
10 cabal' "outdated" [arg, "--ignore=base,template-haskell,binary"] >>=
11 (\out -> do
12 assertOutputDoesNotContain "base" out
13 assertOutputDoesNotContain "template-haskell" out
14 assertOutputDoesNotContain "binary" out)
16 cabal' "outdated" [arg, "--minor=base,template-haskell,binary"] >>=
17 (\out -> do
18 assertOutputDoesNotContain "base" out
19 assertOutputContains "template-haskell" out
20 assertOutputContains "binary" out)
22 fails $ cabal' "outdated" ["--project-file=cabal.project.missing.freeze", "--v2-freeze-file"]
23 return ()