From: Matthieu Baerts <matttbe@kernel.org>
To: Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com,
andrew+netdev@lunn.ch, horms@kernel.org, shuah@kernel.org,
jv@jvosburgh.net, olteanv@gmail.com, jiri@resnulli.us,
mst@redhat.com, jasowang@redhat.com, xuanzhuo@linux.alibaba.com,
eperezma@redhat.com, kuniyu@google.com, martineau@kernel.org,
pablo@netfilter.org, kadlec@netfilter.org, fw@strlen.de,
antonio@openvpn.net, allison.henderson@oracle.com,
petrm@nvidia.com, razor@blackwall.org, idosch@nvidia.com,
linux-kselftest@vger.kernel.org, mptcp@lists.linux.dev,
netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
davem@davemloft.net
Subject: Re: [PATCH net] selftests: net: unify the Makefile formats
Date: Thu, 2 Oct 2025 12:48:59 +0200 [thread overview]
Message-ID: <138fe27b-7ed1-4065-827c-01e6df483153@kernel.org> (raw)
In-Reply-To: <20251002013034.3176961-1-kuba@kernel.org>
Hi Jakub,
On 02/10/2025 03:30, Jakub Kicinski wrote:
> We get a significant number of conflicts between net and net-next
> because of selftests Makefile changes. People tend to append new
> test cases at the end of the Makefile when there's no clear sort
> order. Sort all networking selftests Makefiles, use the following
> format:
>
> VAR_NAME := \
> entry1 \
> entry2 \
> entry3 \
> # end of VAR_NAME
>
> Some Makefiles are already pretty close to this.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> I think we need to apply this during the merge window, otherwise
> the conflicts will be crazy.
Thank you for having sorted these files to reduce future conflicts
between net and net-next! (Hopefully this will not cause too much
troubles when backporting some patches to stable versions, but I guess
new tests will rarely be backported.)
(...)
> diff --git a/tools/testing/selftests/net/mptcp/Makefile b/tools/testing/selftests/net/mptcp/Makefile
> index 4c7e51336ab2..e3a8dbdc71cd 100644
> --- a/tools/testing/selftests/net/mptcp/Makefile
> +++ b/tools/testing/selftests/net/mptcp/Makefile
> @@ -4,13 +4,31 @@ top_srcdir = ../../../../..
>
> CFLAGS += -Wall -Wl,--no-as-needed -O2 -g -I$(top_srcdir)/usr/include $(KHDR_INCLUDES)
>
> -TEST_PROGS := mptcp_connect.sh mptcp_connect_mmap.sh mptcp_connect_sendfile.sh \
> - mptcp_connect_checksum.sh pm_netlink.sh mptcp_join.sh diag.sh \
> - simult_flows.sh mptcp_sockopt.sh userspace_pm.sh
> +TEST_PROGS := \
> + mptcp_connect.sh \
> + mptcp_connect_mmap.sh \
> + mptcp_connect_sendfile.sh \
> + mptcp_connect_checksum.sh \
> + pm_netlink.sh \
> + mptcp_join.sh \
> + diag.sh \
> + simult_flows.sh \
> + mptcp_sockopt.sh \
> + userspace_pm.sh \
> +# end of TEST_GEN_FILES
Strange, I think all other blocks are OK in this patch, except this one:
the order is the same as before (so not sorted by alphabetical order),
and the last line is not "# end of TEST_PROGS" as expected.
I'm sure this detail can be fixed when applying the patch, or with an
extra one if that's easier, instead of sending a v2 and delaying this
type of patch.
Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
>
> -TEST_GEN_FILES = mptcp_connect pm_nl_ctl mptcp_sockopt mptcp_inq mptcp_diag
> +TEST_GEN_FILES := \
> + mptcp_connect \
> + mptcp_diag \
> + mptcp_inq \
> + mptcp_sockopt \
> + pm_nl_ctl \
> +# end of TEST_GEN_FILES
>
> -TEST_FILES := mptcp_lib.sh settings
> +TEST_FILES := \
> + mptcp_lib.sh \
> + settings \
> +# end of TEST_FILES
>
> TEST_INCLUDES := ../lib.sh $(wildcard ../lib/sh/*.sh)
(...)
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
next prev parent reply other threads:[~2025-10-02 10:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-02 1:30 [PATCH net] selftests: net: unify the Makefile formats Jakub Kicinski
2025-10-02 10:48 ` Matthieu Baerts [this message]
2025-10-02 15:58 ` Jakub Kicinski
2025-10-02 11:21 ` Antonio Quartulli
2025-10-02 19:23 ` Phil Sutter
2025-10-02 22:03 ` Jakub Kicinski
2025-10-06 11:59 ` Petr Machata
2025-10-02 23:38 ` Allison Henderson
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=138fe27b-7ed1-4065-827c-01e6df483153@kernel.org \
--to=matttbe@kernel.org \
--cc=allison.henderson@oracle.com \
--cc=andrew+netdev@lunn.ch \
--cc=antonio@openvpn.net \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eperezma@redhat.com \
--cc=fw@strlen.de \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=jasowang@redhat.com \
--cc=jiri@resnulli.us \
--cc=jv@jvosburgh.net \
--cc=kadlec@netfilter.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=linux-kselftest@vger.kernel.org \
--cc=martineau@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=pablo@netfilter.org \
--cc=petrm@nvidia.com \
--cc=razor@blackwall.org \
--cc=shuah@kernel.org \
--cc=xuanzhuo@linux.alibaba.com \
/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.
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 NNTP newsgroup(s).