From: Junio C Hamano Date: Sun, 22 Nov 2009 17:54:10 +0000 (-0800) Subject: t9001: test --envelope-sender option of send-email X-Git-Tag: v1.6.6-rc1~15^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4f333bc1d32a84c9ddad737ccdbd6e99ed05d396;p=git.git t9001: test --envelope-sender option of send-email Signed-off-by: Junio C Hamano --- diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index fb606a9f0..0164629ed 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -95,6 +95,23 @@ test_expect_success \ 'Verify commandline' \ 'test_cmp expected commandline1' +test_expect_success 'Send patches with --envelope-sender' ' + clean_fake_sendmail && + git send-email --envelope-sender="Patch Contributer " --suppress-cc=sob --from="Example " --to=nobody@example.com --smtp-server="$(pwd)/fake.sendmail" $patches 2>errors +' + +cat >expected <<\EOF +!patch@example.com! +!-i! +!nobody@example.com! +!author@example.com! +!one@example.com! +!two@example.com! +EOF +test_expect_success \ + 'Verify commandline' \ + 'test_cmp expected commandline1' + cat >expected-show-all-headers <<\EOF 0001-Second.patch (mbox) Adding cc: A from line 'From: A '