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

Side by Side Diff: tools/unittests/run_perf_test.py

Issue 811483008: Make perf test runner more robust. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « tools/run_perf.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 the V8 project authors. All rights reserved. 2 # Copyright 2014 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 from collections import namedtuple 6 from collections import namedtuple
7 import coverage 7 import coverage
8 import json 8 import json
9 from mock import DEFAULT 9 from mock import DEFAULT
10 from mock import MagicMock 10 from mock import MagicMock
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 a += arg[1:] 167 a += arg[1:]
168 expected.append(((a,), {"timeout": kwargs.get("timeout", 60)})) 168 expected.append(((a,), {"timeout": kwargs.get("timeout", 60)}))
169 self.assertEquals(expected, commands.Execute.call_args_list) 169 self.assertEquals(expected, commands.Execute.call_args_list)
170 170
171 def testOneRun(self): 171 def testOneRun(self):
172 self._WriteTestInput(V8_JSON) 172 self._WriteTestInput(V8_JSON)
173 self._MockCommand(["."], ["x\nRichards: 1.234\nDeltaBlue: 10657567\ny\n"]) 173 self._MockCommand(["."], ["x\nRichards: 1.234\nDeltaBlue: 10657567\ny\n"])
174 self.assertEquals(0, self._CallMain()) 174 self.assertEquals(0, self._CallMain())
175 self._VerifyResults("test", "score", [ 175 self._VerifyResults("test", "score", [
176 {"name": "Richards", "results": ["1.234"], "stddev": ""}, 176 {"name": "Richards", "results": ["1.234"], "stddev": ""},
177 {"name": "DeltaBlue", "results": ["10657567"], "stddev": ""}, 177 {"name": "DeltaBlue", "results": ["10657567.0"], "stddev": ""},
178 ]) 178 ])
179 self._VerifyErrors([]) 179 self._VerifyErrors([])
180 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js") 180 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js")
181 181
182 def testOneRunWithTestFlags(self): 182 def testOneRunWithTestFlags(self):
183 test_input = dict(V8_JSON) 183 test_input = dict(V8_JSON)
184 test_input["test_flags"] = ["2", "test_name"] 184 test_input["test_flags"] = ["2", "test_name"]
185 self._WriteTestInput(test_input) 185 self._WriteTestInput(test_input)
186 self._MockCommand(["."], ["Richards: 1.234\nDeltaBlue: 10657567"]) 186 self._MockCommand(["."], ["Richards: 1.234\nDeltaBlue: 10657567"])
187 self.assertEquals(0, self._CallMain()) 187 self.assertEquals(0, self._CallMain())
188 self._VerifyResults("test", "score", [ 188 self._VerifyResults("test", "score", [
189 {"name": "Richards", "results": ["1.234"], "stddev": ""}, 189 {"name": "Richards", "results": ["1.234"], "stddev": ""},
190 {"name": "DeltaBlue", "results": ["10657567"], "stddev": ""}, 190 {"name": "DeltaBlue", "results": ["10657567.0"], "stddev": ""},
191 ]) 191 ])
192 self._VerifyErrors([]) 192 self._VerifyErrors([])
193 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js", 193 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js",
194 "--", "2", "test_name") 194 "--", "2", "test_name")
195 195
196 def testTwoRuns_Units_SuiteName(self): 196 def testTwoRuns_Units_SuiteName(self):
197 test_input = dict(V8_JSON) 197 test_input = dict(V8_JSON)
198 test_input["run_count"] = 2 198 test_input["run_count"] = 2
199 test_input["name"] = "v8" 199 test_input["name"] = "v8"
200 test_input["units"] = "ms" 200 test_input["units"] = "ms"
201 self._WriteTestInput(test_input) 201 self._WriteTestInput(test_input)
202 self._MockCommand([".", "."], 202 self._MockCommand([".", "."],
203 ["Richards: 100\nDeltaBlue: 200\n", 203 ["Richards: 100\nDeltaBlue: 200\n",
204 "Richards: 50\nDeltaBlue: 300\n"]) 204 "Richards: 50\nDeltaBlue: 300\n"])
205 self.assertEquals(0, self._CallMain()) 205 self.assertEquals(0, self._CallMain())
206 self._VerifyResults("v8", "ms", [ 206 self._VerifyResults("v8", "ms", [
207 {"name": "Richards", "results": ["50", "100"], "stddev": ""}, 207 {"name": "Richards", "results": ["50.0", "100.0"], "stddev": ""},
208 {"name": "DeltaBlue", "results": ["300", "200"], "stddev": ""}, 208 {"name": "DeltaBlue", "results": ["300.0", "200.0"], "stddev": ""},
209 ]) 209 ])
210 self._VerifyErrors([]) 210 self._VerifyErrors([])
211 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js") 211 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js")
212 212
213 def testTwoRuns_SubRegexp(self): 213 def testTwoRuns_SubRegexp(self):
214 test_input = dict(V8_JSON) 214 test_input = dict(V8_JSON)
215 test_input["run_count"] = 2 215 test_input["run_count"] = 2
216 del test_input["results_regexp"] 216 del test_input["results_regexp"]
217 test_input["tests"][0]["results_regexp"] = "^Richards: (.+)$" 217 test_input["tests"][0]["results_regexp"] = "^Richards: (.+)$"
218 test_input["tests"][1]["results_regexp"] = "^DeltaBlue: (.+)$" 218 test_input["tests"][1]["results_regexp"] = "^DeltaBlue: (.+)$"
219 self._WriteTestInput(test_input) 219 self._WriteTestInput(test_input)
220 self._MockCommand([".", "."], 220 self._MockCommand([".", "."],
221 ["Richards: 100\nDeltaBlue: 200\n", 221 ["Richards: 100\nDeltaBlue: 200\n",
222 "Richards: 50\nDeltaBlue: 300\n"]) 222 "Richards: 50\nDeltaBlue: 300\n"])
223 self.assertEquals(0, self._CallMain()) 223 self.assertEquals(0, self._CallMain())
224 self._VerifyResults("test", "score", [ 224 self._VerifyResults("test", "score", [
225 {"name": "Richards", "results": ["50", "100"], "stddev": ""}, 225 {"name": "Richards", "results": ["50.0", "100.0"], "stddev": ""},
226 {"name": "DeltaBlue", "results": ["300", "200"], "stddev": ""}, 226 {"name": "DeltaBlue", "results": ["300.0", "200.0"], "stddev": ""},
227 ]) 227 ])
228 self._VerifyErrors([]) 228 self._VerifyErrors([])
229 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js") 229 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js")
230 230
231 def testNestedSuite(self): 231 def testNestedSuite(self):
232 self._WriteTestInput(V8_NESTED_SUITES_JSON) 232 self._WriteTestInput(V8_NESTED_SUITES_JSON)
233 self._MockCommand(["delta_blue", "sub/leaf", "richards"], 233 self._MockCommand(["delta_blue", "sub/leaf", "richards"],
234 ["DeltaBlue: 200\n", 234 ["DeltaBlue: 200\n",
235 "Simple: 1 ms.\n", 235 "Simple: 1 ms.\n",
236 "Simple: 2 ms.\n", 236 "Simple: 2 ms.\n",
237 "Simple: 3 ms.\n", 237 "Simple: 3 ms.\n",
238 "Richards: 100\n", 238 "Richards: 100\n",
239 "Richards: 50\n"]) 239 "Richards: 50\n"])
240 self.assertEquals(0, self._CallMain()) 240 self.assertEquals(0, self._CallMain())
241 self.assertEquals([ 241 self.assertEquals([
242 {"units": "score", 242 {"units": "score",
243 "graphs": ["test", "Richards"], 243 "graphs": ["test", "Richards"],
244 "results": ["50", "100"], 244 "results": ["50.0", "100.0"],
245 "stddev": ""}, 245 "stddev": ""},
246 {"units": "ms", 246 {"units": "ms",
247 "graphs": ["test", "Sub", "Leaf"], 247 "graphs": ["test", "Sub", "Leaf"],
248 "results": ["3", "2", "1"], 248 "results": ["3.0", "2.0", "1.0"],
249 "stddev": ""}, 249 "stddev": ""},
250 {"units": "score", 250 {"units": "score",
251 "graphs": ["test", "DeltaBlue"], 251 "graphs": ["test", "DeltaBlue"],
252 "results": ["200"], 252 "results": ["200.0"],
253 "stddev": ""}, 253 "stddev": ""},
254 ], self._LoadResults()["traces"]) 254 ], self._LoadResults()["traces"])
255 self._VerifyErrors([]) 255 self._VerifyErrors([])
256 self._VerifyMockMultiple( 256 self._VerifyMockMultiple(
257 (path.join("out", "x64.release", "d7"), "--flag", "run.js"), 257 (path.join("out", "x64.release", "d7"), "--flag", "run.js"),
258 (path.join("out", "x64.release", "d7"), "--flag", "run.js"), 258 (path.join("out", "x64.release", "d7"), "--flag", "run.js"),
259 (path.join("out", "x64.release", "d8"), "--flag", "run.js"), 259 (path.join("out", "x64.release", "d8"), "--flag", "run.js"),
260 (path.join("out", "x64.release", "d8"), "--flag", "run.js"), 260 (path.join("out", "x64.release", "d8"), "--flag", "run.js"),
261 (path.join("out", "x64.release", "d8"), "--flag", "run.js"), 261 (path.join("out", "x64.release", "d8"), "--flag", "run.js"),
262 (path.join("out", "x64.release", "d8"), "--flag", "--flag2", "run.js")) 262 (path.join("out", "x64.release", "d8"), "--flag", "--flag2", "run.js"))
263 263
264 def testOneRunStdDevRegExp(self): 264 def testOneRunStdDevRegExp(self):
265 test_input = dict(V8_JSON) 265 test_input = dict(V8_JSON)
266 test_input["stddev_regexp"] = "^%s\-stddev: (.+)$" 266 test_input["stddev_regexp"] = "^%s\-stddev: (.+)$"
267 self._WriteTestInput(test_input) 267 self._WriteTestInput(test_input)
268 self._MockCommand(["."], ["Richards: 1.234\nRichards-stddev: 0.23\n" 268 self._MockCommand(["."], ["Richards: 1.234\nRichards-stddev: 0.23\n"
269 "DeltaBlue: 10657567\nDeltaBlue-stddev: 106\n"]) 269 "DeltaBlue: 10657567\nDeltaBlue-stddev: 106\n"])
270 self.assertEquals(0, self._CallMain()) 270 self.assertEquals(0, self._CallMain())
271 self._VerifyResults("test", "score", [ 271 self._VerifyResults("test", "score", [
272 {"name": "Richards", "results": ["1.234"], "stddev": "0.23"}, 272 {"name": "Richards", "results": ["1.234"], "stddev": "0.23"},
273 {"name": "DeltaBlue", "results": ["10657567"], "stddev": "106"}, 273 {"name": "DeltaBlue", "results": ["10657567.0"], "stddev": "106"},
274 ]) 274 ])
275 self._VerifyErrors([]) 275 self._VerifyErrors([])
276 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js") 276 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js")
277 277
278 def testTwoRunsStdDevRegExp(self): 278 def testTwoRunsStdDevRegExp(self):
279 test_input = dict(V8_JSON) 279 test_input = dict(V8_JSON)
280 test_input["stddev_regexp"] = "^%s\-stddev: (.+)$" 280 test_input["stddev_regexp"] = "^%s\-stddev: (.+)$"
281 test_input["run_count"] = 2 281 test_input["run_count"] = 2
282 self._WriteTestInput(test_input) 282 self._WriteTestInput(test_input)
283 self._MockCommand(["."], ["Richards: 3\nRichards-stddev: 0.7\n" 283 self._MockCommand(["."], ["Richards: 3\nRichards-stddev: 0.7\n"
284 "DeltaBlue: 6\nDeltaBlue-boom: 0.9\n", 284 "DeltaBlue: 6\nDeltaBlue-boom: 0.9\n",
285 "Richards: 2\nRichards-stddev: 0.5\n" 285 "Richards: 2\nRichards-stddev: 0.5\n"
286 "DeltaBlue: 5\nDeltaBlue-stddev: 0.8\n"]) 286 "DeltaBlue: 5\nDeltaBlue-stddev: 0.8\n"])
287 self.assertEquals(1, self._CallMain()) 287 self.assertEquals(1, self._CallMain())
288 self._VerifyResults("test", "score", [ 288 self._VerifyResults("test", "score", [
289 {"name": "Richards", "results": ["2", "3"], "stddev": "0.7"}, 289 {"name": "Richards", "results": ["2.0", "3.0"], "stddev": "0.7"},
290 {"name": "DeltaBlue", "results": ["5", "6"], "stddev": "0.8"}, 290 {"name": "DeltaBlue", "results": ["5.0", "6.0"], "stddev": "0.8"},
291 ]) 291 ])
292 self._VerifyErrors( 292 self._VerifyErrors(
293 ["Test Richards should only run once since a stddev is provided " 293 ["Test Richards should only run once since a stddev is provided "
294 "by the test.", 294 "by the test.",
295 "Test DeltaBlue should only run once since a stddev is provided " 295 "Test DeltaBlue should only run once since a stddev is provided "
296 "by the test.", 296 "by the test.",
297 "Regexp \"^DeltaBlue\-stddev: (.+)$\" didn't match for test " 297 "Regexp \"^DeltaBlue\-stddev: (.+)$\" didn't match for test "
298 "DeltaBlue."]) 298 "DeltaBlue."])
299 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js") 299 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js")
300 300
301 def testBuildbot(self): 301 def testBuildbot(self):
302 self._WriteTestInput(V8_JSON) 302 self._WriteTestInput(V8_JSON)
303 self._MockCommand(["."], ["Richards: 1.234\nDeltaBlue: 10657567\n"]) 303 self._MockCommand(["."], ["Richards: 1.234\nDeltaBlue: 10657567\n"])
304 self.assertEquals(0, self._CallMain("--buildbot")) 304 self.assertEquals(0, self._CallMain("--buildbot"))
305 self._VerifyResults("test", "score", [ 305 self._VerifyResults("test", "score", [
306 {"name": "Richards", "results": ["1.234"], "stddev": ""}, 306 {"name": "Richards", "results": ["1.234"], "stddev": ""},
307 {"name": "DeltaBlue", "results": ["10657567"], "stddev": ""}, 307 {"name": "DeltaBlue", "results": ["10657567.0"], "stddev": ""},
308 ]) 308 ])
309 self._VerifyErrors([]) 309 self._VerifyErrors([])
310 self._VerifyMock(path.join("out", "Release", "d7"), "--flag", "run.js") 310 self._VerifyMock(path.join("out", "Release", "d7"), "--flag", "run.js")
311 311
312 def testBuildbotWithTotal(self): 312 def testBuildbotWithTotal(self):
313 test_input = dict(V8_JSON) 313 test_input = dict(V8_JSON)
314 test_input["total"] = True 314 test_input["total"] = True
315 self._WriteTestInput(test_input) 315 self._WriteTestInput(test_input)
316 self._MockCommand(["."], ["Richards: 1.234\nDeltaBlue: 10657567\n"]) 316 self._MockCommand(["."], ["Richards: 1.234\nDeltaBlue: 10657567\n"])
317 self.assertEquals(0, self._CallMain("--buildbot")) 317 self.assertEquals(0, self._CallMain("--buildbot"))
318 self._VerifyResults("test", "score", [ 318 self._VerifyResults("test", "score", [
319 {"name": "Richards", "results": ["1.234"], "stddev": ""}, 319 {"name": "Richards", "results": ["1.234"], "stddev": ""},
320 {"name": "DeltaBlue", "results": ["10657567"], "stddev": ""}, 320 {"name": "DeltaBlue", "results": ["10657567.0"], "stddev": ""},
321 {"name": "Total", "results": ["3626.49109719"], "stddev": ""}, 321 {"name": "Total", "results": ["3626.49109719"], "stddev": ""},
322 ]) 322 ])
323 self._VerifyErrors([]) 323 self._VerifyErrors([])
324 self._VerifyMock(path.join("out", "Release", "d7"), "--flag", "run.js") 324 self._VerifyMock(path.join("out", "Release", "d7"), "--flag", "run.js")
325 325
326 def testBuildbotWithTotalAndErrors(self): 326 def testBuildbotWithTotalAndErrors(self):
327 test_input = dict(V8_JSON) 327 test_input = dict(V8_JSON)
328 test_input["total"] = True 328 test_input["total"] = True
329 self._WriteTestInput(test_input) 329 self._WriteTestInput(test_input)
330 self._MockCommand(["."], ["x\nRichaards: 1.234\nDeltaBlue: 10657567\ny\n"]) 330 self._MockCommand(["."], ["x\nRichards: bla\nDeltaBlue: 10657567\ny\n"])
331 self.assertEquals(1, self._CallMain("--buildbot")) 331 self.assertEquals(1, self._CallMain("--buildbot"))
332 self._VerifyResults("test", "score", [ 332 self._VerifyResults("test", "score", [
333 {"name": "Richards", "results": [], "stddev": ""}, 333 {"name": "Richards", "results": [], "stddev": ""},
334 {"name": "DeltaBlue", "results": ["10657567"], "stddev": ""}, 334 {"name": "DeltaBlue", "results": ["10657567.0"], "stddev": ""},
335 ]) 335 ])
336 self._VerifyErrors( 336 self._VerifyErrors(
337 ["Regexp \"^Richards: (.+)$\" didn't match for test Richards.", 337 ["Regexp \"^Richards: (.+)$\" "
338 "returned a non-numeric for test Richards.",
338 "Not all traces have the same number of results."]) 339 "Not all traces have the same number of results."])
339 self._VerifyMock(path.join("out", "Release", "d7"), "--flag", "run.js") 340 self._VerifyMock(path.join("out", "Release", "d7"), "--flag", "run.js")
340 341
341 def testRegexpNoMatch(self): 342 def testRegexpNoMatch(self):
342 self._WriteTestInput(V8_JSON) 343 self._WriteTestInput(V8_JSON)
343 self._MockCommand(["."], ["x\nRichaards: 1.234\nDeltaBlue: 10657567\ny\n"]) 344 self._MockCommand(["."], ["x\nRichaards: 1.234\nDeltaBlue: 10657567\ny\n"])
344 self.assertEquals(1, self._CallMain()) 345 self.assertEquals(1, self._CallMain())
345 self._VerifyResults("test", "score", [ 346 self._VerifyResults("test", "score", [
346 {"name": "Richards", "results": [], "stddev": ""}, 347 {"name": "Richards", "results": [], "stddev": ""},
347 {"name": "DeltaBlue", "results": ["10657567"], "stddev": ""}, 348 {"name": "DeltaBlue", "results": ["10657567.0"], "stddev": ""},
348 ]) 349 ])
349 self._VerifyErrors( 350 self._VerifyErrors(
350 ["Regexp \"^Richards: (.+)$\" didn't match for test Richards."]) 351 ["Regexp \"^Richards: (.+)$\" didn't match for test Richards."])
351 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js") 352 self._VerifyMock(path.join("out", "x64.release", "d7"), "--flag", "run.js")
352 353
353 def testOneRunGeneric(self): 354 def testOneRunGeneric(self):
354 test_input = dict(V8_GENERIC_JSON) 355 test_input = dict(V8_GENERIC_JSON)
355 self._WriteTestInput(test_input) 356 self._WriteTestInput(test_input)
356 self._MockCommand(["."], [ 357 self._MockCommand(["."], [
357 "RESULT Infra: Constant1= 11 count\n" 358 "RESULT Infra: Constant1= 11 count\n"
358 "RESULT Infra: Constant2= [10,5,10,15] count\n" 359 "RESULT Infra: Constant2= [10,5,10,15] count\n"
359 "RESULT Infra: Constant3= {12,1.2} count\n"]) 360 "RESULT Infra: Constant3= {12,1.2} count\n"
360 self.assertEquals(0, self._CallMain()) 361 "RESULT Infra: Constant4= [10,5,error,15] count\n"])
362 self.assertEquals(1, self._CallMain())
361 self.assertEquals([ 363 self.assertEquals([
362 {"units": "count", 364 {"units": "count",
363 "graphs": ["test", "Infra", "Constant1"], 365 "graphs": ["test", "Infra", "Constant1"],
364 "results": ["11"], 366 "results": ["11.0"],
365 "stddev": ""}, 367 "stddev": ""},
366 {"units": "count", 368 {"units": "count",
367 "graphs": ["test", "Infra", "Constant2"], 369 "graphs": ["test", "Infra", "Constant2"],
368 "results": ["10", "5", "10", "15"], 370 "results": ["10.0", "5.0", "10.0", "15.0"],
369 "stddev": ""}, 371 "stddev": ""},
370 {"units": "count", 372 {"units": "count",
371 "graphs": ["test", "Infra", "Constant3"], 373 "graphs": ["test", "Infra", "Constant3"],
372 "results": ["12"], 374 "results": ["12.0"],
373 "stddev": "1.2"}, 375 "stddev": "1.2"},
376 {"units": "count",
377 "graphs": ["test", "Infra", "Constant4"],
378 "results": [],
379 "stddev": ""},
374 ], self._LoadResults()["traces"]) 380 ], self._LoadResults()["traces"])
375 self._VerifyErrors([]) 381 self._VerifyErrors(["Found non-numeric in test/Infra/Constant4"])
376 self._VerifyMock(path.join("out", "x64.release", "cc"), "--flag", "") 382 self._VerifyMock(path.join("out", "x64.release", "cc"), "--flag", "")
377 383
378 def testOneRunTimingOut(self): 384 def testOneRunTimingOut(self):
379 test_input = dict(V8_JSON) 385 test_input = dict(V8_JSON)
380 test_input["timeout"] = 70 386 test_input["timeout"] = 70
381 self._WriteTestInput(test_input) 387 self._WriteTestInput(test_input)
382 self._MockCommand(["."], [""], timed_out=True) 388 self._MockCommand(["."], [""], timed_out=True)
383 self.assertEquals(1, self._CallMain()) 389 self.assertEquals(1, self._CallMain())
384 self._VerifyResults("test", "score", [ 390 self._VerifyResults("test", "score", [
385 {"name": "Richards", "results": [], "stddev": ""}, 391 {"name": "Richards", "results": [], "stddev": ""},
(...skipping 15 matching lines...) Expand all
401 platform.PostExecution = MagicMock(return_value=None) 407 platform.PostExecution = MagicMock(return_value=None)
402 platform.PreTests = MagicMock(return_value=None) 408 platform.PreTests = MagicMock(return_value=None)
403 platform.Run = MagicMock( 409 platform.Run = MagicMock(
404 return_value="Richards: 1.234\nDeltaBlue: 10657567\n") 410 return_value="Richards: 1.234\nDeltaBlue: 10657567\n")
405 run_perf.AndroidPlatform = MagicMock(return_value=platform) 411 run_perf.AndroidPlatform = MagicMock(return_value=platform)
406 self.assertEquals( 412 self.assertEquals(
407 0, self._CallMain("--android-build-tools", "/some/dir", 413 0, self._CallMain("--android-build-tools", "/some/dir",
408 "--arch", "android_arm")) 414 "--arch", "android_arm"))
409 self._VerifyResults("test", "score", [ 415 self._VerifyResults("test", "score", [
410 {"name": "Richards", "results": ["1.234"], "stddev": ""}, 416 {"name": "Richards", "results": ["1.234"], "stddev": ""},
411 {"name": "DeltaBlue", "results": ["10657567"], "stddev": ""}, 417 {"name": "DeltaBlue", "results": ["10657567.0"], "stddev": ""},
412 ]) 418 ])
OLDNEW
« no previous file with comments | « tools/run_perf.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698