Skip to content

Commit

Permalink
selftests/tc-testing: add show class case for prio qdisc
Browse files Browse the repository at this point in the history
Test 2410: Show prio 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 dfbadd7 commit 1c15eb2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tools/testing/selftests/tc-testing/tc-tests/qdiscs/prio.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,5 +272,25 @@
"teardown": [
"$IP link del dev $DUMMY type dummy"
]
},
{
"id": "2410",
"name": "Show prio class",
"category": [
"qdisc",
"prio"
],
"setup": [
"$IP link add dev $DUMMY type dummy || /bin/true"
],
"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root prio",
"expExitCode": "0",
"verifyCmd": "$TC class show dev $DUMMY",
"matchPattern": "class prio 1:[0-9]+ parent 1:",
"matchCount": "3",
"teardown": [
"$TC qdisc del dev $DUMMY handle 1: root prio",
"$IP link del dev $DUMMY type dummy"
]
}
]

0 comments on commit 1c15eb2

Please sign in to comment.