]> git.ipfire.org Git - thirdparty/git.git/blame - t/t5100-mailinfo.sh
Start deprecating "git-command" in favor of "git command"
[thirdparty/git.git] / t / t5100-mailinfo.sh
CommitLineData
4839c0b5
JH
1#!/bin/sh
2#
3# Copyright (c) 2005 Junio C Hamano
4#
5
6test_description='git-mailinfo and git-mailsplit test'
7
8. ./test-lib.sh
9
10test_expect_success 'split sample box' \
11 'git-mailsplit -o. ../t5100/sample.mbox >last &&
12 last=`cat last` &&
13 echo total is $last &&
ae1a7437 14 test `cat last` = 8'
4839c0b5
JH
15
16for mail in `echo 00*`
17do
18 test_expect_success "mailinfo $mail" \
19 "git-mailinfo -u msg$mail patch$mail <$mail >info$mail &&
20 echo msg &&
21 diff ../t5100/msg$mail msg$mail &&
22 echo patch &&
23 diff ../t5100/patch$mail patch$mail &&
24 echo info &&
25 diff ../t5100/info$mail info$mail"
26done
27
28test_done