Add an (optional, since expensive) test for >2gb clones
commitf30905f5dd684e4ca57408f4e8f512d46791702f
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 4 Mar 2009 17:34:42 +0000 (4 18:34 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 6 Mar 2009 13:39:46 +0000 (6 14:39 +0100)
tree5721d67ad396a869519c5105e92b4978758680a3
parentff9031617a6b8e3f49d2362d91e34029dace5ce2
Add an (optional, since expensive) test for >2gb clones

Define GIT_TEST_CLONE_2GB=t if you want the test not to be skipped.

The test works by constructing a repository larger than 2gb, and then
cloning it.

The repository is forced larger than 2gb by setting compression and
delta depth to zero, and then adding just enough unique objects of
a given size.

The objects consist of a running decimal number in ASCII, padded by
spaces.  Should that break in the future, e.g. when pack v4 becomes
default, there is a commented-out call to test-genrandom which can be
substituted, but that uses more cycles than the current method.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
t/t5705-clone-2gb.sh [new file with mode: 0755]