diff options
author | David Ahern <dsahern@gmail.com> | 2018-03-01 13:49:30 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-01 21:19:02 -0500 |
commit | 198979be6c16aa62025d5a47680f2c7849b7e64c (patch) | |
tree | ac773524647c2cbd5c5c8fbb0b1d827308c35063 /tools/testing/selftests/net/forwarding/tc_common.sh | |
parent | 5f6f845b608a3fa13e5da0584eea5803710cf708 (diff) | |
download | linux-198979be6c16aa62025d5a47680f2c7849b7e64c.tar.bz2 |
selftests: forwarding: Only check tc version for tc tests
Capabilities of tc command are irrelevant for router tests:
$ ./router.sh
SKIP: iproute2 too old, missing shared block support
Add a CHECK_TC flag and only check tc capabilities if set. Add flag to
tc_common.sh and have it sourced before lib.sh
Also, if the command lacks some feature the test should exit non-0.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/forwarding/tc_common.sh')
-rw-r--r-- | tools/testing/selftests/net/forwarding/tc_common.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/tc_common.sh b/tools/testing/selftests/net/forwarding/tc_common.sh index acd0b520241c..9d3b64a2a264 100644 --- a/tools/testing/selftests/net/forwarding/tc_common.sh +++ b/tools/testing/selftests/net/forwarding/tc_common.sh @@ -1,6 +1,8 @@ #!/bin/bash # SPDX-License-Identifier: GPL-2.0 +CHECK_TC="yes" + tc_check_packets() { local id=$1 |