build: (fixes #2630) Add contrib directory in parallel to src
This commit is contained in:
21
test.py
21
test.py
@@ -46,6 +46,7 @@ except ImportError:
|
||||
#
|
||||
interesting_config_items = [
|
||||
"NS3_ENABLED_MODULES",
|
||||
"NS3_ENABLED_CONTRIBUTED_MODULES",
|
||||
"NS3_MODULE_PATH",
|
||||
"NSC_ENABLED",
|
||||
"ENABLE_REAL_TIME",
|
||||
@@ -1153,6 +1154,26 @@ def run_tests():
|
||||
example_tests,
|
||||
example_names_original,
|
||||
python_tests)
|
||||
|
||||
for module in NS3_ENABLED_CONTRIBUTED_MODULES:
|
||||
# Remove the "ns3-" from the module name.
|
||||
module = module[len("ns3-"):]
|
||||
|
||||
# Set the directories and paths for this example.
|
||||
module_directory = os.path.join("contrib", module)
|
||||
example_directory = os.path.join(module_directory, "examples")
|
||||
examples_to_run_path = os.path.join(module_directory, "test", "examples-to-run.py")
|
||||
cpp_executable_dir = os.path.join(NS3_BUILDDIR, example_directory)
|
||||
python_script_dir = os.path.join(example_directory)
|
||||
|
||||
# Parse this module's file.
|
||||
parse_examples_to_run_file(
|
||||
examples_to_run_path,
|
||||
cpp_executable_dir,
|
||||
python_script_dir,
|
||||
example_tests,
|
||||
example_names_original,
|
||||
python_tests)
|
||||
|
||||
#
|
||||
# If lots of logging is enabled, we can crash Python when it tries to
|
||||
|
||||
Reference in New Issue
Block a user