1# Copyright (c) 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("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") 15 16module_output_path = "common_component" 17 18host_unittest_action("Heap_Manager_Test") { 19 module_out_path = module_output_path 20 21 sources = [ 22 # test file 23 "heap_manager_test.cpp", 24 ] 25 26 configs = [ 27 "//arkcompiler/ets_runtime/common_components:common_components_test_config", 28 "//arkcompiler/ets_runtime:icu_path_test_config", 29 ] 30 31 deps = [ "//arkcompiler/ets_runtime/common_components:libark_common_components_test" ] 32 33 # hiviewdfx libraries 34 external_deps = [ 35 "icu:shared_icui18n", 36 "icu:shared_icuuc", 37 "zlib:libz", 38 ] 39} 40 41host_unittest_action("Verification_Test") { 42 module_out_path = module_output_path 43 44 sources = [ 45 # test file 46 "verification_test.cpp", 47 ] 48 49 include_dirs = [ "//arkcompiler/ets_runtime/common_components/" ] 50 51 configs = [ 52 "//arkcompiler/ets_runtime/common_components:common_components_test_config", 53 "//arkcompiler/ets_runtime:icu_path_test_config", 54 ] 55 56 deps = [ "//arkcompiler/ets_runtime/common_components:libark_common_components_test" ] 57 58 # hiviewdfx libraries 59 external_deps = [ 60 "bounds_checking_function:libsec_shared", 61 "icu:shared_icui18n", 62 "icu:shared_icuuc", 63 "zlib:libz", 64 ] 65} 66 67group("unittest") { 68 testonly = true 69 70 # deps file 71 deps = [ 72 ":Heap_Manager_Test", 73 ":Verification_Test", 74 ] 75} 76 77group("host_unittest") { 78 testonly = true 79 80 # deps file 81 deps = [ 82 ":Heap_Manager_TestAction", 83 ":Verification_TestAction", 84 ] 85}