Files
iproute2-next/testsuite/tests/tc/dsmark.t
Petr Vorel ec7cac05ff tests: Use /bin/sh shebang
Bashisms for tests were removed in ecd44e68 ("tests: Remove
bashisms (s/source/.)"), so no need to use bash shebang.

+ remove trailing whitespace.

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
2018-12-18 10:52:35 -08:00

32 lines
731 B
Bash
Executable File

#!/bin/sh
# vim: ft=sh
. 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