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