Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/tests/hghave Sun Jun 14 12:18:46 2009 -0700 +++ b/tests/hghave Sun Jun 14 13:32:19 2009 -0700 @@ -146,6 +146,9 @@ def has_tla(): return matchoutput('tla --version 2>&1', r'The GNU Arch Revision') +def has_gpg(): + return matchoutput('gpg --version 2>&1', r'GnuPG') + def has_unix_permissions(): d = tempfile.mkdtemp(prefix=tempprefix, dir=".") try: @@ -183,6 +186,7 @@ "execbit": (has_executablebit, "executable bit"), "fifo": (has_fifo, "named pipes"), "git": (has_git, "git command line client"), + "gpg": (has_gpg, "gpg client"), "hotshot": (has_hotshot, "python hotshot module"), "icasefs": (has_icasefs, "case insensitive file system"), "inotify": (has_inotify, "inotify extension support"),