Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
94324e3f
Commit
94324e3f
authored
11 years ago
by
Bob Lantz
Committed by
Brian O'Connor
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Skip IVS and UserSwitch tests if they are not installed
parent
d2762938
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mininet/test/test_hifi.py
+4
-0
4 additions, 0 deletions
mininet/test/test_hifi.py
mininet/test/test_nets.py
+5
-0
5 additions, 0 deletions
mininet/test/test_nets.py
with
9 additions
and
0 deletions
mininet/test/test_hifi.py
+
4
−
0
View file @
94324e3f
...
...
@@ -11,6 +11,7 @@
from
mininet.link
import
TCLink
from
mininet.topo
import
Topo
from
mininet.log
import
setLogLevel
from
mininet.util
import
quietRun
# Number of hosts for each test
N
=
2
...
...
@@ -125,10 +126,13 @@ class testOptionsTopoOVSKernel( testOptionsTopoCommon, unittest.TestCase ):
"
Verify ability to create networks with host and link options (OVS kernel switch).
"
switchClass
=
OVSKernelSwitch
@unittest.skipUnless
(
quietRun
(
'
which ivs-ctl
'
),
'
IVS is not installed
'
)
class
testOptionsTopoIVS
(
testOptionsTopoCommon
,
unittest
.
TestCase
):
"
Verify ability to create networks with host and link options (IVS switch).
"
switchClass
=
IVSSwitch
@unittest.skipUnless
(
quietRun
(
'
which ofprotocol
'
),
'
Reference user switch is not installed
'
)
class
testOptionsTopoUserspace
(
testOptionsTopoCommon
,
unittest
.
TestCase
):
"
Verify ability to create networks with host and link options (Userspace switch).
"
switchClass
=
UserSwitch
...
...
This diff is collapsed.
Click to expand it.
mininet/test/test_nets.py
+
5
−
0
View file @
94324e3f
...
...
@@ -10,6 +10,7 @@
from
mininet.node
import
UserSwitch
,
OVSKernelSwitch
,
IVSSwitch
from
mininet.topo
import
SingleSwitchTopo
,
LinearTopo
from
mininet.log
import
setLogLevel
from
mininet.util
import
quietRun
class
testSingleSwitchCommon
(
object
):
...
...
@@ -53,14 +54,18 @@ def testLinear5( self ):
dropped
=
mn
.
run
(
mn
.
ping
)
self
.
assertEqual
(
dropped
,
0
)
class
testLinearOVSKernel
(
testLinearCommon
,
unittest
.
TestCase
):
"
Test all-pairs ping with LinearNet (OVS kernel switch).
"
switchClass
=
OVSKernelSwitch
@unittest.skipUnless
(
quietRun
(
'
which ivs-ctl
'
),
'
IVS is not installed
'
)
class
testLinearIVS
(
testLinearCommon
,
unittest
.
TestCase
):
"
Test all-pairs ping with LinearNet (IVS switch).
"
switchClass
=
IVSSwitch
@unittest.skipUnless
(
quietRun
(
'
which ofprotocol
'
),
'
Reference user switch is not installed
'
)
class
testLinearUserspace
(
testLinearCommon
,
unittest
.
TestCase
):
"
Test all-pairs ping with LinearNet (Userspace switch).
"
switchClass
=
UserSwitch
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment