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

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

Issue 25525003: Add new Android test runner command to handle linker tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address marcus' issues. Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
(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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698