Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Side by Side Diff: tools/testrunner/local/testsuite.py

Issue 1804003002: [Ignition] Test ignition on all bots. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/testrunner/local/statusfile.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 23 matching lines...) Expand all
34 from . import utils 34 from . import utils
35 from ..objects import testcase 35 from ..objects import testcase
36 36
37 # Use this to run several variants of the tests. 37 # Use this to run several variants of the tests.
38 ALL_VARIANT_FLAGS = { 38 ALL_VARIANT_FLAGS = {
39 "default": [[]], 39 "default": [[]],
40 "stress": [["--stress-opt", "--always-opt"]], 40 "stress": [["--stress-opt", "--always-opt"]],
41 "turbofan": [["--turbo"]], 41 "turbofan": [["--turbo"]],
42 "turbofan_opt": [["--turbo", "--always-opt"]], 42 "turbofan_opt": [["--turbo", "--always-opt"]],
43 "nocrankshaft": [["--nocrankshaft"]], 43 "nocrankshaft": [["--nocrankshaft"]],
44 "ignition": [["--ignition", "--turbo"]], 44 "ignition": [["--ignition"]],
45 "ignition_turbofan": [["--ignition", "--turbo", "--turbo-from-bytecode"]], 45 "ignition_turbofan": [["--ignition", "--turbo", "--turbo-from-bytecode"]],
46 "preparser": [["--min-preparse-length=0"]], 46 "preparser": [["--min-preparse-length=0"]],
47 } 47 }
48 48
49 # FAST_VARIANTS implies no --always-opt. 49 # FAST_VARIANTS implies no --always-opt.
50 FAST_VARIANT_FLAGS = { 50 FAST_VARIANT_FLAGS = {
51 "default": [[]], 51 "default": [[]],
52 "stress": [["--stress-opt"]], 52 "stress": [["--stress-opt"]],
53 "turbofan": [["--turbo"]], 53 "turbofan": [["--turbo"]],
54 "nocrankshaft": [["--nocrankshaft"]], 54 "nocrankshaft": [["--nocrankshaft"]],
55 "ignition": [["--ignition", "--turbo"]], 55 "ignition": [["--ignition"]],
56 "ignition_turbofan": [["--ignition", "--turbo", "--turbo-from-bytecode"]], 56 "ignition_turbofan": [["--ignition", "--turbo", "--turbo-from-bytecode"]],
57 "preparser": [["--min-preparse-length=0"]], 57 "preparser": [["--min-preparse-length=0"]],
58 } 58 }
59 59
60 ALL_VARIANTS = set(["default", "stress", "turbofan", "turbofan_opt", 60 ALL_VARIANTS = set(["default", "stress", "turbofan", "turbofan_opt",
61 "nocrankshaft", "ignition", "ignition_turbofan", 61 "nocrankshaft", "ignition", "ignition_turbofan",
62 "preparser"]) 62 "preparser"])
63 FAST_VARIANTS = set(["default", "turbofan"]) 63 FAST_VARIANTS = set(["default", "turbofan"])
64 STANDARD_VARIANT = set(["default"]) 64 STANDARD_VARIANT = set(["default"])
65 IGNITION_VARIANT = set(["ignition"])
65 66
66 67
67 class VariantGenerator(object): 68 class VariantGenerator(object):
68 def __init__(self, suite, variants): 69 def __init__(self, suite, variants):
69 self.suite = suite 70 self.suite = suite
70 self.all_variants = ALL_VARIANTS & variants 71 self.all_variants = ALL_VARIANTS & variants
71 self.fast_variants = FAST_VARIANTS & variants 72 self.fast_variants = FAST_VARIANTS & variants
72 self.standard_variant = STANDARD_VARIANT & variants 73 self.standard_variant = STANDARD_VARIANT & variants
73 74
74 def FilterVariantsByTest(self, testcase): 75 def FilterVariantsByTest(self, testcase):
75 if testcase.outcomes and statusfile.OnlyStandardVariant( 76 result = self.all_variants
76 testcase.outcomes): 77 if testcase.outcomes:
77 return self.standard_variant 78 if statusfile.OnlyStandardVariant(testcase.outcomes):
78 if testcase.outcomes and statusfile.OnlyFastVariants(testcase.outcomes): 79 return self.standard_variant
79 return self.fast_variants 80 if statusfile.OnlyFastVariants(testcase.outcomes):
80 return self.all_variants 81 result = self.fast_variants
82 if statusfile.NoIgnitionVariant(testcase.outcomes):
83 result = result - IGNITION_VARIANT
84 return result
81 85
82 def GetFlagSets(self, testcase, variant): 86 def GetFlagSets(self, testcase, variant):
83 if testcase.outcomes and statusfile.OnlyFastVariants(testcase.outcomes): 87 if testcase.outcomes and statusfile.OnlyFastVariants(testcase.outcomes):
84 return FAST_VARIANT_FLAGS[variant] 88 return FAST_VARIANT_FLAGS[variant]
85 else: 89 else:
86 return ALL_VARIANT_FLAGS[variant] 90 return ALL_VARIANT_FLAGS[variant]
87 91
88 92
89 class TestSuite(object): 93 class TestSuite(object):
90 94
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 return (testcase.flags + ["--gtest_filter=" + testcase.path] + 330 return (testcase.flags + ["--gtest_filter=" + testcase.path] +
327 ["--gtest_random_seed=%s" % context.random_seed] + 331 ["--gtest_random_seed=%s" % context.random_seed] +
328 ["--gtest_print_time=0"] + 332 ["--gtest_print_time=0"] +
329 context.mode_flags) 333 context.mode_flags)
330 334
331 def _VariantGeneratorFactory(self): 335 def _VariantGeneratorFactory(self):
332 return StandardVariantGenerator 336 return StandardVariantGenerator
333 337
334 def shell(self): 338 def shell(self):
335 return self.name 339 return self.name
OLDNEW
« no previous file with comments | « tools/testrunner/local/statusfile.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698