1#!/usr/bin/env python3 2# Lint as: python2, python3 3# Copyright 2020 The Chromium OS Authors. All rights reserved. 4# Use of this source code is governed by a BSD-style license that can be 5# found in the LICENSE file. 6 7import collections 8 9from generate_controlfiles_common import main 10 11_ALL = 'all' 12 13CONFIG = {} 14 15CONFIG['TEST_NAME'] = 'cheets_VTS_R' 16CONFIG['DOC_TITLE'] = \ 17 'Vendor Test Suite (VTS)' 18CONFIG['MOBLAB_SUITE_NAME'] = 'suite:android-vts' 19CONFIG['COPYRIGHT_YEAR'] = 2020 20CONFIG['AUTHKEY'] = '' 21 22CONFIG['LARGE_MAX_RESULT_SIZE'] = 1000 * 1024 23CONFIG['NORMAL_MAX_RESULT_SIZE'] = 500 * 1024 24 25CONFIG['TRADEFED_CTS_COMMAND'] = 'vts' 26CONFIG['TRADEFED_RETRY_COMMAND'] = 'retry' 27CONFIG['TRADEFED_DISABLE_REBOOT'] = False 28CONFIG['TRADEFED_DISABLE_REBOOT_ON_COLLECTION'] = True 29CONFIG['TRADEFED_MAY_SKIP_DEVICE_INFO'] = False 30CONFIG['TRADEFED_EXECUTABLE_PATH'] = 'android-vts/tools/vts-tradefed' 31 32CONFIG['TRADEFED_IGNORE_BUSINESS_LOGIC_FAILURE'] = False 33 34CONFIG['INTERNAL_SUITE_NAMES'] = ['suite:arc-cts-r'] 35 36CONFIG['CONTROLFILE_TEST_FUNCTION_NAME'] = 'run_TS' 37CONFIG['CONTROLFILE_WRITE_SIMPLE_QUAL_AND_REGRESS'] = False # True 38CONFIG['CONTROLFILE_WRITE_COLLECT'] = False 39CONFIG['CONTROLFILE_WRITE_CAMERA'] = False 40CONFIG['CONTROLFILE_WRITE_EXTRA'] = False 41 42# Do not change the name/tag without adjusting the dashboard. 43_COLLECT = 'tradefed-run-collect-tests-only-internal' 44_PUBLIC_COLLECT = 'tradefed-run-collect-tests-only' 45 46CONFIG['LAB_DEPENDENCY'] = { 47 'arm': ['cts_abi_arm'], 48 'arm64': ['cts_abi_arm'], 49 'x86': ['cts_abi_x86'], 50 'x86_64': ['cts_abi_x86'], 51} 52 53CONFIG['CTS_JOB_RETRIES_IN_PUBLIC'] = 1 54CONFIG['CTS_QUAL_RETRIES'] = 9 55CONFIG['CTS_MAX_RETRIES'] = {} 56 57# Timeout in hours. 58CONFIG['CTS_TIMEOUT_DEFAULT'] = 1.0 59CONFIG['CTS_TIMEOUT'] = { 60 _ALL: 5.0, 61 _COLLECT: 2.0, 62 _PUBLIC_COLLECT: 2.0, 63} 64 65# Any test that runs as part as blocking BVT needs to be stable and fast. For 66# this reason we enforce a tight timeout on these modules/jobs. 67# Timeout in hours. (0.1h = 6 minutes) 68CONFIG['BVT_TIMEOUT'] = 0.1 69 70CONFIG['QUAL_TIMEOUT'] = 5 71 72CONFIG['QUAL_BOOKMARKS'] = [] 73 74CONFIG['SMOKE'] = [] 75 76CONFIG['BVT_ARC'] = [] 77 78CONFIG['BVT_PERBUILD'] = [] 79 80CONFIG['NEEDS_POWER_CYCLE'] = [] 81 82CONFIG['HARDWARE_DEPENDENT_MODULES'] = [] 83 84# The suite is divided based on the run-time hint in the *.config file. 85CONFIG['VMTEST_INFO_SUITES'] = collections.OrderedDict() 86 87# Modules that are known to download and/or push media file assets. 88CONFIG['MEDIA_MODULES'] = [] 89CONFIG['NEEDS_PUSH_MEDIA'] = [] 90 91CONFIG['ENABLE_DEFAULT_APPS'] = [] 92 93# Optional argument for filtering out unneeded modules. 94CONFIG['EXCLUDE_MODULES'] = [ 95 'CtsIkeTestCases[secondary_user]', 'CtsIkeTestCases', 96 'CtsInstantAppTests', 'CtsInstantAppTests[secondary_user]', 97 'CtsPackageWatchdogTestCases[secondary_user]', 98 'CtsPackageWatchdogTestCases', 99 'CtsResourcesLoaderTests[secondary_user]', 'CtsResourcesLoaderTests', 100 'CtsUsbManagerTestCases[secondary_user]', 'CtsUsbManagerTestCases', 101 'CtsWindowManagerJetpackTestCases[secondary_user]', 102 'CtsWindowManagerJetpackTestCases', 'GtsPrivilegedUpdatePreparer', 103 'GtsUnofficialApisUsageTestCases' 104] 105 106# Preconditions applicable to public and internal tests. 107CONFIG['PRECONDITION'] = {} 108CONFIG['LOGIN_PRECONDITION'] = {} 109 110# Preconditions applicable to public tests. 111CONFIG['PUBLIC_PRECONDITION'] = {} 112 113CONFIG['PUBLIC_DEPENDENCIES'] = {} 114 115# This information is changed based on regular analysis of the failure rate on 116# partner moblabs. 117CONFIG['PUBLIC_MODULE_RETRY_COUNT'] = { 118 _PUBLIC_COLLECT: 0, 119} 120 121CONFIG['PUBLIC_OVERRIDE_TEST_PRIORITY'] = { 122 _PUBLIC_COLLECT: 70, 123} 124 125# This information is changed based on regular analysis of the job run time on 126# partner moblabs. 127 128CONFIG['OVERRIDE_TEST_LENGTH'] = { 129 # Even though collect tests doesn't run very long, it must be the very first 130 # job executed inside of the suite. Hence it is the only 'LENGTHY' test. 131 _COLLECT: 5, # LENGTHY 132} 133 134CONFIG['DISABLE_LOGCAT_ON_FAILURE'] = set() 135CONFIG['EXTRA_MODULES'] = {} 136CONFIG['PUBLIC_EXTRA_MODULES'] = {} 137CONFIG['EXTRA_SUBMODULE_OVERRIDE'] = {} 138 139CONFIG['EXTRA_COMMANDLINE'] = {} 140 141CONFIG['EXTRA_ATTRIBUTES'] = { 142 'tradefed-run-collect-tests-only-internal': ['suite:arc-cts-r'], 143} 144 145CONFIG['EXTRA_ARTIFACTS'] = {} 146CONFIG['PREREQUISITES'] = {} 147 148CONFIG['USE_JDK9'] = True 149 150if __name__ == '__main__': 151 main(CONFIG) 152