• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python2
2# Copyright 2020 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6import collections
7
8CONFIG = {}
9
10CONFIG['TEST_NAME'] = 'cheets_CTS_R'
11CONFIG['DOC_TITLE'] = 'Android Compatibility Test Suite (CTS)'
12CONFIG['MOBLAB_SUITE_NAME'] = 'suite:cts'
13CONFIG['COPYRIGHT_YEAR'] = 2020
14CONFIG['AUTHKEY'] = ''
15
16# Both arm, x86 tests results normally is below 200MB.
17# 1000MB should be sufficient for CTS tests and dump logs for android-cts.
18CONFIG['LARGE_MAX_RESULT_SIZE'] = 1000 * 1024
19
20# Individual module normal produces less results than all modules, which is
21# ranging from 4MB to 50MB. 500MB should be sufficient to handle all the cases.
22CONFIG['NORMAL_MAX_RESULT_SIZE'] = 500 * 1024
23
24CONFIG['TRADEFED_CTS_COMMAND'] = 'cts'
25CONFIG['TRADEFED_RETRY_COMMAND'] = 'retry'
26CONFIG['TRADEFED_DISABLE_REBOOT'] = False
27CONFIG['TRADEFED_DISABLE_REBOOT_ON_COLLECTION'] = True
28CONFIG['TRADEFED_MAY_SKIP_DEVICE_INFO'] = False
29CONFIG['TRADEFED_EXECUTABLE_PATH'] = 'android-cts/tools/cts-tradefed'
30CONFIG['TRADEFED_IGNORE_BUSINESS_LOGIC_FAILURE'] = False
31
32# On moblab everything runs in the same suite.
33CONFIG['INTERNAL_SUITE_NAMES'] = ['suite:arc-cts-r']
34CONFIG['QUAL_SUITE_NAMES'] = []
35
36CONFIG['CONTROLFILE_TEST_FUNCTION_NAME'] = 'run_TS'
37CONFIG['CONTROLFILE_WRITE_SIMPLE_QUAL_AND_REGRESS'] = False
38CONFIG['CONTROLFILE_WRITE_CAMERA'] = False
39CONFIG['CONTROLFILE_WRITE_EXTRA'] = True
40
41# The dashboard suppresses upload to APFE for GS directories (based on autotest
42# tag) that contain 'tradefed-run-collect-tests'. b/119640440
43# Do not change the name/tag without adjusting the dashboard.
44_COLLECT = 'tradefed-run-collect-tests-only-internal'
45_PUBLIC_COLLECT = 'tradefed-run-collect-tests-only'
46
47CONFIG['LAB_DEPENDENCY'] = {'x86': ['cts_abi_x86']}
48
49CONFIG['CTS_JOB_RETRIES_IN_PUBLIC'] = 1
50CONFIG['CTS_QUAL_RETRIES'] = 9
51CONFIG['CTS_MAX_RETRIES'] = {}
52
53# Timeout in hours.
54CONFIG['CTS_TIMEOUT_DEFAULT'] = 1.0
55CONFIG['CTS_TIMEOUT'] = {
56        'CtsAutoFillServiceTestCases': 2.5,  # TODO(b/134662826)
57        'CtsDeqpTestCases': 30.0,
58        'CtsDeqpTestCases.dEQP-EGL': 2.0,
59        'CtsDeqpTestCases.dEQP-GLES2': 2.0,
60        'CtsDeqpTestCases.dEQP-GLES3': 6.0,
61        'CtsDeqpTestCases.dEQP-GLES31': 6.0,
62        'CtsDeqpTestCases.dEQP-VK': 15.0,
63        'CtsFileSystemTestCases': 3.0,
64        'CtsHardwareTestCases': 2.0,
65        'CtsIcuTestCases': 2.0,
66        'CtsLibcoreOjTestCases': 2.0,
67        'CtsMediaStressTestCases': 5.0,
68        'CtsMediaTestCases': 10.0,
69        'CtsMediaTestCases.video': 10.0,
70        'CtsNNAPIBenchmarkTestCases': 2.0,
71        'CtsPrintTestCases': 1.5,
72        'CtsSecurityTestCases': 20.0,
73        'CtsSecurityTestCases[instant]': 20.0,
74        'CtsSensorTestCases': 2.0,
75        'CtsStatsdHostTestCases': 2.0,
76        'CtsVideoTestCases': 1.5,
77        'CtsWidgetTestCases': 2.0,
78        _COLLECT: 2.5,
79        _PUBLIC_COLLECT: 2.5,
80}
81
82# Any test that runs as part as blocking BVT needs to be stable and fast. For
83# this reason we enforce a tight timeout on these modules/jobs.
84# Timeout in hours. (0.1h = 6 minutes)
85CONFIG['BVT_TIMEOUT'] = 0.1
86# We allow a very long runtime for qualification (2 days).
87CONFIG['QUAL_TIMEOUT'] = 48
88
89CONFIG['QUAL_BOOKMARKS'] = sorted([])
90
91CONFIG['SMOKE'] = []
92
93CONFIG['BVT_ARC'] = []
94
95CONFIG['BVT_PERBUILD'] = [
96        'CtsAccelerationTestCases',
97        'CtsMidiTestCases',
98]
99
100CONFIG['NEEDS_POWER_CYCLE'] = []
101
102CONFIG['HARDWARE_DEPENDENT_MODULES'] = []
103
104# The suite is divided based on the run-time hint in the *.config file.
105CONFIG['VMTEST_INFO_SUITES'] = collections.OrderedDict()
106
107# Modules that are known to download and/or push media file assets.
108CONFIG['MEDIA_MODULES'] = [
109        'CtsMediaTestCases',
110        'CtsMediaStressTestCases',
111        'CtsMediaBitstreamsTestCases',
112]
113
114CONFIG['NEEDS_PUSH_MEDIA'] = CONFIG['MEDIA_MODULES'] + [
115        'CtsMediaTestCases.audio',
116        'CtsMediaTestCases.video',
117]
118
119# Modules that are known to need the default apps of Chrome (eg. Files.app).
120CONFIG['ENABLE_DEFAULT_APPS'] = [
121        'CtsAppSecurityHostTestCases',
122        'CtsContentTestCases',
123]
124
125# Run `eject` for (and only for) each device with RM=1 in lsblk output.
126_EJECT_REMOVABLE_DISK_COMMAND = (
127        "\'lsblk -do NAME,RM | sed -n s/1$//p | xargs -n1 eject\'")
128
129_WIFI_CONNECT_COMMANDS = [
130        # These needs to be in order.
131        "'/usr/local/autotest/cros/scripts/wifi connect %s %s\' % (ssid, wifipass)",
132        "'/usr/local/autotest/cros/scripts/reorder-services-moblab.sh wifi'"
133]
134
135# Preconditions applicable to public and internal tests.
136CONFIG['PRECONDITION'] = {}
137CONFIG['LOGIN_PRECONDITION'] = {}
138
139# Preconditions applicable to public tests.
140CONFIG['PUBLIC_PRECONDITION'] = {
141        'CtsHostsideNetworkTests': _WIFI_CONNECT_COMMANDS,
142        'CtsLibcoreTestCases': _WIFI_CONNECT_COMMANDS,
143        'CtsNetTestCases': _WIFI_CONNECT_COMMANDS,
144        'CtsJobSchedulerTestCases': _WIFI_CONNECT_COMMANDS,
145        'CtsUsageStatsTestCases': _WIFI_CONNECT_COMMANDS,
146        'CtsStatsdHostTestCases': _WIFI_CONNECT_COMMANDS,
147}
148CONFIG['PUBLIC_DEPENDENCIES'] = {
149        'CtsCameraTestCases': ['lighting'],
150        'CtsMediaTestCases': ['noloopback'],
151}
152
153CONFIG['PUBLIC_OVERRIDE_TEST_PRIORITY'] = {
154        _PUBLIC_COLLECT: 70,
155        'CtsDeqpTestCases': 70,
156        'CtsDeqpTestCases': 70,
157        'CtsMediaTestCases': 70,
158        'CtsMediaStressTestCases': 70,
159        'CtsSecurityTestCases': 70,
160        'CtsCameraTestCases': 70
161}
162
163# This information is changed based on regular analysis of the failure rate on
164# partner moblabs.
165CONFIG['PUBLIC_MODULE_RETRY_COUNT'] = {}
166
167# This information is changed based on regular analysis of the job run time on
168# partner moblabs.
169
170CONFIG['OVERRIDE_TEST_LENGTH'] = {
171        'CtsDeqpTestCases': 4,  # LONG
172        'CtsMediaTestCases': 4,
173        'CtsMediaStressTestCases': 4,
174        'CtsSecurityTestCases': 4,
175        'CtsCameraTestCases': 4,
176        # Even though collect tests doesn't run very long, it must be the very first
177        # job executed inside of the suite. Hence it is the only 'LENGTHY' test.
178        _COLLECT: 5,  # LENGTHY
179        _PUBLIC_COLLECT: 5,  # LENGTHY
180}
181
182# Enabling --logcat-on-failure can extend total run time significantly if
183# individual tests finish in the order of 10ms or less (b/118836700). Specify
184# modules here to not enable the flag.
185CONFIG['DISABLE_LOGCAT_ON_FAILURE'] = set([
186        'all',
187        'CtsDeqpTestCases',
188        'CtsDeqpTestCases.dEQP-EGL',
189        'CtsDeqpTestCases.dEQP-GLES2',
190        'CtsDeqpTestCases.dEQP-GLES3',
191        'CtsDeqpTestCases.dEQP-GLES31',
192        'CtsDeqpTestCases.dEQP-VK',
193        'CtsLibcoreTestCases',
194])
195
196CONFIG['EXTRA_MODULES'] = {
197        'CtsDeqpTestCases': {
198                'SUBMODULES':
199                set([
200                        'CtsDeqpTestCases.dEQP-EGL',
201                        'CtsDeqpTestCases.dEQP-GLES2',
202                        'CtsDeqpTestCases.dEQP-GLES3',
203                        'CtsDeqpTestCases.dEQP-GLES31',
204                        'CtsDeqpTestCases.dEQP-VK'
205                ]),
206                'SUITES': ['suite:arc-cts-r'],
207        },
208        'CtsMediaTestCases': {
209                'SUBMODULES': set([
210                        'CtsMediaTestCases.audio',
211                        'CtsMediaTestCases.video',
212                ]),
213                'SUITES': ['suite:arc-cts-r'],
214        },
215        'CtsWindowManagerDeviceTestCases': {
216                'SUBMODULES': set([
217                        'CtsWindowManager.A',
218                        'CtsWindowManager.C',
219                        'CtsWindowManager.D',
220                        'CtsWindowManager.Ensure',
221                        'CtsWindowManager.F',
222                        'CtsWindowManager.L',
223                        'CtsWindowManager.M',
224                        'CtsWindowManager.Override',
225                        'CtsWindowManager.P',
226                        'CtsWindowManager.R',
227                        'CtsWindowManager.S',
228                        'CtsWindowManager.T',
229                        'CtsWindowManager.Window',
230                        'CtsWindowManager.intent',
231                        'CtsWindowManager.lifecycle',
232                ]),
233                'SUITES': ['suite:arc-cts-r'],
234        },
235}
236
237# Moblab optionally can reshard modules, this was originally used
238# for deqp but it is no longer required for that module.  Retaining
239# feature in case future slower module needs to be sharded.
240CONFIG['PUBLIC_EXTRA_MODULES'] = {}
241
242# TODO(haddowk,kinaba): Hack for b/138622686. Clean up later.
243CONFIG['EXTRA_SUBMODULE_OVERRIDE'] = {
244        'x86': {
245                'CtsDeqpTestCases.dEQP-VK.subgroups.arithmetic': [
246                        'CtsDeqpTestCases.dEQP-VK.subgroups.arithmetic.32',
247                        'CtsDeqpTestCases.dEQP-VK.subgroups.arithmetic.64',
248                ]
249        }
250}
251
252CONFIG['EXTRA_COMMANDLINE'] = {
253        'CtsDeqpTestCases.dEQP-EGL': [
254                '--include-filter', 'CtsDeqpTestCases', '--module',
255                'CtsDeqpTestCases', '--test', 'dEQP-EGL.*'
256        ],
257        'CtsDeqpTestCases.dEQP-GLES2': [
258                '--include-filter', 'CtsDeqpTestCases', '--module',
259                'CtsDeqpTestCases', '--test', 'dEQP-GLES2.*'
260        ],
261        'CtsDeqpTestCases.dEQP-GLES3': [
262                '--include-filter', 'CtsDeqpTestCases', '--module',
263                'CtsDeqpTestCases', '--test', 'dEQP-GLES3.*'
264        ],
265        'CtsDeqpTestCases.dEQP-GLES31': [
266                '--include-filter', 'CtsDeqpTestCases', '--module',
267                'CtsDeqpTestCases', '--test', 'dEQP-GLES31.*'
268        ],
269        'CtsDeqpTestCases.dEQP-VK': [
270                '--include-filter', 'CtsDeqpTestCases', '--module',
271                'CtsDeqpTestCases', '--test', 'dEQP-VK.*'
272        ],
273        'CtsDeqpTestCases.dEQP-VK.api': [
274                '--include-filter', 'CtsDeqpTestCases', '--module',
275                'CtsDeqpTestCases', '--test', 'dEQP-VK.api.*'
276        ],
277        'CtsDeqpTestCases.dEQP-VK.binding_model': [
278                '--include-filter', 'CtsDeqpTestCases', '--module',
279                'CtsDeqpTestCases', '--test', 'dEQP-VK.binding_model.*'
280        ],
281        'CtsDeqpTestCases.dEQP-VK.clipping': [
282                '--include-filter', 'CtsDeqpTestCases', '--module',
283                'CtsDeqpTestCases', '--test', 'dEQP-VK.clipping.*'
284        ],
285        'CtsDeqpTestCases.dEQP-VK.compute': [
286                '--include-filter', 'CtsDeqpTestCases', '--module',
287                'CtsDeqpTestCases', '--test', 'dEQP-VK.compute.*'
288        ],
289        'CtsDeqpTestCases.dEQP-VK.device_group': [
290                '--include-filter',
291                'CtsDeqpTestCases',
292                '--module',
293                'CtsDeqpTestCases',
294                '--test',
295                'dEQP-VK.device_group*'  # Not ending on .* like most others!
296        ],
297        'CtsDeqpTestCases.dEQP-VK.draw': [
298                '--include-filter', 'CtsDeqpTestCases', '--module',
299                'CtsDeqpTestCases', '--test', 'dEQP-VK.draw.*'
300        ],
301        'CtsDeqpTestCases.dEQP-VK.dynamic_state': [
302                '--include-filter', 'CtsDeqpTestCases', '--module',
303                'CtsDeqpTestCases', '--test', 'dEQP-VK.dynamic_state.*'
304        ],
305        'CtsDeqpTestCases.dEQP-VK.fragment_operations': [
306                '--include-filter', 'CtsDeqpTestCases', '--module',
307                'CtsDeqpTestCases', '--test', 'dEQP-VK.fragment_operations.*'
308        ],
309        'CtsDeqpTestCases.dEQP-VK.geometry': [
310                '--include-filter', 'CtsDeqpTestCases', '--module',
311                'CtsDeqpTestCases', '--test', 'dEQP-VK.geometry.*'
312        ],
313        'CtsDeqpTestCases.dEQP-VK.glsl': [
314                '--include-filter', 'CtsDeqpTestCases', '--module',
315                'CtsDeqpTestCases', '--test', 'dEQP-VK.glsl.*'
316        ],
317        'CtsDeqpTestCases.dEQP-VK.image': [
318                '--include-filter', 'CtsDeqpTestCases', '--module',
319                'CtsDeqpTestCases', '--test', 'dEQP-VK.image.*'
320        ],
321        'CtsDeqpTestCases.dEQP-VK.info': [
322                '--include-filter',
323                'CtsDeqpTestCases',
324                '--module',
325                'CtsDeqpTestCases',
326                '--test',
327                'dEQP-VK.info*'  # Not ending on .* like most others!
328        ],
329        'CtsDeqpTestCases.dEQP-VK.memory': [
330                '--include-filter', 'CtsDeqpTestCases', '--module',
331                'CtsDeqpTestCases', '--test', 'dEQP-VK.memory.*'
332        ],
333        'CtsDeqpTestCases.dEQP-VK.multiview': [
334                '--include-filter', 'CtsDeqpTestCases', '--module',
335                'CtsDeqpTestCases', '--test', 'dEQP-VK.multiview.*'
336        ],
337        'CtsDeqpTestCases.dEQP-VK.pipeline': [
338                '--include-filter', 'CtsDeqpTestCases', '--module',
339                'CtsDeqpTestCases', '--test', 'dEQP-VK.pipeline.*'
340        ],
341        'CtsDeqpTestCases.dEQP-VK.protected_memory': [
342                '--include-filter', 'CtsDeqpTestCases', '--module',
343                'CtsDeqpTestCases', '--test', 'dEQP-VK.protected_memory.*'
344        ],
345        'CtsDeqpTestCases.dEQP-VK.query_pool': [
346                '--include-filter', 'CtsDeqpTestCases', '--module',
347                'CtsDeqpTestCases', '--test', 'dEQP-VK.query_pool.*'
348        ],
349        'CtsDeqpTestCases.dEQP-VK.rasterization': [
350                '--include-filter', 'CtsDeqpTestCases', '--module',
351                'CtsDeqpTestCases', '--test', 'dEQP-VK.rasterization.*'
352        ],
353        'CtsDeqpTestCases.dEQP-VK.renderpass': [
354                '--include-filter', 'CtsDeqpTestCases', '--module',
355                'CtsDeqpTestCases', '--test', 'dEQP-VK.renderpass.*'
356        ],
357        'CtsDeqpTestCases.dEQP-VK.renderpass2': [
358                '--include-filter', 'CtsDeqpTestCases', '--module',
359                'CtsDeqpTestCases', '--test', 'dEQP-VK.renderpass2.*'
360        ],
361        'CtsDeqpTestCases.dEQP-VK.robustness': [
362                '--include-filter', 'CtsDeqpTestCases', '--module',
363                'CtsDeqpTestCases', '--test', 'dEQP-VK.robustness.*'
364        ],
365        'CtsDeqpTestCases.dEQP-VK.sparse_resources': [
366                '--include-filter', 'CtsDeqpTestCases', '--module',
367                'CtsDeqpTestCases', '--test', 'dEQP-VK.sparse_resources.*'
368        ],
369        'CtsDeqpTestCases.dEQP-VK.spirv_assembly': [
370                '--include-filter', 'CtsDeqpTestCases', '--module',
371                'CtsDeqpTestCases', '--test', 'dEQP-VK.spirv_assembly.*'
372        ],
373        'CtsDeqpTestCases.dEQP-VK.ssbo': [
374                '--include-filter', 'CtsDeqpTestCases', '--module',
375                'CtsDeqpTestCases', '--test', 'dEQP-VK.ssbo.*'
376        ],
377        'CtsDeqpTestCases.dEQP-VK.subgroups': [
378                '--include-filter', 'CtsDeqpTestCases', '--module',
379                'CtsDeqpTestCases', '--test', 'dEQP-VK.subgroups.*'
380        ],
381        # Splitting VK.subgroups to smaller pieces to workaround b/138622686.
382        # TODO(kinaba,haddowk): remove them once the root cause is fixed, or
383        # reconsider the sharding strategy.
384        'CtsDeqpTestCases.dEQP-VK.subgroups.b': [
385                '--include-filter', 'CtsDeqpTestCases', '--module',
386                'CtsDeqpTestCases', '--test', 'dEQP-VK.subgroups.b*'
387        ],
388        'CtsDeqpTestCases.dEQP-VK.subgroups.s': [
389                '--include-filter', 'CtsDeqpTestCases', '--module',
390                'CtsDeqpTestCases', '--test', 'dEQP-VK.subgroups.s*'
391        ],
392        'CtsDeqpTestCases.dEQP-VK.subgroups.vote': [
393                '--include-filter', 'CtsDeqpTestCases', '--module',
394                'CtsDeqpTestCases', '--test', 'dEQP-VK.subgroups.vote#*'
395        ],
396        'CtsDeqpTestCases.dEQP-VK.subgroups.arithmetic': [
397                '--include-filter', 'CtsDeqpTestCases', '--module',
398                'CtsDeqpTestCases', '--test', 'dEQP-VK.subgroups.arithmetic#*'
399        ],
400        # TODO(haddowk,kinaba): Hack for b/138622686. Clean up later.
401        'CtsDeqpTestCases.dEQP-VK.subgroups.arithmetic.32': [
402                '--include-filter', 'CtsDeqpTestCases', '--module',
403                'CtsDeqpTestCases', '--test', 'dEQP-VK.subgroups.arithmetic#*',
404                '--abi', 'x86'
405        ],
406        # TODO(haddowk,kinaba): Hack for b/138622686. Clean up later.
407        'CtsDeqpTestCases.dEQP-VK.subgroups.arithmetic.64': [
408                '--include-filter', 'CtsDeqpTestCases', '--module',
409                'CtsDeqpTestCases', '--test', 'dEQP-VK.subgroups.arithmetic#*',
410                '--abi', 'x86_64'
411        ],
412        'CtsDeqpTestCases.dEQP-VK.subgroups.clustered': [
413                '--include-filter', 'CtsDeqpTestCases', '--module',
414                'CtsDeqpTestCases', '--test', 'dEQP-VK.subgroups.clustered#*'
415        ],
416        'CtsDeqpTestCases.dEQP-VK.subgroups.quad': [
417                '--include-filter', 'CtsDeqpTestCases', '--module',
418                'CtsDeqpTestCases', '--test', 'dEQP-VK.subgroups.quad#*'
419        ],
420        'CtsDeqpTestCases.dEQP-VK.synchronization': [
421                '--include-filter', 'CtsDeqpTestCases', '--module',
422                'CtsDeqpTestCases', '--test', 'dEQP-VK.synchronization.*'
423        ],
424        'CtsDeqpTestCases.dEQP-VK.tessellation': [
425                '--include-filter', 'CtsDeqpTestCases', '--module',
426                'CtsDeqpTestCases', '--test', 'dEQP-VK.tessellation.*'
427        ],
428        'CtsDeqpTestCases.dEQP-VK.texture': [
429                '--include-filter', 'CtsDeqpTestCases', '--module',
430                'CtsDeqpTestCases', '--test', 'dEQP-VK.texture.*'
431        ],
432        'CtsDeqpTestCases.dEQP-VK.ubo': [
433                '--include-filter', 'CtsDeqpTestCases', '--module',
434                'CtsDeqpTestCases', '--test', 'dEQP-VK.ubo.*'
435        ],
436        'CtsDeqpTestCases.dEQP-VK.wsi': [
437                '--include-filter', 'CtsDeqpTestCases', '--module',
438                'CtsDeqpTestCases', '--test', 'dEQP-VK.wsi.*'
439        ],
440        'CtsDeqpTestCases.dEQP-VK.ycbcr': [
441                '--include-filter', 'CtsDeqpTestCases', '--module',
442                'CtsDeqpTestCases', '--test', 'dEQP-VK.ycbcr.*'
443        ],
444        'CtsMediaTestCases.audio': [
445                '--include-filter',
446                'CtsMediaTestCases android.media.cts.AudioAttributesTest',
447                '--include-filter',
448                'CtsMediaTestCases android.media.cts.AudioEffectTest',
449                '--include-filter',
450                'CtsMediaTestCases android.media.cts.AudioAttributesTest',
451                '--include-filter',
452                'CtsMediaTestCases android.media.cts.AudioEffectTest',
453                '--include-filter',
454                'CtsMediaTestCases android.media.cts.AudioFocusTest',
455                '--include-filter',
456                'CtsMediaTestCases android.media.cts.AudioFormatTest',
457                '--include-filter',
458                'CtsMediaTestCases android.media.cts.AudioManagerTest',
459                '--include-filter',
460                'CtsMediaTestCases android.media.cts.AudioMetadataTest',
461                '--include-filter',
462                'CtsMediaTestCases android.media.cts.AudioNativeTest',
463                '--include-filter',
464                'CtsMediaTestCases android.media.cts.AudioPlayRoutingNative',
465                '--include-filter',
466                'CtsMediaTestCases android.media.cts.AudioPlaybackCaptureTest',
467                '--include-filter',
468                'CtsMediaTestCases android.media.cts.AudioPlaybackConfigurationTest',
469                '--include-filter',
470                'CtsMediaTestCases android.media.cts.AudioPreProcessingTest',
471                '--include-filter',
472                'CtsMediaTestCases android.media.cts.AudioPresentationTest',
473                '--include-filter',
474                'CtsMediaTestCases android.media.cts.AudioRecordAppOpTest',
475                '--include-filter',
476                'CtsMediaTestCases android.media.cts.AudioRecordRoutingNative',
477                '--include-filter',
478                'CtsMediaTestCases android.media.cts.AudioRecordTest',
479                '--include-filter',
480                'CtsMediaTestCases android.media.cts.AudioRecord_BufferSizeTest',
481                '--include-filter',
482                'CtsMediaTestCases android.media.cts.AudioRecordingConfigurationTest',
483                '--include-filter',
484                'CtsMediaTestCases android.media.cts.AudioSystemTest',
485                '--include-filter',
486                'CtsMediaTestCases android.media.cts.AudioSystemUsageTest',
487                '--include-filter',
488                'CtsMediaTestCases android.media.cts.AudioTrackLatencyTest',
489                '--include-filter',
490                'CtsMediaTestCases android.media.cts.AudioTrackOffloadTest',
491                '--include-filter',
492                'CtsMediaTestCases android.media.cts.AudioTrackSurroundTest',
493                '--include-filter',
494                'CtsMediaTestCases android.media.cts.AudioTrackTest',
495                '--include-filter',
496                'CtsMediaTestCases android.media.cts.AudioTrack_ListenerTest',
497                '--include-filter',
498                'CtsMediaTestCases android.media.cts.SoundPoolAacTest',
499                '--include-filter',
500                'CtsMediaTestCases android.media.cts.SoundPoolHapticTest',
501                '--include-filter',
502                'CtsMediaTestCases android.media.cts.SoundPoolMidiTest',
503                '--include-filter',
504                'CtsMediaTestCases android.media.cts.SoundPoolOggTest',
505                '--include-filter',
506                'CtsMediaTestCases android.media.cts.VolumeShaperTest',
507        ],
508        'CtsMediaTestCases.video': [
509               '--include-filter',
510               'CtsMediaTestCases android.media.cts.AdaptivePlaybackTest',
511               '--include-filter',
512               'CtsMediaTestCases android.media.cts.DecodeAccuracyTest',
513               '--include-filter',
514               'CtsMediaTestCases android.media.cts.DecodeEditEncodeTest',
515               '--include-filter',
516               'CtsMediaTestCases android.media.cts.DecoderConformanceTest',
517               '--include-filter',
518               'CtsMediaTestCases android.media.cts.EncodeDecodeTest',
519               '--include-filter',
520               'CtsMediaTestCases android.media.cts.ExtractDecodeEditEncodeMuxTest',
521               '--include-filter',
522               'CtsMediaTestCases android.media.cts.MediaCodecPlayerTest',
523        ],
524        'CtsWindowManager.A': [
525               '--include-filter',
526               'CtsWindowManagerDeviceTestCases android.server.wm.ActivityManagerGetConfigTests',
527               '--include-filter',
528               'CtsWindowManagerDeviceTestCases android.server.wm.ActivityMetricsLoggerTests',
529               '--include-filter',
530               'CtsWindowManagerDeviceTestCases android.server.wm.ActivityTaskAffinityTests',
531               '--include-filter',
532               'CtsWindowManagerDeviceTestCases android.server.wm.ActivityTransitionTests',
533               '--include-filter',
534               'CtsWindowManagerDeviceTestCases android.server.wm.ActivityViewTest',
535               '--include-filter',
536               'CtsWindowManagerDeviceTestCases android.server.wm.ActivityVisibilityTests',
537               '--include-filter',
538               'CtsWindowManagerDeviceTestCases android.server.wm.AddWindowAsUserTest',
539               '--include-filter',
540               'CtsWindowManagerDeviceTestCases android.server.wm.AlertWindowsAppOpsTests',
541               '--include-filter',
542               'CtsWindowManagerDeviceTestCases android.server.wm.AlertWindowsImportanceTests',
543               '--include-filter',
544               'CtsWindowManagerDeviceTestCases android.server.wm.AlertWindowsTests',
545               '--include-filter',
546               'CtsWindowManagerDeviceTestCases android.server.wm.AmProfileTests',
547               '--include-filter',
548               'CtsWindowManagerDeviceTestCases android.server.wm.AmStartOptionsTests',
549               '--include-filter',
550               'CtsWindowManagerDeviceTestCases android.server.wm.AnrTests',
551               '--include-filter',
552               'CtsWindowManagerDeviceTestCases android.server.wm.AppConfigurationTests',
553               '--include-filter',
554               'CtsWindowManagerDeviceTestCases android.server.wm.AspectRatioTests',
555               '--include-filter',
556               'CtsWindowManagerDeviceTestCases android.server.wm.AssistantStackTests',
557        ],
558        'CtsWindowManager.C': [
559               '--include-filter',
560               'CtsWindowManagerDeviceTestCases android.server.wm.CloseOnOutsideTests',
561               '--include-filter',
562               'CtsWindowManagerDeviceTestCases android.server.wm.ConfigChangeTests',
563               '--include-filter',
564               'CtsWindowManagerDeviceTestCases android.server.wm.CrossAppDragAndDropTests',
565        ],
566        'CtsWindowManager.D': [
567               '--include-filter',
568               'CtsWindowManagerDeviceTestCases android.server.wm.DecorInsetTests',
569               '--include-filter',
570               'CtsWindowManagerDeviceTestCases android.server.wm.DeprecatedTargetSdkTest',
571               '--include-filter',
572               'CtsWindowManagerDeviceTestCases android.server.wm.DialogFrameTests',
573               '--include-filter',
574               'CtsWindowManagerDeviceTestCases android.server.wm.DisplayCutoutTests',
575               '--include-filter',
576               'CtsWindowManagerDeviceTestCases android.server.wm.DisplaySizeTest',
577               '--include-filter',
578               'CtsWindowManagerDeviceTestCases android.server.wm.DisplayTests',
579               '--include-filter',
580               'CtsWindowManagerDeviceTestCases android.server.wm.DragDropTest',
581               '--include-filter',
582               'CtsWindowManagerDeviceTestCases android.server.wm.DreamManagerServiceTests',
583        ],
584        'CtsWindowManager.Ensure': [
585               '--include-filter',
586               'CtsWindowManagerDeviceTestCases android.server.wm.EnsureBarContrastTest',
587        ],
588        'CtsWindowManager.F': [
589               '--include-filter',
590               'CtsWindowManagerDeviceTestCases android.server.wm.ForceRelayoutTest',
591               '--include-filter',
592               'CtsWindowManagerDeviceTestCases android.server.wm.FreeformWindowingModeTests',
593        ],
594        'CtsWindowManager.L': [
595               '--include-filter',
596               'CtsWindowManagerDeviceTestCases android.server.wm.LayoutTests',
597               '--include-filter',
598               'CtsWindowManagerDeviceTestCases android.server.wm.LocationInWindowTests',
599               '--include-filter',
600               'CtsWindowManagerDeviceTestCases android.server.wm.LocationOnScreenTests',
601        ],
602        'CtsWindowManager.M': [
603               '--include-filter',
604               'CtsWindowManagerDeviceTestCases android.server.wm.ManifestLayoutTests',
605               '--include-filter',
606               'CtsWindowManagerDeviceTestCases android.server.wm.MinimalPostProcessingTests',
607               '--include-filter',
608               'CtsWindowManagerDeviceTestCases android.server.wm.MultiDisplayActivityLaunchTests',
609               '--include-filter',
610               'CtsWindowManagerDeviceTestCases android.server.wm.MultiDisplayClientTests',
611               '--include-filter',
612               'CtsWindowManagerDeviceTestCases android.server.wm.MultiDisplayKeyguardTests',
613               '--include-filter',
614               'CtsWindowManagerDeviceTestCases android.server.wm.MultiDisplayLockedKeyguardTests',
615               '--include-filter',
616               'CtsWindowManagerDeviceTestCases android.server.wm.MultiDisplayPolicyTests',
617               '--include-filter',
618               'CtsWindowManagerDeviceTestCases android.server.wm.MultiDisplayPrivateDisplayTests',
619               '--include-filter',
620               'CtsWindowManagerDeviceTestCases android.server.wm.MultiDisplaySecurityTests',
621               '--include-filter',
622               'CtsWindowManagerDeviceTestCases android.server.wm.MultiDisplaySystemDecorationTests',
623        ],
624        'CtsWindowManager.Override': [
625               '--include-filter',
626               'CtsWindowManagerDeviceTestCases android.server.wm.OverrideConfigTests',
627        ],
628        'CtsWindowManager.P': [
629               '--include-filter',
630               'CtsWindowManagerDeviceTestCases android.server.wm.PinnedStackTests',
631               '--include-filter',
632               'CtsWindowManagerDeviceTestCases android.server.wm.PrereleaseSdkTest',
633               '--include-filter',
634               'CtsWindowManagerDeviceTestCases android.server.wm.PresentationTest',
635        ],
636        'CtsWindowManager.R': [
637               '--include-filter',
638               'CtsWindowManagerDeviceTestCases android.server.wm.ReplaceWindowTests',
639               '--include-filter',
640               'CtsWindowManagerDeviceTestCases android.server.wm.RobustnessTests',
641        ],
642        'CtsWindowManager.S': [
643               '--include-filter',
644               'CtsWindowManagerDeviceTestCases android.server.wm.SplashscreenTests',
645               '--include-filter',
646               'CtsWindowManagerDeviceTestCases android.server.wm.SplitScreenTests',
647               '--include-filter',
648               'CtsWindowManagerDeviceTestCases android.server.wm.StartActivityAsUserTests',
649               '--include-filter',
650               'CtsWindowManagerDeviceTestCases android.server.wm.StartActivityTests',
651               '--include-filter',
652               'CtsWindowManagerDeviceTestCases android.server.wm.SurfaceControlTest',
653               '--include-filter',
654               'CtsWindowManagerDeviceTestCases android.server.wm.SurfaceControlViewHostTests',
655               '--include-filter',
656               'CtsWindowManagerDeviceTestCases android.server.wm.SurfaceViewSurfaceValidatorTest',
657               '--include-filter',
658               'CtsWindowManagerDeviceTestCases android.server.wm.SurfaceViewTest',
659        ],
660        'CtsWindowManager.T': [
661               '--include-filter',
662               'CtsWindowManagerDeviceTestCases android.server.wm.ToastWindowTest',
663               '--include-filter',
664               'CtsWindowManagerDeviceTestCases android.server.wm.TransitionSelectionTests',
665        ],
666        'CtsWindowManager.Window': [
667               '--include-filter',
668               'CtsWindowManagerDeviceTestCases android.server.wm.WindowContextPolicyTests',
669               '--include-filter',
670               'CtsWindowManagerDeviceTestCases android.server.wm.WindowContextTests',
671               '--include-filter',
672               'CtsWindowManagerDeviceTestCases android.server.wm.WindowFocusTests',
673               '--include-filter',
674               'CtsWindowManagerDeviceTestCases android.server.wm.WindowInputTests',
675               '--include-filter',
676               'CtsWindowManagerDeviceTestCases android.server.wm.WindowInsetsAnimationCallbackTests',
677               '--include-filter',
678               'CtsWindowManagerDeviceTestCases android.server.wm.WindowInsetsAnimationControllerTests',
679               '--include-filter',
680               'CtsWindowManagerDeviceTestCases android.server.wm.WindowInsetsAnimationImeTests',
681               '--include-filter',
682               'CtsWindowManagerDeviceTestCases android.server.wm.WindowInsetsAnimationSynchronicityTests',
683               '--include-filter',
684               'CtsWindowManagerDeviceTestCases android.server.wm.WindowInsetsAnimationTests',
685               '--include-filter',
686               'CtsWindowManagerDeviceTestCases android.server.wm.WindowInsetsControllerTests',
687               '--include-filter',
688               'CtsWindowManagerDeviceTestCases android.server.wm.WindowInsetsLayoutTests',
689               '--include-filter',
690               'CtsWindowManagerDeviceTestCases android.server.wm.WindowInsetsPolicyTest',
691               '--include-filter',
692               'CtsWindowManagerDeviceTestCases android.server.wm.WindowInsetsTest',
693               '--include-filter',
694               'CtsWindowManagerDeviceTestCases android.server.wm.WindowManager_BadTokenExceptionTest',
695               '--include-filter',
696               'CtsWindowManagerDeviceTestCases android.server.wm.WindowManager_LayoutParamsTest',
697               '--include-filter',
698               'CtsWindowManagerDeviceTestCases android.server.wm.WindowMetricsTests',
699               '--include-filter',
700               'CtsWindowManagerDeviceTestCases android.server.wm.WindowTest',
701        ],
702        'CtsWindowManager.intent': [
703               '--include-filter',
704               'CtsWindowManagerDeviceTestCases android.server.wm.intent.IntentGenerationTests',
705               '--include-filter',
706               'CtsWindowManagerDeviceTestCases android.server.wm.intent.IntentTests',
707        ],
708        'CtsWindowManager.lifecycle': [
709               '--include-filter',
710               'CtsWindowManagerDeviceTestCases android.server.wm.lifecycle.ActivityLifecycleFreeformTests',
711               '--include-filter',
712               'CtsWindowManagerDeviceTestCases android.server.wm.lifecycle.ActivityLifecycleKeyguardTests',
713               '--include-filter',
714               'CtsWindowManagerDeviceTestCases android.server.wm.lifecycle.ActivityLifecyclePipTests',
715               '--include-filter',
716               'CtsWindowManagerDeviceTestCases android.server.wm.lifecycle.ActivityLifecycleSplitScreenTests',
717               '--include-filter',
718               'CtsWindowManagerDeviceTestCases android.server.wm.lifecycle.ActivityLifecycleTests',
719               '--include-filter',
720               'CtsWindowManagerDeviceTestCases android.server.wm.lifecycle.ActivityLifecycleTopResumedStateTests',
721               '--include-filter',
722               'CtsWindowManagerDeviceTestCases android.server.wm.lifecycle.ActivityStarterTests',
723               '--include-filter',
724               'CtsWindowManagerDeviceTestCases android.server.wm.lifecycle.ActivityTests',
725        ],
726}
727
728CONFIG['EXTRA_ATTRIBUTES'] = {}
729
730CONFIG['EXTRA_ARTIFACTS'] = {}
731CONFIG['PREREQUISITES'] = {}
732
733CONFIG['USE_JDK9'] = True
734
735from generate_controlfiles_common import main
736
737if __name__ == '__main__':
738    main(CONFIG)
739