Skip to content
Snippets Groups Projects

install-bindist: Test for manpage installation

Open Ben Gamari requested to merge wip/manpage into master
+ 17
2
@@ -118,11 +118,26 @@ if [ -n "$TEST_LLVM" ]; then
[[ $(./main +RTS -s) -eq 2 ]]
fi
# Check for existence of manpage.
case "$(uname)" in
Linux)
if [ -z "$BINDIST_ONLY" ]; then
if ! ( man 1 ghc >/dev/null ); then
man 1 ghc
echo "Failed to find ghc(1) manpage"
exit 1
fi
fi
;;
*)
echo "skipping manpage test" ;;
esac
HADDOCK_HTML_INDEX="$(ghc-pkg field base haddock-html --simple)/index.html"
# Checking that haddock-htmls is populated correctly
if [ -f $HADDOCK_HTML_INDEX ]
if [ -f "$HADDOCK_HTML_INDEX" ]
then
ls -alh $HADDOCK_HTML_INDEX
ls -alh "$HADDOCK_HTML_INDEX"
else
echo "Haddock html field incorrect path" && exit 1
fi
Loading