Skip to contentSkip to conversation

selftest: rds: add tools/testing/selftests/net/rds/config

PATCH Superseded Allison Henderson 4 participants 5 messages Mar 16 – Mar 18

Subsystems (5)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Allison Henderson

author maintainer
#0 lore raw

PATCH 1/1 selftest: rds: add tools/testing/selftests/net/rds/config

This patch adds an rds selftest config. Also adjust the config generation script to point to this new file

---
 tools/testing/selftests/net/rds/config    | 5 +++++
 tools/testing/selftests/net/rds/config.sh | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
tools/testing/selftests/net/rds/config new file +5 -0
new file mode 100644
index 000000000000..103f9d941d10
@@ -0,0 +1,5 @@
+CONFIG_RDS=y
+CONFIG_RDS_TCP=y
+CONFIG_NET_NS=y
+CONFIG_VETH=y
+CONFIG_NET_SCH_NETEM=y
tools/testing/selftests/net/rds/config.sh +1 -1
index 791c8dbe1095..7cf56ee8882f 100755
@@ -24,7 +24,7 @@ while getopts "g" opt; do
   esac
 done
 
-CONF_FILE="tools/testing/selftests/net/config"
+CONF_FILE="tools/testing/selftests/net/rds/config"
 
 # no modules
 scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 1 line · Allison Henderson

This patch adds an rds selftest config.

Why? what improvement produces or what issues does that address?

Quoted 16 lines
tools/testing/selftests/net/rds/config new file +5 -0
new file mode 100644
index 000000000000..103f9d941d10
@@ -0,0 +1,5 @@
+CONFIG_RDS=y
+CONFIG_RDS_TCP=y
+CONFIG_NET_NS=y
+CONFIG_VETH=y
+CONFIG_NET_SCH_NETEM=y
tools/testing/selftests/net/rds/config.sh +0 -0
index 791c8dbe1095..7cf56ee8882f 100755

tools/testing/selftests/net/rds/config.sh while getopts "g" opt; do · line 30

Quoted 8 lines
tools/testing/selftests/net/rds/config.sh +1 -1
@@ -24,7 +24,7 @@ while getopts "g" opt; do
   esac
 done
 
-CONF_FILE="tools/testing/selftests/net/config"
+CONF_FILE="tools/testing/selftests/net/rds/config"
 
 # no modules
 scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES

This looks wrong?!? The script is going to update the config file which is under git control. You probably want to copy the default config in a tmp file file, edit the latter and add it to .gitignore and EXTRA_CLEAN.

The issue looks pre-existent, but since you are touching this part...

/P

#2 lore raw
Quoted 4 lines · Paolo Abeni
Quoted 1 line · Allison Henderson

This patch adds an rds selftest config.

Why? what improvement produces or what issues does that address?

