A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
test-ns3.py File Reference

Go to the source code of this file.

Classes

class  test-ns3.DockerContainerManager
 Python-on-whales wrapper for Docker-based ns-3 tests. More...
 
class  test-ns3.NS3BaseTestCase
 Generic test case with basic function inherited by more complex tests. More...
 
class  test-ns3.NS3BuildBaseTestCase
 Tests ns3 regarding building the project. More...
 
class  test-ns3.NS3CommonSettingsTestCase
 ns3 tests related to generic options More...
 
class  test-ns3.NS3ConfigureBuildProfileTestCase
 ns3 tests related to build profiles More...
 
class  test-ns3.NS3ConfigureTestCase
 Test ns3 configuration options. More...
 
class  test-ns3.NS3DependenciesTestCase
 ns-3 tests related to dependencies More...
 
class  test-ns3.NS3ExpectedUseTestCase
 Tests ns3 usage in more realistic scenarios. More...
 
class  test-ns3.NS3QualityControlTestCase
 ns-3 tests to control the quality of the repository over time, by checking the state of URLs listed and more More...
 
class  test-ns3.NS3StyleTestCase
 ns-3 tests to check if the source code, whitespaces and CMake formatting are according to the coding style More...
 
class  test-ns3.NS3UnusedSourcesTestCase
 ns-3 tests related to checking if source files were left behind, not being used by CMake More...
 

Namespaces

namespace  test
 -ns3 Test suite for the ns3 wrapper script
 
namespace  test-ns3
 

Functions

 test-ns3.get_enabled_modules ()
 
 test-ns3.get_headers_list (outdir=usual_outdir)
 Gets a list of header files.
 
 test-ns3.get_libraries_list (lib_outdir=usual_lib_outdir)
 Gets a list of built libraries.
 
 test-ns3.get_programs_list ()
 Extracts the programs list from .lock-ns3.
 
 test-ns3.get_test_enabled ()
 Check if tests are enabled in the .lock-ns3.
 
 test-ns3.read_lock_entry (entry)
 Read interesting entries from the .lock-ns3 file.
 
 test-ns3.run_ns3 (args, env=None, generator=platform_makefiles)
 Runs the ns3 wrapper script with arguments.
 
 test-ns3.run_program (program, args, python=False, cwd=ns3_path, env=None)
 Runs a program with the given arguments and returns a tuple containing (error code, stdout and stderr)
 

Variables

 test-ns3.arch = platform.machine()
 
str test-ns3.cmake_build_project_command
 
 test-ns3.cmake_build_target_command
 
str test-ns3.ext = ".exe" if win32 else ""
 
str test-ns3.macos = "darwin"
 
 test-ns3.ns3_lock_filename = os.path.join(ns3_path, ".lock-ns3_%s_build" % sys.platform)
 
 test-ns3.ns3_path = os.path.dirname(os.path.abspath(os.sep.join([__file__, "../../"])))
 
 test-ns3.ns3_script = os.sep.join([ns3_path, "ns3"])
 
 test-ns3.ns3rc_script = os.sep.join([ns3_path, ".ns3rc"])
 
 test-ns3.num_threads = max(1, os.cpu_count() - 1)
 
str test-ns3.platform_makefiles = "MinGW Makefiles" if win32 else "Unix Makefiles"
 
 test-ns3.usual_lib_outdir = os.sep.join([usual_outdir, "lib"])
 
 test-ns3.usual_outdir = os.sep.join([ns3_path, "build"])
 
str test-ns3.win32 = "win32"