Don't run python unit tests if python bindings not enabled. Closes #254.
--- 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):