• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
16import("services/accountmgr/os_account_service.gni")
17
18group("account_build_unittest") {
19  testonly = true
20  deps = []
21  if (has_app_account_part) {
22    deps += [ "${os_account_path}/frameworks/appaccount/native/test:unittest" ]
23  }
24  deps += [
25    "${os_account_path}/frameworks/account_iam/test:unittest",
26    "${os_account_path}/frameworks/common/test:unittest",
27    "${os_account_path}/frameworks/osaccount/core/test:unittest",
28    "${os_account_path}/frameworks/osaccount/native/test/benchmarktest:benchmarktest",
29    "${os_account_path}/frameworks/osaccount/native/test/unittest:unittest",
30    "${os_account_path}/frameworks/test/unittest:unittest",
31    "${os_account_path}/interfaces/kits/capi/test/unittest:unittest",
32    "${os_account_path}/services/accountmgr/test:unittest",
33    "${os_account_path}/test/systemtest:systemtest",
34    "${os_account_path}/tools/test:unittest",
35  ]
36}
37
38group("account_build_moduletest") {
39  testonly = true
40  deps = []
41  if (has_app_account_part) {
42    deps += [
43      "${os_account_path}/frameworks/appaccount/native/test:moduletest",
44      "${os_account_path}/services/accountmgr/test/moduletest/app_account:moduletest",
45    ]
46  }
47  deps += [
48    "${os_account_path}/frameworks/domain_account/test/moduletest:moduletest",
49    "${os_account_path}/frameworks/ohosaccount/test:moduletest",
50    "${os_account_path}/frameworks/osaccount/native/test/moduletest:moduletest",
51    "${os_account_path}/services/accountmgr/test/moduletest/common:moduletest",
52    "${os_account_path}/services/accountmgr/test/moduletest/os_account:moduletest",
53    "${os_account_path}/tools/test:moduletest",
54  ]
55}
56
57group("account_build_fuzztest") {
58  testonly = true
59  deps = []
60  if (has_app_account_part) {
61    deps += [
62      "${os_account_path}/test/fuzztest/account_stub:fuzztest",
63      "${os_account_path}/test/fuzztest/appaccount:fuzztest",
64      "${os_account_path}/test/fuzztest/appaccount_stub:fuzztest",
65    ]
66  }
67  deps += [
68    "${os_account_path}/test/fuzztest/iamaccount:fuzztest",
69    "${os_account_path}/test/fuzztest/ohosaccount:fuzztest",
70    "${os_account_path}/test/fuzztest/osaccount:fuzztest",
71  ]
72  deps += [
73    "${os_account_path}/test/fuzztest/domainaccount_stub:fuzztest",
74    "${os_account_path}/test/fuzztest/iamaccount_stub:fuzztest",
75    "${os_account_path}/test/fuzztest/osaccount_stub:fuzztest",
76  ]
77}
78