Commit 2f8776f0 authored by Roman Mashak's avatar Roman Mashak Committed by David S. Miller

tc-testing: add ingress qdisc tests

Signed-off-by: default avatarRoman Mashak <mrv@mojatatu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a7dc51ad
[
{
"id": "9872",
"name": "Add ingress qdisc",
"category": [
"qdisc",
"ingress"
],
"setup": [
"$IP link add dev $DEV1 type dummy || /bin/true"
],
"cmdUnderTest": "$TC qdisc add dev $DEV1 ingress",
"expExitCode": "0",
"verifyCmd": "$TC qdisc show dev $DEV1",
"matchPattern": "qdisc ingress ffff:",
"matchCount": "1",
"teardown": [
"$TC qdisc del dev $DEV1 ingress",
"$IP link del dev $DEV1 type dummy"
]
},
{
"id": "5c5e",
"name": "Add ingress qdisc with unsupported argument",
"category": [
"qdisc",
"ingress"
],
"setup": [
"$IP link add dev $DEV1 type dummy || /bin/true"
],
"cmdUnderTest": "$TC qdisc add dev $DEV1 ingress foorbar",
"expExitCode": "1",
"verifyCmd": "$TC qdisc show dev $DEV1",
"matchPattern": "qdisc ingress ffff:",
"matchCount": "0",
"teardown": [
"$IP link del dev $DEV1 type dummy"
]
},
{
"id": "74f6",
"name": "Add duplicate ingress qdisc",
"category": [
"qdisc",
"ingress"
],
"setup": [
"$IP link add dev $DEV1 type dummy || /bin/true",
"$TC qdisc add dev $DEV1 ingress"
],
"cmdUnderTest": "$TC qdisc add dev $DEV1 ingress",
"expExitCode": "2",
"verifyCmd": "$TC qdisc show dev $DEV1",
"matchPattern": "qdisc ingress ffff:",
"matchCount": "1",
"teardown": [
"$TC qdisc del dev $DEV1 ingress",
"$IP link del dev $DEV1 type dummy"
]
},
{
"id": "f769",
"name": "Delete nonexistent ingress qdisc",
"category": [
"qdisc",
"ingress"
],
"setup": [
"$IP link add dev $DEV1 type dummy || /bin/true"
],
"cmdUnderTest": "$TC qdisc del dev $DEV1 ingress",
"expExitCode": "2",
"verifyCmd": "$TC qdisc show dev $DEV1",
"matchPattern": "qdisc ingress ffff:",
"matchCount": "0",
"teardown": [
"$IP link del dev $DEV1 type dummy"
]
},
{
"id": "3b88",
"name": "Delete ingress qdisc twice",
"category": [
"qdisc",
"ingress"
],
"setup": [
"$IP link add dev $DEV1 type dummy || /bin/true",
"$TC qdisc add dev $DEV1 ingress",
"$TC qdisc del dev $DEV1 ingress"
],
"cmdUnderTest": "$TC qdisc del dev $DEV1 ingress",
"expExitCode": "2",
"verifyCmd": "$TC qdisc show dev $DEV1",
"matchPattern": "qdisc ingress ffff:",
"matchCount": "0",
"teardown": [
"$IP link del dev $DEV1 type dummy"
]
}
]
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