convince waf to run test.py on check command
authorCraig Dowell <craigdo@ee.washington.edu>
Tue, 06 Oct 2009 22:54:24 -0700
changeset 5372 716ca842b52c
parent 5371 6020e8d86ffa
child 5373 97402b61fb82
convince waf to run test.py on check command
wscript
--- a/wscript	Tue Oct 06 22:47:07 2009 -0700
+++ b/wscript	Tue Oct 06 22:54:24 2009 -0700
@@ -640,8 +640,10 @@
 check_context = Build.BuildContext
 
 def check(bld):
-    """run the NS-3 unit tests (deprecated in favour of test.py)"""
-    raise Utils.WafError("Please run `./test.py' now, instead of './waf check'")
+    """run the equivalent of the old ns-3 unit tests using test.py"""
+    bld = wutils.bld
+    env = bld.env
+    wutils.run_python_program("test.py -c core", env)
 
 
 class print_introspected_doxygen_task(Task.TaskBase):