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