tests/hghave.py
branchstable
changeset 1278 9ff91ff2797d
parent 1190 ecb744c2a199
child 1279 9dac69d57f75
equal deleted inserted replaced
1276:509a9dd1553c 1278:9ff91ff2797d
   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 }