##// END OF EJS Templates
test-gpg: replace 825565136235 by md5sum check...
Thomas Arendsen Hein -
r16349:425f1fbc stable
parent child Browse files
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 init r
11 $ hg init r
16 $ cd r
12 $ cd r
17 $ echo foo > foo
13 $ echo foo > foo
18 $ hg ci -Amfoo
14 $ hg ci -Amfoo
19 adding foo
15 adding foo
20
16
21 $ hg sigs
17 $ hg sigs
22
18
23 $ hg sign 0
19 $ hg sign 0
24 Signing 0:e63c23eaa88a
20 Signing 0:e63c23eaa88a
25
21
26 $ hg sigs
22 $ hg sigs
27 hgtest 0:e63c23eaa88ae77967edcf4ea194d31167c478b0
23 hgtest 0:e63c23eaa88ae77967edcf4ea194d31167c478b0
28
24
29 $ hg sigcheck 0
25 $ hg sigcheck 0
30 e63c23eaa88a is signed by:
26 e63c23eaa88a is signed by:
31 hgtest
27 hgtest
32
28
33 verify that this test has not modified the trustdb.gpg file back in
29 verify that this test has not modified the trustdb.gpg file back in
34 the main hg working dir
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