Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
8a5b1a8c
Commit
8a5b1a8c
authored
Jun 23, 2005
by
shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New files in testsuite update (damn CVS)
parent
c428e91b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
142 additions
and
0 deletions
+142
-0
testsuite/iproute2/Makefile
testsuite/iproute2/Makefile
+33
-0
testsuite/tests/cbq.t
testsuite/tests/cbq.t
+10
-0
testsuite/tests/cls-testbed.t
testsuite/tests/cls-testbed.t
+68
-0
testsuite/tests/dsmark.t
testsuite/tests/dsmark.t
+31
-0
No files found.
testsuite/iproute2/Makefile
0 → 100644
View file @
8a5b1a8c
SUBDIRS
:=
$(
filter-out
Makefile,
$(
wildcard
*
))
.PHONY
:
all configure clean distclean show $(SUBDIRS)
all
:
configure
@
for
dir
in
$(SUBDIRS)
;
do
\
echo
"Entering
$$
dir"
&&
cd
$$
dir
&&
$(MAKE)
&&
cd
..
;
\
done
link
:
@
if
[
!
-L
iproute2-this
]
;
then
\
ln
-s
../.. iproute2-this
;
\
fi
configure
:
link
@
for
dir
in
$(SUBDIRS)
;
do
\
echo
"Entering
$$
dir"
&&
cd
$$
dir
&&
if
[
-f
configure
]
;
then
./configure
;
fi
&&
cd
..
;
\
done
clean
:
link
@
for
dir
in
$(SUBDIRS)
;
do
\
echo
"Entering
$$
dir"
&&
cd
$$
dir
&&
$(MAKE)
clean
&&
cd
..
;
\
done
distclean
:
clean
@
for
dir
in
$(SUBDIRS)
;
do
\
echo
"Entering
$$
dir"
&&
cd
$$
dir
&&
$(MAKE)
distclean
&&
cd
..
;
\
done
show
:
link
@
echo
"
$(SUBDIRS)
"
$(SUBDIRS)
:
cd
$@
&&
$(MAKE)
testsuite/tests/cbq.t
0 → 100644
View file @
8a5b1a8c
#!/bin/sh
$TC
qdisc
del
dev
$DEV
root
>
/dev/null
2
>&
1
$TC
qdisc
add
dev
$DEV
root
handle
10
:
0
cbq
bandwidth
100
Mbit
avpkt
1400
mpu
64
$TC
class
add
dev
$DEV
parent
10
:
0
classid
10
:
12
cbq
bandwidth
100
mbit
rate
100
mbit
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
100
Mbit
avpkt
1400
mpu
64
$TC
class
add
dev
$DEV
parent
10
:
0
classid
10
:
12
cbq
bandwidth
100
mbit
rate
100
mbit
allot
1514
prio
3
maxburst
1
avpkt
500
bounded
$TC
qdisc
del
dev
$DEV
root
testsuite/tests/cls-testbed.t
0 → 100644
View file @
8a5b1a8c
#!/bin/bash
# vim: ft=sh
source
lib
/
generic
.
sh
QDISCS
=
"
cbq htb dsmark
"
for
q in
$
{
QDISCS
};
do
ts_log
"
Preparing classifier testbed with qdisc
$q
"
for
c
in
tests
/cls/
*.
t
;
do
case
"
$q
"
in
cbq
)
ts_tc
"
cls-testbed
"
"
cbq root qdisc creation
"
\
qdisc
add
dev
$DEV
root
handle
10
:
0
\
cbq
bandwidth
100
Mbit
avpkt
1400
mpu
64
ts_tc
"
cls-testbed
"
"
cbq root class creation
"
\
class
add
dev
$DEV
parent
10
:
0
classid
10
:
12
\
cbq
bandwidth
100
mbit
rate
100
mbit
allot
1514
prio
3
\
maxburst
1
avpkt
500
bounded
;;
htb
)
ts_qdisc_available
"
htb
"
if
[
$?
-
eq
0
];
then
ts_log
"
cls-testbed: HTB is unsupported by
$TC
, skipping
"
continue
;
fi
ts_tc
"
cls-testbed
"
"
htb root qdisc creation
"
\
qdisc
add
dev
$DEV
root
handle
10
:
0
htb
ts_tc
"
cls-testbed
"
"
htb root class creation
"
\
class
add
dev
$DEV
parent
10
:
0
classid
10
:
12
\
htb
rate
100
Mbit
quantum
1514
;;
dsmark
)
ts_qdisc_available
"
dsmark
"
if
[
$?
-
eq
0
];
then
ts_log
"
cls-testbed: dsmark is unsupported by
$TC
, skipping
"
continue
;
fi
ts_tc
"
cls-testbed
"
"
dsmark root qdisc creation
"
\
qdisc
add
dev
$DEV
root
handle
20
:
0
\
dsmark
indices
64
default_index
1
set_tc_index
ts_tc
"
cls-testbed
"
"
dsmark class creation
"
\
class
change
dev
$DEV
parent
20
:
0
classid
20
:
12
\
dsmark
mask
0xff
value
2
ts_tc
"
cls-testbed
"
"
prio inner qdisc creation
"
\
qdisc
add
dev
$DEV
parent
20
:
0
handle
10
:
0
prio
;;
*
)
ts_err
"
cls-testbed: no testbed configuration found for qdisc
$q
"
continue
;;
esac
ts_tc
"
cls-testbed
"
"
tree listing
"
qdisc
list
dev
eth0
ts_tc
"
cls-testbed
"
"
tree class listing
"
class
list
dev
eth0
ts_log
"
cls-testbed: starting classifier test
$c
"
$c
case
"
$q
"
in
*
)
ts_tc
"
cls-testbed
"
"
generic qdisc tree deletion
"
\
qdisc
del
dev
$DEV
root
;;
esac
done
done
testsuite/tests/dsmark.t
0 → 100644
View file @
8a5b1a8c
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment