1# Copyright (c) 2022 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("//foundation/ability/ability_runtime/ability_runtime.gni")
16
17config("moduletest_exception_config") {
18  cflags_cc = [ "-fexceptions" ]
19}
20
21config("aafwk_module_test_config") {
22  configs = [
23    "${ability_runtime_services_path}/abilitymgr:abilityms_config",
24    ":moduletest_exception_config",
25  ]
26
27  include_dirs = [
28    "${ability_runtime_test_path}/moduletest/mock/include",
29    "//third_party/jsoncpp/include",
30  ]
31}
32
33config("services_module_test_config") {
34  include_dirs = [ "appmgr/mock/include" ]
35
36  configs = []
37}
38
39config("services_mock_ams_config") {
40  include_dirs = [ "../appmgr/test/mock/include" ]
41}
42
43group("moduletest") {
44  testonly = true
45  deps = []
46
47  if (!use_libfuzzer) {
48    deps += [
49      "ability_caller_fw_module_test:moduletest",
50      "ability_delegator_test:moduletest",
51      "ability_manager_client_test:moduletest",
52      "ability_manager_service_dump_test:moduletest",
53      "ability_record_test:moduletest",
54      "ability_test:moduletest",
55      "ability_timeout_module_test:moduletest",
56      "app_mgr_client_test:moduletest",
57      "appexecfwk_appkit_native_app_module_test:moduletest",
58      "call_module_test:moduletest",
59      "common/ams:moduletest",
60      "ipc_ability_connect_test:moduletest",
61      "ipc_ability_mgr_test:moduletest",
62      "ipc_ability_scheduler_test:moduletest",
63      "mission_dump_test:moduletest",
64      "module_test_dump_util:module_test_dump_util",
65      "on_new_want_module_test:moduletest",
66      "panding_want_manager_test:moduletest",
67      "quick_fix:moduletest",
68      "running_infos_module_test:moduletest",
69      "start_option_display_id_test:moduletest",
70      "ui_extension_ability_test:moduletest",
71      "//third_party/icu/icu4c:shared_icuuc",
72      "//third_party/jsoncpp:jsoncpp",
73    ]
74  }
75}
76