From: "softworkz ." <softworkz-at-hotmail.com@ffmpeg.org> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v2 2/3] tests/source-check: Fix make inclusion-guard check EOL-agnostic Date: Thu, 22 May 2025 11:12:28 +0000 Message-ID: <DM8P223MB0365E2113266E9E6EE55E325BA99A@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM> (raw) In-Reply-To: <AS8P250MB07440B0EE200D9145F9B91D88F99A@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> > -----Original Message----- > From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Andreas > Rheinhardt > Sent: Donnerstag, 22. Mai 2025 12:42 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v2 2/3] tests/source-check: Fix make > inclusion-guard check EOL-agnostic > > softworkz: > > From: softworkz <softworkz@hotmail.com> > > > > ..to make it work when checked out with autocrlf=on, > > which is Git default on Windows. > > > > Signed-off-by: softworkz <softworkz@hotmail.com> > > --- > > tests/fate/source-check.sh | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/tests/fate/source-check.sh b/tests/fate/source-check.sh > > index 4d7e175784..99e869e869 100755 > > --- a/tests/fate/source-check.sh > > +++ b/tests/fate/source-check.sh > > @@ -28,7 +28,7 @@ for f in `git ls-files | grep '\.h$'` ; do > > -e 's/_vaf_/_/' \ > > | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" > > > > - git grep -L "^#define $macro$" $f > > + git grep -L "^#define $macro\>" $f > > This makes the test less strict. Yea, that's correct, but does that defeat the intention of the test? It might allow whitespace at the end of the but this is something that can happen for any line in any file, not just the guard definitions in header files. Eventually this is guarded against by the hooks of the Git repo when pushing. It might also allow more text after some whitespace, but that would file compilation, I think. Do you know some regex Kung-Fu to ignore EOL and still use an end marker? I had found a way but that requires switching to Perl matching (-E), but from what I've read, we cannot assume this to be available on all platforms. > Why don't we instead just specify that > the repo should be checked out with lf only? Would this break something? From my experience it can cause a lot of trouble. The following discussions from last year may give you an idea of these pitfalls, even though not everything might apply to FFmpeg: https://github.com/ffmpeginteropx/FFmpegInteropX/pull/433 https://github.com/ffmpeginteropx/FFmpegInteropX/pull/431 https://github.com/ffmpeginteropx/FFmpegInteropX/pull/430 The risk is that it causes more trouble than the problems it might solve. What stands on the other side is that these two patches is all that is needed to successfully run FATE tests on Windows. When a new subtitle test is added, the entry in .gitattributes may be forgotten, but with the new CI builds on Windows it would also be discovered immediately. Thanks a lot for looking at this, sw _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2025-05-22 11:12 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-05-12 9:59 [FFmpeg-devel] [PATCH 0/3] tests/fate: Improvements for running FATE on Windows/MSYS2 ffmpegagent 2025-05-12 9:59 ` [FFmpeg-devel] [PATCH 1/3] tests/fate: Fix subtitle fate tests on Windows softworkz 2025-05-12 9:59 ` [FFmpeg-devel] [PATCH 2/3] tests/source-check: Fix make inclusion-guard check EOL-agnostic softworkz 2025-05-12 9:59 ` [FFmpeg-devel] [PATCH 3/3] tests/hevc: Fix concat input when running in MSYS2 shell softworkz 2025-05-12 16:53 ` Zhao Zhili 2025-05-12 17:04 ` softworkz . 2025-05-12 17:24 ` Zhao Zhili 2025-05-12 17:52 ` softworkz . 2025-05-13 14:23 ` [FFmpeg-devel] [PATCH v2 0/3] tests/fate: Improvements for running FATE on Windows/MSYS2 ffmpegagent 2025-05-13 14:23 ` [FFmpeg-devel] [PATCH v2 1/3] tests/fate: Fix subtitle fate tests on Windows softworkz 2025-05-13 14:23 ` [FFmpeg-devel] [PATCH v2 2/3] tests/source-check: Fix make inclusion-guard check EOL-agnostic softworkz 2025-05-22 10:41 ` Andreas Rheinhardt 2025-05-22 11:12 ` softworkz . [this message] 2025-05-22 11:20 ` softworkz . 2025-05-13 14:23 ` [FFmpeg-devel] [PATCH v2 3/3] tests/hevc: Fix concat input when running in MSYS2 shell softworkz 2025-05-22 2:55 ` [FFmpeg-devel] [PATCH v2 0/3] tests/fate: Improvements for running FATE on Windows/MSYS2 softworkz . 2025-06-16 22:43 ` [FFmpeg-devel] [PATCH " Kacper Michajlow 2025-06-16 23:05 ` softworkz . 2025-06-17 0:59 ` Kacper Michajlow 2025-06-17 1:46 ` softworkz . 2025-06-17 13:18 ` Kacper Michajlow 2025-06-17 13:49 ` softworkz .
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 * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=DM8P223MB0365E2113266E9E6EE55E325BA99A@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM \ --to=softworkz-at-hotmail.com@ffmpeg.org \ --cc=ffmpeg-devel@ffmpeg.org \ /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
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git