git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "René Scharfe" <l.s.r@web.de>
Cc: Johannes Sixt <j6t@kdbg.org>,
	Johannes Schindelin <Johannes.Schindelin@gmx.de>,
	git@vger.kernel.org
Subject: Re: js/drop-mingw-test-cmp, was Re: What's cooking in git.git (Dec 2022, #03; Sun, 11)
Date: Sun, 25 Dec 2022 23:45:59 +0900	[thread overview]
Message-ID: <xmqq3593o82g.fsf@gitster.g> (raw)
In-Reply-To: 2090204b-52e9-a22f-f0c9-f812d1231863@web.de

René Scharfe <l.s.r@web.de> writes:

>> Things did not turn out to be as simple. After ripping out all
>> special-casing of GIT_TEST_CMP from a MinGW build, I notice at least one
>> case that needs special treatment (it's `tar tf` that writes CRLF
>> output).
>
> That would affect t6132 and perhaps t9502, right?
>
> How can I reproduce it?  I get only LF:
> ...
> NATIVE_CRLF seems intended to track the macro of the same name, so it
> probably makes sense to mirror config.mak.uname, but a test helper (or
> "git version --build-options" line) that returns the actual value would
> probably be more robust.

I take the above as an indication that it is not yet clear if we can
use the same GIT_TEST_CMP as others on MinGW.  And ...

>> For the time being, I suggest to take Dscho's patch.
>
> The patch is intended to make comparisons faster.  That works for big
> files, but the test suite compares small ones.   The total duration of
> a test suite run is about one minute longer with the patch than without
> it for me [1].  I retried with 7c2ef319c5 (The first batch for 2.40,
> 2022-12-19), and that's still the case.  Do you get different numbers?

... this indeed is a valid concern.  With or without the patch,
platform tools on MinGW that are muddy about CRLF vs LF are taken
care of with the special cased GIT_TEST_CMP either way.



  reply	other threads:[~2022-12-25 14:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-11  5:18 What's cooking in git.git (Dec 2022, #03; Sun, 11) Junio C Hamano
2022-12-12  7:50 ` js/drop-mingw-test-cmp, was " Johannes Schindelin
2022-12-12 21:43   ` Junio C Hamano
2022-12-20 22:59     ` Johannes Schindelin
2022-12-21 13:05       ` Junio C Hamano
2022-12-24  8:10         ` Johannes Sixt
2022-12-24 13:31           ` René Scharfe
2022-12-25 14:45             ` Junio C Hamano [this message]
2022-12-25 15:44             ` Johannes Sixt
2022-12-26 19:53               ` René Scharfe
2022-12-27 12:52                 ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqq3593o82g.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=j6t@kdbg.org \
    --cc=l.s.r@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).