Revision c5da46f1

View differences:

examples/test/test_cpu.py
6 6

  
7 7
import unittest
8 8
import pexpect
9
import sys
9 10

  
10 11
class testCPU( unittest.TestCase ):
11 12

  
12 13
    prompt = 'mininet>'
13 14

  
15
    @unittest.skipIf( '-quick' in sys.argv, 'long test' )
14 16
    def testCPU( self ):
15 17
        "Verify that CPU utilization is monotonically decreasing for each scheduler"
16 18
        p = pexpect.spawn( 'python -m mininet.examples.cpu' )
examples/test/test_limit.py
6 6

  
7 7
import unittest
8 8
import pexpect
9
import sys
9 10

  
10 11
class testLimit( unittest.TestCase ):
11 12

  
13
    @unittest.skipIf( '-quick' in sys.argv, 'long test' )
12 14
    def testLimit( self ):
13 15
        "Verify that CPU limits are within a 2% tolerance of limit for each scheduler"
14 16
        p = pexpect.spawn( 'python -m mininet.examples.limit' )
examples/test/test_linearbandwidth.py
6 6

  
7 7
import unittest
8 8
import pexpect
9
import sys
9 10

  
10 11
class testLinearBandwidth( unittest.TestCase ):
11 12

  
13
    @unittest.skipIf( '-quick' in sys.argv, 'long test' )
12 14
    def testLinearBandwidth( self ):
13 15
        "Verify that bandwidth is monotonically decreasing as # of hops increases"
14 16
        p = pexpect.spawn( 'python -m mininet.examples.linearbandwidth' )
examples/test/test_simpleperf.py
7 7
import unittest
8 8
import pexpect
9 9
import re
10
import sys
10 11
from mininet.log import setLogLevel
11 12
from mininet.net import Mininet
12 13
from mininet.node import CPULimitedHost
......
16 17

  
17 18
class testSimplePerf( unittest.TestCase ):
18 19

  
20
    @unittest.skipIf( '-quick' in sys.argv, 'long test' )
19 21
    def testE2E( self ):
20 22
        "Run the example and verify ping and iperf results"
21 23
        p = pexpect.spawn( 'python -m mininet.examples.simpleperf' )
examples/test/test_tree1024.py
6 6

  
7 7
import unittest
8 8
import pexpect
9
import sys
9 10

  
10 11
class testTree1024( unittest.TestCase ):
11 12

  
12 13
    prompt = 'mininet>'
13 14

  
15
    @unittest.skipIf( '-quick' in sys.argv, 'long test' )
14 16
    def testTree1024( self ):
15 17
        "Run the example and do a simple ping test from h1 to h1024"
16 18
        p = pexpect.spawn( 'python -m mininet.examples.tree1024' )
examples/test/test_treeping64.py
6 6

  
7 7
import unittest
8 8
import pexpect
9
import sys
9 10

  
10 11
class testTreePing64( unittest.TestCase ):
11 12

  
12 13
    prompt = 'mininet>'
13 14

  
15
    @unittest.skipIf( '-quick' in sys.argv, 'long test' )
14 16
    def testTreePing64( self ):
15 17
        "Run the example and verify ping results"
16 18
        p = pexpect.spawn( 'python -m mininet.examples.treeping64' )

Also available in: Unified diff