t/lib-gpg: sanity-check that we can actually sign
commit1f985d60ef04aa9b291d01c093ed7496e26ccaee
authorJeff King <peff@peff.net>
Thu, 29 Jan 2015 15:51:11 +0000 (29 10:51 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Jan 2015 20:35:05 +0000 (29 12:35 -0800)
tree8bfc259f8cc949baed2340be4fb00ceb365121b2
parent830ff021aaaf12c43f06314feaf465377672d3ea
t/lib-gpg: sanity-check that we can actually sign

Some older versions of gpg (reportedly v1.2.6 from RHEL4) cannot
import the keyrings found in our test suite, and thus cannot even
make a signature.  The previous change works it around, but we
cannot anticipate breakages update to GPG would cause in the future.

Do a test-sign before declaring the GPG prerequisite fulfilled
to future-proof our tests.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-gpg.sh