tests: Move tc related tests to testsuite/tests/tc folder
Subsystems (2)
PATCH 1/1 tests: Move tc related tests to testsuite/tests/tc folder
With this change the results of tc tests will be recorded under:
testsuite/results/tc/
The ip related tests can be added under:
testsuite/tests/ip
Signed-off-by Vadim Kochan <[email protected]>
--- testsuite/tests/cbq.t | 10 ------ testsuite/tests/cls-testbed.t | 73 ---------------------------------------- testsuite/tests/dsmark.t | 31 ----------------- testsuite/tests/policer.t | 13 ------- testsuite/tests/tc/cbq.t | 10 ++++++ testsuite/tests/tc/cls-testbed.t | 73 ++++++++++++++++++++++++++++++++++++++++ testsuite/tests/tc/dsmark.t | 31 +++++++++++++++++ testsuite/tests/tc/policer.t | 13 +++++++ 8 files changed, 127 insertions(+), 127 deletions(-) delete mode 100755 testsuite/tests/cbq.t delete mode 100755 testsuite/tests/cls-testbed.t delete mode 100755 testsuite/tests/dsmark.t delete mode 100755 testsuite/tests/policer.t create mode 100755 testsuite/tests/tc/cbq.t create mode 100755 testsuite/tests/tc/cls-testbed.t create mode 100755 testsuite/tests/tc/dsmark.t create mode 100755 testsuite/tests/tc/policer.t
testsuite/tests/cbq.t deleted +0 -10
@@ -1,10 +0,0 @@ -#!/bin/sh -$TC qdisc del dev $DEV root >/dev/null 2>&1 -$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 -$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded -$TC qdisc list dev $DEV -$TC qdisc del dev $DEV root -$TC qdisc list dev $DEV -$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 -$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded -$TC qdisc del dev $DEV root
testsuite/tests/cls-testbed.t deleted +0 -73
73 lines not on this page · raw message
testsuite/tests/dsmark.t deleted +0 -31
@@ -1,31 +0,0 @@ -#!/bin/bash -# vim: ft=sh - -source lib/generic.sh - -ts_qdisc_available "dsmark" -if [ $? -eq 0 ]; then - ts_log "dsmark: Unsupported by $TC, skipping" - exit 127 -fi - -ts_tc "dsmark" "dsmark root qdisc creation" \ - qdisc add dev $DEV root handle 10:0 \ - dsmark indices 64 default_index 1 set_tc_index - -ts_tc "dsmark" "dsmark class 1 creation" \ - class change dev $DEV parent 10:0 classid 10:12 \ - dsmark mask 0xff value 2 - -ts_tc "dsmark" "dsmark class 2 creation" \ - class change dev $DEV parent 10:0 classid 10:13 \ - dsmark mask 0xfc value 4 - -ts_tc "dsmark" "dsmark dump qdisc" \ - qdisc list dev $DEV - -ts_tc "dsmark" "dsmark dump class" \ - class list dev $DEV parent 10:0 - -ts_tc "dsmark" "generic qdisc tree deletion" \ - qdisc del dev $DEV root
testsuite/tests/policer.t deleted +0 -13
@@ -1,13 +0,0 @@ -#!/bin/sh -$TC qdisc del dev $DEV root >/dev/null 2>&1 -$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 -$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded -$TC filter add dev $DEV parent 10:0 protocol ip prio 10 u32 match ip protocol 1 0xff police rate 2kbit buffer 10k drop flowid 10:12 -$TC qdisc list dev $DEV -$TC filter list dev $DEV parent 10:0 -$TC qdisc del dev $DEV root -$TC qdisc list dev $DEV -$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 -$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded -$TC filter add dev $DEV parent 10:0 protocol ip prio 10 u32 match ip protocol 1 0xff police rate 2kbit buffer 10k drop flowid 10:12 -$TC qdisc del dev $DEV root
testsuite/tests/tc/cbq.t new file +10 -0
@@ -0,0 +1,10 @@ +#!/bin/sh +$TC qdisc del dev $DEV root >/dev/null 2>&1 +$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 +$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded +$TC qdisc list dev $DEV +$TC qdisc del dev $DEV root +$TC qdisc list dev $DEV +$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 +$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded +$TC qdisc del dev $DEV root
testsuite/tests/tc/cls-testbed.t new file +73 -0
73 lines not on this page · raw message
testsuite/tests/tc/dsmark.t new file +31 -0
@@ -0,0 +1,31 @@ +#!/bin/bash +# vim: ft=sh + +source lib/generic.sh + +ts_qdisc_available "dsmark" +if [ $? -eq 0 ]; then + ts_log "dsmark: Unsupported by $TC, skipping" + exit 127 +fi + +ts_tc "dsmark" "dsmark root qdisc creation" \ + qdisc add dev $DEV root handle 10:0 \ + dsmark indices 64 default_index 1 set_tc_index + +ts_tc "dsmark" "dsmark class 1 creation" \ + class change dev $DEV parent 10:0 classid 10:12 \ + dsmark mask 0xff value 2 + +ts_tc "dsmark" "dsmark class 2 creation" \ + class change dev $DEV parent 10:0 classid 10:13 \ + dsmark mask 0xfc value 4 + +ts_tc "dsmark" "dsmark dump qdisc" \ + qdisc list dev $DEV + +ts_tc "dsmark" "dsmark dump class" \ + class list dev $DEV parent 10:0 + +ts_tc "dsmark" "generic qdisc tree deletion" \ + qdisc del dev $DEV root
testsuite/tests/tc/policer.t new file +13 -0
@@ -0,0 +1,13 @@ +#!/bin/sh +$TC qdisc del dev $DEV root >/dev/null 2>&1 +$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 +$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded +$TC filter add dev $DEV parent 10:0 protocol ip prio 10 u32 match ip protocol 1 0xff police rate 2kbit buffer 10k drop flowid 10:12 +$TC qdisc list dev $DEV +$TC filter list dev $DEV parent 10:0 +$TC qdisc del dev $DEV root +$TC qdisc list dev $DEV +$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 +$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded +$TC filter add dev $DEV parent 10:0 protocol ip prio 10 u32 match ip protocol 1 0xff police rate 2kbit buffer 10k drop flowid 10:12 +$TC qdisc del dev $DEV root
Signature · 1 line
2.1.0