Skip to content

Commit

Permalink
selftests/tc-testing: add show class case for ingress qdisc
Browse files Browse the repository at this point in the history
Test 0521: Show ingress class

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Victor Nogueira <victor@mojatatu.com>
Tested-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Zhengchao Shao authored and Jakub Kicinski committed Sep 23, 2022
1 parent 856359c commit 5ca72fb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tools/testing/selftests/tc-testing/tc-tests/qdiscs/ingress.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,25 @@
"teardown": [
"$IP link del dev $DUMMY type dummy"
]
},
{
"id": "0521",
"name": "Show ingress class",
"category": [
"qdisc",
"ingress"
],
"setup": [
"$IP link add dev $DUMMY type dummy || /bin/true"
],
"cmdUnderTest": "$TC qdisc add dev $DUMMY ingress",
"expExitCode": "0",
"verifyCmd": "$TC class show dev $DUMMY",
"matchPattern": "class ingress",
"matchCount": "0",
"teardown": [
"$TC qdisc del dev $DUMMY ingress",
"$IP link del dev $DUMMY type dummy"
]
}
]

0 comments on commit 5ca72fb

Please sign in to comment.