Skip to content

Commit 6fb5df6

Browse files
eworm-degitster
authored andcommitted
tests: make comment on GPG keyring match the code
GnuPG homedir is generated on the fly and keys are imported from armored key file. Make comment match available key info and new key generation procedure. Signed-off-by: Christian Hesse <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4b0bf39 commit 6fb5df6

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

t/lib-gpg.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,20 @@ else
1212
say "Your version of gpg (1.0.6) is too buggy for testing"
1313
;;
1414
*)
15-
# key generation info: gpg --homedir t/lib-gpg --gen-key
16-
# Type DSA and Elgamal, size 2048 bits, no expiration date.
17-
# Name and email: C O Mitter <[email protected]>
15+
# Available key info:
16+
# * Type DSA and Elgamal, size 2048 bits, no expiration date,
17+
# name and email: C O Mitter <[email protected]>
18+
# * Type RSA, size 2048 bits, no expiration date,
19+
# name and email: Eris Discordia <[email protected]>
1820
# No password given, to enable non-interactive operation.
21+
# To generate new key:
22+
# gpg --homedir /tmp/gpghome --gen-key
23+
# To write armored exported key to keyring:
24+
# gpg --homedir /tmp/gpghome --export-secret-keys \
25+
# --armor 0xDEADBEEF >> lib-gpg/keyring.gpg
26+
# To export ownertrust:
27+
# gpg --homedir /tmp/gpghome --export-ownertrust \
28+
# > lib-gpg/ownertrust
1929
mkdir ./gpghome &&
2030
chmod 0700 ./gpghome &&
2131
GNUPGHOME="$(pwd)/gpghome" &&

0 commit comments

Comments
 (0)