Mercurial > hg
comparison tests/hghave @ 6078:ebc23d34102f
convert: added gnu arch (baz) tests
author | Aleix Conchillo Flaque <aleix@member.fsf.org> |
---|---|
date | Tue, 12 Feb 2008 10:38:34 +0100 |
parents | b74a0c4bfb30 |
children | ea34059b89de |
comparison
equal
deleted
inserted
replaced
6073:89c70d496175 | 6078:ebc23d34102f |
---|---|
18 r = re.compile(regexp) | 18 r = re.compile(regexp) |
19 fh = os.popen(cmd) | 19 fh = os.popen(cmd) |
20 s = fh.read() | 20 s = fh.read() |
21 ret = fh.close() | 21 ret = fh.close() |
22 return (ignorestatus or ret is None) and r.search(s) | 22 return (ignorestatus or ret is None) and r.search(s) |
23 | |
24 def has_baz(): | |
25 return matchoutput('baz --version 2>&1', r'baz Bazaar version') | |
23 | 26 |
24 def has_cvs(): | 27 def has_cvs(): |
25 return matchoutput('cvs --version 2>&1', r'Concurrent Versions System') | 28 return matchoutput('cvs --version 2>&1', r'Concurrent Versions System') |
26 | 29 |
27 def has_cvsps(): | 30 def has_cvsps(): |
100 return True | 103 return True |
101 finally: | 104 finally: |
102 os.rmdir(d) | 105 os.rmdir(d) |
103 | 106 |
104 checks = { | 107 checks = { |
108 "baz": (has_baz, "GNU Arch baz client"), | |
105 "cvs": (has_cvs, "cvs client"), | 109 "cvs": (has_cvs, "cvs client"), |
106 "cvsps": (has_cvsps, "cvsps utility"), | 110 "cvsps": (has_cvsps, "cvsps utility"), |
107 "darcs": (has_darcs, "darcs client"), | 111 "darcs": (has_darcs, "darcs client"), |
108 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"), | 112 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"), |
109 "execbit": (has_executablebit, "executable bit"), | 113 "execbit": (has_executablebit, "executable bit"), |