Show More
@@ -1,35 +1,32 b'' | |||||
1 | Test the GPG extension |
|
1 | Test the GPG extension | |
2 |
|
2 | |||
3 | $ "$TESTDIR/hghave" gpg || exit 80 |
|
3 | $ "$TESTDIR/hghave" gpg || exit 80 | |
4 | $ if ! hg identify -q > /dev/null; then |
|
|||
5 | > echo "skipped: not a Mercurial working dir" >&2 |
|
|||
6 | > exit 80 |
|
|||
7 | > fi |
|
|||
8 | $ cat <<EOF >> $HGRCPATH |
|
4 | $ cat <<EOF >> $HGRCPATH | |
9 | > [extensions] |
|
5 | > [extensions] | |
10 | > gpg= |
|
6 | > gpg= | |
11 | > |
|
7 | > | |
12 | > [gpg] |
|
8 | > [gpg] | |
13 | > cmd=gpg --no-permission-warning --no-secmem-warning --no-auto-check-trustdb --homedir $TESTDIR/gpg |
|
9 | > cmd=gpg --no-permission-warning --no-secmem-warning --no-auto-check-trustdb --homedir $TESTDIR/gpg | |
14 | > EOF |
|
10 | > EOF | |
15 |
$ hg |
|
11 | $ hg init r | |
16 |
$ |
|
12 | $ cd r | |
17 |
$ |
|
13 | $ echo foo > foo | |
18 |
$ |
|
14 | $ hg ci -Amfoo | |
19 |
|
|
15 | adding foo | |
20 |
|
16 | |||
21 |
$ |
|
17 | $ hg sigs | |
22 |
|
18 | |||
23 |
$ |
|
19 | $ hg sign 0 | |
24 |
|
|
20 | Signing 0:e63c23eaa88a | |
25 |
|
21 | |||
26 |
$ |
|
22 | $ hg sigs | |
27 |
|
|
23 | hgtest 0:e63c23eaa88ae77967edcf4ea194d31167c478b0 | |
28 |
|
24 | |||
29 |
$ |
|
25 | $ hg sigcheck 0 | |
30 |
|
|
26 | e63c23eaa88a is signed by: | |
31 |
|
|
27 | hgtest | |
32 |
|
28 | |||
33 |
|
|
29 | verify that this test has not modified the trustdb.gpg file back in | |
34 |
|
|
30 | the main hg working dir | |
35 | $ hg --cwd $TESTDIR status gpg |
|
31 | $ "$TESTDIR/md5sum.py" "$TESTDIR/gpg/trustdb.gpg" | |
|
32 | f6b9c78c65fa9536e7512bb2ceb338ae */gpg/trustdb.gpg (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now