Tests ns3 usage in more realistic scenarios. More...
Inheritance diagram for test-ns3.NS3ExpectedUseTestCase:
Collaboration diagram for test-ns3.NS3ExpectedUseTestCase:Public Member Functions | |
| setUp (self) | |
| Reuse cleaning/release configuration from NS3BaseTestCase if flag is cleaned Here examples, tests and documentation are also enabled. | |
| test_01_BuildProject (self) | |
| Try to build the project. | |
| test_02_BuildAndRunExistingExecutableTarget (self) | |
| Try to build and run test-runner. | |
| test_03_BuildAndRunExistingLibraryTarget (self) | |
| Try to build and run a library. | |
| test_04_BuildAndRunNonExistingTarget (self) | |
| Try to build and run an unknown target. | |
| test_05_RunNoBuildExistingExecutableTarget (self) | |
| Try to run test-runner without building. | |
| test_06_RunNoBuildExistingLibraryTarget (self) | |
| Test ns3 fails to run a library. | |
| test_07_RunNoBuildNonExistingExecutableTarget (self) | |
| Test ns3 fails to run an unknown program. | |
| test_08_RunNoBuildGdb (self) | |
| Test if scratch simulator is executed through gdb and lldb. | |
| test_09_RunNoBuildValgrind (self) | |
| Test if scratch simulator is executed through valgrind. | |
| test_10_DoxygenWithBuild (self) | |
| Test the doxygen target that does trigger a full build. | |
| test_11_DoxygenWithoutBuild (self) | |
| Test the doxygen target that doesn't trigger a full build. | |
| test_12_SphinxDocumentation (self) | |
| Test every individual target for Sphinx-based documentation. | |
| test_13_Documentation (self) | |
| Test the documentation target that builds both doxygen and sphinx based documentation. | |
| test_14_EnableSudo (self) | |
| Try to set ownership of scratch-simulator from current user to root, and change execution permissions. | |
| test_15_CommandTemplate (self) | |
| Check if command template is working. | |
| test_16_ForwardArgumentsToRunTargets (self) | |
| Check if all flavors of different argument passing to executable targets are working. | |
| test_17_RunNoBuildLldb (self) | |
| Test if scratch simulator is executed through lldb. | |
| test_18_CpmAndVcpkgManagers (self) | |
| Test if CPM and Vcpkg package managers are working properly. | |
Public Member Functions inherited from test-ns3.NS3BaseTestCase | |
| config_ok (self, return_code, stdout, stderr) | |
| Check if configuration for release mode worked normally. | |
Additional Inherited Members | |
Public Attributes inherited from test-ns3.NS3BaseTestCase | |
| 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 | |
Tests ns3 usage in more realistic scenarios.
Definition at line 2651 of file test-ns3.py.
| test-ns3.NS3ExpectedUseTestCase.setUp | ( | self | ) |
Reuse cleaning/release configuration from NS3BaseTestCase if flag is cleaned Here examples, tests and documentation are also enabled.
Reimplemented from test-ns3.NS3BaseTestCase.
Definition at line 2656 of file test-ns3.py.
References test-ns3.NS3BaseTestCase.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:| test-ns3.NS3ExpectedUseTestCase.test_01_BuildProject | ( | self | ) |
Try to build the project.
Definition at line 2683 of file test-ns3.py.
References test-ns3.get_enabled_modules(), test-ns3.get_libraries_list(), test-ns3.get_programs_list(), and test-ns3.run_ns3().
Here is the call graph for this function:| test-ns3.NS3ExpectedUseTestCase.test_02_BuildAndRunExistingExecutableTarget | ( | self | ) |
Try to build and run test-runner.
Definition at line 2698 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-ns3.NS3ExpectedUseTestCase.test_03_BuildAndRunExistingLibraryTarget | ( | self | ) |
Try to build and run a library.
Definition at line 2708 of file test-ns3.py.
References test-ns3.run_ns3().
Here is the call graph for this function:| test-ns3.NS3ExpectedUseTestCase.test_04_BuildAndRunNonExistingTarget | ( | self | ) |
Try to build and run an unknown target.
Definition at line 2717 of file test-ns3.py.
References test-ns3.run_ns3().
Here is the call graph for this function:| test-ns3.NS3ExpectedUseTestCase.test_05_RunNoBuildExistingExecutableTarget | ( | self | ) |
Try to run test-runner without building.
Definition at line 2726 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-ns3.NS3ExpectedUseTestCase.test_06_RunNoBuildExistingLibraryTarget | ( | self | ) |
Test ns3 fails to run a library.
Definition at line 2739 of file test-ns3.py.
References test-ns3.run_ns3().
Here is the call graph for this function:| test-ns3.NS3ExpectedUseTestCase.test_07_RunNoBuildNonExistingExecutableTarget | ( | self | ) |
Test ns3 fails to run an unknown program.
Definition at line 2748 of file test-ns3.py.
References test-ns3.run_ns3().
Here is the call graph for this function:| test-ns3.NS3ExpectedUseTestCase.test_08_RunNoBuildGdb | ( | self | ) |
Test if scratch simulator is executed through gdb and lldb.
Definition at line 2757 of file test-ns3.py.
References test-ns3.run_ns3().
Here is the call graph for this function:| test-ns3.NS3ExpectedUseTestCase.test_09_RunNoBuildValgrind | ( | self | ) |
Test if scratch simulator is executed through valgrind.
Definition at line 2778 of file test-ns3.py.
References test-ns3.run_ns3().
Here is the call graph for this function:| test-ns3.NS3ExpectedUseTestCase.test_10_DoxygenWithBuild | ( | self | ) |
Test the doxygen target that does trigger a full build.
Definition at line 2796 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-ns3.NS3ExpectedUseTestCase.test_11_DoxygenWithoutBuild | ( | self | ) |
Test the doxygen target that doesn't trigger a full build.
Definition at line 2825 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-ns3.NS3ExpectedUseTestCase.test_12_SphinxDocumentation | ( | self | ) |
Test every individual target for Sphinx-based documentation.
Definition at line 2844 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-ns3.NS3ExpectedUseTestCase.test_13_Documentation | ( | self | ) |
Test the documentation target that builds both doxygen and sphinx based documentation.
Definition at line 2878 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-ns3.NS3ExpectedUseTestCase.test_14_EnableSudo | ( | self | ) |
Try to set ownership of scratch-simulator from current user to root, and change execution permissions.
Definition at line 2910 of file test-ns3.py.
References test-ns3.cmake_build_target_command, test-ns3.NS3BaseTestCase.ns3_executables, test-ns3.read_lock_entry(), and test-ns3.run_ns3().
Here is the call graph for this function:| test-ns3.NS3ExpectedUseTestCase.test_15_CommandTemplate | ( | self | ) |
Check if command template is working.
Definition at line 2993 of file test-ns3.py.
References test-ns3.run_ns3().
Here is the call graph for this function:| test-ns3.NS3ExpectedUseTestCase.test_16_ForwardArgumentsToRunTargets | ( | self | ) |
Check if all flavors of different argument passing to executable targets are working.
Definition at line 3023 of file test-ns3.py.
References test-ns3.run_ns3().
Here is the call graph for this function:| test-ns3.NS3ExpectedUseTestCase.test_17_RunNoBuildLldb | ( | self | ) |
Test if scratch simulator is executed through lldb.
Definition at line 3087 of file test-ns3.py.
References test-ns3.run_ns3().
Here is the call graph for this function:| test-ns3.NS3ExpectedUseTestCase.test_18_CpmAndVcpkgManagers | ( | self | ) |
Test if CPM and Vcpkg package managers are working properly.
Definition at line 3103 of file test-ns3.py.
References test-ns3.run_ns3().
Here is the call graph for this function: