1# Copyright 2024 The ChromiumOS Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5load("//create.star", "create") 6 7shared_owners = [ 8 "chromeos-faft@google.com", 9 "jbettis@chromium.org", 10] 11 12shared_bug_component = "b:792402" 13 14def _platform_pre_fsi(): 15 return create.suite_set( 16 suite_set_id = "platform_pre_fsi", 17 owners = shared_owners, 18 bug_component = shared_bug_component, 19 criteria = "Platform tests for PVS pre FSI testing.", 20 suite_sets = [], 21 suites = ["labqual_stable", "platform_common"], 22 ) 23 24def _platform_fsi(): 25 return create.suite_set( 26 suite_set_id = "platform_fsi", 27 owners = shared_owners, 28 bug_component = shared_bug_component, 29 criteria = "Platform tests for PVS FSI testing.", 30 suite_sets = [], 31 suites = ["platform_common", "platform_fsi_only"], 32 ) 33 34def _labqual_stable(): 35 return create.suite( 36 suite_id = "labqual_stable", 37 owners = shared_owners, 38 bug_component = shared_bug_component, 39 criteria = "Platform tests to check device readiness for lab entry.", 40 tests = [ 41 "tast.labqual.BootupTimesUSB.usb_recovery", 42 "tast.labqual.TPMReset.rec_mode", 43 "tast.labqual.SerialNumber", 44 "tast.labqual.DeviceHwid", 45 "tast.labqual.ServoGBBFlagsFutility", 46 "tast.labqual.DevToSecureMode.dev_mode", 47 "tast.labqual.InternalStorage", 48 "tast.labqual.BootupTimesUSB.usb_dev", 49 "tast.labqual.TPMStatus", 50 "tast.labqual.ECControlRead", 51 "tast.labqual.SSHStability", 52 "tast.labqual.ServoGSCFlags", 53 "tast.labqual.ServoDeviceBatteryCheck", 54 "tast.labqual.UpdateDutFirmware", 55 ], 56 ) 57 58def _platform_common(): 59 return create.suite( 60 suite_id = "platform_common", 61 owners = shared_owners, 62 bug_component = shared_bug_component, 63 criteria = "Platform tests common to FSI/Pre FSI testing.", 64 tests = [ 65 "tast.lockscreen.PINUnlock", 66 ], 67 ) 68 69def _platform_fsi_only(): 70 return create.suite( 71 suite_id = "platform_fsi_only", 72 owners = shared_owners, 73 bug_component = shared_bug_component, 74 criteria = "Platform tests which should be run for Pre FSI testing only.", 75 tests = [ 76 "tast.quicksettings.BasicLayout.tablet", 77 ], 78 ) 79 80def _all_suite_sets(): 81 return [ 82 _platform_pre_fsi(), 83 _platform_fsi(), 84 ] 85 86platform_suite_sets = struct( 87 all_suite_sets = _all_suite_sets, 88) 89 90def _all_suites(): 91 return [ 92 _labqual_stable(), 93 _platform_common(), 94 _platform_fsi_only(), 95 ] 96 97platform_suites = struct( 98 all_suites = _all_suites, 99) 100