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

Side by Side Diff: build/android/pylib/constants.py

Issue 23726004: Add test_server_setup.py and add support for additional flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """Defines a set of constants shared by test runners and other scripts.""" 5 """Defines a set of constants shared by test runners and other scripts."""
6 6
7 import collections 7 import collections
8 import os 8 import os
9 import subprocess 9 import subprocess
10 import sys 10 import sys
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 # The net test server is started from port 10201. 93 # The net test server is started from port 10201.
94 # TODO(pliard): http://crbug.com/239014. Remove this dirty workaround once 94 # TODO(pliard): http://crbug.com/239014. Remove this dirty workaround once
95 # http://crbug.com/239014 is fixed properly. 95 # http://crbug.com/239014 is fixed properly.
96 TEST_SERVER_PORT_FIRST = 10201 96 TEST_SERVER_PORT_FIRST = 10201
97 TEST_SERVER_PORT_LAST = 30000 97 TEST_SERVER_PORT_LAST = 30000
98 # A file to record next valid port of test server. 98 # A file to record next valid port of test server.
99 TEST_SERVER_PORT_FILE = '/tmp/test_server_port' 99 TEST_SERVER_PORT_FILE = '/tmp/test_server_port'
100 TEST_SERVER_PORT_LOCKFILE = '/tmp/test_server_port.lock' 100 TEST_SERVER_PORT_LOCKFILE = '/tmp/test_server_port.lock'
101 101
102 TEST_SERVER_HOST = '127.0.0.1'
103 NET_TEST_SERVER_PATH = 'net/tools/testserver/testserver.py'
frankf 2013/08/29 00:07:19 Group this with lines 90-91 and use the same namin
nyquist 2013/08/29 23:59:43 Done.
104 SYNC_TEST_SERVER_PATH = 'sync/tools/testserver/sync_testserver.py'
105
102 TEST_EXECUTABLE_DIR = '/data/local/tmp' 106 TEST_EXECUTABLE_DIR = '/data/local/tmp'
103 # Directories for common java libraries for SDK build. 107 # Directories for common java libraries for SDK build.
104 # These constants are defined in build/android/ant/common.xml 108 # These constants are defined in build/android/ant/common.xml
105 SDK_BUILD_JAVALIB_DIR = 'lib.java' 109 SDK_BUILD_JAVALIB_DIR = 'lib.java'
106 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java' 110 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java'
107 SDK_BUILD_APKS_DIR = 'apks' 111 SDK_BUILD_APKS_DIR = 'apks'
108 112
109 # The directory on the device where perf test output gets saved to. 113 # The directory on the device where perf test output gets saved to.
110 DEVICE_PERF_OUTPUT_DIR = '/data/data/' + CHROME_PACKAGE + '/files' 114 DEVICE_PERF_OUTPUT_DIR = '/data/data/' + CHROME_PACKAGE + '/files'
111 115
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 except OSError: 147 except OSError:
144 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' 148 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.'
145 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 149 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
146 150
147 151
148 ADB_PATH = _GetADBPath() 152 ADB_PATH = _GetADBPath()
149 153
150 # Exit codes 154 # Exit codes
151 ERROR_EXIT_CODE = 1 155 ERROR_EXIT_CODE = 1
152 WARNING_EXIT_CODE = 88 156 WARNING_EXIT_CODE = 88
OLDNEW
« no previous file with comments | « no previous file | build/android/pylib/host_driven/test_case.py » ('j') | build/android/pylib/host_driven/test_case.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698