view tests/test-gpg @ 9143:a604c98dbf62

test-tags: clarify test output; simplify test script a bit (issue548). - use simpler way ('hg id') to get current changeset id - add 'echo' statements to guide the eye when reading output - add some more output to clarify the state of .hgtags - drop '-d' option from every commit/tag, since run-tests.py does this (although with a different timestamp, so changeset ids differ)
author Greg Ward <greg-hg@gerg.ca>
date Thu, 16 Jul 2009 10:39:41 -0400
parents 6e5e548452de
children
line wrap: on
line source

#!/bin/sh

"$TESTDIR/hghave" gpg || exit 80

cat <<EOF >> $HGRCPATH
[extensions]
gpg=

[gpg]
cmd=gpg --no-permission-warning --no-secmem-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