Commit 6b90d875 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Port manpage to cabal-testsuite.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 69d90bd1
......@@ -46,7 +46,6 @@ Extra-Source-Files:
tests/IntegrationTests/freeze/freezes_transitive_dependencies.sh
tests/IntegrationTests/freeze/my.cabal
tests/IntegrationTests/freeze/runs_without_error.sh
tests/IntegrationTests/manpage/outputs_manpage.sh
tests/IntegrationTests/multiple-source/finds_second_source_of_multiple_source.sh
tests/IntegrationTests/multiple-source/p/Setup.hs
tests/IntegrationTests/multiple-source/p/p.cabal
......
. ./common.sh
OUTPUT=`cabal manpage`
# contains visible command descriptions
echo $OUTPUT | grep -q '\.B cabal install' || die "visible command description line not found in:\n----$OUTPUT\n----"
# does not contain hidden command descriptions
echo $OUTPUT | grep -q '\.B cabal manpage' && die "hidden command description line found in:\n----$OUTPUT\n----"
exit 0
import Test.Cabal.Prelude
main = cabalTest $ do
r <- cabal' "manpage" []
assertOutputContains ".B cabal install" r
assertOutputDoesNotContain ".B cabal manpage" r
......@@ -248,7 +248,7 @@ cabalG' global_args cmd args = do
-- Sandboxes manage dist dir
| testHaveSandbox env
= install_args
| cmd == "update" || cmd == "outdated" || cmd == "user-config"
| cmd `elem` ["update", "outdated", "user-config", "manpage"]
= [ ]
-- new-build commands are affected by testCabalProjectFile
| "new-" `isPrefixOf` cmd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment