summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/forwarding/lib.sh
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-05-03 12:54:32 -0400
committerDavid S. Miller <davem@davemloft.net>2018-05-03 12:54:32 -0400
commit41f405460a0471e2183a6d4149608a964f6dc63f (patch)
treed0681897df81599850bbacafefec16b44121bdd8 /tools/testing/selftests/net/forwarding/lib.sh
parent5f110899ae1494d47678f88e3c53c4c5f67077c4 (diff)
parent0eb8053c147b012dcb6c2c1deeb4d069a5b35fd9 (diff)
Merge branch 'selftests-forwarding-Two-enhancements'
Ido Schimmel says: ==================== selftests: forwarding: Two enhancements First patch increases the maximum deviation in the multipath tests which proved to be too low in some cases. Second patch allows user to run only specific tests from each file using the TESTS environment variable. This granularity is needed in setups where not all the tests can pass. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/forwarding/lib.sh')
-rw-r--r--tools/testing/selftests/net/forwarding/lib.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh
index a066ca536ac4..061c87bbf77c 100644
--- a/tools/testing/selftests/net/forwarding/lib.sh
+++ b/tools/testing/selftests/net/forwarding/lib.sh
@@ -477,6 +477,15 @@ matchall_sink_create()
action drop
}
+tests_run()
+{
+ local current_test
+
+ for current_test in ${TESTS:-$ALL_TESTS}; do
+ $current_test
+ done
+}
+
##############################################################################
# Tests