t7030: test verifying multiple tags

The verify-tag command supports multiple tag names to verify, but existing tests only test for invocation with a single tag. Add a test invoking it with multiple tags. Helped-by: Jeff King <peff@peff.net> Signed-off-by: Santiago Torres <santiago@nyu.edu> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Santiago Torres committed Apr 17, 2016 at 18:26 UTC 3e1e7454cc6737ceff0311451eba7a698da9d8c9
1 file changed +13
t/t7030-verify-tag.sh
+13
@@ -112,4 +112,17 @@ test_expect_success GPG 'verify signatures with --raw' '
112 )
113 '
114
115 +test_expect_success GPG 'verify multiple tags' '
116 + tags="fourth-signed sixth-signed seventh-signed" &&
117 + for i in $tags
118 + do
119 + git verify-tag -v --raw $i || return 1
120 + done >expect.stdout 2>expect.stderr.1 &&
121 + grep "^.GNUPG:." <expect.stderr.1 >expect.stderr &&
122 + git verify-tag -v --raw $tags >actual.stdout 2>actual.stderr.1 &&
123 + grep "^.GNUPG:." <actual.stderr.1 >actual.stderr &&
124 + test_cmp expect.stdout actual.stdout &&
125 + test_cmp expect.stderr actual.stderr
126 +'
127 +
128 test_done