1# Copyright (c) 2022-2025 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 ] 30} 31 32config("services_module_test_config") { 33 include_dirs = [ "appmgr/mock/include" ] 34 35 configs = [] 36} 37 38config("services_mock_ams_config") { 39 include_dirs = [ "../appmgr/test/mock/include" ] 40} 41 42group("moduletest") { 43 testonly = true 44 deps = [] 45 46 if (!use_libfuzzer) { 47 deps += [ 48 "ability_caller_fw_module_test:moduletest", 49 "ability_delegator_test:moduletest", 50 "ability_manager_client_other_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 "app_mgr_client_test:moduletest", 56 "call_module_test:moduletest", 57 "common/ams:moduletest", 58 "ipc_ability_connect_test:moduletest", 59 "ipc_ability_mgr_test:moduletest", 60 "ipc_ability_scheduler_test:moduletest", 61 "mission_dump_test:moduletest", 62 "module_test_dump_util:module_test_dump_util", 63 "on_new_want_module_test:moduletest", 64 "quick_fix:moduletest", 65 "start_option_display_id_test:moduletest", 66 "ui_extension_ability_test:moduletest", 67 ] 68 69 external_deps = [ 70 "icu:shared_icuuc", 71 ] 72 } 73} 74