tests/hghave.py
branchstable
changeset 1323 aeb658c7dbc7
parent 1311 1fed120bfa04
child 1325 8caca8a82e37
equal deleted inserted replaced
1321:79f68c0ed71e 1323:aeb658c7dbc7
   270 
   270 
   271 def has_serve():
   271 def has_serve():
   272     return os.name != 'nt' # gross approximation
   272     return os.name != 'nt' # gross approximation
   273 
   273 
   274 def has_tic():
   274 def has_tic():
   275     return matchoutput('test -x "`which tic`"', '')
   275     try:
       
   276         import curses
       
   277         curses.COLOR_BLUE
       
   278         return matchoutput('test -x "`which tic`"', '')
       
   279     except ImportError:
       
   280         return False
   276 
   281 
   277 def has_msys():
   282 def has_msys():
   278     return os.getenv('MSYSTEM')
   283     return os.getenv('MSYSTEM')
   279 
   284 
   280 def has_aix():
   285 def has_aix():
   322     "svn13": (has_svn13, "subversion client and admin tools >= 1.3"),
   327     "svn13": (has_svn13, "subversion client and admin tools >= 1.3"),
   323     "svn15": (has_svn15, "subversion client and admin tools >= 1.5"),
   328     "svn15": (has_svn15, "subversion client and admin tools >= 1.5"),
   324     "svn-bindings": (has_svn_bindings, "subversion python bindings"),
   329     "svn-bindings": (has_svn_bindings, "subversion python bindings"),
   325     "symlink": (has_symlink, "symbolic links"),
   330     "symlink": (has_symlink, "symbolic links"),
   326     "system-sh": (has_system_sh, "system() uses sh"),
   331     "system-sh": (has_system_sh, "system() uses sh"),
   327     "tic": (has_tic, "terminfo compiler"),
   332     "tic": (has_tic, "terminfo compiler and curses module"),
   328     "tla": (has_tla, "GNU Arch tla client"),
   333     "tla": (has_tla, "GNU Arch tla client"),
   329     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
   334     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
   330     "windows": (has_windows, "Windows"),
   335     "windows": (has_windows, "Windows"),
   331     "msys": (has_msys, "Windows with MSYS"),
   336     "msys": (has_msys, "Windows with MSYS"),
   332     "aix": (has_aix, "AIX"),
   337     "aix": (has_aix, "AIX"),