diff --git a/doc/manual/source/test-framework.rst b/doc/manual/source/test-framework.rst index 39b04ce46..9c29c05ad 100644 --- a/doc/manual/source/test-framework.rst +++ b/doc/manual/source/test-framework.rst @@ -459,19 +459,16 @@ and determine if the tests have executed to completion in a reasonable time. Running Tests +++++++++++++ -Tests are typically run using the high level ``test.py`` program. They -can also be run manually using a low level test-runner executable directly -from ``waf``. +Tests are typically run using the high level ``test.py`` program. To get a list of the available command-line options, run ``test.py --help`` + -Running Tests Under the Test Runner Executable -********************************************** +Debugging Tests +*************** -The test-runner is the bridge from generic Python code to |ns3| code. -It is written in C++ and uses the automatic test discovery process in the +The debugging of the test programs is best performed running the low-level test-runner program. The test-runner is the bridge from generic Python code to |ns3| code. It is written in C++ and uses the automatic test discovery process in the |ns3| code to find and allow execution of all of the various tests. -Although it may not be used directly very often, it is good to understand how -``test.py`` actually runs the various tests. +The main reason why ``test.py`` is not suitable for debugging is that it is not allowed for logging to be turned on using the ``NS_LOG`` environmental variable when test.py runs. This limitation does not apply to the test-runner executable. Hence, if you want to see logging output from your tests, you have to run them using the test-runner directly. In order to execute the test-runner, you run it like any other ns-3 executable -- using ``waf``. To get a list of available options, you can type:: diff --git a/src/spectrum/model/single-model-spectrum-channel.h b/src/spectrum/model/single-model-spectrum-channel.h index a3fb15010..ea6bc6692 100644 --- a/src/spectrum/model/single-model-spectrum-channel.h +++ b/src/spectrum/model/single-model-spectrum-channel.h @@ -23,6 +23,7 @@ #include +#include namespace ns3 {