1# Copyright 2023 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 5"""This is an example of a Suite definition.""" 6 7load("//create.star", "create") 8 9def _example_pass(): 10 return create.suite( 11 # Globally unique identifier across all SuiteSets and Suites. 12 suite_id = "example_pass", 13 # Email contacts of owners that gate changes to the Suite and 14 # should be notified regarding any Suite issues (e.g. flakiness, 15 # runtime). 16 owners = [ 17 "dbeckett@google.com", 18 "bbrotherton@google.com", 19 ], 20 # The Buganizer component to issue bugs against regarding the 21 # Suite. 22 bug_component = "b:1234567", 23 # A short summary capturing the quality guarantee validated by the 24 # Suite. 25 criteria = "Validates basic pass tests will pass.", 26 # A list test Id's contained within the Suite. 27 tests = [ 28 "tast.example.Pass", 29 "tauto.stub_PassServer", 30 ], 31 ) 32 33def _example_fail(): 34 return create.suite( 35 # Globally unique identifier across all SuiteSets and Suites. 36 suite_id = "example_fail", 37 # Email contacts of owners that gate changes to the Suite and 38 # should be notified regarding any Suite issues (e.g. flakiness, 39 # runtime). 40 owners = [ 41 "dbeckett@google.com", 42 "bbrotherton@google.com", 43 ], 44 # The Buganizer component to issue bugs against regarding the 45 # Suite. 46 bug_component = "b:1234567", 47 # A short summary capturing the quality guarantee validated by the 48 # Suite. 49 criteria = "Validates fail pass tests will fail.", 50 # A list test Id's contained within the Suite. 51 tests = [ 52 "tast.example.Fail", 53 "tauto.stub_FailServer", 54 ], 55 ) 56 57def _all_suites(): 58 return [ 59 _example_pass(), 60 _example_fail(), 61 ] 62 63example_suites = struct( 64 all_suites = _all_suites, 65) 66