Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(644)

Side by Side Diff: build/android/pylib/linker/setup.py

Issue 1571803002: [Android] Prepare build/android/ for catapult+devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@create-device-library-links
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Setup for linker tests.""" 5 """Setup for linker tests."""
6 6
7 import logging 7 import logging
8 import os
9 import sys
10 8
11 from pylib import constants 9 from pylib.constants import host_paths
12 from pylib.linker import test_case 10 from pylib.linker import test_case
13 from pylib.linker import test_runner 11 from pylib.linker import test_runner
14 12
15 sys.path.insert(0, 13 with host_paths.SysPath(host_paths.BUILD_COMMON_PATH):
16 os.path.join(constants.DIR_SOURCE_ROOT, 'build', 'util', 'lib', 14 import unittest_util # pylint: disable=import-error
17 'common'))
18 import unittest_util # pylint: disable=F0401
19 15
20 # ModernLinker requires Android M (API level 23) or later. 16 # ModernLinker requires Android M (API level 23) or later.
21 _VERSION_SDK_PROPERTY = 'ro.build.version.sdk' 17 _VERSION_SDK_PROPERTY = 'ro.build.version.sdk'
22 _MODERN_LINKER_MINIMUM_SDK_INT = 23 18 _MODERN_LINKER_MINIMUM_SDK_INT = 23
23 19
24 def Setup(args, devices): 20 def Setup(args, devices):
25 """Creates a list of test cases and a runner factory. 21 """Creates a list of test cases and a runner factory.
26 22
27 Args: 23 Args:
28 args: an argparse.Namespace object. 24 args: an argparse.Namespace object.
(...skipping 26 matching lines...) Expand all
55 all_test_names = [test.qualified_name for test in all_tests] 51 all_test_names = [test.qualified_name for test in all_tests]
56 filtered_test_names = unittest_util.FilterTestNames(all_test_names, 52 filtered_test_names = unittest_util.FilterTestNames(all_test_names,
57 args.test_filter) 53 args.test_filter)
58 all_tests = [t for t in all_tests \ 54 all_tests = [t for t in all_tests \
59 if t.qualified_name in filtered_test_names] 55 if t.qualified_name in filtered_test_names]
60 56
61 def TestRunnerFactory(device, _shard_index): 57 def TestRunnerFactory(device, _shard_index):
62 return test_runner.LinkerTestRunner(device, args.tool) 58 return test_runner.LinkerTestRunner(device, args.tool)
63 59
64 return (TestRunnerFactory, all_tests) 60 return (TestRunnerFactory, all_tests)
OLDNEW
« no previous file with comments | « build/android/pylib/instrumentation/test_runner.py ('k') | build/android/pylib/perf/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698