Re: [PATCH 1/3] t5004: test ZIP archives with many entries
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 28, 2015, 15:45 UTC
- Message-ID
- <xmqqwpwf2z8c.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAPig+cSNSfpt7gOLvz7P4oDrNF5fTQ38v1pfncJU3h7a6FjMyQ@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 12 quoted lines
> On Sun, Aug 23, 2015 at 5:29 AM, "René Scharfe" <l.s.r@web.de> wrote: >> I suspected that zipinfo's output might be formatted differently on >> different platforms and tried to guard against it by checking for the >> number zero there. Git's ZIP file creation is platform independent >> (modulo bugs), so having a test run at least somewhere should >> suffice. In theory. >> >> We could add support for the one-line-summary variant on OS X easily, >> though. > > Probably, although it's looking like testing on Mac OS X won't be > fruitful (see below).
Can we move this topic forward by introducing a new prerequisite ZIPINFO and used at the beginning of these tests (make it a lazy prereq)? Run zipinfo on a trivial archive and see if its output is something we recognize to decide if the platform supports that ZIPINFO prerequisite and do this test only on them.
After all, what _is_ being tested, i.e. our archive creation, would not change across platforms, so having a test that runs on a known subset of platforms is better than not having anything at all.
Thanks.