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
150a5bc3
Commit
150a5bc3
authored
Jun 23, 2005
by
shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test suite update from Thomas Graf
parent
c0fc3ab4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
22 deletions
+24
-22
testsuite/Makefile
testsuite/Makefile
+24
-12
testsuite/tests/std-cbq
testsuite/tests/std-cbq
+0
-10
No files found.
testsuite/Makefile
View file @
150a5bc3
TESTS
:=
$(
patsubst
tests/%,%,
$(
wildcard
tests/
*
))
## -- Config --
DEV
:=
lo
PREFIX
:=
sudo
## -- End Config --
TESTS
:=
$(
patsubst
tests/%,%,
$(
wildcard
tests/
*
.t
))
IPVERS
:=
$(
filter-out
iproute2/Makefile,
$(
wildcard
iproute2/
*
))
IPVERS
:=
$(
filter-out
iproute2/Makefile,
$(
wildcard
iproute2/
*
))
KENV
:=
$(
shell
cat
/proc/config.gz |
gunzip
|
grep
^CONFIG
)
DEV
:=
eth0
.PHONY
:
compile listtests alltests configure $(TESTS)
.PHONY
:
compile listtests alltests $(TESTS)
configure
:
echo
"Entering iproute2"
&&
cd
iproute2
&&
$(MAKE)
configure
&&
cd
..
;
compile
:
compile
:
configure
echo
"Entering iproute2"
&&
cd
iproute2
&&
$(MAKE)
&&
cd
..
;
echo
"Entering iproute2"
&&
cd
iproute2
&&
$(MAKE)
&&
cd
..
;
listtests
:
listtests
:
...
@@ -18,16 +25,21 @@ alltests: $(TESTS)
...
@@ -18,16 +25,21 @@ alltests: $(TESTS)
clean
:
clean
:
@
rm
-rf
results/
*
@
rm
-rf
results/
*
distclean
:
clean
echo
"Entering iproute2"
&&
cd
iproute2
&&
$(MAKE)
distclean
&&
cd
..
;
$(TESTS)
:
$(TESTS)
:
@
for
i
in
$(IPVERS)
;
do
\
@
for
i
in
$(IPVERS)
;
do
\
echo
-n
"Running
$@
with
$$
i on
`
uname
-r
`
: "
;
\
logger
"TESTMARK:
$@
"
;
\
o
=
`
echo
$$
i |
sed
-e
's/iproute2\///'
`
;
\
o
=
`
echo
$$
i |
sed
-e
's/iproute2\///'
`
;
\
TC
=
"
$$
i/tc/tc"
IP
=
"
$$
i/ip/ip"
DEV
=
"
$(DEV)
"
sudo
tests/
$@
>
results/
$@
.
$$
o.out 2> results/
$@
.
$$
o.err
;
\
echo
-n
"Running
$@
[
$$
o/
`
uname
-r
`
]: "
;
\
dmesg
>
results/
$@
.
$$
o.dmesg
;
\
TC
=
"
$$
i/tc/tc"
IP
=
"
$$
i/ip/ip"
DEV
=
"
$(DEV)
"
IPVER
=
"
$@
"
SNAME
=
"
$$
i"
\
if
[
-z
"
`
cat
results/
$@
.
$$
o.err
`
"
]
;
then
\
ERRF
=
"results/
$@
.
$$
o.err"
$(KENV)
$(PREFIX)
tests/
$@
>
results/
$@
.
$$
o.out
;
\
echo
"PASS"
;
\
if
[
"
$$
?"
=
"127"
]
;
then
\
else
\
echo
"SKIPPED"
;
\
elif
[
-e
"results/
$@
.
$$
o.err"
]
;
then
\
echo
"FAILED"
;
\
echo
"FAILED"
;
\
fi
\
else
\
echo
"PASS"
;
\
fi
;
\
dmesg
>
results/
$@
.
$$
o.dmesg
;
\
done
done
testsuite/tests/std-cbq
deleted
100644 → 0
View file @
c0fc3ab4
#!/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
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