Commit 816cda9a authored by Alaa Mohamed's avatar Alaa Mohamed Committed by David S. Miller

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
Signed-off-by: default avatarAlaa Mohamed <eng.alaamohamedsoliman.am@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4263f77a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment