]> git.proxmox.com Git - mirror_iproute2.git/blame - testsuite/tests/tc/dsmark.t
tests: Use /bin/sh shebang
[mirror_iproute2.git] / testsuite / tests / tc / dsmark.t
CommitLineData
ec7cac05 1#!/bin/sh
8a5b1a8c
SH
2# vim: ft=sh
3
ecd44e68 4. lib/generic.sh
8a5b1a8c
SH
5
6ts_qdisc_available "dsmark"
7if [ $? -eq 0 ]; then
8 ts_log "dsmark: Unsupported by $TC, skipping"
9 exit 127
10fi
11
12ts_tc "dsmark" "dsmark root qdisc creation" \
13 qdisc add dev $DEV root handle 10:0 \
14 dsmark indices 64 default_index 1 set_tc_index
15
16ts_tc "dsmark" "dsmark class 1 creation" \
17 class change dev $DEV parent 10:0 classid 10:12 \
18 dsmark mask 0xff value 2
19
20ts_tc "dsmark" "dsmark class 2 creation" \
21 class change dev $DEV parent 10:0 classid 10:13 \
22 dsmark mask 0xfc value 4
23
24ts_tc "dsmark" "dsmark dump qdisc" \
25 qdisc list dev $DEV
26
27ts_tc "dsmark" "dsmark dump class" \
28 class list dev $DEV parent 10:0
29
30ts_tc "dsmark" "generic qdisc tree deletion" \
31 qdisc del dev $DEV root