test.py
changeset 7245 4b245d55faa2
parent 7199 eae56a101979
child 7259 5c63124c3955
--- a/test.py	Thu May 19 20:36:05 2011 +0400
+++ b/test.py	Thu May 19 11:54:32 2011 -0700
@@ -49,6 +49,7 @@
     "ENABLE_REAL_TIME",
     "ENABLE_THREADING",
     "ENABLE_EXAMPLES",
+    "ENABLE_TESTS",
     "EXAMPLE_DIRECTORIES",
     "ENABLE_PYTHON_BINDINGS",
     "ENABLE_CLICK",
@@ -59,6 +60,7 @@
 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 @@
         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