tests/hghave
changeset 13289 58b26b360a57
parent 12784 763be3cd084a
child 13418 28555e294104
equal deleted inserted replaced
13288:9c3bfba3f48d 13289:58b26b360a57
    99         return False
    99         return False
   100 
   100 
   101 def has_fifo():
   101 def has_fifo():
   102     return hasattr(os, "mkfifo")
   102     return hasattr(os, "mkfifo")
   103 
   103 
   104 def has_hotshot():
       
   105     try:
       
   106         # hotshot.stats tests hotshot and many problematic dependencies
       
   107         # like profile.
       
   108         import hotshot.stats
       
   109         return True
       
   110     except ImportError:
       
   111         return False
       
   112 
       
   113 def has_lsprof():
   104 def has_lsprof():
   114     try:
   105     try:
   115         import _lsprof
   106         import _lsprof
   116         return True
   107         return True
   117     except ImportError:
   108     except ImportError:
   196     "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
   187     "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"),
   197     "execbit": (has_executablebit, "executable bit"),
   188     "execbit": (has_executablebit, "executable bit"),
   198     "fifo": (has_fifo, "named pipes"),
   189     "fifo": (has_fifo, "named pipes"),
   199     "git": (has_git, "git command line client"),
   190     "git": (has_git, "git command line client"),
   200     "gpg": (has_gpg, "gpg client"),
   191     "gpg": (has_gpg, "gpg client"),
   201     "hotshot": (has_hotshot, "python hotshot module"),
       
   202     "icasefs": (has_icasefs, "case insensitive file system"),
   192     "icasefs": (has_icasefs, "case insensitive file system"),
   203     "inotify": (has_inotify, "inotify extension support"),
   193     "inotify": (has_inotify, "inotify extension support"),
   204     "lsprof": (has_lsprof, "python lsprof module"),
   194     "lsprof": (has_lsprof, "python lsprof module"),
   205     "mtn": (has_mtn, "monotone client (> 0.31)"),
   195     "mtn": (has_mtn, "monotone client (> 0.31)"),
   206     "outer-repo": (has_outer_repo, "outer repo"),
   196     "outer-repo": (has_outer_repo, "outer repo"),