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

Unified 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: formatting 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/linker/__init__.py ('k') | build/android/pylib/linker/test_case.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..029be05e13cdbcf43792800c7aa68c072bd03aba
--- /dev/null
+++ b/build/android/pylib/linker/setup.py
@@ -0,0 +1,34 @@
+# 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) ]
+
+ def TestRunnerFactory(device, shard_index):
+ return test_runner.LinkerTestRunner(
+ device, options.tool, options.push_deps,
+ options.cleanup_test_files)
+
+ return (TestRunnerFactory, all_tests)
« no previous file with comments | « build/android/pylib/linker/__init__.py ('k') | build/android/pylib/linker/test_case.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698