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 logging.debug('All available tests: ' + str( | |
frankf
2013/10/02 18:16:02
I believe test_dispatcher.py already logs this
digit1
2013/10/03 09:16:00
This came directly from InstrumentationSetup which
| |
30 [t.test_name for t in all_tests])) | |
31 | |
32 def TestRunnerFactory(device, shard_index): | |
33 return test_runner.LinkerTestRunner( | |
34 device, options.tool, options.push_deps, | |
35 options.cleanup_test_files) | |
36 | |
37 return (TestRunnerFactory, all_tests) | |
OLD | NEW |