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 8from generate_controlfiles_common import main 9 10 11_ALL = 'all' 12 13CONFIG = {} 14 15CONFIG['TEST_NAME'] = 'cheets_VTS' 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-vts'] 35 36CONFIG['CONTROLFILE_TEST_FUNCTION_NAME'] = 'run_TS' 37CONFIG['CONTROLFILE_WRITE_SIMPLE_QUAL_AND_REGRESS'] = False # True 38CONFIG['CONTROLFILE_WRITE_CAMERA'] = False 39CONFIG['CONTROLFILE_WRITE_EXTRA'] = False 40 41# Do not change the name/tag without adjusting the dashboard. 42_COLLECT = 'tradefed-run-collect-tests-only-internal' 43_PUBLIC_COLLECT = 'tradefed-run-collect-tests-only' 44 45CONFIG['LAB_DEPENDENCY'] = {} 46 47CONFIG['CTS_JOB_RETRIES_IN_PUBLIC'] = 1 48CONFIG['CTS_QUAL_RETRIES'] = 9 49CONFIG['CTS_MAX_RETRIES'] = {} 50 51# Timeout in hours. 52CONFIG['CTS_TIMEOUT_DEFAULT'] = 1.0 53CONFIG['CTS_TIMEOUT'] = { 54 _ALL: 5.0, 55 _COLLECT: 2.0, 56 _PUBLIC_COLLECT: 2.0, 57} 58 59# Any test that runs as part as blocking BVT needs to be stable and fast. For 60# this reason we enforce a tight timeout on these modules/jobs. 61# Timeout in hours. (0.1h = 6 minutes) 62CONFIG['BVT_TIMEOUT'] = 0.1 63 64CONFIG['QUAL_TIMEOUT'] = 5 65 66CONFIG['QUAL_BOOKMARKS'] = [] 67 68CONFIG['SMOKE'] = [] 69 70CONFIG['BVT_ARC'] = [] 71 72CONFIG['BVT_PERBUILD'] = [] 73 74CONFIG['NEEDS_POWER_CYCLE'] = [] 75 76CONFIG['HARDWARE_DEPENDENT_MODULES'] = [] 77 78# The suite is divided based on the run-time hint in the *.config file. 79CONFIG['VMTEST_INFO_SUITES'] = collections.OrderedDict() 80 81# Modules that are known to download and/or push media file assets. 82CONFIG['MEDIA_MODULES'] = [] 83CONFIG['NEEDS_PUSH_MEDIA'] = [] 84 85CONFIG['ENABLE_DEFAULT_APPS'] = [] 86 87# Preconditions applicable to public and internal tests. 88CONFIG['PRECONDITION'] = {} 89CONFIG['LOGIN_PRECONDITION'] = {} 90 91# Preconditions applicable to public tests. 92CONFIG['PUBLIC_PRECONDITION'] = {} 93 94CONFIG['PUBLIC_DEPENDENCIES'] = {} 95 96# This information is changed based on regular analysis of the failure rate on 97# partner moblabs. 98CONFIG['PUBLIC_MODULE_RETRY_COUNT'] = { 99 _PUBLIC_COLLECT: 0, 100} 101 102CONFIG['PUBLIC_OVERRIDE_TEST_PRIORITY'] = { 103 _PUBLIC_COLLECT: 70, 104} 105 106# This information is changed based on regular analysis of the job run time on 107# partner moblabs. 108 109CONFIG['OVERRIDE_TEST_LENGTH'] = { 110 # Even though collect tests doesn't run very long, it must be the very first 111 # job executed inside of the suite. Hence it is the only 'LENGTHY' test. 112 _COLLECT: 5, # LENGTHY 113} 114 115CONFIG['DISABLE_LOGCAT_ON_FAILURE'] = set() 116CONFIG['EXTRA_MODULES'] = {} 117CONFIG['PUBLIC_EXTRA_MODULES'] = {} 118CONFIG['EXTRA_SUBMODULE_OVERRIDE'] = {} 119 120CONFIG['EXTRA_COMMANDLINE'] = {} 121 122CONFIG['EXTRA_ATTRIBUTES'] = { 123 'tradefed-run-collect-tests-only-internal': ['suite:arc-vts'], 124} 125 126CONFIG['EXTRA_ARTIFACTS'] = {} 127CONFIG['PREREQUISITES'] = {} 128 129if __name__ == '__main__': 130 main(CONFIG) 131 132