]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
autotools: limit checksrc target to ignore non-repo test sources
authorViktor Szakats <commit@vsz.me>
Thu, 12 Mar 2026 00:27:47 +0000 (01:27 +0100)
committerViktor Szakats <commit@vsz.me>
Thu, 12 Mar 2026 00:45:24 +0000 (01:45 +0100)
Syncing tests with lib and src behavior.

Also:
- fix OS400 checksrc to find the per-directory `.checksrc` file.

Closes #20898

projects/Makefile.am
tests/libtest/Makefile.am
tests/server/Makefile.am
tests/tunit/Makefile.am
tests/unit/Makefile.am

index 8b6d4dc4b242efc407c7f6c57199387dd2ff08d8..bf7f3a05abef00002635e6ffcda064b78f86db1d 100644 (file)
@@ -50,7 +50,7 @@ CS_1 =
 CS_ = $(CS_0)
 
 checksrc:
-       $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) $(srcdir)/OS400/*.[ch])
+       $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir)/OS400 $(srcdir)/OS400/*.[ch])
 
 if NOT_CURL_CI
 if DEBUGBUILD
index e174698a32d0cde45492bba437cd35c594651755..db7c9d741b3ee0d81dda70e588f16f28a74ad330 100644 (file)
@@ -81,9 +81,7 @@ CS_ = $(CS_0)
 
 # ignore generated C files since they play by slightly different rules!
 checksrc: lib1521.c
-       $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) \
-         -W$(srcdir)/$(BUNDLE).c \
-         $(srcdir)/*.[ch])
+       $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) -W$(srcdir)/$(BUNDLE).c $(FIRST_C) $(FIRST_H) $(UTILS_C) $(UTILS_H) $(TESTS_C))
 
 if NOT_CURL_CI
 all-local: checksrc
index fe0a15eaec5354250f3ee341bde88eda54be25b7..5427c6df0bc22b1043648c2a0629a5023937be43 100644 (file)
@@ -62,11 +62,8 @@ CS_0 = @echo "  RUN     " $@;
 CS_1 =
 CS_ = $(CS_0)
 
-# ignore generated C files since they play by slightly different rules!
 checksrc:
-       $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) \
-         -W$(srcdir)/$(BUNDLE).c \
-         $(srcdir)/*.[ch])
+       $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) -W$(srcdir)/$(BUNDLE).c $(FIRST_C) $(FIRST_H) $(UTILS_C) $(UTILS_H) $(TESTS_C))
 
 if NOT_CURL_CI
 all-local: checksrc
index ac7e31adee388ce6a29b5fa52abd58f52898233c..c45a4b908ba65be91cf99e7ac94ac90abc56879e 100644 (file)
@@ -71,11 +71,8 @@ CS_0 = @echo "  RUN     " $@;
 CS_1 =
 CS_ = $(CS_0)
 
-# ignore generated C files since they play by slightly different rules!
 checksrc:
-       $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) \
-         -W$(srcdir)/$(BUNDLE).c \
-         $(srcdir)/*.[ch])
+       $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) -W$(srcdir)/$(BUNDLE).c $(TESTS_C))
 
 if NOT_CURL_CI
 all-local: checksrc
index 5c87bf9ae5dece2fd8b418ebf1c4efb0af21d66b..34fbbf8f5f3330c1883fa1dd5196ebea1f1c4302 100644 (file)
@@ -75,11 +75,8 @@ CS_0 = @echo "  RUN     " $@;
 CS_1 =
 CS_ = $(CS_0)
 
-# ignore generated C files since they play by slightly different rules!
 checksrc:
-       $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) \
-         -W$(srcdir)/$(BUNDLE).c \
-         $(srcdir)/*.[ch])
+       $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) -W$(srcdir)/$(BUNDLE).c $(TESTS_C))
 
 if NOT_CURL_CI
 all-local: checksrc