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

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

Issue 764013002: Make resources config ready for android test runner. (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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 "graphs": ["test", "Sub", "Leaf"], 247 "graphs": ["test", "Sub", "Leaf"],
248 "results": ["3", "2", "1"], 248 "results": ["3", "2", "1"],
249 "stddev": ""}, 249 "stddev": ""},
250 {"units": "score", 250 {"units": "score",
251 "graphs": ["test", "DeltaBlue"], 251 "graphs": ["test", "DeltaBlue"],
252 "results": ["200"], 252 "results": ["200"],
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", "file1.js", 257 (path.join("out", "x64.release", "d7"), "--flag", "run.js"),
258 "file2.js", "run.js"), 258 (path.join("out", "x64.release", "d7"), "--flag", "run.js"),
259 (path.join("out", "x64.release", "d7"), "--flag", "file1.js",
260 "file2.js", "run.js"),
261 (path.join("out", "x64.release", "d8"), "--flag", "run.js"), 259 (path.join("out", "x64.release", "d8"), "--flag", "run.js"),
262 (path.join("out", "x64.release", "d8"), "--flag", "run.js"), 260 (path.join("out", "x64.release", "d8"), "--flag", "run.js"),
263 (path.join("out", "x64.release", "d8"), "--flag", "run.js"), 261 (path.join("out", "x64.release", "d8"), "--flag", "run.js"),
264 (path.join("out", "x64.release", "d8"), "--flag", "--flag2", "run.js")) 262 (path.join("out", "x64.release", "d8"), "--flag", "--flag2", "run.js"))
265 263
266 def testOneRunStdDevRegExp(self): 264 def testOneRunStdDevRegExp(self):
267 test_input = dict(V8_JSON) 265 test_input = dict(V8_JSON)
268 test_input["stddev_regexp"] = "^%s\-stddev: (.+)$" 266 test_input["stddev_regexp"] = "^%s\-stddev: (.+)$"
269 self._WriteTestInput(test_input) 267 self._WriteTestInput(test_input)
270 self._MockCommand(["."], ["Richards: 1.234\nRichards-stddev: 0.23\n" 268 self._MockCommand(["."], ["Richards: 1.234\nRichards-stddev: 0.23\n"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 self._VerifyResults("test", "score", [ 384 self._VerifyResults("test", "score", [
387 {"name": "Richards", "results": [], "stddev": ""}, 385 {"name": "Richards", "results": [], "stddev": ""},
388 {"name": "DeltaBlue", "results": [], "stddev": ""}, 386 {"name": "DeltaBlue", "results": [], "stddev": ""},
389 ]) 387 ])
390 self._VerifyErrors([ 388 self._VerifyErrors([
391 "Regexp \"^Richards: (.+)$\" didn't match for test Richards.", 389 "Regexp \"^Richards: (.+)$\" didn't match for test Richards.",
392 "Regexp \"^DeltaBlue: (.+)$\" didn't match for test DeltaBlue.", 390 "Regexp \"^DeltaBlue: (.+)$\" didn't match for test DeltaBlue.",
393 ]) 391 ])
394 self._VerifyMock( 392 self._VerifyMock(
395 path.join("out", "x64.release", "d7"), "--flag", "run.js", timeout=70) 393 path.join("out", "x64.release", "d7"), "--flag", "run.js", timeout=70)
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