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

Side by Side Diff: tools/valgrind/common.py

Issue 6541014: Remove Wine + Valgrind code since nobody is working on it.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 10 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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 import logging 5 import logging
6 import os 6 import os
7 import signal 7 import signal
8 import subprocess 8 import subprocess
9 import sys 9 import sys
10 import time 10 import time
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 128
129 def IsMac(): 129 def IsMac():
130 return sys.platform.startswith('darwin') 130 return sys.platform.startswith('darwin')
131 131
132 132
133 def IsWindows(): 133 def IsWindows():
134 return sys.platform == 'cygwin' or sys.platform.startswith('win') 134 return sys.platform == 'cygwin' or sys.platform.startswith('win')
135 135
136 136
137 def IsWine():
138 """This needs to be set by the script that starts the buildbot, i.e.
139 /etc/init.d/buildbot, or manually on the command line."""
140 return (os.environ.get('WINE') and
141 os.environ.get('WINEPREFIX') and
142 os.environ.get('WINESERVER'))
143
144
145 def PlatformNames(): 137 def PlatformNames():
146 """Return an array of string to be used in paths for the platform 138 """Return an array of string to be used in paths for the platform
147 (e.g. suppressions, gtest filters, ignore files etc.) 139 (e.g. suppressions, gtest filters, ignore files etc.)
148 The first element of the array describes the 'main' platform 140 The first element of the array describes the 'main' platform
149 """ 141 """
150 # This has to be before IsLinux()
151 if IsWine():
152 return ['wine', 'win32']
153 if IsLinux(): 142 if IsLinux():
154 return ['linux'] 143 return ['linux']
155 if IsMac(): 144 if IsMac():
156 return ['mac'] 145 return ['mac']
157 if IsWindows(): 146 if IsWindows():
158 return ['win32'] 147 return ['win32']
159 raise NotImplementedError('Unknown platform "%s".' % sys.platform) 148 raise NotImplementedError('Unknown platform "%s".' % sys.platform)
OLDNEW
« no previous file with comments | « tools/valgrind/chrome_tests.py ('k') | tools/valgrind/gtest_exclude/base_unittests.gtest_wine.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698