tests/hghave.py
branchstable
changeset 19092 8c560ad1cdc4
parent 18285 9589227657bc
child 19378 9de689d20230
equal deleted inserted replaced
19091:f01a351db791 19092:8c560ad1cdc4
   271 def has_tic():
   271 def has_tic():
   272     return matchoutput('test -x "`which tic`"', '')
   272     return matchoutput('test -x "`which tic`"', '')
   273 
   273 
   274 def has_msys():
   274 def has_msys():
   275     return os.getenv('MSYSTEM')
   275     return os.getenv('MSYSTEM')
       
   276 
       
   277 def has_aix():
       
   278     return sys.platform.startswith("aix")
   276 
   279 
   277 checks = {
   280 checks = {
   278     "true": (lambda: True, "yak shaving"),
   281     "true": (lambda: True, "yak shaving"),
   279     "false": (lambda: False, "nail clipper"),
   282     "false": (lambda: False, "nail clipper"),
   280     "baz": (has_baz, "GNU Arch baz client"),
   283     "baz": (has_baz, "GNU Arch baz client"),
   312     "tic": (has_tic, "terminfo compiler"),
   315     "tic": (has_tic, "terminfo compiler"),
   313     "tla": (has_tla, "GNU Arch tla client"),
   316     "tla": (has_tla, "GNU Arch tla client"),
   314     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
   317     "unix-permissions": (has_unix_permissions, "unix-style permissions"),
   315     "windows": (has_windows, "Windows"),
   318     "windows": (has_windows, "Windows"),
   316     "msys": (has_msys, "Windows with MSYS"),
   319     "msys": (has_msys, "Windows with MSYS"),
       
   320     "aix": (has_aix, "AIX"),
   317 }
   321 }