diff tests/test-gpg @ 8809:6fce36336e42

gpg: add test
author Brendan Cully <brendan@kublai.com>
date Sun, 14 Jun 2009 13:32:19 -0700
parents
children 6e5e548452de
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-gpg	Sun Jun 14 13:32:19 2009 -0700
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+"$TESTDIR/hghave" gpg || exit 80
+
+cat <<EOF >> $HGRCPATH
+[extensions]
+gpg=
+
+[gpg]
+cmd=gpg --no-permission-warning --homedir $TESTDIR/gpg
+EOF
+
+hg init r
+cd r
+echo foo > foo
+hg ci -Amfoo
+
+echo '% no signatures'
+hg sigs
+
+echo '% hg sign 0'
+hg sign 0
+
+echo '% hg sigs'
+hg sigs
+
+echo '% hg sigcheck 0'
+hg sigcheck 0