New examples, build and test tutorial examples
authorCraig Dowell <craigdo@ee.washington.edu>
Thu, 11 Dec 2008 15:29:19 -0800
changeset 4013 c032743d087c
parent 4012 7dc122811f0c
child 4015 76848c77cd84
New examples, build and test tutorial examples
examples/wscript
regression/tests/test-dynamic-global-routing.py
regression/tests/test-global-routing-slash32.py
regression/tests/test-second.py
regression/tests/test-static-routing-slash32.py
regression/tests/test-third.py
--- a/examples/wscript	Thu Dec 11 12:43:11 2008 -0800
+++ b/examples/wscript	Thu Dec 11 15:29:19 2008 -0800
@@ -4,6 +4,18 @@
     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'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/regression/tests/test-dynamic-global-routing.py	Thu Dec 11 15:29:19 2008 -0800
@@ -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")
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/regression/tests/test-global-routing-slash32.py	Thu Dec 11 15:29:19 2008 -0800
@@ -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")
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/regression/tests/test-second.py	Thu Dec 11 15:29:19 2008 -0800
@@ -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")
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/regression/tests/test-static-routing-slash32.py	Thu Dec 11 15:29:19 2008 -0800
@@ -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")
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/regression/tests/test-third.py	Thu Dec 11 15:29:19 2008 -0800
@@ -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")