Don't run python unit tests if python bindings not enabled. Closes #254.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed, 16 Jul 2008 17:44:42 +0100
changeset 3429 2658cf81a5cd
parent 3428 75f74d6b6219
child 3430 a8eb6b890f14
child 3431 ccf8108ce6d7
Don't run python unit tests if python bindings not enabled. Closes #254.
wscript
--- a/wscript	Wed Jul 16 10:46:51 2008 +0100
+++ b/wscript	Wed Jul 16 17:44:42 2008 +0100
@@ -456,8 +456,11 @@
     print "-- Running NS-3 C++ core unit tests..."
     run_program('run-tests', get_command_template())
 
-    print "-- Running NS-3 Python bindings unit tests..."
-    _run_argv([env['PYTHON'], os.path.join("utils", "python-unit-tests.py")], proc_env)
+    if env['ENABLE_PYTHON_BINDINGS']:
+        print "-- Running NS-3 Python bindings unit tests..."
+        _run_argv([env['PYTHON'], os.path.join("utils", "python-unit-tests.py")], proc_env)
+    else:
+        print "-- Skipping NS-3 Python bindings unit tests: Python bindings not enabled."
 
 
 def _find_program(program_name, env):