Test that the documentation is correctly installed as HTML.
authorBen Finney <[email protected]>
Mon, 8 Aug 2016 19:07:33 +0000 (9 05:07 +1000)
committerBen Finney <[email protected]>
Mon, 8 Aug 2016 19:09:45 +0000 (9 05:09 +1000)
debian/changelog
debian/tests/control

index 91c6cef..78221f8 100644 (file)
@@ -18,6 +18,8 @@ python-coverage (4.2+dfsg.1-1) UNRELEASED; urgency=medium
     * Enable build of upstream documentation using Sphinx.
   * debian/python-coverage-doc.{docs, doc-base}:
     * Install the upstream documentation.
+  * debian/tests/control:
+    * Test that the documentation is correctly installed as HTML.
 
  --
 
index 0e48847..6d6fea2 100644 (file)
@@ -12,6 +12,18 @@ Depends:
     python3-pkg-resources,
     python3-coverage
 
+Test-Command:
+    links -dump /usr/share/doc/python-coverage-doc/html/index.html > /dev/null
+Depends:
+    python-coverage-doc,
+    links
+
+Test-Command:
+    file /usr/share/doc/python-coverage-doc/html/index.html | grep -q 'HTML document'
+Depends:
+    python-coverage-doc,
+    file
+
 \f
 # Local variables:
 # coding: utf-8