1eace7efcSopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2eace7efcSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3eace7efcSopenharmony_ci# you may not use this file except in compliance with the License.
4eace7efcSopenharmony_ci# You may obtain a copy of the License at
5eace7efcSopenharmony_ci#
6eace7efcSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7eace7efcSopenharmony_ci#
8eace7efcSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9eace7efcSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10eace7efcSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11eace7efcSopenharmony_ci# See the License for the specific language governing permissions and
12eace7efcSopenharmony_ci# limitations under the License.
13eace7efcSopenharmony_ci
14eace7efcSopenharmony_ciimport("//build/ohos.gni")
15eace7efcSopenharmony_ciimport("//foundation/ability/ability_runtime/ability_runtime.gni")
16eace7efcSopenharmony_ci
17eace7efcSopenharmony_ciconfig("moduletest_exception_config") {
18eace7efcSopenharmony_ci  cflags_cc = [ "-fexceptions" ]
19eace7efcSopenharmony_ci}
20eace7efcSopenharmony_ci
21eace7efcSopenharmony_ciconfig("aafwk_module_test_config") {
22eace7efcSopenharmony_ci  configs = [
23eace7efcSopenharmony_ci    "${ability_runtime_services_path}/abilitymgr:abilityms_config",
24eace7efcSopenharmony_ci    ":moduletest_exception_config",
25eace7efcSopenharmony_ci  ]
26eace7efcSopenharmony_ci
27eace7efcSopenharmony_ci  include_dirs = [
28eace7efcSopenharmony_ci    "${ability_runtime_test_path}/moduletest/mock/include",
29eace7efcSopenharmony_ci    "//third_party/jsoncpp/include",
30eace7efcSopenharmony_ci  ]
31eace7efcSopenharmony_ci}
32eace7efcSopenharmony_ci
33eace7efcSopenharmony_ciconfig("services_module_test_config") {
34eace7efcSopenharmony_ci  include_dirs = [ "appmgr/mock/include" ]
35eace7efcSopenharmony_ci
36eace7efcSopenharmony_ci  configs = []
37eace7efcSopenharmony_ci}
38eace7efcSopenharmony_ci
39eace7efcSopenharmony_ciconfig("services_mock_ams_config") {
40eace7efcSopenharmony_ci  include_dirs = [ "../appmgr/test/mock/include" ]
41eace7efcSopenharmony_ci}
42eace7efcSopenharmony_ci
43eace7efcSopenharmony_cigroup("moduletest") {
44eace7efcSopenharmony_ci  testonly = true
45eace7efcSopenharmony_ci  deps = []
46eace7efcSopenharmony_ci
47eace7efcSopenharmony_ci  if (!use_libfuzzer) {
48eace7efcSopenharmony_ci    deps += [
49eace7efcSopenharmony_ci      "ability_caller_fw_module_test:moduletest",
50eace7efcSopenharmony_ci      "ability_delegator_test:moduletest",
51eace7efcSopenharmony_ci      "ability_manager_client_test:moduletest",
52eace7efcSopenharmony_ci      "ability_manager_service_dump_test:moduletest",
53eace7efcSopenharmony_ci      "ability_record_test:moduletest",
54eace7efcSopenharmony_ci      "ability_test:moduletest",
55eace7efcSopenharmony_ci      "ability_timeout_module_test:moduletest",
56eace7efcSopenharmony_ci      "app_mgr_client_test:moduletest",
57eace7efcSopenharmony_ci      "appexecfwk_appkit_native_app_module_test:moduletest",
58eace7efcSopenharmony_ci      "call_module_test:moduletest",
59eace7efcSopenharmony_ci      "common/ams:moduletest",
60eace7efcSopenharmony_ci      "ipc_ability_connect_test:moduletest",
61eace7efcSopenharmony_ci      "ipc_ability_mgr_test:moduletest",
62eace7efcSopenharmony_ci      "ipc_ability_scheduler_test:moduletest",
63eace7efcSopenharmony_ci      "mission_dump_test:moduletest",
64eace7efcSopenharmony_ci      "module_test_dump_util:module_test_dump_util",
65eace7efcSopenharmony_ci      "on_new_want_module_test:moduletest",
66eace7efcSopenharmony_ci      "panding_want_manager_test:moduletest",
67eace7efcSopenharmony_ci      "quick_fix:moduletest",
68eace7efcSopenharmony_ci      "running_infos_module_test:moduletest",
69eace7efcSopenharmony_ci      "start_option_display_id_test:moduletest",
70eace7efcSopenharmony_ci      "ui_extension_ability_test:moduletest",
71eace7efcSopenharmony_ci      "//third_party/icu/icu4c:shared_icuuc",
72eace7efcSopenharmony_ci      "//third_party/jsoncpp:jsoncpp",
73eace7efcSopenharmony_ci    ]
74eace7efcSopenharmony_ci  }
75eace7efcSopenharmony_ci}
76