Mercurial > hg
comparison tests/hghave @ 8809:6fce36336e42
gpg: add test
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Sun, 14 Jun 2009 13:32:19 -0700 |
parents | ac9c4049fd29 |
children | 3f52a70959ce |
comparison
equal
deleted
inserted
replaced
8808:38305de95f1d | 8809:6fce36336e42 |
---|---|
144 return hasattr(os, "symlink") | 144 return hasattr(os, "symlink") |
145 | 145 |
146 def has_tla(): | 146 def has_tla(): |
147 return matchoutput('tla --version 2>&1', r'The GNU Arch Revision') | 147 return matchoutput('tla --version 2>&1', r'The GNU Arch Revision') |
148 | 148 |
149 def has_gpg(): | |
150 return matchoutput('gpg --version 2>&1', r'GnuPG') | |
151 | |
149 def has_unix_permissions(): | 152 def has_unix_permissions(): |
150 d = tempfile.mkdtemp(prefix=tempprefix, dir=".") | 153 d = tempfile.mkdtemp(prefix=tempprefix, dir=".") |
151 try: | 154 try: |
152 fname = os.path.join(d, 'foo') | 155 fname = os.path.join(d, 'foo') |
153 for umask in (077, 007, 022): | 156 for umask in (077, 007, 022): |
181 "darcs": (has_darcs, "darcs client"), | 184 "darcs": (has_darcs, "darcs client"), |
182 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"), | 185 "eol-in-paths": (has_eol_in_paths, "end-of-lines in paths"), |
183 "execbit": (has_executablebit, "executable bit"), | 186 "execbit": (has_executablebit, "executable bit"), |
184 "fifo": (has_fifo, "named pipes"), | 187 "fifo": (has_fifo, "named pipes"), |
185 "git": (has_git, "git command line client"), | 188 "git": (has_git, "git command line client"), |
189 "gpg": (has_gpg, "gpg client"), | |
186 "hotshot": (has_hotshot, "python hotshot module"), | 190 "hotshot": (has_hotshot, "python hotshot module"), |
187 "icasefs": (has_icasefs, "case insensitive file system"), | 191 "icasefs": (has_icasefs, "case insensitive file system"), |
188 "inotify": (has_inotify, "inotify extension support"), | 192 "inotify": (has_inotify, "inotify extension support"), |
189 "lsprof": (has_lsprof, "python lsprof module"), | 193 "lsprof": (has_lsprof, "python lsprof module"), |
190 "mtn": (has_mtn, "monotone client (> 0.31)"), | 194 "mtn": (has_mtn, "monotone client (> 0.31)"), |