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>
Don Zickus committed
Mar 12, 2007 at 15:52 UTC
ae1a7437355a1fbc907b6d6cad9ed79227c29164
8 files changed
+35
-1
t/t5100-mailinfo.sh
+1
-1
@@ -11,7 +11,7 @@ test_expect_success 'split sample box' \
11
'git-mailsplit -o. ../t5100/sample.mbox >last &&
12
last=`cat last` &&
13
echo total is $last &&
14
- test `cat last` = 6'
14
+ test `cat last` = 8'
15
16
for mail in `echo 00*`
17
do
t/t5100/info0007
new
+5
@@ -0,0 +1,5 @@
1
+Author: A U Thor
2
+Email: a.u.thor@example.com
3
+Subject: another patch
4
+Date: Fri, 9 Jun 2006 00:44:16 -0700
5
+
t/t5100/info0008
new
+5
@@ -0,0 +1,5 @@
1
+Author: Junio C Hamano
2
+Email: junio@kernel.org
3
+Subject: another patch
4
+Date: Fri, 9 Jun 2006 00:44:16 -0700
5
+
t/t5100/msg0007
new
+2
@@ -0,0 +1,2 @@
1
+Here is an empty patch from A U Thor.
2
+
t/t5100/msg0008
new
+4
@@ -0,0 +1,4 @@
1
+>Here is an empty patch from A U Thor.
2
+
3
+Hey you forgot the patch!
4
+
t/t5100/patch0007
t/t5100/patch0008
t/t5100/sample.mbox
+18
@@ -386,3 +386,21 @@ index 9123cdc..918dcf8 100644
386
--
387
1.4.0.g6f2b
388
389
+From nobody Mon Sep 17 00:00:00 2001
390
+From: A U Thor <a.u.thor@example.com>
391
+Date: Fri, 9 Jun 2006 00:44:16 -0700
392
+Subject: [PATCH] another patch
393
+
394
+Here is an empty patch from A U Thor.
395
+
396
+From nobody Mon Sep 17 00:00:00 2001
397
+From: Junio C Hamano <junio@kernel.org>
398
+Date: Fri, 9 Jun 2006 00:44:16 -0700
399
+Subject: re: [PATCH] another patch
400
+
401
+From: A U Thor <a.u.thor@example.com>
402
+Subject: [PATCH] another patch
403
+>Here is an empty patch from A U Thor.
404
+
405
+Hey you forgot the patch!
406
+