ssh signing: verify ssh-keygen in test prereq
commit50992f96c546ebdc0c149660f6baa948739888d9
authorFabian Stelzer <fs@gigacodes.de>
Thu, 9 Dec 2021 08:52:49 +0000 (9 09:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Dec 2021 21:38:04 +0000 (9 13:38 -0800)
treeca7cf6c5c04a4e152b79edd8102748f5d415bd28
parent122842fd93eefadac237cfd73a4227b65c8b78ee
ssh signing: verify ssh-keygen in test prereq

Do a full ssh signing, find-principals and verify operation in the test
prereq's to make sure ssh-keygen works as expected. Only generating the
keys and verifying its presence is not sufficient in some situations.
One example was ssh-keygen creating unusable ssh keys in cygwin because
of unsafe default permissions for the key files. The other a broken
openssh 8.7 that segfaulted on any find-principals operation. This
extended prereq check avoids future test breakages in case ssh-keygen or
any environment behaviour changes.

Signed-off-by: Fabian Stelzer <fs@gigacodes.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-gpg.sh