File: phasex

package info (click to toggle)
tcng 10b-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,632 kB
  • ctags: 2,515
  • sloc: ansic: 19,038; pascal: 4,640; yacc: 2,619; sh: 1,908; perl: 1,546; lex: 772; makefile: 755
file content (40 lines) | stat: -rw-r--r-- 917 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# base test for -Xx tests -----------------------------------------------------
tcc -xif:err 2>&1 >/dev/null | grep -v '^#'
prio {
    class if 1;
}
EOF
block eth0 egress
action 1 = class 1:1
match action 1
# -Xx from tcc to tcc-ext-err -------------------------------------------------
tcc -xif:err -Xx,all 2>&1 >/dev/null | grep -c '^qdisc'
prio {
    class if 1;
}
EOF
1
# -Xx from tcsim to tcc-ext-err -----------------------------------------------
tcsim -Xc,-xif:err -Xx,all 2>&1 >/dev/null | grep -c '^qdisc'
dev eth0 10000 {
    prio {
	class if 1;
    }
}
EOF
1
# -Xxfoo does not select tcc-ext-err ------------------------------------------
tcc -xif:err -Xxfoo,all 2>&1 >/dev/null | grep -c '^qdisc'
prio {
    class if 1;
}
EOF
ERROR
0
# -Xxerr does select tcc-ext-err ----------------------------------------------
tcc -xif:err -Xxerr,all 2>&1 >/dev/null | grep -c '^qdisc'
prio {
    class if 1;
}
EOF
1