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

Tests ns3 regarding building the project. More...

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

Public Member Functions

 setUp (self)
 Reuse cleaning/release configuration from NS3BaseTestCase if flag is cleaned.
 
 test_01_BuildExistingTargets (self)
 Try building the core library.
 
 test_02_BuildNonExistingTargets (self)
 Try building core-test library without tests enabled.
 
 test_03_BuildProject (self)
 Try building the project:
 
 test_04_BuildProjectNoTaskLines (self)
 Try hiding task lines.
 
 test_05_BreakBuild (self)
 Try removing an essential file to break the build.
 
 test_06_TestVersionFile (self)
 Test if changing the version file affects the library names.
 
 test_07_OutputDirectory (self)
 Try setting a different output directory and if everything is in the right place and still working correctly.
 
 test_08_InstallationAndUninstallation (self)
 Tries setting a ns3 version, then installing it.
 
 test_09_Scratches (self)
 Tries to build scratch-simulator and subdir/scratch-simulator-subdir.
 
 test_10_AmbiguityCheck (self)
 Test if ns3 can alert correctly in case a shortcut collision happens.
 
 test_11_StaticBuilds (self)
 Test if we can build a static ns-3 library and link it to static programs.
 
 test_12_CppyyBindings (self)
 Test if we can use python bindings.
 
 test_13_FetchOptionalComponents (self)
 Test if we had regressions with brite, click and openflow modules that depend on homonymous libraries.
 
 test_14_LinkContribModuleToSrcModule (self)
 Test if we can link contrib modules to src modules.
 
- Public Member Functions inherited from test-ns3.NS3BaseTestCase
 config_ok (self, return_code, stdout, stderr)
 Check if configuration for release mode worked normally.
 

Public Attributes

 ns3_executables
 ns3_executables holds a list of executables in .lock-ns3 # noqa
 
 ns3_libraries
 ns3_libraries holds a list of built module libraries # noqa
 
- Public Attributes inherited from test-ns3.NS3BaseTestCase
 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

Tests ns3 regarding building the project.

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

Member Function Documentation

◆ setUp()

test-ns3.NS3BuildBaseTestCase.setUp ( self)

Reuse cleaning/release configuration from NS3BaseTestCase if flag is cleaned.

Returns
None

Reimplemented from test-ns3.NS3BaseTestCase.

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

References test-ns3.NS3BuildBaseTestCase.setUp().

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

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

◆ test_01_BuildExistingTargets()

test-ns3.NS3BuildBaseTestCase.test_01_BuildExistingTargets ( self)

Try building the core library.

Returns
None

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

References test-ns3.run_ns3().

+ Here is the call graph for this function:

◆ test_02_BuildNonExistingTargets()

test-ns3.NS3BuildBaseTestCase.test_02_BuildNonExistingTargets ( self)

Try building core-test library without tests enabled.

Returns
None

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

References test-ns3.run_ns3().

+ Here is the call graph for this function:

◆ test_03_BuildProject()

test-ns3.NS3BuildBaseTestCase.test_03_BuildProject ( self)

Try building the project:

Returns
None

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

References test-ns3.get_programs_list(), and test-ns3.run_ns3().

+ Here is the call graph for this function:

◆ test_04_BuildProjectNoTaskLines()

test-ns3.NS3BuildBaseTestCase.test_04_BuildProjectNoTaskLines ( self)

Try hiding task lines.

Returns
None

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

References test-ns3.run_ns3().

+ Here is the call graph for this function:

◆ test_05_BreakBuild()

test-ns3.NS3BuildBaseTestCase.test_05_BreakBuild ( self)

Try removing an essential file to break the build.

Returns
None

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

References test-ns3.run_ns3().

+ Here is the call graph for this function:

◆ test_06_TestVersionFile()

test-ns3.NS3BuildBaseTestCase.test_06_TestVersionFile ( self)

Test if changing the version file affects the library names.

Returns
None

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

References test-ns3.NS3BaseTestCase.config_ok(), test-ns3.get_libraries_list(), test-ns3.get_programs_list(), test-ns3.NS3BuildBaseTestCase.ns3_libraries, and test-ns3.run_ns3().

+ Here is the call graph for this function:

◆ test_07_OutputDirectory()

test-ns3.NS3BuildBaseTestCase.test_07_OutputDirectory ( self)

Try setting a different output directory and if everything is in the right place and still working correctly.

Returns
None

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

References test-ns3.NS3BaseTestCase.config_ok(), test-ns3.get_libraries_list(), test-ns3.get_programs_list(), test-ns3.NS3BaseTestCase.ns3_executables, test-ns3.NS3BuildBaseTestCase.ns3_executables, test-ns3.NS3ConfigureTestCase.ns3_executables, test-ns3.NS3ExpectedUseTestCase.ns3_executables, test-ns3.NS3BuildBaseTestCase.ns3_libraries, and test-ns3.run_ns3().

+ Here is the call graph for this function:

◆ test_08_InstallationAndUninstallation()

test-ns3.NS3BuildBaseTestCase.test_08_InstallationAndUninstallation ( self)

Tries setting a ns3 version, then installing it.

After that, tries searching for ns-3 with CMake's find_package(ns3). Finally, tries using core library in a 3rd-party project

Returns
None

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

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

+ Here is the call graph for this function:

◆ test_09_Scratches()

test-ns3.NS3BuildBaseTestCase.test_09_Scratches ( self)

Tries to build scratch-simulator and subdir/scratch-simulator-subdir.

Returns
None

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

References test-ns3.run_ns3().

+ Here is the call graph for this function:

◆ test_10_AmbiguityCheck()

test-ns3.NS3BuildBaseTestCase.test_10_AmbiguityCheck ( self)

Test if ns3 can alert correctly in case a shortcut collision happens.

Returns
None

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

References test-ns3.cmake_build_target_command, and test-ns3.run_ns3().

+ Here is the call graph for this function:

◆ test_11_StaticBuilds()

test-ns3.NS3BuildBaseTestCase.test_11_StaticBuilds ( self)

Test if we can build a static ns-3 library and link it to static programs.

Returns
None

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

References test-ns3.run_ns3().

+ Here is the call graph for this function:

◆ test_12_CppyyBindings()

test-ns3.NS3BuildBaseTestCase.test_12_CppyyBindings ( self)

Test if we can use python bindings.

Returns
None

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

References test-ns3.run_ns3(), and test-ns3.run_program().

+ Here is the call graph for this function:

◆ test_13_FetchOptionalComponents()

test-ns3.NS3BuildBaseTestCase.test_13_FetchOptionalComponents ( self)

Test if we had regressions with brite, click and openflow modules that depend on homonymous libraries.

Returns
None

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

References test-ns3.run_ns3().

+ Here is the call graph for this function:

◆ test_14_LinkContribModuleToSrcModule()

test-ns3.NS3BuildBaseTestCase.test_14_LinkContribModuleToSrcModule ( self)

Test if we can link contrib modules to src modules.

Returns
None

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

References test-ns3.run_ns3().

+ Here is the call graph for this function:

Member Data Documentation

◆ ns3_executables

test-ns3.NS3BuildBaseTestCase.ns3_executables

◆ ns3_libraries

test-ns3.NS3BuildBaseTestCase.ns3_libraries

ns3_libraries holds a list of built module libraries # noqa

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

Referenced by test-ns3.NS3BuildBaseTestCase.test_06_TestVersionFile(), and test-ns3.NS3BuildBaseTestCase.test_07_OutputDirectory().


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