]> git.ipfire.org Git - thirdparty/git.git/commit - t/t4202-log.sh
gpg-interface t: extend the existing GPG tests with GPGSM
authorHenning Schild <henning.schild@siemens.com>
Fri, 20 Jul 2018 08:28:07 +0000 (10:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jul 2018 15:41:42 +0000 (08:41 -0700)
commit53fc999306af60213e18b3ffd4c0347e4a88af0a
tree93da297efbc28c5d9a0d04ee767d1e02fd5cb29c
parent1e7adb97566bff7d3431ce64b8d0d854a6863ed5
gpg-interface t: extend the existing GPG tests with GPGSM

Add test cases to cover the new X509/gpgsm support. Most of them
resemble existing ones. They just switch the format to x509 and set the
signingkey when creating signatures. Validation of signatures does not
need any configuration of git, it does need gpgsm to be configured to
trust the key(-chain).
Several of the testcases build on top of existing gpg testcases.
The commit ships a self-signed key for committer@example.com and
configures gpgsm to trust it.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-gpg.sh
t/lib-gpg/gpgsm-gen-key.in [new file with mode: 0644]
t/lib-gpg/gpgsm_cert.p12 [new file with mode: 0644]
t/t4202-log.sh
t/t5534-push-signed.sh
t/t7004-tag.sh
t/t7030-verify-tag.sh