list-objects-filter: don't memset after releasing filter struct
[git/debian.git] / t / t4036-format-patch-signer-mime.sh
blob48655bcc789eef6f08896b064440ea25a36c6e47
1 #!/bin/sh
3 test_description='format-patch -s should force MIME encoding as needed'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
8 test_expect_success setup '
10 >F &&
11 git add F &&
12 git commit -m initial &&
13 echo new line >F &&
15 test_tick &&
16 git commit -m "This adds some lines to F" F
20 test_expect_success 'format normally' '
22 git format-patch --stdout -1 >output &&
23 ! grep Content-Type output
27 test_expect_success 'format with signoff without funny signer name' '
29 git format-patch -s --stdout -1 >output &&
30 ! grep Content-Type output
34 test_expect_success 'format with non ASCII signer name' '
36 GIT_COMMITTER_NAME="はまの ふにおう" \
37 git format-patch -s --stdout -1 >output &&
38 grep Content-Type output
42 test_expect_success 'attach and signoff do not duplicate mime headers' '
44 GIT_COMMITTER_NAME="はまの ふにおう" \
45 git format-patch -s --stdout -1 --attach >output &&
46 test $(grep -ci ^MIME-Version: output) = 1
50 test_done