[Xfce4-commits] <midori:master> Allow running a subset of ./waf check with MIDORI_UNITS
Christian Dywan
noreply at xfce.org
Sat Dec 15 20:48:01 CET 2012
Updating branch refs/heads/master
to 072da11e13c1a690020dddb80cb2c464b6247f64 (commit)
from 54632190c701a57e622a0b40c5f3e755cc44b86b (commit)
commit 072da11e13c1a690020dddb80cb2c464b6247f64
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Dec 15 20:46:46 2012 +0100
Allow running a subset of ./waf check with MIDORI_UNITS
wscript | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/wscript b/wscript
index bcf2f9e..726a98f 100644
--- a/wscript
+++ b/wscript
@@ -586,6 +586,8 @@ def shutdown ():
test.unit_test_results = {}
for obj in Build.bld.all_task_gen:
if getattr (obj, 'unit_test', '') and 'cprogram' in obj.features:
+ if 'MIDORI_UNITS' in os.environ and not obj.target.split('-')[1] in os.environ['MIDORI_UNITS']:
+ continue
output = obj.path
filename = os.path.join (output.abspath (obj.env), obj.target)
srcdir = output.abspath ()
@@ -637,8 +639,6 @@ def shutdown ():
else:
Utils.pprint ('GREEN', label + '.......OK')
filename = test.unit_tests[label][0]
- if not 'extension' in filename:
- continue
if is_mingw (Build.bld.env):
filename += '.exe'
if os.environ.get ('MIDORI_TEST') == 'valgrind':
@@ -668,6 +668,8 @@ def shutdown ():
except KeyboardInterrupt:
pass
+ if not 'MIDORI_UNITS' in os.environ:
+ Utils.pprint ('BLUE', 'Set MIDORI_UNITS to select a subset of test cases')
if not 'MIDORI_TEST' in os.environ:
Utils.pprint ('BLUE', 'Set MIDORI_TEST to "valgrind" or "callgrind" to perform memory checks')
# if test.num_tests_failed > 0 or test.num_tests_err > 0:
More information about the Xfce4-commits
mailing list