mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
Add a couple more test cases to the suite.
They handle cases where there is no attached patch. Signed-off-by: Don Zickus <dzickus@redhat.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
f0658cf210
commit
ae1a743735
|
@ -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` = 6'
|
||||
test `cat last` = 8'
|
||||
|
||||
for mail in `echo 00*`
|
||||
do
|
||||
|
|
5
t/t5100/info0007
Normal file
5
t/t5100/info0007
Normal file
|
@ -0,0 +1,5 @@
|
|||
Author: A U Thor
|
||||
Email: a.u.thor@example.com
|
||||
Subject: another patch
|
||||
Date: Fri, 9 Jun 2006 00:44:16 -0700
|
||||
|
5
t/t5100/info0008
Normal file
5
t/t5100/info0008
Normal file
|
@ -0,0 +1,5 @@
|
|||
Author: Junio C Hamano
|
||||
Email: junio@kernel.org
|
||||
Subject: another patch
|
||||
Date: Fri, 9 Jun 2006 00:44:16 -0700
|
||||
|
2
t/t5100/msg0007
Normal file
2
t/t5100/msg0007
Normal file
|
@ -0,0 +1,2 @@
|
|||
Here is an empty patch from A U Thor.
|
||||
|
4
t/t5100/msg0008
Normal file
4
t/t5100/msg0008
Normal file
|
@ -0,0 +1,4 @@
|
|||
>Here is an empty patch from A U Thor.
|
||||
|
||||
Hey you forgot the patch!
|
||||
|
0
t/t5100/patch0007
Normal file
0
t/t5100/patch0007
Normal file
0
t/t5100/patch0008
Normal file
0
t/t5100/patch0008
Normal file
|
@ -386,3 +386,21 @@ index 9123cdc..918dcf8 100644
|
|||
--
|
||||
1.4.0.g6f2b
|
||||
|
||||
From nobody Mon Sep 17 00:00:00 2001
|
||||
From: A U Thor <a.u.thor@example.com>
|
||||
Date: Fri, 9 Jun 2006 00:44:16 -0700
|
||||
Subject: [PATCH] another patch
|
||||
|
||||
Here is an empty patch from A U Thor.
|
||||
|
||||
From nobody Mon Sep 17 00:00:00 2001
|
||||
From: Junio C Hamano <junio@kernel.org>
|
||||
Date: Fri, 9 Jun 2006 00:44:16 -0700
|
||||
Subject: re: [PATCH] another patch
|
||||
|
||||
From: A U Thor <a.u.thor@example.com>
|
||||
Subject: [PATCH] another patch
|
||||
>Here is an empty patch from A U Thor.
|
||||
|
||||
Hey you forgot the patch!
|
||||
|
||||
|
|
Loading…
Reference in a new issue