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

Unified Diff: scripts/slave/runtest.py

Issue 9601021: Add testing library to running tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Rebase and add a TODO for the item under discussion Created 8 years, 9 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 | « scripts/master/factory/chromium_factory.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/runtest.py
===================================================================
--- scripts/slave/runtest.py (revision 126418)
+++ scripts/slave/runtest.py (working copy)
@@ -315,6 +315,10 @@
os.environ['LD_LIBRARY_PATH'] = '%s:%s/lib:%s/lib.target' % (bin_dir, bin_dir,
bin_dir)
+ # Figure out what we want for a special llvmpipe directory.
+ if (options.llvmpipe_dir and os.path.exists(options.llvmpipe_dir)):
+ os.environ['LD_LIBRARY_PATH'] += ':' + options.llvmpipe_dir
+
if options.parallel:
supervisor_path = os.path.join(build_dir, '..', 'tools',
'sharding_supervisor',
@@ -440,6 +444,11 @@
def main():
+ import platform
+
+ xvfb_path = os.path.join(os.path.dirname(sys.argv[0]), '..', '..',
+ 'third_party', 'xvfb', platform.architecture()[0])
+
# Initialize logging.
log_level = logging.INFO
logging.basicConfig(level=log_level,
@@ -487,8 +496,16 @@
option_parser.add_option('', '--parallel', action='store_true',
help='Shard and run tests in parallel for speed '
'with sharding_supervisor.')
- option_parser.add_option('', '--special-xvfb-dir', default=os.path.join(
- os.path.dirname(sys.argv[0]), '..', '..', 'xvfb'),
+ option_parser.add_option('', '--llvmpipe', action='store_const',
+ value=xvfb_path, dest='llvmpipe_dir',
+ help='Use software gpu pipe directory.')
+ option_parser.add_option('', '--no-llvmpipe', action='store_false',
+ value=None, dest='llvmpipe_dir',
+ help='Do not use software gpu pipe directory.')
+ option_parser.add_option('', '--llvmpipe-dir',
+ default=None, dest='llvmpipe_dir',
+ help='Path to software gpu library directory.')
+ option_parser.add_option('', '--special-xvfb-dir', default=xvfb_path,
help='Path to virtual X server directory on Linux.')
option_parser.add_option('', '--special-xvfb', action='store_true',
default='auto',
« no previous file with comments | « scripts/master/factory/chromium_factory.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698