1 import Test
.Cabal
.Prelude
2 main
= cabalTest
$ withRepo
"repo" $ do
3 cabal
' "outdated" [] >>=
5 assertOutputContains
"base" out
6 assertOutputContains
"template-haskell" out
7 assertOutputDoesNotContain
"binary" out
)
9 cabal
' "outdated" ["--ignore=base"] >>=
11 assertOutputDoesNotContain
"base" out
12 assertOutputContains
"template-haskell" out
13 assertOutputDoesNotContain
"binary" out
)
15 cabal
' "outdated" ["--ignore=base,template-haskell"] >>=
17 assertOutputDoesNotContain
"base" out
18 assertOutputDoesNotContain
"template-haskell" out
19 assertOutputDoesNotContain
"binary" out
)
21 cabal
' "outdated" ["--minor=base"] >>=
23 assertOutputDoesNotContain
"base" out
24 assertOutputContains
"template-haskell" out
25 assertOutputDoesNotContain
"binary" out
)
27 cabal
' "outdated" ["--minor=base,template-haskell"] >>=
29 assertOutputDoesNotContain
"base" out
30 assertOutputDoesNotContain
"template-haskell" out
31 assertOutputDoesNotContain
"binary" out
)