@matheusbsbs / matheus-bagliano / commits / 797e99a278
Fork 0

t7004: Skip tests for signed tags in an old version of gpg.

As said here: http://www.gnupg.org/documentation/faqs.html#q6.19 the gpg version 1.0.6 didn't parse trust packets correctly, so for that version, creation of signed tags using the generated key fails. Signed-off-by: Carlos Rica <jasampler@gmail.com> Acked-by: Sven Verdoolaege <skimo@kotnet.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Carlos Rica committed Jul 8, 2007 at 21:36 UTC 797e99a27848a0f6da1f3c85cb3714652fde23ba
1 file changed +11
t/t7004-tag.sh
+11
@@ -460,6 +460,17 @@ if [ $? -eq 127 ]; then
460 exit
461 fi
462
463 +# As said here: http://www.gnupg.org/documentation/faqs.html#q6.19
464 +# the gpg version 1.0.6 didn't parse trust packets correctly, so for
465 +# that version, creation of signed tags using the generated key fails.
466 +case "$(gpg --version)" in
467 +'gpg (GnuPG) 1.0.6'*)
468 + echo "Skipping signed tag tests, because a bug in 1.0.6 version"
469 + test_done
470 + exit
471 + ;;
472 +esac
473 +
474 # key generation info: gpg --homedir t/t7004 --gen-key
475 # Type DSA and Elgamal, size 2048 bits, no expiration date.
476 # Name and email: C O Mitter <committer@example.com>