--- a/src/template/examples/wscript Fri Dec 16 18:11:42 2011 -0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
-
-def build(bld):
- # Don't build any examples unless they are enabled.
- if not bld.env['ENABLE_EXAMPLES']:
- return;
-
- # Uncomment these lines to build this C++ example program.
- #program = bld.create_ns3_program('sample-example', ['core'])
- #program.source = 'sample-example.cc'
-
- # Uncomment this line to register the dependencies for this Python
- # example script.
- #bld.register_ns3_script('sample-example.py', ['core'])
--- a/src/template/test/examples-to-run.py Fri Dec 16 18:11:42 2011 -0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-#! /usr/bin/env python
-## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
-
-# A list of C++ examples to run in order to ensure that they remain
-# buildable and runnable over time. Each tuple in the list contains
-#
-# (example_name, do_run, do_valgrind_run).
-#
-# See test.py for more information.
-cpp_examples = []
-
-# A list of Python examples to run in order to ensure that they remain
-# runnable over time. Each tuple in the list contains
-#
-# (example_name, do_run).
-#
-# See test.py for more information.
-python_examples = []
--- a/src/template/test/sample-test-suite.cc Fri Dec 16 18:11:42 2011 -0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,63 +0,0 @@
-/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-
-// An essential include is test.h
-#include "ns3/test.h"
-
-// Do not put your test classes in namespace ns3. You may find it useful
-// to use the using directive to access the ns3 namespace directly
-using namespace ns3;
-
-// This is an example TestCase.
-class SampleTestCase1 : public TestCase
-{
-public:
- SampleTestCase1 ();
- virtual ~SampleTestCase1 ();
-
-private:
- virtual void DoRun (void);
-};
-
-// Add some help text to this case to describe what it is intended to test
-SampleTestCase1::SampleTestCase1 ()
- : TestCase ("Sample test case (does nothing)")
-{
-}
-
-// This destructor does nothing but we include it as a reminder that
-// the test case should clean up after itself
-SampleTestCase1::~SampleTestCase1 ()
-{
-}
-
-//
-// This method is the pure virtual method from class TestCase that every
-// TestCase must implement
-//
-void
-SampleTestCase1::DoRun (void)
-{
- // A wide variety of test macros are available in src/core/test.h
- NS_TEST_ASSERT_MSG_EQ (true, true, "true doesn't equal true for some reason");
- // Use this one for floating point comparisons
- NS_TEST_ASSERT_MSG_EQ_TOL (0.01, 0.01, 0.001, "Numbers are not equal within tolerance");
-}
-
-// The TestSuite class names the TestSuite, identifies what type of TestSuite,
-// and enables the TestCases to be run. Typically, only the constructor for
-// this class must be defined
-//
-class SampleTestSuite : public TestSuite
-{
-public:
- SampleTestSuite ();
-};
-
-SampleTestSuite::SampleTestSuite ()
- : TestSuite ("sample", UNIT)
-{
- AddTestCase (new SampleTestCase1);
-}
-
-// Do not forget to allocate an instance of this TestSuite
-static SampleTestSuite sampleTestSuite;
--- a/src/template/wscript Fri Dec 16 18:11:42 2011 -0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
-
-def build(bld):
- # Create the module with the appropriate name and the list of
- # modules it depends on.
- module = bld.create_ns3_module('template', ['core'])
-
- # Set the C++ source files for this module.
- module.source = [
- # Uncomment these lines to compile these model source files.
- #'model/sample-model-1.cc',
- #'model/sample-model-2.cc',
-
- # Uncomment these lines to compile these helper source files.
- #'helper/sample-helper-1.cc',
- #'helper/sample-helper-2.cc',
- ]
-
- # Create the module's test library.
- module_test = bld.create_ns3_module_test_library('template')
-
- # Set the C++ source files for the module's test library.
- module_test.source = [
- # Uncomment these lines to compile these test suites.
- #'test/sample-test-suite-1.cc',
- #'test/sample-test-suite-2.cc',
- ]
-
- # Make headers be installed for this module.
- headers = bld.new_task_gen(features=['ns3header'])
- headers.module = 'template'
-
- # Set the C++ header files for this module.
- headers.source = [
- # Uncomment these lines to install these model header files.
- #'model/sample-model-1.h',
- #'model/sample-model-2.h',
-
- # Uncomment these lines to install these helper header files.
- #'helper/sample-helper-1.h',
- #'helper/sample-helper-2.h',
- ]
-
- # Uncomment these lines if this module needs a library such as the
- # real-time (RT) library to be linked in at build time.
- #module .uselib = 'RT'
- #module_test.uselib = 'RT'
-
- # Look for examples if they are enabled.
- if (bld.env['ENABLE_EXAMPLES']):
- bld.add_subdirs('examples')