test t1050.large fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to compile git from source on a linux machine and "make
test" fails unexpectedly. Specifically test t1050.large.sh fails
(details below). The test fails both in version 1.7.11.4 and on the
master branch. Can I trust and use the build? if not, could someone
help me figure out what is going on?

Below are the contents of the test output (t1050-large.out):

/ali

>> cat test-results/t1050-large.out
Initialized empty Git repository in
/usr/local/pkgs/repositories/git/t/trash directory.t1050-large/.git/
expecting success:
        # clone does not allow us to pass core.bigfilethreshold to
        # new repos, so set core.bigfilethreshold globally
        git config --global core.bigfilethreshold 200k &&
        echo X | dd of=large1 bs=1k seek=2000 &&
        echo X | dd of=large2 bs=1k seek=2000 &&
        echo X | dd of=large3 bs=1k seek=2000 &&
        echo Y | dd of=huge bs=1k seek=2500 &&
        GIT_ALLOC_LIMIT=1500 &&
        export GIT_ALLOC_LIMIT

0+1 records in
0+1 records out
2 bytes (2 B) copied, 0.000303677 s, 6.6 kB/s
0+1 records in
0+1 records out
2 bytes (2 B) copied, 0.00026004 s, 7.7 kB/s
0+1 records in
0+1 records out
2 bytes (2 B) copied, 0.00024059 s, 8.3 kB/s
0+1 records in
0+1 records out
2 bytes (2 B) copied, 0.00027323 s, 7.3 kB/s
ok 1 - setup

expecting success:
        git add large1 huge large2 &&
        # make sure we got a single packfile and no loose objects
        bad= count=0 idx= &&
        for p in .git/objects/pack/pack-*.pack
        do
                count=$(( $count + 1 ))
                if test -f "$p" && idx=${p%.pack}.idx && test -f "$idx"
                then
                        continue
                fi
                bad=t
        done &&
        test -z "$bad" &&
        test $count = 1 &&
        cnt=$(git show-index <"$idx" | wc -l) &&
        test $cnt = 2 &&
        for l in .git/objects/??/??????????????????????????????????????
        do
                test -f "$l" || continue
                bad=t
        done &&
        test -z "$bad" &&

        # attempt to add another copy of the same
        git add large3 &&
        bad= count=0 &&
        for p in .git/objects/pack/pack-*.pack
        do
                count=$(( $count + 1 ))
                if test -f "$p" && idx=${p%.pack}.idx && test -f "$idx"
                then
                        continue
                fi
                bad=t
        done &&
        test -z "$bad" &&
        test $count = 1

ok 2 - add a large file or two

expecting success:
        large1=$(git rev-parse :large1) &&
        git update-index --add --cacheinfo 100644 $large1 another &&
        git checkout another &&
        cmp large1 another ;# this must not be test_cmp

ok 3 - checkout a large file

expecting success:
        test_create_repo mid &&
        (
                cd mid &&
                git config core.bigfilethreshold 64k &&
                git config pack.packsizelimit 256k &&

                # mid1 and mid2 will fit within 256k limit but
                # appending mid3 will bust the limit and will
                # result in a separate packfile.
                test-genrandom "a" $(( 66 * 1024 )) >mid1 &&
                test-genrandom "b" $(( 80 * 1024 )) >mid2 &&
                test-genrandom "c" $(( 128 * 1024 )) >mid3 &&
                git add mid1 mid2 mid3 &&

                count=0
                for pi in .git/objects/pack/pack-*.idx
                do
                        test -f "$pi" && count=$(( $count + 1 ))
                done &&
                test $count = 2 &&

                (
                        git hash-object --stdin <mid1
                        git hash-object --stdin <mid2
                        git hash-object --stdin <mid3
                ) |
                sort >expect &&

                for pi in .git/objects/pack/pack-*.idx
                do
                        git show-index <"$pi"
                done |
                sed -e "s/^[0-9]* \([0-9a-f]*\) .*/\1/" |
                sort >actual &&

                test_cmp expect actual
        )

Initialized empty Git repository in
/usr/local/pkgs/repositories/git/t/trash
directory.t1050-large/mid/.git/
fatal: Unexpected checksum for .git/objects/pack/tmp_pack_ImJEj4 (disk
corruption?)
not ok - 4 packsize limit
#
#               test_create_repo mid &&
#               (
#                       cd mid &&
#                       git config core.bigfilethreshold 64k &&
#                       git config pack.packsizelimit 256k &&
#
#                       # mid1 and mid2 will fit within 256k limit but
#                       # appending mid3 will bust the limit and will
#                       # result in a separate packfile.
#                       test-genrandom "a" $(( 66 * 1024 )) >mid1 &&
#                       test-genrandom "b" $(( 80 * 1024 )) >mid2 &&
#                       test-genrandom "c" $(( 128 * 1024 )) >mid3 &&
#                       git add mid1 mid2 mid3 &&
#
#                       count=0
#                       for pi in .git/objects/pack/pack-*.idx
#                       do
#                               test -f "$pi" && count=$(( $count + 1 ))
#                       done &&
#                       test $count = 2 &&
#
#                       (
#                               git hash-object --stdin <mid1
#                               git hash-object --stdin <mid2
#                               git hash-object --stdin <mid3
#                       ) |
#                       sort >expect &&
#
#                       for pi in .git/objects/pack/pack-*.idx
#                       do
#                               git show-index <"$pi"
#                       done |
#                       sed -e "s/^[0-9]* \([0-9a-f]*\) .*/\1/" |
#                       sort >actual &&
#
#                       test_cmp expect actual
#               )
#
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]