(cabal check) Add "Autogen include" test for ts
[cabal.git] / cabal-testsuite / PackageTests / Outdated / outdated.test.hs
blob228643378ceddaeda4950317847a0944ad7079d3
1 import Test.Cabal.Prelude
2 main = cabalTest $ withRepo "repo" $ do
3 cabal' "outdated" [] >>=
4 (\out -> do
5 assertOutputContains "base" out
6 assertOutputContains "template-haskell" out
7 assertOutputDoesNotContain "binary" out)
9 cabal' "outdated" ["--ignore=base"] >>=
10 (\out -> do
11 assertOutputDoesNotContain "base" out
12 assertOutputContains "template-haskell" out
13 assertOutputDoesNotContain "binary" out)
15 cabal' "outdated" ["--ignore=base,template-haskell"] >>=
16 (\out -> do
17 assertOutputDoesNotContain "base" out
18 assertOutputDoesNotContain "template-haskell" out
19 assertOutputDoesNotContain "binary" out)
21 cabal' "outdated" ["--minor=base"] >>=
22 (\out -> do
23 assertOutputDoesNotContain "base" out
24 assertOutputContains "template-haskell" out
25 assertOutputDoesNotContain "binary" out)
27 cabal' "outdated" ["--minor=base,template-haskell"] >>=
28 (\out -> do
29 assertOutputDoesNotContain "base" out
30 assertOutputDoesNotContain "template-haskell" out
31 assertOutputDoesNotContain "binary" out)