Re: [PATCH v6 10/13] convert: generate large test files only once
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 29, 2016, 17:52 UTC
- Message-ID
- <xmqq37lncvj6.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <E574E25A-F87F-416C-88E5-E3CE1F6B54D0@gmail.com>
Lars Schneider <larsxschneider@gmail.com> writes:
Show 16 quoted lines
>> On 25 Aug 2016, at 21:17, Stefan Beller <sbeller@google.com> wrote: >> >>> On Thu, Aug 25, 2016 at 4:07 AM, <larsxschneider@gmail.com> wrote: >>> From: Lars Schneider <larsxschneider@gmail.com> >>> >>> Generate more interesting large test files >> >> How are the large test files more interesting? >> (interesting in the notion of covering more potential bugs? >> easier to debug? better to maintain, or just a pleasant read?) > > The old large test file was 1MB of zeros and 1 byte with a one, repeated 2048 times. > > Since the filter uses 64k packets we would test a large number of equally looking packets. > > That's why I thought the pseudo random content is more interesting.
I guess my real question is why it is not just a single invocation of test-genrandom that gives you the whole test file; if you are using 20MB, the simplest would be to grab 20MB out of test-genrandom. With that hopefully you won't see large number of equally looking packets, no?