Author: [EMAIL PROTECTED] Date: Sun Sep 7 23:55:54 2008 New Revision: 187
Added: changes/[EMAIL PROTECTED]/cat-and-test-status/ changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/ - copied from r183, /branches/bleeding_edge/ Modified: changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/test/mjsunit/testcfg.py changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/test/mozilla/mozilla.status changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/test/mozilla/testcfg.py changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/tools/test.py Log: - Marked flaky windows gc test as flaky. - Added support for --cat in test runner. Modified: changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/test/mjsunit/testcfg.py ============================================================================== --- /branches/bleeding_edge/test/mjsunit/testcfg.py (original) +++ changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/test/mjsunit/testcfg.py Sun Sep 7 23:55:54 2008 @@ -58,6 +58,9 @@ result += [framework, self.file] return result + def GetSource(self): + return open(self.file).read() + class MjsunitTestConfiguration(test.TestConfiguration): Modified: changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/test/mozilla/mozilla.status ============================================================================== --- /branches/bleeding_edge/test/mozilla/mozilla.status (original) +++ changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/test/mozilla/mozilla.status Sun Sep 7 23:55:54 2008 @@ -752,6 +752,7 @@ # This test is flaky because of the default timer resolution on Windows. js1_5/extensions/regress-363258: PASS || FAIL +mozilla/js1_5/GC/regress-383269-02: PASS, FLAKY IF $mode == debug [ $FAST == yes ] Modified: changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/test/mozilla/testcfg.py ============================================================================== --- /branches/bleeding_edge/test/mozilla/testcfg.py (original) +++ changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/test/mozilla/testcfg.py Sun Sep 7 23:55:54 2008 @@ -82,6 +82,9 @@ def GetName(self): return self.path[-1] + def GetSource(self): + return open(self.filename).read() + class MozillaTestConfiguration(test.TestConfiguration): Modified: changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/tools/test.py ============================================================================== --- /branches/bleeding_edge/tools/test.py (original) +++ changes/[EMAIL PROTECTED]/cat-and-test-status/bleeding_edge/tools/test.py Sun Sep 7 23:55:54 2008 @@ -259,6 +259,9 @@ def IsFailureOutput(self, output): return output.exit_code != 0 + def GetSource(self): + return "(no source available)" + def Run(self): command = self.GetCommand() full_command = self.context.processor(command) @@ -948,6 +951,8 @@ result.add_option("--arch", help='The architecture to run tests for', default=ARCH_GUESS) result.add_option("--special-command", default=None) + result.add_option("--cat", help="Print the source of the tests", + default=False, action="store_true") return result @@ -1069,6 +1074,7 @@ # List the tests all_cases = [ ] all_unused = [ ] + unclassified_tests = [ ] for path in paths: for mode in options.mode: env = { @@ -1077,9 +1083,23 @@ 'arch': options.arch } test_list = root.ListTests([], path, context, mode) + unclassified_tests += test_list (cases, unused_rules) = config.ClassifyTests(test_list, env) all_cases += cases all_unused.append(unused_rules) + + if options.cat: + visited = set() + for test in unclassified_tests: + key = tuple(test.path) + if key in visited: + continue + visited.add(key) + print "--- begin source: %s ---" % test.GetLabel() + source = test.GetSource().strip() + print source + print "--- end source: %s ---" % test.GetLabel() + return 0 # for rule in unused_rules: # print "Rule for '%s' was not used." % '/'.join([str(s) for s in rule.path]) --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---