Skip to contentSkip to conversation

selftests: net: fib_rule_tests: add support to select a test to run

PATCH Applied Alaa Mohamed 2 participants 2 messages Apr 12, 2022 – Apr 13, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 selftests: net: fib_rule_tests: add support to select a test to run

Add boilerplate test loop in test to run all tests in fib_rule_tests.sh

---
changes in v2:
edit commit subject to be clearer

---
 tools/testing/selftests/net/fib_rule_tests.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
tools/testing/selftests/net/fib_rule_tests.sh +11 -1
index 4f70baad867d..bbe3b379927a 100755
@@ -20,6 +20,7 @@ SRC_IP6=2001:db8:1::3
 DEV_ADDR=192.51.100.1
 DEV_ADDR6=2001:db8:1::1
 DEV=dummy0
+TESTS="fib_rule6 fib_rule4"
 
 log_test()
 {
@@ -316,7 +317,16 @@ fi
 # start clean
 cleanup &> /dev/null
 setup
-run_fibrule_tests
+for t in $TESTS
+do
+	case $t in
+	fib_rule6_test|fib_rule6)		fib_rule6_test;;
+	fib_rule4_test|fib_rule4)		fib_rule4_test;;
+
+	help) echo "Test names: $TESTS"; exit 0;;
+
+	esac
+done
 cleanup
 
 if [ "$TESTS" != "none" ]; then
Signature · 1 line
2.35.1
#1 lore raw
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 9 lines · On Tue, 12 Apr 2022 04:04:31 +0200 you wrote:

Add boilerplate test loop in test to run all tests in fib_rule_tests.sh

---
changes in v2:
edit commit subject to be clearer

[...]

Here is the summary with links:
- [net-next,v2] selftests: net: fib_rule_tests: add support to select a test to run

    https://git.kernel.org/netdev/net-next/c/816cda9ae531

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html