Chromium Code Reviews| Index: build/android/pylib/linker/setup.py |
| diff --git a/build/android/pylib/linker/setup.py b/build/android/pylib/linker/setup.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..191f23835b663d9e5e22ef5a632b7f8a0ce093ee |
| --- /dev/null |
| +++ b/build/android/pylib/linker/setup.py |
| @@ -0,0 +1,37 @@ |
| +# Copyright 2013 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +"""Setup for linker tests.""" |
| + |
| +import logging |
| +import os |
| +import sys |
| +import types |
| + |
| +import test_case |
| +import test_runner |
| + |
| + |
| +def Setup(options, devices): |
| + """Creates a list of test cases and a runner factory. |
| + |
| + Returns: |
| + A tuple of (TestRunnerFactory, tests). |
| + """ |
| + |
| + all_tests = [ |
| + test_case.LinkerTestCase('ForRegularDevice', |
| + is_low_memory=False), |
| + test_case.LinkerTestCase('ForLowMemoryDevice', |
| + is_low_memory=True) ] |
| + |
| + 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
|
| + [t.test_name for t in all_tests])) |
| + |
| + def TestRunnerFactory(device, shard_index): |
| + return test_runner.LinkerTestRunner( |
| + device, options.tool, options.push_deps, |
| + options.cleanup_test_files) |
| + |
| + return (TestRunnerFactory, all_tests) |