From: Junio C Hamano Date: Fri, 19 Sep 2014 18:38:40 +0000 (-0700) Subject: Merge branch 'js/no-test-cmp-for-binaries' X-Git-Tag: v2.2.0-rc0~100 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/19f8c8b2dae7d959e67b85db77eaaa396906f92c?ds=inline;hp=-c Merge branch 'js/no-test-cmp-for-binaries' * js/no-test-cmp-for-binaries: t9300: use test_cmp_bin instead of test_cmp to compare binary files --- 19f8c8b2dae7d959e67b85db77eaaa396906f92c diff --combined t/t9300-fast-import.sh index 60ef3a74e8,91c5239762..8a054494bd --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@@ -2336,7 -2336,7 +2336,7 @@@ test_expect_success 'R: cat-blob-fd mus test_must_fail git fast-import --cat-blob-fd=-1 expect <<-EOF && ${blob} blob 11 @@@ -2348,7 -2348,7 +2348,7 @@@ test_cmp expect actual ' -test_expect_success NOT_MINGW 'R: in-stream cat-blob-fd not respected' ' +test_expect_success !MINGW 'R: in-stream cat-blob-fd not respected' ' echo hello >greeting && blob=$(git hash-object -w greeting) && cat >expect <<-EOF && @@@ -2369,7 -2369,7 +2369,7 @@@ test_cmp expect actual.1 ' -test_expect_success NOT_MINGW 'R: print new blob' ' +test_expect_success !MINGW 'R: print new blob' ' blob=$(echo "yep yep yep" | git hash-object --stdin) && cat >expect <<-EOF && ${blob} blob 12 @@@ -2387,7 -2387,7 +2387,7 @@@ test_cmp expect actual ' -test_expect_success NOT_MINGW 'R: print new blob by sha1' ' +test_expect_success !MINGW 'R: print new blob by sha1' ' blob=$(echo "a new blob named by sha1" | git hash-object --stdin) && cat >expect <<-EOF && ${blob} blob 25 @@@ -2687,7 -2687,7 +2687,7 @@@ test_expect_success 'R: verify created test_expect_success \ 'R: verify written objects' \ 'git --git-dir=R/.git cat-file blob big-file:big1 >actual && - test_cmp expect actual && + test_cmp_bin expect actual && a=$(git --git-dir=R/.git rev-parse big-file:big1) && b=$(git --git-dir=R/.git rev-parse big-file:big2) && test $a = $b' @@@ -3017,108 -3017,4 +3017,108 @@@ test_expect_success 'T: empty reset doe git rev-parse --verify refs/heads/not-to-delete ' +### +### series U (filedelete) +### + +cat >input < $GIT_COMMITTER_DATE +data <input < $GIT_COMMITTER_DATE +data <expect <actual + +test_expect_success 'U: validate file delete result' ' + compare_diff_raw expect actual +' + +cat >input < $GIT_COMMITTER_DATE +data <expect <actual + +test_expect_success 'U: validate directory delete result' ' + compare_diff_raw expect actual +' + +cat >input < $GIT_COMMITTER_DATE +data <expect <actual + +test_expect_success 'U: validate root delete result' ' + compare_diff_raw expect actual +' + test_done