All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests: net: add support to select a test to run
@ 2022-04-12  1:20 Alaa Mohamed
  2022-04-12  1:36 ` Roopa Prabhu
  0 siblings, 1 reply; 2+ messages in thread
From: Alaa Mohamed @ 2022-04-12  1:20 UTC (permalink / raw)
  To: netdev; +Cc: roopa, roopa.prabhu, jdenham, sbrivio, eng.alaamohamedsoliman.am

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

Signed-off-by: Alaa Mohamed <eng.alaamohamedsoliman.am@gmail.com>
---
 tools/testing/selftests/net/fib_rule_tests.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/fib_rule_tests.sh b/tools/testing/selftests/net/fib_rule_tests.sh
index 4f70baad867d..bbe3b379927a 100755
--- a/tools/testing/selftests/net/fib_rule_tests.sh
+++ b/tools/testing/selftests/net/fib_rule_tests.sh
@@ -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
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] selftests: net: add support to select a test to run
  2022-04-12  1:20 [PATCH] selftests: net: add support to select a test to run Alaa Mohamed
@ 2022-04-12  1:36 ` Roopa Prabhu
  0 siblings, 0 replies; 2+ messages in thread
From: Roopa Prabhu @ 2022-04-12  1:36 UTC (permalink / raw)
  To: Alaa Mohamed, netdev; +Cc: roopa.prabhu, jdenham, sbrivio


On 4/11/22 18:20, Alaa Mohamed wrote:
> Add boilerplate test loop in test to run all tests
> in fib_rule_tests.sh
>
> Signed-off-by: Alaa Mohamed <eng.alaamohamedsoliman.am@gmail.com>
> ---

Alaa, can you pls resend with net-next in the patch prefix ?

and include test name in the patch title.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-12  1:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12  1:20 [PATCH] selftests: net: add support to select a test to run Alaa Mohamed
2022-04-12  1:36 ` Roopa Prabhu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.