New examples, build and test tutorial examples
This commit is contained in:
@@ -4,6 +4,18 @@ def build(bld):
|
||||
obj = bld.create_ns3_program('hello-simulator')
|
||||
obj.source = 'hello-simulator.cc'
|
||||
|
||||
obj = bld.create_ns3_program('first',
|
||||
['core', 'simulator', 'point-to-point', 'internet-stack'])
|
||||
obj.source = 'first.cc'
|
||||
|
||||
obj = bld.create_ns3_program('second',
|
||||
['core', 'simulator', 'point-to-point', 'csma', 'internet-stack'])
|
||||
obj.source = 'second.cc'
|
||||
|
||||
obj = bld.create_ns3_program('third',
|
||||
['core', 'simulator', 'point-to-point', 'csma', 'wifi', 'internet-stack'])
|
||||
obj.source = 'third.cc'
|
||||
|
||||
obj = bld.create_ns3_program('mixed-wireless',
|
||||
['core', 'simulator', 'mobility', 'wifi', 'point-to-point', 'internet-stack'])
|
||||
obj.source = 'mixed-wireless.cc'
|
||||
|
||||
12
regression/tests/test-dynamic-global-routing.py
Normal file
12
regression/tests/test-dynamic-global-routing.py
Normal file
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env python
|
||||
|
||||
"""Generic trace-comparison-type regression test."""
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import tracediff
|
||||
|
||||
def run(verbose, generate):
|
||||
"""Execute a test."""
|
||||
|
||||
return tracediff.run_test(verbose, generate, "dynamic-global-routing")
|
||||
12
regression/tests/test-global-routing-slash32.py
Normal file
12
regression/tests/test-global-routing-slash32.py
Normal file
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env python
|
||||
|
||||
"""Generic trace-comparison-type regression test."""
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import tracediff
|
||||
|
||||
def run(verbose, generate):
|
||||
"""Execute a test."""
|
||||
|
||||
return tracediff.run_test(verbose, generate, "global-routing-slash32")
|
||||
12
regression/tests/test-second.py
Normal file
12
regression/tests/test-second.py
Normal file
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env python
|
||||
|
||||
"""Generic trace-comparison-type regression test."""
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import tracediff
|
||||
|
||||
def run(verbose, generate):
|
||||
"""Execute a test."""
|
||||
|
||||
return tracediff.run_test(verbose, generate, "second")
|
||||
12
regression/tests/test-static-routing-slash32.py
Normal file
12
regression/tests/test-static-routing-slash32.py
Normal file
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env python
|
||||
|
||||
"""Generic trace-comparison-type regression test."""
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import tracediff
|
||||
|
||||
def run(verbose, generate):
|
||||
"""Execute a test."""
|
||||
|
||||
return tracediff.run_test(verbose, generate, "static-routing-slash32")
|
||||
12
regression/tests/test-third.py
Normal file
12
regression/tests/test-third.py
Normal file
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env python
|
||||
|
||||
"""Generic trace-comparison-type regression test."""
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import tracediff
|
||||
|
||||
def run(verbose, generate):
|
||||
"""Execute a test."""
|
||||
|
||||
return tracediff.run_test(verbose, generate, "third")
|
||||
Reference in New Issue
Block a user