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

Side by Side Diff: scripts/slave/recipe_modules/chromium/steps.py

Issue 873403002: Add support for cc_perftests and other non-telemetry gtest based tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 re 5 import re
6 6
7 7
8 class Test(object): 8 class Test(object):
9 """ 9 """
10 Base class for tests that can be retried after deapplying a previously 10 Base class for tests that can be retried after deapplying a previously
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 annotate=annotate, 355 annotate=annotate,
356 python_mode=True, 356 python_mode=True,
357 results_url='https://chromeperf.appspot.com', 357 results_url='https://chromeperf.appspot.com',
358 perf_dashboard_id=test.get('perf_dashboard_id', test_name), 358 perf_dashboard_id=test.get('perf_dashboard_id', test_name),
359 perf_id=self.perf_id, 359 perf_id=self.perf_id,
360 test_type=test.get('perf_dashboard_id', test_name), 360 test_type=test.get('perf_dashboard_id', test_name),
361 xvfb=True, 361 xvfb=True,
362 chartjson_file=True) 362 chartjson_file=True)
363 except api.step.StepFailure as f: 363 except api.step.StepFailure as f:
364 exception = f 364 exception = f
365
366 gtests = api.chromium.list_gtest_perf_tests(
367 api.properties['buildername']).json.output
368 for test_name, test in sorted(gtests.iteritems()):
369 test_name = str(test_name)
370 annotate = api.chromium.get_annotate_by_test_name(test_name)
371 cmd = test['cmd'].split()
372 try:
373 api.chromium.runtest(
374 cmd[0],
375 args=cmd[1:],
376 name=test_name,
377 annotate=annotate,
378 python_mode=False,
379 results_url='https://chromeperf.appspot.com',
380 perf_dashboard_id=test.get('perf_dashboard_id', test_name),
381 perf_id=self.perf_id,
382 test_type=test.get('perf_dashboard_id', test_name),
383 xvfb=True,
384 chartjson_file=False)
385 except api.step.StepFailure as f:
386 exception = f
387
365 if exception: 388 if exception:
366 raise exception 389 raise exception
367 390
368 @staticmethod 391 @staticmethod
369 def compile_targets(_): 392 def compile_targets(_):
370 return [] 393 return []
371 394
372 395
373 class AndroidPerfTests(Test): 396 class AndroidPerfTests(Test):
374 def __init__(self, perf_id, num_shards): 397 def __init__(self, perf_id, num_shards):
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 GTestTest('crypto_unittests'), 1062 GTestTest('crypto_unittests'),
1040 GTestTest('gfx_unittests'), 1063 GTestTest('gfx_unittests'),
1041 GTestTest('url_unittests'), 1064 GTestTest('url_unittests'),
1042 GTestTest('content_unittests'), 1065 GTestTest('content_unittests'),
1043 GTestTest('net_unittests'), 1066 GTestTest('net_unittests'),
1044 GTestTest('ui_base_unittests'), 1067 GTestTest('ui_base_unittests'),
1045 GTestTest('ui_ios_unittests'), 1068 GTestTest('ui_ios_unittests'),
1046 GTestTest('sync_unit_tests'), 1069 GTestTest('sync_unit_tests'),
1047 GTestTest('sql_unittests'), 1070 GTestTest('sql_unittests'),
1048 ] 1071 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698