Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Allison Henderson <allison.henderson@oracle.com>
To: "horms@kernel.org" <horms@kernel.org>,
	"achender@kernel.org" <achender@kernel.org>
Cc: "rds-devel@oss.oracle.com" <rds-devel@oss.oracle.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"edumazet@google.com" <edumazet@google.com>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
	"pabeni@redhat.com" <pabeni@redhat.com>,
	"linux-kselftest@vger.kernel.org"
	<linux-kselftest@vger.kernel.org>
Subject: Re: [net-next,v2,2/2] selftests: rds: Add -c config option to rds/config.sh
Date: Fri, 20 Mar 2026 03:05:22 +0000	[thread overview]
Message-ID: <f0cf57ea9a139ea9af7556442304f8b70d416c16.camel@oracle.com> (raw)
In-Reply-To: <20260319201329.1059998-1-horms@kernel.org>

On Thu, 2026-03-19 at 20:13 +0000, Simon Horman wrote:
> This is an AI-generated review of your patch. The human sending this
> email has considered the AI review valid, or at least plausible.
Alrighty, I will update the README.  Thank you!

Allison

> 
> For local reproduction steps see https://urldefense.com/v3/__https://netdev-ai.bots.linux.dev/ai-local.html__;!!ACWV5N9M2RV99hQ!Nwy4iPSdRAP7B5dpWucPIupDV2txt0qJKgmHbXVPdiBg3MuD4r9odJvbg8VWDf84sQ-oj8P8yeDHPNh5nVU$ 
> ---
> selftests: rds: Add -c config option to rds/config.sh
> 
> This patch adds a new -c flag to config.sh that enables callers to specify
> the file path of the config they would like to update. If no config is
> specified, the default will be the .config of the current directory.
> 
> > diff --git a/tools/testing/selftests/net/rds/config.sh b/tools/testing/selftests/net/rds/config.sh
> > index 791c8dbe1095..e7a619d7cff0 100755
> > --- a/tools/testing/selftests/net/rds/config.sh
> > +++ b/tools/testing/selftests/net/rds/config.sh
> > @@ -6,15 +6,20 @@ set -u
> >  set -x
> > 
> >  unset KBUILD_OUTPUT
> > +CONF_FILE=""
> > +FLAGS=""
> > 
> >  GENERATE_GCOV_REPORT=0
> > -while getopts "g" opt; do
> > +while getopts "gc:" opt; do
> >    case ${opt} in
> >      g)
> >        GENERATE_GCOV_REPORT=1
> >        ;;
> > +    c)
> > +      CONF_FILE=$OPTARG
> > +      ;;
> >      :)
> > -      echo "USAGE: config.sh [-g]"
> > +      echo "USAGE: config.sh [-g] [-c config]"
> >        exit 1
> >        ;;
> >      ?)
> > @@ -24,30 +29,32 @@ while getopts "g" opt; do
> >    esac
> >  done
> > 
> > -CONF_FILE="tools/testing/selftests/net/config"
> > +if [[ "$CONF_FILE" != "" ]]; then
> > +	FLAGS="--file $CONF_FILE"
> > +fi
> 
> This changes the default behavior - config.sh now modifies .config in the
> current directory when no -c option is provided, but the README.txt wasn't
> updated. Looking at README.txt:
> 
>     # Create a suitable gcov enabled .config
>     tools/testing/selftests/net/rds/config.sh -g
> 
>     # Alternatly create a gcov disabled .config
>     tools/testing/selftests/net/rds/config.sh
> 
>     # build the kernel
>     vng --build  --config tools/testing/selftests/net/config
> 
> Won't this workflow break? The old config.sh modified
> tools/testing/selftests/net/config, but the new version modifies .config.
> When following the README, config.sh now modifies .config, but vng builds
> using the unmodified tools/testing/selftests/net/config, so the kernel
> would be built with incorrect configuration (CONFIG_RDS, CONFIG_RDS_TCP,
> CONFIG_NET_NS, CONFIG_VETH, CONFIG_NET_SCH_NETEM may not be properly
> enabled, and CONFIG_MODULES may not be disabled).
> 
> Should the README examples be updated to either use
> "-c tools/testing/selftests/net/config" or adjust the vng command to use
> ".config"?
> 
> Alternatively, for backward compatibility, the default could remain
> tools/testing/selftests/net/config and require "-c .config" for the new
> behavior.
> 
> > 
> >  # no modules
> > -scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES
> > +scripts/config $FLAGS --disable CONFIG_MODULES
> 
> [ ... ]


  reply	other threads:[~2026-03-20  3:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-19  0:46 [PATCH net-next v2 0/2] selftests: rds: add config file and config.sh -c option Allison Henderson
2026-03-19  0:46 ` [PATCH net-next v2 1/2] selftests: rds: add tools/testing/selftests/net/rds/config Allison Henderson
2026-03-19 23:54   ` Jakub Kicinski
2026-03-19 23:55     ` Jakub Kicinski
2026-03-20  3:06       ` Allison Henderson
2026-03-19  0:46 ` [PATCH net-next v2 2/2] selftests: rds: Add -c config option to rds/config.sh Allison Henderson
2026-03-19 20:13   ` [net-next,v2,2/2] " Simon Horman
2026-03-20  3:05     ` Allison Henderson [this message]
2026-03-20  8:26       ` Simon Horman
2026-03-19 20:16   ` [PATCH net-next v2 2/2] " Simon Horman
2026-03-20  3:06     ` 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=f0cf57ea9a139ea9af7556442304f8b70d416c16.camel@oracle.com \
    --to=allison.henderson@oracle.com \
    --cc=achender@kernel.org \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rds-devel@oss.oracle.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