comparison 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
comparison
equal deleted inserted replaced
9445:f0105f2c424c 9446:57d682d7d2da
120 except ImportError: 120 except ImportError:
121 return False 121 return False
122 122
123 def has_git(): 123 def has_git():
124 return matchoutput('git --version 2>&1', r'^git version') 124 return matchoutput('git --version 2>&1', r'^git version')
125
126 def has_rst2html():
127 return matchoutput('rst2html --version', r'^rst2html \(Docutils') or \
128 matchoutput('rst2html.py --version', r'^rst2html.py \(Docutils')
125 129
126 def has_svn(): 130 def has_svn():
127 return matchoutput('svn --version 2>&1', r'^svn, version') and \ 131 return matchoutput('svn --version 2>&1', r'^svn, version') and \
128 matchoutput('svnadmin --version 2>&1', r'^svnadmin, version') 132 matchoutput('svnadmin --version 2>&1', r'^svnadmin, version')
129 133
193 "lsprof": (has_lsprof, "python lsprof module"), 197 "lsprof": (has_lsprof, "python lsprof module"),
194 "mtn": (has_mtn, "monotone client (> 0.31)"), 198 "mtn": (has_mtn, "monotone client (> 0.31)"),
195 "outer-repo": (has_outer_repo, "outer repo"), 199 "outer-repo": (has_outer_repo, "outer repo"),
196 "p4": (has_p4, "Perforce server and client"), 200 "p4": (has_p4, "Perforce server and client"),
197 "pygments": (has_pygments, "Pygments source highlighting library"), 201 "pygments": (has_pygments, "Pygments source highlighting library"),
202 "rst2html": (has_rst2html, "Docutils rst2html tool"),
198 "svn": (has_svn, "subversion client and admin tools"), 203 "svn": (has_svn, "subversion client and admin tools"),
199 "svn-bindings": (has_svn_bindings, "subversion python bindings"), 204 "svn-bindings": (has_svn_bindings, "subversion python bindings"),
200 "symlink": (has_symlink, "symbolic links"), 205 "symlink": (has_symlink, "symbolic links"),
201 "tla": (has_tla, "GNU Arch tla client"), 206 "tla": (has_tla, "GNU Arch tla client"),
202 "unix-permissions": (has_unix_permissions, "unix-style permissions"), 207 "unix-permissions": (has_unix_permissions, "unix-style permissions"),