diff tests/hghave @ 9446:57d682d7d2da

test-gendoc: test documentation generation
author Martin Geisler <mg@lazybytes.net>
date Sun, 13 Sep 2009 18:00:37 +0200
parents 163e79e2ed5f
children 67df9f46f907
line wrap: on
line diff
--- a/tests/hghave	Sun Sep 13 17:08:31 2009 +0200
+++ b/tests/hghave	Sun Sep 13 18:00:37 2009 +0200
@@ -123,6 +123,10 @@
 def has_git():
     return matchoutput('git --version 2>&1', r'^git version')
 
+def has_rst2html():
+    return matchoutput('rst2html --version', r'^rst2html \(Docutils') or \
+        matchoutput('rst2html.py --version', r'^rst2html.py \(Docutils')
+
 def has_svn():
     return matchoutput('svn --version 2>&1', r'^svn, version') and \
         matchoutput('svnadmin --version 2>&1', r'^svnadmin, version')
@@ -195,6 +199,7 @@
     "outer-repo": (has_outer_repo, "outer repo"),
     "p4": (has_p4, "Perforce server and client"),
     "pygments": (has_pygments, "Pygments source highlighting library"),
+    "rst2html": (has_rst2html, "Docutils rst2html tool"),
     "svn": (has_svn, "subversion client and admin tools"),
     "svn-bindings": (has_svn_bindings, "subversion python bindings"),
     "symlink": (has_symlink, "symbolic links"),