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 = get_programs_list()
 ns3_executables holds a list of executables in .lock-ns3 # noqa
 ns3_modules = get_enabled_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 )

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

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

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

Referenced by 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 = get_programs_list()

◆ ns3_modules


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