From ae1a7437355a1fbc907b6d6cad9ed79227c29164 Mon Sep 17 00:00:00 2001 From: Don Zickus Date: Mon, 12 Mar 2007 15:52:07 -0400 Subject: [PATCH] Add a couple more test cases to the suite. They handle cases where there is no attached patch. Signed-off-by: Don Zickus Signed-off-by: Junio C Hamano --- t/t5100-mailinfo.sh | 2 +- t/t5100/info0007 | 5 +++++ t/t5100/info0008 | 5 +++++ t/t5100/msg0007 | 2 ++ t/t5100/msg0008 | 4 ++++ t/t5100/patch0007 | 0 t/t5100/patch0008 | 0 t/t5100/sample.mbox | 18 ++++++++++++++++++ 8 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 t/t5100/info0007 create mode 100644 t/t5100/info0008 create mode 100644 t/t5100/msg0007 create mode 100644 t/t5100/msg0008 create mode 100644 t/t5100/patch0007 create mode 100644 t/t5100/patch0008 diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh index 4d2b781a1..ca96918da 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` = 6' + test `cat last` = 8' for mail in `echo 00*` do diff --git a/t/t5100/info0007 b/t/t5100/info0007 new file mode 100644 index 000000000..49bb0fec8 --- /dev/null +++ b/t/t5100/info0007 @@ -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 + diff --git a/t/t5100/info0008 b/t/t5100/info0008 new file mode 100644 index 000000000..e8a295138 --- /dev/null +++ b/t/t5100/info0008 @@ -0,0 +1,5 @@ +Author: Junio C Hamano +Email: junio@kernel.org +Subject: another patch +Date: Fri, 9 Jun 2006 00:44:16 -0700 + diff --git a/t/t5100/msg0007 b/t/t5100/msg0007 new file mode 100644 index 000000000..71b23c023 --- /dev/null +++ b/t/t5100/msg0007 @@ -0,0 +1,2 @@ +Here is an empty patch from A U Thor. + diff --git a/t/t5100/msg0008 b/t/t5100/msg0008 new file mode 100644 index 000000000..a80ecb97e --- /dev/null +++ b/t/t5100/msg0008 @@ -0,0 +1,4 @@ +>Here is an empty patch from A U Thor. + +Hey you forgot the patch! + diff --git a/t/t5100/patch0007 b/t/t5100/patch0007 new file mode 100644 index 000000000..e69de29bb diff --git a/t/t5100/patch0008 b/t/t5100/patch0008 new file mode 100644 index 000000000..e69de29bb diff --git a/t/t5100/sample.mbox b/t/t5100/sample.mbox index 86bfc2714..b80c981c1 100644 --- a/t/t5100/sample.mbox +++ b/t/t5100/sample.mbox @@ -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 +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 +Date: Fri, 9 Jun 2006 00:44:16 -0700 +Subject: re: [PATCH] another patch + +From: A U Thor +Subject: [PATCH] another patch +>Here is an empty patch from A U Thor. + +Hey you forgot the patch! + -- 2.30.2