git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/5] "lib-diff" tests: make "README" and "COPYING" test data smaller

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 4, 2021, 17:59 UTC
Message-ID
<877desmzzt.fsf@evledraar.gmail.com>
In-Reply-To
<CAFQ2z_NwrpMuYmtB1caokup9SCr=od97ONG86c4PWmfEJ5vZCg@mail.gmail.com>
On Mon, Oct 04 2021, Han-Wen Nienhuys wrote:
Show 17 quoted lines
> On Sat, Oct 2, 2021 at 11:19 AM Ævar Arnfjörð Bjarmason
> <avarab@gmail.com> wrote:
>>
>> Follow-up the change in 459b8d22e54 (tests: do not borrow from COPYING
>> and README from the real source, 2015-02-15) by not shipping a full
>> copy of older versions of the top-level "COPYING" and "README" files.
>>
>> The tests that use them just need the small blurb at the top of
>> "COPYING" as test data, or mock data that's dissimilar. Let's provide
>> that with a "COPYING_test_data" function instead.
>
> I had to read this patch a couple of times before I understood what
> was going on.
>
> Your change is a definite improvement, but if the actual contents
> don't matter that much, maybe something like "lorum ipsum" would be
> even better.

The actual contents do matter to the existing tests, which e.g. in t4003-diff-rename-1.sh munge the COPYING file and then assert the exact resulting diff output.

Those tests could all be rewritten to use some new better-known test content, but I figured that wasn't worth it in this case, as opposed to just providing them with the data from the opening paragraphs the tests are interested in / faking up a new "README".

Previous: Han-Wen NienhuysNext: Ævar Arnfjörð Bjarmason
Message 4 of 20 in “COPYING: modernize, steal boilerplate from linux.git”
  1. 0/5 COPYING: modernize, steal boilerplate from linux.gitÆvar Arnfjörð Bjarmason, Oct 2, 2021
  2. 1/5 "lib-diff" tests: make "README" and "COPYING" test data smallerÆvar Arnfjörð Bjarmason, Oct 2, 2021
  3. Han-Wen NienhuysOct 4, 2021
  4. Ævar Arnfjörð BjarmasonOct 4, 2021
  5. 2/5 tests: stop using top-level "README" and "COPYING" filesÆvar Arnfjörð Bjarmason, Oct 2, 2021
  6. 3/5 COPYING: remove mention of GPLv3, clarify sub-project COPYINGÆvar Arnfjörð Bjarmason, Oct 2, 2021
  7. Junio C HamanoOct 4, 2021
  8. 5/5 GPL-2.0: update to byte-for-byte match the FSF's versionÆvar Arnfjörð Bjarmason, Oct 2, 2021
  9. 4/5 COPYING: move GPL text to a "GPL-2.0" fileÆvar Arnfjörð Bjarmason, Oct 2, 2021
  10. Han-Wen NienhuysOct 4, 2021
  11. 0/5 COPYING: modernize, steal boilerplate from linux.gitÆvar Arnfjörð Bjarmason, Oct 5, 2021
  12. 2/5 tests: stop using top-level "README" and "COPYING" filesÆvar Arnfjörð Bjarmason, Oct 5, 2021
  13. 1/5 "lib-diff" tests: make "README" and "COPYING" test data smallerÆvar Arnfjörð Bjarmason, Oct 5, 2021
  14. 3/5 COPYING: remove mention of GPLv3, clarify sub-project COPYINGÆvar Arnfjörð Bjarmason, Oct 5, 2021
  15. 5/5 GPL-2.0: update to byte-for-byte match the FSF's versionÆvar Arnfjörð Bjarmason, Oct 5, 2021
  16. 4/5 COPYING: move GPL text to a "GPL-2.0" fileÆvar Arnfjörð Bjarmason, Oct 5, 2021
  17. 0/2 tests: stop relying on top-level COPYING and READMEÆvar Arnfjörð Bjarmason, Oct 15, 2021
  18. 2/2 tests: stop using top-level "README" and "COPYING" filesÆvar Arnfjörð Bjarmason, Oct 15, 2021
  19. 1/2 "lib-diff" tests: make "README" and "COPYING" test data smallerÆvar Arnfjörð Bjarmason, Oct 15, 2021
  20. Junio C HamanoOct 15, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.