A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
test-ns3.NS3BaseTestCase Class Reference

Generic test case with basic function inherited by more complex tests. More...

+ Inheritance diagram for test-ns3.NS3BaseTestCase:
+ Collaboration diagram for test-ns3.NS3BaseTestCase:

Public Member Functions

 config_ok (self, return_code, stdout, stderr)
 Check if configuration for release mode worked normally.
 
 setUp (self)
 Clean configuration/build artifacts before testing configuration and build settings After configuring the build as release, check if configuration worked and check expected output files.
 

Public Attributes

 ns3_executables
 ns3_executables holds a list of executables in .lock-ns3 # noqa
 
 ns3_modules
 ns3_modules holds a list to the modules enabled stored in .lock-ns3 # noqa
 

Detailed Description

Generic test case with basic function inherited by more complex tests.

Definition at line 787 of file test-ns3.py.

Member Function Documentation

◆ config_ok()

test-ns3.NS3BaseTestCase.config_ok (   self,
  return_code,
  stdout,
  stderr 
)

Check if configuration for release mode worked normally.

Parameters
return_codereturn code from CMake
stdoutoutput from CMake.
stderrerror from CMake.
Returns
None

Definition at line 792 of file test-ns3.py.

References FemtocellBlockAllocator.Create(), ns3::ObjectFactory.Create(), ns3::SpectrumChannelHelper.Create(), ns3::YansWifiChannelHelper.Create(), ns3::AttributeChecker.Create(), ns3::test::RandomVariable::TestCaseBase::RngGeneratorBase.Create(), ns3::EmptyAttributeChecker.Create(), ns3::EnumChecker< T >.Create(), ns3::internal::ObjectPtrContainerChecker< T >.Create(), ns3::internal::PointerChecker< T >.Create(), ns3::internal::TupleChecker< Args >.Create(), ns3::test::RandomVariable::TestCaseBase::RngGenerator< RNG >.Create(), ns3::DsrHelper.Create(), ns3::Ipv4RoutingHelper.Create(), ns3::Ipv6RoutingHelper.Create(), ns3::AodvHelper.Create(), ns3::DsdvHelper.Create(), ns3::Ipv4GlobalRoutingHelper.Create(), ns3::Ipv4ListRoutingHelper.Create(), ns3::Ipv4StaticRoutingHelper.Create(), ns3::Ipv6ListRoutingHelper.Create(), ns3::Ipv6StaticRoutingHelper.Create(), ns3::RipHelper.Create(), ns3::RipNgHelper.Create(), ns3::NixVectorHelper< T >.Create(), ns3::OlsrHelper.Create(), ns3::SpectrumPhyHelper.Create(), ns3::WifiPhyHelper.Create(), ns3::SpectrumWifiPhyHelper.Create(), ns3::YansWifiPhyHelper.Create(), ns3::WifiMacHelper.Create(), ns3::BuildingContainer.Create(), FemtocellBlockAllocator.Create(), ns3::NodeContainer.Create(), ns3::GridBuildingAllocator.Create(), ns3::NodeContainer.Create(), ns3::Buffer.Create(), and ns3::PacketMetadata.Create().

Referenced by test-ns3.NS3BaseTestCase.setUp(), test-ns3.NS3ExpectedUseTestCase.setUp(), test-ns3.NS3ConfigureTestCase.test_01_Examples(), test-ns3.NS3ConfigureTestCase.test_02_Tests(), test-ns3.NS3ConfigureTestCase.test_03_EnableModules(), test-ns3.NS3ConfigureTestCase.test_04_DisableModules(), test-ns3.NS3ConfigureTestCase.test_05_EnableModulesComma(), test-ns3.NS3ConfigureTestCase.test_06_DisableModulesComma(), test-ns3.NS3BuildBaseTestCase.test_06_TestVersionFile(), test-ns3.NS3BuildBaseTestCase.test_07_OutputDirectory(), test-ns3.NS3BuildBaseTestCase.test_08_InstallationAndUninstallation(), test-ns3.NS3ConfigureTestCase.test_19_FilterModuleExamplesAndTests(), and test-ns3.NS3ConfigureTestCase.test_25_CheckBareConfig().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUp()

test-ns3.NS3BaseTestCase.setUp (   self)

Clean configuration/build artifacts before testing configuration and build settings After configuring the build as release, check if configuration worked and check expected output files.

Returns
None

Reimplemented in test-ns3.NS3ConfigureTestCase, test-ns3.NS3BuildBaseTestCase, and test-ns3.NS3ExpectedUseTestCase.

Definition at line 805 of file test-ns3.py.

References test-ns3.NS3BaseTestCase.config_ok(), FemtocellBlockAllocator.Create(), ns3::ObjectFactory.Create(), ns3::SpectrumChannelHelper.Create(), ns3::YansWifiChannelHelper.Create(), ns3::AttributeChecker.Create(), ns3::test::RandomVariable::TestCaseBase::RngGeneratorBase.Create(), ns3::EmptyAttributeChecker.Create(), ns3::EnumChecker< T >.Create(), ns3::internal::ObjectPtrContainerChecker< T >.Create(), ns3::internal::PointerChecker< T >.Create(), ns3::internal::TupleChecker< Args >.Create(), ns3::test::RandomVariable::TestCaseBase::RngGenerator< RNG >.Create(), ns3::DsrHelper.Create(), ns3::Ipv4RoutingHelper.Create(), ns3::Ipv6RoutingHelper.Create(), ns3::AodvHelper.Create(), ns3::DsdvHelper.Create(), ns3::Ipv4GlobalRoutingHelper.Create(), ns3::Ipv4ListRoutingHelper.Create(), ns3::Ipv4StaticRoutingHelper.Create(), ns3::Ipv6ListRoutingHelper.Create(), ns3::Ipv6StaticRoutingHelper.Create(), ns3::RipHelper.Create(), ns3::RipNgHelper.Create(), ns3::NixVectorHelper< T >.Create(), ns3::OlsrHelper.Create(), ns3::SpectrumPhyHelper.Create(), ns3::WifiPhyHelper.Create(), ns3::SpectrumWifiPhyHelper.Create(), ns3::YansWifiPhyHelper.Create(), ns3::WifiMacHelper.Create(), ns3::BuildingContainer.Create(), FemtocellBlockAllocator.Create(), ns3::NodeContainer.Create(), ns3::GridBuildingAllocator.Create(), ns3::NodeContainer.Create(), ns3::Buffer.Create(), ns3::PacketMetadata.Create(), test-ns3.run_ns3(), and test-ns3.NS3BaseTestCase.setUp().

Referenced by test-ns3.NS3BaseTestCase.setUp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ ns3_executables

test-ns3.NS3BaseTestCase.ns3_executables

◆ ns3_modules

test-ns3.NS3BaseTestCase.ns3_modules

The documentation for this class was generated from the following file: