OLD | NEW |
(Empty) | |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """Setup for linker tests.""" |
| 6 |
| 7 import logging |
| 8 import os |
| 9 import sys |
| 10 import types |
| 11 |
| 12 import test_case |
| 13 import test_runner |
| 14 |
| 15 |
| 16 def Setup(options, devices): |
| 17 """Creates a list of test cases and a runner factory. |
| 18 |
| 19 Returns: |
| 20 A tuple of (TestRunnerFactory, tests). |
| 21 """ |
| 22 |
| 23 all_tests = [ |
| 24 test_case.LinkerTestCase('ForRegularDevice', |
| 25 is_low_memory=False), |
| 26 test_case.LinkerTestCase('ForLowMemoryDevice', |
| 27 is_low_memory=True) ] |
| 28 |
| 29 def TestRunnerFactory(device, shard_index): |
| 30 return test_runner.LinkerTestRunner( |
| 31 device, options.tool, options.push_deps, |
| 32 options.cleanup_test_files) |
| 33 |
| 34 return (TestRunnerFactory, all_tests) |
OLD | NEW |