comparison tests/hghave @ 6384:8bc876e03143

Skip older monotone versions for tests. test-convert-mtn is known to work with 0.37 and 0.38, but fails with 0.31 (Debian etch). hghave now skips all versions up to 0.31.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 24 Mar 2008 22:49:33 +0100
parents 8f79820443a4
children 59f7b804352f
comparison
equal deleted inserted replaced
6383:38485d45f947 6384:8bc876e03143
29 29
30 def has_cvsps(): 30 def has_cvsps():
31 return matchoutput('cvsps -h -q 2>&1', r'cvsps version', True) 31 return matchoutput('cvsps -h -q 2>&1', r'cvsps version', True)
32 32
33 def has_darcs(): 33 def has_darcs():
34 return matchoutput('darcs', 'darcs version', True) 34 return matchoutput('darcs', r'darcs version', True)
35 35
36 def has_mtn(): 36 def has_mtn():
37 return matchoutput('mtn --version', 'monotone', True) 37 return matchoutput('mtn --version', r'monotone', True) and not matchoutput(
38 'mtn --version', r'monotone 0\.(\d|[12]\d|3[01])[^\d]', True)
38 39
39 def has_eol_in_paths(): 40 def has_eol_in_paths():
40 try: 41 try:
41 fd, path = tempfile.mkstemp(prefix=tempprefix, suffix='\n\r') 42 fd, path = tempfile.mkstemp(prefix=tempprefix, suffix='\n\r')
42 os.close(fd) 43 os.close(fd)
126 "execbit": (has_executablebit, "executable bit"), 127 "execbit": (has_executablebit, "executable bit"),
127 "fifo": (has_fifo, "named pipes"), 128 "fifo": (has_fifo, "named pipes"),
128 "git": (has_git, "git command line client"), 129 "git": (has_git, "git command line client"),
129 "hotshot": (has_hotshot, "python hotshot module"), 130 "hotshot": (has_hotshot, "python hotshot module"),
130 "lsprof": (has_lsprof, "python lsprof module"), 131 "lsprof": (has_lsprof, "python lsprof module"),
131 "mtn": (has_mtn, "monotone client"), 132 "mtn": (has_mtn, "monotone client (> 0.31)"),
132 "svn": (has_svn, "subversion client and admin tools"), 133 "svn": (has_svn, "subversion client and admin tools"),
133 "svn-bindings": (has_svn_bindings, "subversion python bindings"), 134 "svn-bindings": (has_svn_bindings, "subversion python bindings"),
134 "symlink": (has_symlink, "symbolic links"), 135 "symlink": (has_symlink, "symbolic links"),
135 "tla": (has_tla, "GNU Arch tla client"), 136 "tla": (has_tla, "GNU Arch tla client"),
136 "unix-permissions": (has_unix_permissions, "unix-style permissions"), 137 "unix-permissions": (has_unix_permissions, "unix-style permissions"),