diff options
author | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-08-22 14:49:51 +0100 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-08-22 14:49:51 +0100 |
commit | a498da43c7fdb9f24b73680c02a4a3588cc62d9a (patch) | |
tree | daf8119dae1749b5165b68033a1b23a7375ce9ce /tests/test-gpg.t | |
download | mercurial-tarball-a498da43c7fdb9f24b73680c02a4a3588cc62d9a.tar.gz |
Tarball conversion
Diffstat (limited to 'tests/test-gpg.t')
-rw-r--r-- | tests/test-gpg.t | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/test-gpg.t b/tests/test-gpg.t new file mode 100644 index 0000000..5ec6fa0 --- /dev/null +++ b/tests/test-gpg.t @@ -0,0 +1,34 @@ +Test the GPG extension + + $ "$TESTDIR/hghave" gpg || exit 80 + $ cat <<EOF >> $HGRCPATH + > [extensions] + > gpg= + > + > [gpg] + > cmd=gpg --no-permission-warning --no-secmem-warning --no-auto-check-trustdb --homedir "$TESTDIR/gpg" + > EOF + $ hg init r + $ cd r + $ echo foo > foo + $ hg ci -Amfoo + adding foo + + $ hg sigs + + $ hg sign 0 + signing 0:e63c23eaa88a + + $ hg sigs + hgtest 0:e63c23eaa88ae77967edcf4ea194d31167c478b0 + + $ hg sigcheck 0 + e63c23eaa88a is signed by: + hgtest + +verify that this test has not modified the trustdb.gpg file back in +the main hg working dir + $ "$TESTDIR/md5sum.py" "$TESTDIR/gpg/trustdb.gpg" + f6b9c78c65fa9536e7512bb2ceb338ae */gpg/trustdb.gpg (glob) + + $ cd .. |