2023-04-02 13:52:39 +00:00
|
|
|
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
2022-11-11 06:07:41 +00:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
import("//build/ohos.gni")
|
2023-04-27 10:40:15 +00:00
|
|
|
import("os_account.gni")
|
2023-08-17 02:05:53 +00:00
|
|
|
import("services/accountmgr/os_account_service.gni")
|
2022-11-11 06:07:41 +00:00
|
|
|
|
|
|
|
group("account_build_unittest") {
|
|
|
|
testonly = true
|
|
|
|
deps = []
|
2023-06-13 14:09:07 +00:00
|
|
|
if (has_app_account_part) {
|
|
|
|
deps += [ "${os_account_path}/frameworks/appaccount/native/test:unittest" ]
|
|
|
|
}
|
2022-11-11 06:07:41 +00:00
|
|
|
deps += [
|
2023-04-27 10:40:15 +00:00
|
|
|
"${os_account_path}/frameworks/account_iam/test:unittest",
|
|
|
|
"${os_account_path}/frameworks/common/test:unittest",
|
|
|
|
"${os_account_path}/frameworks/osaccount/core/test:unittest",
|
|
|
|
"${os_account_path}/frameworks/osaccount/native/test/benchmarktest:benchmarktest",
|
|
|
|
"${os_account_path}/frameworks/osaccount/native/test/unittest:unittest",
|
|
|
|
"${os_account_path}/frameworks/test/unittest:unittest",
|
2024-04-18 15:28:58 +00:00
|
|
|
"${os_account_path}/interfaces/kits/capi/test/unittest:unittest",
|
2023-04-27 10:40:15 +00:00
|
|
|
"${os_account_path}/services/accountmgr/test:unittest",
|
|
|
|
"${os_account_path}/test/systemtest:systemtest",
|
2024-04-08 16:14:28 +00:00
|
|
|
"${os_account_path}/tools/test:unittest",
|
2022-11-11 06:07:41 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("account_build_moduletest") {
|
|
|
|
testonly = true
|
|
|
|
deps = []
|
2023-06-13 14:09:07 +00:00
|
|
|
if (has_app_account_part) {
|
|
|
|
deps += [
|
|
|
|
"${os_account_path}/frameworks/appaccount/native/test:moduletest",
|
|
|
|
"${os_account_path}/services/accountmgr/test/moduletest/app_account:moduletest",
|
|
|
|
]
|
|
|
|
}
|
2022-11-11 06:07:41 +00:00
|
|
|
deps += [
|
2023-04-27 10:40:15 +00:00
|
|
|
"${os_account_path}/frameworks/domain_account/test/moduletest:moduletest",
|
|
|
|
"${os_account_path}/frameworks/ohosaccount/test:moduletest",
|
|
|
|
"${os_account_path}/frameworks/osaccount/native/test/moduletest:moduletest",
|
2023-08-02 04:01:10 +00:00
|
|
|
"${os_account_path}/services/accountmgr/test/moduletest/common:moduletest",
|
2023-04-27 10:40:15 +00:00
|
|
|
"${os_account_path}/services/accountmgr/test/moduletest/os_account:moduletest",
|
2024-04-08 16:14:28 +00:00
|
|
|
"${os_account_path}/tools/test:moduletest",
|
2022-11-11 06:07:41 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
group("account_build_fuzztest") {
|
|
|
|
testonly = true
|
|
|
|
deps = []
|
2023-06-13 14:09:07 +00:00
|
|
|
if (has_app_account_part) {
|
|
|
|
deps += [
|
|
|
|
"${os_account_path}/test/fuzztest/account_stub:fuzztest",
|
|
|
|
"${os_account_path}/test/fuzztest/appaccount:fuzztest",
|
|
|
|
"${os_account_path}/test/fuzztest/appaccount_stub:fuzztest",
|
|
|
|
]
|
|
|
|
}
|
2022-11-11 06:07:41 +00:00
|
|
|
deps += [
|
2023-04-27 10:40:15 +00:00
|
|
|
"${os_account_path}/test/fuzztest/iamaccount:fuzztest",
|
|
|
|
"${os_account_path}/test/fuzztest/ohosaccount:fuzztest",
|
|
|
|
"${os_account_path}/test/fuzztest/osaccount:fuzztest",
|
2022-11-11 06:07:41 +00:00
|
|
|
]
|
2023-05-27 08:53:04 +00:00
|
|
|
deps += [
|
2023-05-28 10:00:40 +00:00
|
|
|
"${os_account_path}/test/fuzztest/domainaccount_stub:fuzztest",
|
|
|
|
"${os_account_path}/test/fuzztest/iamaccount_stub:fuzztest",
|
2023-05-27 08:53:04 +00:00
|
|
|
"${os_account_path}/test/fuzztest/osaccount_stub:fuzztest",
|
|
|
|
]
|
2022-11-11 06:07:41 +00:00
|
|
|
}
|