summaryrefslogtreecommitdiffstats
path: root/test/option
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-03-01 13:27:51 (GMT)
committerSteven Knight <knight@baldmt.com>2005-03-01 13:27:51 (GMT)
commitfe606cd36331a41959d57fa41f7e8fe139f31f3f (patch)
tree73e73a84d22f8ce1a329f1eaad502886dd7e514a /test/option
parentc4b35b0ad854432a32fe9d09c2fdd8bdafc40fd8 (diff)
downloadSCons-fe606cd36331a41959d57fa41f7e8fe139f31f3f.zip
SCons-fe606cd36331a41959d57fa41f7e8fe139f31f3f.tar.gz
SCons-fe606cd36331a41959d57fa41f7e8fe139f31f3f.tar.bz2
Group --debug=count output by object modules.
Diffstat (limited to 'test/option')
-rw-r--r--test/option/debug-count.py25
1 files changed, 21 insertions, 4 deletions
diff --git a/test/option/debug-count.py b/test/option/debug-count.py
index 37323db..ca627e8 100644
--- a/test/option/debug-count.py
+++ b/test/option/debug-count.py
@@ -59,11 +59,28 @@ test.write('file.in', "file.in\n")
test.run(arguments = "--debug=count")
stdout = test.stdout()
-test.fail_test(re.search('\d+ +\d+ +\d+ +\d+ BuilderBase', stdout) is None)
-test.fail_test(re.search('\d+ +\d+ +\d+ +\d+ FS', stdout) is None)
-test.fail_test(re.search('\d+ +\d+ +\d+ +\d+ Node', stdout) is None)
-test.fail_test(re.search('\d+ +\d+ +\d+ +\d+ SConsEnvironment', stdout) is None)
+def find_object_count(s, stdout):
+ re_string = '\d+ +\d+ +\d+ +\d+ %s' % re.escape(s)
+ return re.search(re_string, stdout)
+objects = [
+ 'Action.CommandAction',
+ 'Builder.BuilderBase',
+ 'Environment.Base',
+ 'Executor.Executor',
+ 'Node.FS',
+ 'Node.FS.Base',
+ 'Node.Node',
+]
+
+missing = filter(lambda o: find_object_count(o, stdout) is None, objects)
+
+if missing:
+ print "Missing the following object lines:"
+ print "\t", string.join(missing)
+ print "STDOUT =========="
+ print stdout
+ test.fail_test(1)
test.pass_test()