1# Copyright (c) 2022-2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("os_account.gni") 16 17group("account_build_unittest") { 18 testonly = true 19 deps = [] 20 if (has_app_account_part) { 21 deps += [ "${os_account_path}/frameworks/appaccount/native/test:unittest" ] 22 } 23 deps += [ 24 "${os_account_path}/frameworks/account_iam/test:unittest", 25 "${os_account_path}/frameworks/common/test:unittest", 26 "${os_account_path}/frameworks/osaccount/core/test:unittest", 27 "${os_account_path}/frameworks/osaccount/native/test/benchmarktest:benchmarktest", 28 "${os_account_path}/frameworks/osaccount/native/test/unittest:unittest", 29 "${os_account_path}/frameworks/test/unittest:unittest", 30 "${os_account_path}/services/accountmgr/test:unittest", 31 "${os_account_path}/test/systemtest:systemtest", 32 "${os_account_path}/tools:unittest", 33 ] 34} 35 36group("account_build_moduletest") { 37 testonly = true 38 deps = [] 39 if (has_app_account_part) { 40 deps += [ 41 "${os_account_path}/frameworks/appaccount/native/test:moduletest", 42 "${os_account_path}/services/accountmgr/test/moduletest/app_account:moduletest", 43 ] 44 } 45 deps += [ 46 "${os_account_path}/frameworks/domain_account/test/moduletest:moduletest", 47 "${os_account_path}/frameworks/ohosaccount/test:moduletest", 48 "${os_account_path}/frameworks/osaccount/native/test/moduletest:moduletest", 49 "${os_account_path}/services/accountmgr/test/moduletest/common:moduletest", 50 "${os_account_path}/services/accountmgr/test/moduletest/os_account:moduletest", 51 "${os_account_path}/tools:moduletest", 52 ] 53} 54 55group("account_build_fuzztest") { 56 testonly = true 57 deps = [] 58 if (has_app_account_part) { 59 deps += [ 60 "${os_account_path}/test/fuzztest/account_stub:fuzztest", 61 "${os_account_path}/test/fuzztest/appaccount:fuzztest", 62 "${os_account_path}/test/fuzztest/appaccount_stub:fuzztest", 63 ] 64 } 65 deps += [ 66 "${os_account_path}/test/fuzztest/iamaccount:fuzztest", 67 "${os_account_path}/test/fuzztest/ohosaccount:fuzztest", 68 "${os_account_path}/test/fuzztest/osaccount:fuzztest", 69 ] 70 deps += [ 71 "${os_account_path}/test/fuzztest/domainaccount_stub:fuzztest", 72 "${os_account_path}/test/fuzztest/iamaccount_stub:fuzztest", 73 "${os_account_path}/test/fuzztest/osaccount_stub:fuzztest", 74 ] 75} 76