* [PATCH net-next v3] selftests: net: fib_rule_tests: fix support for running individual tests
@ 2022-06-30 10:24 Alaa Mohamed
2022-07-01 12:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Alaa Mohamed @ 2022-06-30 10:24 UTC (permalink / raw)
To: netdev
Cc: outreachy, roopa, davem, edumazet, kuba, pabeni, linux-kselftest,
linux-kernel, eng.alaamohamedsoliman.am
parsing and usage of -t got missed in the previous patch.
this patch fixes it
Fixes: 816cda9ae531 ("selftests: net: fib_rule_tests: add support to
select a test to run")
Signed-off-by: Alaa Mohamed <eng.alaamohamedsoliman.am@gmail.com>
---
changes in v2:
edit commit subject and message.
---
changes in v3:
add Fixes tag
---
tools/testing/selftests/net/fib_rule_tests.sh | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/tools/testing/selftests/net/fib_rule_tests.sh b/tools/testing/selftests/net/fib_rule_tests.sh
index bbe3b379927a..c245476fa29d 100755
--- a/tools/testing/selftests/net/fib_rule_tests.sh
+++ b/tools/testing/selftests/net/fib_rule_tests.sh
@@ -303,6 +303,29 @@ run_fibrule_tests()
log_section "IPv6 fib rule"
fib_rule6_test
}
+################################################################################
+# usage
+
+usage()
+{
+ cat <<EOF
+usage: ${0##*/} OPTS
+
+ -t <test> Test(s) to run (default: all)
+ (options: $TESTS)
+EOF
+}
+
+################################################################################
+# main
+
+while getopts ":t:h" opt; do
+ case $opt in
+ t) TESTS=$OPTARG;;
+ h) usage; exit 0;;
+ *) usage; exit 1;;
+ esac
+done
if [ "$(id -u)" -ne 0 ];then
echo "SKIP: Need root privileges"
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next v3] selftests: net: fib_rule_tests: fix support for running individual tests
2022-06-30 10:24 [PATCH net-next v3] selftests: net: fib_rule_tests: fix support for running individual tests Alaa Mohamed
@ 2022-07-01 12:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-07-01 12:40 UTC (permalink / raw)
To: Alaa Mohamed
Cc: netdev, outreachy, roopa, davem, edumazet, kuba, pabeni,
linux-kselftest, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:
On Thu, 30 Jun 2022 12:24:49 +0200 you wrote:
> parsing and usage of -t got missed in the previous patch.
> this patch fixes it
>
> Fixes: 816cda9ae531 ("selftests: net: fib_rule_tests: add support to
> select a test to run")
> Signed-off-by: Alaa Mohamed <eng.alaamohamedsoliman.am@gmail.com>
>
> [...]
Here is the summary with links:
- [net-next,v3] selftests: net: fib_rule_tests: fix support for running individual tests
https://git.kernel.org/netdev/net-next/c/9c154ab47f5e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-01 12:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-30 10:24 [PATCH net-next v3] selftests: net: fib_rule_tests: fix support for running individual tests Alaa Mohamed
2022-07-01 12:40 ` patchwork-bot+netdevbpf
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).