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

Side by Side Diff: scripts/slave/recipes/ozone_ecs.py

Issue 2466823002: Remove recipe for ozone_ecs (Closed)
Patch Set: remove --no-spawn-dbus from runtest.py Created 4 years, 1 month 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
(Empty)
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from recipe_engine.types import freeze
6
7 DEPS = [
8 'depot_tools/bot_update',
9 'chromium',
10 'depot_tools/gclient',
11 'recipe_engine/path',
12 'recipe_engine/properties',
13 'recipe_engine/python',
14 'recipe_engine/step',
15 'depot_tools/tryserver',
16 ]
17
18 OZONE_TESTS = freeze([
19 # Linux tests.
20 'base_unittests',
21 # 'browser_tests', Not sensible.
22 'cacheinvalidation_unittests',
23 'cc_unittests',
24 'components_unittests',
25 'content_browsertests',
26 'content_unittests',
27 'crypto_unittests',
28 # 'dbus_unittests', Not sensible; use_dbus==0.
29 'device_unittests',
30 # 'google_apis_unittests', Not sensible.
31 'gpu_unittests',
32 # 'interactive_ui_tests', Not sensible.
33 'ipc_tests',
34 # 'jingle_unittests', Later.
35 'media_unittests',
36 'net_unittests',
37 'ozone_unittests',
38 'ppapi_unittests',
39 # 'printing_unittests', Not sensible.
40 'sandbox_linux_unittests',
41 'sql_unittests',
42 'ui_base_unittests',
43 # 'unit_tests', Not sensible.
44 'url_unittests',
45 # 'sync_integration_tests', Not specified in bug.
46 # 'chromium_swarm_tests', Not specified in bug.
47 ] + [
48 'aura_unittests',
49 'compositor_unittests',
50 'events_unittests',
51 'gfx_unittests',
52 'ui_touch_selection_unittests',
53 ])
54
55 tests_that_do_not_compile = freeze([
56 ])
57
58 tests_that_do_not_pass = freeze([
59 ])
60
61 dbus_tests = freeze([
62 'dbus_unittests',
63 ])
64
65 def RunSteps(api):
66
67 api.chromium.set_config('chromium', BUILD_CONFIG='Debug')
68 api.chromium.ensure_goma()
69 api.gclient.set_config('chromium', BUILD_CONFIG='Debug')
70
71 api.bot_update.ensure_checkout()
72
73 api.chromium.c.gyp_env.GYP_DEFINES['embedded'] = 1
74
75 api.chromium.runhooks()
76 api.chromium.compile(['content_shell'], name='compile content_shell')
77
78 try:
79 api.python('check ecs deps', api.path['checkout'].join('tools',
80 'check_ecs_deps', 'check_ecs_deps.py'),
81 cwd=api.chromium.c.build_dir.join(api.chromium.c.build_config_fs))
82 except api.step.StepFailure:
83 pass
84
85 tests_to_compile = list(set(OZONE_TESTS) - set(tests_that_do_not_compile))
86 tests_to_compile.sort()
87 api.chromium.compile(tests_to_compile, name='compile tests')
88
89 tests_to_run = list(set(tests_to_compile) - set(tests_that_do_not_pass))
90 #TODO(martiniss) convert loop
91 for x in sorted(tests_to_run):
92 api.chromium.runtest(x, xvfb=False, spawn_dbus=(x in dbus_tests))
93
94 # Compile the failing targets.
95 #TODO(martiniss) convert loop
96 for x in sorted(set(OZONE_TESTS) &
97 set(tests_that_do_not_compile)): # pragma: no cover
98 try:
99 api.chromium.compile([x], name='experimentally compile %s' % x)
100 except api.step.StepFailure:
101 pass
102
103 # Run the failing tests.
104 tests_to_try = list(set(tests_to_compile) & set(tests_that_do_not_pass))
105 #TODO(martiniss) convert loop
106 for x in sorted(tests_to_try): # pragma: no cover
107 try:
108 api.chromium.runtest(x, xvfb=False, name='experimentally run %s' % x)
109 except api.step.StepFailure:
110 pass
111
112 def GenTests(api):
113 yield (
114 api.test('basic') +
115 api.properties.scheduled(mastername="chromium.fyi",
116 buildername='linux_ecs_ozone',
117 slavename="test_slave")
118 )
119
120 yield (
121 api.test('trybot') +
122 api.properties.tryserver(mastername="chromium.fyi",
123 buildername='linux_ecs_ozone',
124 slavename="test_slave")
125 )
126
127 yield (
128 api.test('check_ecs_deps_fail') +
129 api.properties.scheduled(mastername="chromium.fyi",
130 buildername='linux_ecs_ozone',
131 slavename="test_slave") +
132 api.step_data('check ecs deps', retcode=1)
133 )
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/chromium/api.py ('k') | scripts/slave/recipes/ozone_ecs.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698