. "$BST_LIB" # man-pages is documentation only -- there is no binary to `require`, and the # image ships no man(1) viewer (man-db is not ported yet) -- so assert the # installed roff pages under /usr/share/man directly. # The syscall and overview section directories are populated. check man-pages/man2-dir test -d /usr/share/man/man2 check man-pages/man7-dir test -d /usr/share/man/man7 # A syscall page is present and carries its roff title header. check_out man-pages/open2 ".TH open" cat /usr/share/man/man2/open.2 # An overview page from section 7. check_out man-pages/signal7 ".TH signal" cat /usr/share/man/man7/signal.7 # Link pages install as .so includes (upstream LINK_PAGES=".so" default). check_out man-pages/creat-link ".so man2/open.2" cat /usr/share/man/man2/creat.2 # The collection is substantially present (6.06 ships ~2670 section pages). n=$(find /usr/share/man -type f | wc -l) if [ "$n" -ge 2000 ]; then bst_ok man-pages/count else bst_notok man-pages/count "only $n files under /usr/share/man"; fi