110 lines · json
1[2 {3 "id": "900c",4 "name": "Create pfifo_fast with default setting",5 "category": [6 "qdisc",7 "pfifo_fast"8 ],9 "plugins": {10 "requires": "nsPlugin"11 },12 "setup": [13 ],14 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root pfifo_fast",15 "expExitCode": "0",16 "verifyCmd": "$TC qdisc show dev $DUMMY",17 "matchPattern": "qdisc pfifo_fast 1: root refcnt [0-9]+ bands 3 priomap",18 "matchCount": "1",19 "teardown": [20 "$TC qdisc del dev $DUMMY handle 1: root"21 ]22 },23 {24 "id": "7470",25 "name": "Dump pfifo_fast stats",26 "category": [27 "qdisc",28 "pfifo_fast"29 ],30 "plugins": {31 "requires": "nsPlugin"32 },33 "setup": [34 ],35 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root pfifo_fast",36 "expExitCode": "0",37 "verifyCmd": "$TC -s qdisc show dev $DUMMY",38 "matchPattern": "Sent.*bytes.*pkt \\(dropped.*overlimits.*requeues .*\\)",39 "matchCount": "1",40 "teardown": [41 "$TC qdisc del dev $DUMMY handle 1: root"42 ]43 },44 {45 "id": "b974",46 "name": "Replace pfifo_fast with different handle",47 "category": [48 "qdisc",49 "pfifo_fast"50 ],51 "plugins": {52 "requires": "nsPlugin"53 },54 "setup": [55 "$TC qdisc add dev $DUMMY handle 1: root pfifo_fast"56 ],57 "cmdUnderTest": "$TC qdisc replace dev $DUMMY handle 2: root pfifo_fast",58 "expExitCode": "0",59 "verifyCmd": "$TC qdisc show dev $DUMMY",60 "matchPattern": "qdisc pfifo_fast 2: root refcnt [0-9]+ bands 3 priomap",61 "matchCount": "1",62 "teardown": [63 "$TC qdisc del dev $DUMMY handle 2: root"64 ]65 },66 {67 "id": "3240",68 "name": "Delete pfifo_fast with valid handle",69 "category": [70 "qdisc",71 "pfifo_fast"72 ],73 "plugins": {74 "requires": "nsPlugin"75 },76 "setup": [77 "$TC qdisc add dev $DUMMY handle 1: root pfifo_fast"78 ],79 "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root",80 "expExitCode": "0",81 "verifyCmd": "$TC qdisc show dev $DUMMY",82 "matchPattern": "qdisc pfifo_fast 1: root refcnt [0-9]+ bands 3 priomap",83 "matchCount": "0",84 "teardown": [85 ]86 },87 {88 "id": "4385",89 "name": "Delete pfifo_fast with invalid handle",90 "category": [91 "qdisc",92 "pfifo_fast"93 ],94 "plugins": {95 "requires": "nsPlugin"96 },97 "setup": [98 "$TC qdisc add dev $DUMMY handle 1: root pfifo_fast"99 ],100 "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 2: root",101 "expExitCode": "2",102 "verifyCmd": "$TC qdisc show dev $DUMMY",103 "matchPattern": "qdisc pfifo_fast 1: root refcnt [0-9]+ bands 3 priomap",104 "matchCount": "1",105 "teardown": [106 "$TC qdisc del dev $DUMMY handle 1: root"107 ]108 }109]110