comparison tests/hghave @ 6079:ea34059b89de

convert: added GNU Arch (tla) tests and related fixes
author Aleix Conchillo Flaque <aleix@member.fsf.org>
date Tue, 12 Feb 2008 11:35:06 +0100
parents ebc23d34102f
children 3b841c189ab7
comparison
equal deleted inserted replaced
6078:ebc23d34102f 6079:ea34059b89de
86 return False 86 return False
87 87
88 def has_symlink(): 88 def has_symlink():
89 return hasattr(os, "symlink") 89 return hasattr(os, "symlink")
90 90
91 def has_tla():
92 return matchoutput('tla --version 2>&1', r'The GNU Arch Revision')
93
91 def has_unix_permissions(): 94 def has_unix_permissions():
92 d = tempfile.mkdtemp(prefix=tempprefix, dir=".") 95 d = tempfile.mkdtemp(prefix=tempprefix, dir=".")
93 try: 96 try:
94 fname = os.path.join(d, 'foo') 97 fname = os.path.join(d, 'foo')
95 for umask in (077, 007, 022): 98 for umask in (077, 007, 022):
116 "hotshot": (has_hotshot, "python hotshot module"), 119 "hotshot": (has_hotshot, "python hotshot module"),
117 "lsprof": (has_lsprof, "python lsprof module"), 120 "lsprof": (has_lsprof, "python lsprof module"),
118 "svn": (has_svn, "subversion client and admin tools"), 121 "svn": (has_svn, "subversion client and admin tools"),
119 "svn-bindings": (has_svn_bindings, "subversion python bindings"), 122 "svn-bindings": (has_svn_bindings, "subversion python bindings"),
120 "symlink": (has_symlink, "symbolic links"), 123 "symlink": (has_symlink, "symbolic links"),
124 "tla": (has_tla, "GNU Arch tla client"),
121 "unix-permissions": (has_unix_permissions, "unix-style permissions"), 125 "unix-permissions": (has_unix_permissions, "unix-style permissions"),
122 } 126 }
123 127
124 def list_features(): 128 def list_features():
125 for name, feature in checks.iteritems(): 129 for name, feature in checks.iteritems():