remove obsolete samples/main-test.cc

This commit is contained in:
Tom Henderson
2009-09-27 23:46:10 -07:00
parent b831c95b85
commit dc9a6f22cb
2 changed files with 0 additions and 47 deletions

View File

@@ -1,43 +0,0 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
#include "ns3/test.h"
using namespace ns3;
#ifdef RUN_SELF_TESTS
// declare subclass of base class Test
class MyTest : public Test {
public:
MyTest (bool ok);
virtual ~MyTest ();
virtual bool RunTests (void);
private:
bool m_ok;
};
// implement MyTest
MyTest::MyTest (bool ok)
: Test ("My"),
m_ok (ok)
{}
MyTest::~MyTest ()
{}
bool
MyTest::RunTests (void)
{
return m_ok;
}
// instantiate MyTest once
static MyTest g_my_test = MyTest (true);
#endif /* RUN_SELF_TESTS */
int main (int argc, char *argv[])
{
// run tests
TestManager::EnableVerbose ();
TestManager::RunTests ();
return 0;
}

View File

@@ -22,9 +22,6 @@ def build(bld):
obj = bld.create_ns3_program('main-packet-tag', ['common', 'simulator'])
obj.source = 'main-packet-tag.cc'
obj = bld.create_ns3_program('main-test')
obj.source = 'main-test.cc'
if bld.env['ENABLE_THREADING'] and bld.env["ENABLE_REAL_TIME"]:
obj = bld.create_ns3_program('main-test-sync')
obj.source = 'main-test-sync.cc'
@@ -53,4 +50,3 @@ def build(bld):
['core', 'simulator', 'mobility', 'wifi'])
obj.source = 'main-ns2-mob.cc'