X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4100-apply-stat.sh;h=c23341feb55e2404533b94fdf627de13c01b4ada;hb=438d2991eaa17549df67929cd4558d65840c37d7;hp=7b81c32e57f502f2c6d952bd9b7e6b432e092372;hpb=8a3fbdd9e6c37c74b12fd0e8bd7cde8372861288;p=git.git diff --git a/t/t4100-apply-stat.sh b/t/t4100-apply-stat.sh index 7b81c32e5..8073a5a1f 100755 --- a/t/t4100-apply-stat.sh +++ b/t/t4100-apply-stat.sh @@ -3,45 +3,44 @@ # Copyright (c) 2005 Junio C Hamano # -test_description='git-apply --stat --summary test. +test_description='git apply --stat --summary test. ' . ./test-lib.sh test_expect_success \ 'rename' \ - 'git-apply --stat --summary <../t4100/t-apply-1.patch >current && - git diff ../t4100/t-apply-1.expect current' + 'git apply --stat --summary <../t4100/t-apply-1.patch >current && + test_cmp ../t4100/t-apply-1.expect current' test_expect_success \ 'copy' \ - 'git-apply --stat --summary <../t4100/t-apply-2.patch >current && - git diff ../t4100/t-apply-2.expect current' + 'git apply --stat --summary <../t4100/t-apply-2.patch >current && + test_cmp ../t4100/t-apply-2.expect current' test_expect_success \ 'rewrite' \ - 'git-apply --stat --summary <../t4100/t-apply-3.patch >current && - git diff ../t4100/t-apply-3.expect current' + 'git apply --stat --summary <../t4100/t-apply-3.patch >current && + test_cmp ../t4100/t-apply-3.expect current' test_expect_success \ 'mode' \ - 'git-apply --stat --summary <../t4100/t-apply-4.patch >current && - git diff ../t4100/t-apply-4.expect current' + 'git apply --stat --summary <../t4100/t-apply-4.patch >current && + test_cmp ../t4100/t-apply-4.expect current' test_expect_success \ 'non git' \ - 'git-apply --stat --summary <../t4100/t-apply-5.patch >current && - git diff ../t4100/t-apply-5.expect current' + 'git apply --stat --summary <../t4100/t-apply-5.patch >current && + test_cmp ../t4100/t-apply-5.expect current' test_expect_success \ 'non git' \ - 'git-apply --stat --summary <../t4100/t-apply-6.patch >current && - git diff ../t4100/t-apply-6.expect current' + 'git apply --stat --summary <../t4100/t-apply-6.patch >current && + test_cmp ../t4100/t-apply-6.expect current' test_expect_success \ 'non git' \ - 'git-apply --stat --summary <../t4100/t-apply-7.patch >current && - git diff ../t4100/t-apply-7.expect current' + 'git apply --stat --summary <../t4100/t-apply-7.patch >current && + test_cmp ../t4100/t-apply-7.expect current' test_done -