Tests ns3 usage in more realistic scenarios. More...
Public Member Functions | |
def | setUp (self) |
Reuse cleaning/release configuration from NS3BaseTestCase if flag is cleaned Here examples, tests and documentation are also enabled. More... | |
def | test_01_BuildProject (self) |
Try to build the project. More... | |
def | test_02_BuildAndRunExistingExecutableTarget (self) |
Try to build and run test-runner. More... | |
def | test_03_BuildAndRunExistingLibraryTarget (self) |
Try to build and run a library. More... | |
def | test_04_BuildAndRunNonExistingTarget (self) |
Try to build and run an unknown target. More... | |
def | test_05_RunNoBuildExistingExecutableTarget (self) |
Try to run test-runner without building. More... | |
def | test_06_RunNoBuildExistingLibraryTarget (self) |
Test ns3 fails to run a library. More... | |
def | test_07_RunNoBuildNonExistingExecutableTarget (self) |
Test ns3 fails to run an unknown program. More... | |
def | test_08_RunNoBuildGdb (self) |
Test if scratch simulator is executed through gdb and lldb. More... | |
def | test_09_RunNoBuildValgrind (self) |
Test if scratch simulator is executed through valgrind. More... | |
def | test_10_DoxygenWithBuild (self) |
Test the doxygen target that does trigger a full build. More... | |
def | test_11_DoxygenWithoutBuild (self) |
Test the doxygen target that doesn't trigger a full build. More... | |
def | test_12_SphinxDocumentation (self) |
Test every individual target for Sphinx-based documentation. More... | |
def | test_13_Documentation (self) |
Test the documentation target that builds both doxygen and sphinx based documentation. More... | |
def | test_14_EnableSudo (self) |
Try to set ownership of scratch-simulator from current user to root, and change execution permissions. More... | |
def | test_15_CommandTemplate (self) |
Check if command template is working. More... | |
def | test_16_ForwardArgumentsToRunTargets (self) |
Check if all flavors of different argument passing to executable targets are working. More... | |
def | test_17_RunNoBuildLldb (self) |
Test if scratch simulator is executed through lldb. More... | |
Public Member Functions inherited from test-ns3.NS3BaseTestCase | |
def | config_ok (self, return_code, stdout) |
Check if configuration for release mode worked normally. 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... | |
Public Attributes inherited from test-ns3.NS3BaseTestCase | |
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... | |
Static Public Attributes inherited from test-ns3.NS3BaseTestCase | |
bool | cleaned_once = False |
when cleaned_once is False, clean up build artifacts and reconfigure More... | |
Tests ns3 usage in more realistic scenarios.
Definition at line 1704 of file test-ns3.py.
def 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 1712 of file test-ns3.py.
References test-ns3.NS3BaseTestCase.config_ok(), and test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_01_BuildProject | ( | self | ) |
Try to build the project.
Definition at line 1739 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().
def test-ns3.NS3ExpectedUseTestCase.test_02_BuildAndRunExistingExecutableTarget | ( | self | ) |
Try to build and run test-runner.
Definition at line 1754 of file test-ns3.py.
References test-ns3.cmake_build_target_command, and test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_03_BuildAndRunExistingLibraryTarget | ( | self | ) |
Try to build and run a library.
Definition at line 1764 of file test-ns3.py.
References test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_04_BuildAndRunNonExistingTarget | ( | self | ) |
Try to build and run an unknown target.
Definition at line 1773 of file test-ns3.py.
References test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_05_RunNoBuildExistingExecutableTarget | ( | self | ) |
Try to run test-runner without building.
Definition at line 1782 of file test-ns3.py.
References test-ns3.cmake_build_target_command, and test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_06_RunNoBuildExistingLibraryTarget | ( | self | ) |
Test ns3 fails to run a library.
Definition at line 1792 of file test-ns3.py.
References test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_07_RunNoBuildNonExistingExecutableTarget | ( | self | ) |
Test ns3 fails to run an unknown program.
Definition at line 1801 of file test-ns3.py.
References test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_08_RunNoBuildGdb | ( | self | ) |
Test if scratch simulator is executed through gdb and lldb.
Definition at line 1810 of file test-ns3.py.
References test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_09_RunNoBuildValgrind | ( | self | ) |
Test if scratch simulator is executed through valgrind.
Definition at line 1823 of file test-ns3.py.
References test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_10_DoxygenWithBuild | ( | self | ) |
Test the doxygen target that does trigger a full build.
Definition at line 1836 of file test-ns3.py.
References test-ns3.cmake_build_target_command, and test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_11_DoxygenWithoutBuild | ( | self | ) |
Test the doxygen target that doesn't trigger a full build.
Definition at line 1862 of file test-ns3.py.
References test-ns3.cmake_build_target_command, and test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_12_SphinxDocumentation | ( | self | ) |
Test every individual target for Sphinx-based documentation.
Definition at line 1881 of file test-ns3.py.
References test-ns3.cmake_build_target_command, and test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_13_Documentation | ( | self | ) |
Test the documentation target that builds both doxygen and sphinx based documentation.
Definition at line 1915 of file test-ns3.py.
References test-ns3.cmake_build_target_command, and test-ns3.run_ns3().
def 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 1947 of file test-ns3.py.
References test-ns3.cmake_build_target_command, list, test-ns3.NS3BaseTestCase.ns3_executables, test-ns3.NS3BuildBaseTestCase.ns3_executables, test-ns3.NS3ExpectedUseTestCase.ns3_executables, test-ns3.read_lock_entry(), and test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_15_CommandTemplate | ( | self | ) |
Check if command template is working.
Definition at line 2024 of file test-ns3.py.
References test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_16_ForwardArgumentsToRunTargets | ( | self | ) |
Check if all flavors of different argument passing to executable targets are working.
Definition at line 2050 of file test-ns3.py.
References test-ns3.run_ns3().
def test-ns3.NS3ExpectedUseTestCase.test_17_RunNoBuildLldb | ( | self | ) |
Test if scratch simulator is executed through lldb.
Definition at line 2107 of file test-ns3.py.
References test-ns3.run_ns3().
|
static |
when cleaned_once is False, clean up build artifacts and reconfigure
Definition at line 1710 of file test-ns3.py.
test-ns3.NS3ExpectedUseTestCase.ns3_executables |
ns3_executables holds a list of executables in .lock-ns3
Definition at line 1731 of file test-ns3.py.
Referenced by test-ns3.NS3ConfigureTestCase.test_01_Examples(), test-ns3.NS3BuildBaseTestCase.test_06_TestVersionFile(), test-ns3.NS3ConfigureTestCase.test_07_Ns3rc(), test-ns3.NS3ExpectedUseTestCase.test_14_EnableSudo(), and test-ns3.NS3ConfigureTestCase.test_14_MpiCommandTemplate().
test-ns3.NS3ExpectedUseTestCase.ns3_modules |
ns3_modules holds a list to the modules enabled stored in .lock-ns3
Definition at line 1737 of file test-ns3.py.
Referenced by test-ns3.NS3ConfigureTestCase.test_03_EnableModules(), test-ns3.NS3ConfigureTestCase.test_04_DisableModules(), test-ns3.NS3ConfigureTestCase.test_05_EnableModulesComma(), test-ns3.NS3ConfigureTestCase.test_06_DisableModulesComma(), and test-ns3.NS3ConfigureTestCase.test_07_Ns3rc().