A Discrete-Event Network Simulator
API
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

def config_ok (self, return_code, stdout)
 Check if configuration for release mode worked normally. More...
 
def 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. More...
 

Public Attributes

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

Static Public Attributes

bool cleaned_once = False
 when cleaned_once is False, clean up build artifacts and reconfigure More...
 

Detailed Description

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

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

Member Function Documentation

◆ config_ok()

◆ setUp()

def 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.NS3ExpectedUseTestCase, test-ns3.NS3BuildBaseTestCase, and test-ns3.NS3ConfigureTestCase.

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

References test-ns3.NS3BaseTestCase.config_ok(), and test-ns3.run_ns3().

+ Here is the call graph for this function:

Member Data Documentation

◆ cleaned_once

bool test-ns3.NS3BaseTestCase.cleaned_once = False
static

when cleaned_once is False, clean up build artifacts and reconfigure

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

◆ ns3_executables

◆ ns3_modules


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