OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 from . import statusfile | 33 from . import statusfile |
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", "--always-opt"]], | 41 "turbofan": [["--turbo", "--always-opt"]], |
42 "nocrankshaft": [["--nocrankshaft"]], | 42 "nocrankshaft": [["--nocrankshaft"]], |
| 43 "ignition": [["--ignition", "--ignition-filter=*"]], |
43 } | 44 } |
44 | 45 |
45 # FAST_VARIANTS implies no --always-opt. | 46 # FAST_VARIANTS implies no --always-opt. |
46 FAST_VARIANT_FLAGS = { | 47 FAST_VARIANT_FLAGS = { |
47 "default": [[]], | 48 "default": [[]], |
48 "stress": [["--stress-opt"]], | 49 "stress": [["--stress-opt"]], |
49 "turbofan": [["--turbo"]], | 50 "turbofan": [["--turbo"]], |
50 "nocrankshaft": [["--nocrankshaft"]], | 51 "nocrankshaft": [["--nocrankshaft"]], |
| 52 "ignition": [["--ignition", "--ignition-filter=*"]], |
51 } | 53 } |
52 | 54 |
53 ALL_VARIANTS = set(["default", "stress", "turbofan", "nocrankshaft"]) | 55 ALL_VARIANTS = set(["default", "stress", "turbofan", "nocrankshaft", |
| 56 "ignition"]) |
54 FAST_VARIANTS = set(["default", "turbofan"]) | 57 FAST_VARIANTS = set(["default", "turbofan"]) |
55 STANDARD_VARIANT = set(["default"]) | 58 STANDARD_VARIANT = set(["default"]) |
56 | 59 |
57 | 60 |
58 class VariantGenerator(object): | 61 class VariantGenerator(object): |
59 def __init__(self, suite, variants): | 62 def __init__(self, suite, variants): |
60 self.suite = suite | 63 self.suite = suite |
61 self.all_variants = ALL_VARIANTS & variants | 64 self.all_variants = ALL_VARIANTS & variants |
62 self.fast_variants = FAST_VARIANTS & variants | 65 self.fast_variants = FAST_VARIANTS & variants |
63 self.standard_variant = STANDARD_VARIANT & variants | 66 self.standard_variant = STANDARD_VARIANT & variants |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 return (testcase.flags + ["--gtest_filter=" + testcase.path] + | 327 return (testcase.flags + ["--gtest_filter=" + testcase.path] + |
325 ["--gtest_random_seed=%s" % context.random_seed] + | 328 ["--gtest_random_seed=%s" % context.random_seed] + |
326 ["--gtest_print_time=0"] + | 329 ["--gtest_print_time=0"] + |
327 context.mode_flags) | 330 context.mode_flags) |
328 | 331 |
329 def _VariantGeneratorFactory(self): | 332 def _VariantGeneratorFactory(self): |
330 return StandardVariantGenerator | 333 return StandardVariantGenerator |
331 | 334 |
332 def shell(self): | 335 def shell(self): |
333 return self.name | 336 return self.name |
OLD | NEW |