archive-zip: add tests for big ZIP archives
commit758c1f9d1bcab5115f5d9e990c952602ea58a161
authorRené Scharfe <l.s.r@web.de>
Mon, 24 Apr 2017 17:29:53 +0000 (24 19:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Apr 2017 04:43:21 +0000 (24 21:43 -0700)
treef0e6ed7abb43479ee64160cef840a2aa63b11fca
parent49800c940790cc7465d1b03e08d472ffd8684808
archive-zip: add tests for big ZIP archives

Test the creation of ZIP archives bigger than 4GB and containing files
bigger than 4GB.  They are marked as EXPENSIVE because they take quite a
while and because the first one needs a bit more than 4GB of disk space
to store the resulting archive.

The big archive in the first test is made up of a tree containing
thousands of copies of a small file.  Yet the test has to write out the
full archive because unzip doesn't offer a way to read from stdin.

The big file in the second test is provided as a zipped pack file to
avoid writing another 4GB file to disk and then adding it.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5004-archive-corner-cases.sh
t/t5004/big-pack.zip [new file with mode: 0644]