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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/chromium/steps.py
diff --git a/scripts/slave/recipe_modules/chromium/steps.py b/scripts/slave/recipe_modules/chromium/steps.py
index dabf74409065e474aece531c49a6a5124b8827f0..7e6c77a1c47b2b197cffd69c7e0d6bbb29990d66 100644
--- a/scripts/slave/recipe_modules/chromium/steps.py
+++ b/scripts/slave/recipe_modules/chromium/steps.py
@@ -362,6 +362,29 @@ class DynamicPerfTests(Test):
chartjson_file=True)
except api.step.StepFailure as f:
exception = f
+
+ gtests = api.chromium.list_gtest_perf_tests(
+ api.properties['buildername']).json.output
+ for test_name, test in sorted(gtests.iteritems()):
+ test_name = str(test_name)
+ annotate = api.chromium.get_annotate_by_test_name(test_name)
+ cmd = test['cmd'].split()
+ try:
+ api.chromium.runtest(
+ cmd[0],
+ args=cmd[1:],
+ name=test_name,
+ annotate=annotate,
+ python_mode=False,
+ results_url='https://chromeperf.appspot.com',
+ perf_dashboard_id=test.get('perf_dashboard_id', test_name),
+ perf_id=self.perf_id,
+ test_type=test.get('perf_dashboard_id', test_name),
+ xvfb=True,
+ chartjson_file=False)
+ except api.step.StepFailure as f:
+ exception = f
+
if exception:
raise exception

Powered by Google App Engine
This is Rietveld 408576698