diff --git a/test.py b/test.py index 25426b9db..ba12fb7aa 100755 --- a/test.py +++ b/test.py @@ -49,6 +49,7 @@ interesting_config_items = [ "ENABLE_REAL_TIME", "ENABLE_THREADING", "ENABLE_EXAMPLES", + "ENABLE_TESTS", "EXAMPLE_DIRECTORIES", "ENABLE_PYTHON_BINDINGS", "ENABLE_CLICK", @@ -59,6 +60,7 @@ NSC_ENABLED = False ENABLE_REAL_TIME = False ENABLE_THREADING = False ENABLE_EXAMPLES = True +ENABLE_TESTS = True ENABLE_CLICK = False ENABLE_OPENFLOW = False EXAMPLE_DIRECTORIES = [] @@ -1626,6 +1628,19 @@ def run_tests(): shutil.copyfile(xml_results_file, options.xml) # + # Let the user know if they need to turn on tests or examples. + # + if not ENABLE_TESTS or not ENABLE_EXAMPLES: + print + if not ENABLE_TESTS: + print '*** Note: ns-3 tests are currently disabled. Enable them by adding' + print '*** "--enable-tests" to ./waf configure or modifying your .ns3rc file.' + print + if not ENABLE_EXAMPLES: + print '*** Note: ns-3 examples are currently disabled. Enable them by adding' + print '*** "--enable-examples" to ./waf configure or modifying your .ns3rc file.' + print + # # If we have been asked to retain all of the little temporary files, we # don't delete tm. If we do delete the temporary files, delete only the # directory we just created. We don't want to happily delete any retained