summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Smelkov <kirr@mns.spb.ru>2009-01-13 09:33:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-01-28 23:12:24 (GMT)
commit806d5e90440046a7807f757d70acb29573f89524 (patch)
tree310474589f5951f37723589873419fe9a0745ece
parentddfb3696b91e2a2261b79d0828a7a715e3d71c1e (diff)
downloadgit-806d5e90440046a7807f757d70acb29573f89524.zip
git-806d5e90440046a7807f757d70acb29573f89524.tar.gz
git-806d5e90440046a7807f757d70acb29573f89524.tar.bz2
mailinfo: add explicit test for mails like '<a.u.thor@example.com> (A U Thor)'
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
-rwxr-xr-xt/t5100-mailinfo.sh2
-rw-r--r--t/t5100/info00135
-rw-r--r--t/t5100/msg00130
-rw-r--r--t/t5100/patch00130
-rw-r--r--t/t5100/sample.mbox5
5 files changed, 11 insertions, 1 deletions
diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh
index 886d449..497cb0d 100755
--- a/t/t5100-mailinfo.sh
+++ b/t/t5100-mailinfo.sh
@@ -11,7 +11,7 @@ test_expect_success 'split sample box' \
'git mailsplit -o. ../t5100/sample.mbox >last &&
last=`cat last` &&
echo total is $last &&
- test `cat last` = 12'
+ test `cat last` = 13'
for mail in `echo 00*`
do
diff --git a/t/t5100/info0013 b/t/t5100/info0013
new file mode 100644
index 0000000..bbe049e
--- /dev/null
+++ b/t/t5100/info0013
@@ -0,0 +1,5 @@
+Author: A U Thor
+Email: a.u.thor@example.com
+Subject: a patch
+Date: Fri, 9 Jun 2006 00:44:16 -0700
+
diff --git a/t/t5100/msg0013 b/t/t5100/msg0013
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/t5100/msg0013
diff --git a/t/t5100/patch0013 b/t/t5100/patch0013
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/t5100/patch0013
diff --git a/t/t5100/sample.mbox b/t/t5100/sample.mbox
index 38725f3..85df55f 100644
--- a/t/t5100/sample.mbox
+++ b/t/t5100/sample.mbox
@@ -556,3 +556,8 @@ index 3fd3afb..0ee807e 100644
#. на своей машине: отредактировать /etc/sudoers (команда ``visudo``) примерно следующим образом::
--
1.5.6.5
+From nobody Mon Sep 17 00:00:00 2001
+From: <a.u.thor@example.com> (A U Thor)
+Date: Fri, 9 Jun 2006 00:44:16 -0700
+Subject: [PATCH] a patch
+