We've been trying to get the rds selftest to work in the ksft CI runtime and it needs a per-target config file to build a minimal kernel with the right options enabled
[https://lore.kernel.org/netdev/[email protected]/](https://lore.kernel.org/netdev/[email protected]/)

I noticed a few other selftests appear to have their own configs as well. I can add a quick summary of the new configs if you like?

Quoted 30 lines
Quoted 17 lines
tools/testing/selftests/net/rds/config new file +5 -0
new file mode 100644
index 000000000000..103f9d941d10
@@ -0,0 +1,5 @@
+CONFIG_RDS=y
+CONFIG_RDS_TCP=y
+CONFIG_NET_NS=y
+CONFIG_VETH=y
+CONFIG_NET_SCH_NETEM=y
tools/testing/selftests/net/rds/config.sh +0 -0
index 791c8dbe1095..7cf56ee8882f 100755

tools/testing/selftests/net/rds/config.sh while getopts "g" opt; do · line 30

Quoted 8 lines
tools/testing/selftests/net/rds/config.sh +1 -1
@@ -24,7 +24,7 @@ while getopts "g" opt; do
   esac
 done
 
-CONF_FILE="tools/testing/selftests/net/config"
+CONF_FILE="tools/testing/selftests/net/rds/config"
 
 # no modules
 scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES

This looks wrong?!? The script is going to update the config file which is under git control. You probably want to copy the default config in a tmp file file, edit the latter and add it to .gitignore and EXTRA_CLEAN.

Quoted 5 lines

The issue looks pre-existent, but since you are touching this part...

/P

Sure, so config.sh isnt actually called by anything within the self tests or testing harness. It more intended to be a stand alone tool for when developers want to enable/disable gcov. If you like we can adjust the target to a rds/config.local and copy rds/config there.

CONF_FILE="tools/testing/selftests/net/rds/config.local" cp tools/testing/selftests/net/rds/config "$CONF_FILE"

Alternately we could simply have the script default to config.local, and add a parameter that allows the caller to specify the config path. Let me know what you prefer.

I may split off the config.sh changes into a separate patch so that Jakub can start using the config though.

Thanks for the reviews!
Allison

maintainer
#3 lore raw
Quoted 13 lines · On Tue, 17 Mar 2026 18:26:10 +0000 Allison Henderson wrote:
Quoted 12 lines · Paolo Abeni
Quoted 11 lines · Allison Henderson
tools/testing/selftests/net/rds/config.sh +1 -1
index 791c8dbe1095..7cf56ee8882f 100755
@@ -24,7 +24,7 @@ while getopts "g" opt; do
   esac
 done
 
-CONF_FILE="tools/testing/selftests/net/config"
+CONF_FILE="tools/testing/selftests/net/rds/config"
 
Quoted 8 lines
Quoted 8 lines

tools/testing/selftests/net/rds/config.sh while getopts "g" opt; do · line 30

Quoted 2 lines
tools/testing/selftests/net/rds/config.sh +0 -0
 # no modules
 scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES  

This looks wrong?!? The script is going to update the config file which is under git control. You probably want to copy the default config in a tmp file file, edit the latter and add it to .gitignore and EXTRA_CLEAN.

The issue looks pre-existent, but since you are touching this part...

Well spotted.

Quoted 8 lines

Sure, so config.sh isnt actually called by anything within the self tests or testing harness. It more intended to be a stand alone tool for when developers want to enable/disable gcov. If you like we can adjust the target to a rds/config.local and copy rds/config there.

CONF_FILE="tools/testing/selftests/net/rds/config.local" cp tools/testing/selftests/net/rds/config "$CONF_FILE"

Quoted 6 lines

Alternately we could simply have the script default to config.local, and add a parameter that allows the caller to specify the config path. Let me know what you prefer.

I may split off the config.sh changes into a separate patch so that Jakub can start using the config though.

How do you actually use it? Presumably we should be modifying the config used for build directly not a snippet.

By default scripts/config will already use .config in current directory which should be what people would want 99% of the time?
We can add --file to the script to select the config user wants to change but keep the default of not specifying the file hence .config?

#4 lore raw
Quoted 33 lines · Jakub Kicinski
Quoted 13 lines · On Tue, 17 Mar 2026 18:26:10 +0000 Allison Henderson wrote:
Quoted 12 lines · Paolo Abeni
Quoted 11 lines · Allison Henderson
tools/testing/selftests/net/rds/config.sh +1 -1
index 791c8dbe1095..7cf56ee8882f 100755
@@ -24,7 +24,7 @@ while getopts "g" opt; do
   esac
 done
 
-CONF_FILE="tools/testing/selftests/net/config"
+CONF_FILE="tools/testing/selftests/net/rds/config"
 
Quoted 8 lines
Quoted 8 lines

tools/testing/selftests/net/rds/config.sh while getopts "g" opt; do · line 30

Quoted 2 lines
tools/testing/selftests/net/rds/config.sh +0 -0
 # no modules
 scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES  

This looks wrong?!? The script is going to update the config file which is under git control. You probably want to copy the default config in a tmp file file, edit the latter and add it to .gitignore and EXTRA_CLEAN.

The issue looks pre-existent, but since you are touching this part...

Well spotted.

Quoted 8 lines

Sure, so config.sh isnt actually called by anything within the self tests or testing harness. It more intended to be a stand alone tool for when developers want to enable/disable gcov. If you like we can adjust the target to a rds/config.local and copy rds/config there.

CONF_FILE="tools/testing/selftests/net/rds/config.local" cp tools/testing/selftests/net/rds/config "$CONF_FILE"

Quoted 9 lines
Quoted 6 lines

Alternately we could simply have the script default to config.local, and add a parameter that allows the caller to specify the config path. Let me know what you prefer.

I may split off the config.sh changes into a separate patch so that Jakub can start using the config though.

How do you actually use it?

As it is, calling config.sh directly would add RDS configs to tools/testing/selftests/net/config, and passing the -g flag would enable gcov

Quoted 7 lines

Presumably we should be modifying the config
used for build directly not a snippet.

By default scripts/config will already use .config in current directory which should be what people would want 99% of the time?
We can add --file to the script to select the config user wants to change but keep the default of not specifying the file hence .config?

That does sound cleaner. I'll drop the --file from the scripts/config calls so it defaults to .config, and add an optional flag to config.sh for anyone who wants to target a different file.

Thank you for the reviews!

Allison