Browse Source

t/t7510: check the validation of the new config gpg.format

Test setting gpg.format to both invalid and valid values.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Henning Schild 7 years ago committed by Junio C Hamano
parent
commit
1865a647c3
  1. 7
      t/t7510-signed-commit.sh

7
t/t7510-signed-commit.sh

@ -227,4 +227,11 @@ test_expect_success GPG 'log.showsignature behaves like --show-signature' ' @@ -227,4 +227,11 @@ test_expect_success GPG 'log.showsignature behaves like --show-signature' '
grep "gpg: Good signature" actual
'

test_expect_success GPG 'check config gpg.format values' '
test_config gpg.format openpgp &&
git commit -S --amend -m "success" &&
test_config gpg.format OpEnPgP &&
test_must_fail git commit -S --amend -m "fail"
'

test_done

Loading…
Cancel
Save