1# Copyright (c) 2020 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/lite/config/subsystem/aafwk/path.gni") 15import("//build/lite/config/test.gni") 16 17if (ohos_kernel_type == "liteos_a" || ohos_kernel_type == "linux") { 18 # feature: distributed_schedule_test_dms 19 unittest("distributed_schedule_test_dms_door") { 20 output_extension = "bin" 21 sources = [ 22 "//foundation/ability/dmsfwk_lite/source/dmslite_famgr.c", 23 "//foundation/ability/dmsfwk_lite/source/dmslite_feature.c", 24 "//foundation/ability/dmsfwk_lite/source/dmslite_msg_handler.c", 25 "//foundation/ability/dmsfwk_lite/source/dmslite_packet.c", 26 "//foundation/ability/dmsfwk_lite/source/dmslite_parser.c", 27 "//foundation/ability/dmsfwk_lite/source/dmslite_permission.c", 28 "//foundation/ability/dmsfwk_lite/source/dmslite_session.c", 29 "//foundation/ability/dmsfwk_lite/source/dmslite_tlv_common.c", 30 "source/famgr_test.cpp", 31 "source/permission_test.cpp", 32 "source/tlv_parse_test.cpp", 33 ] 34 35 defines = [ 36 "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER", 37 "XTS_SUITE_TEST", 38 ] 39 40 include_dirs = [ 41 "${aafwk_lite_path}/interfaces/kits/ability_lite", 42 "${aafwk_lite_path}/interfaces/kits/want_lite", 43 "${appexecfwk_lite_path}/interfaces/kits/bundle_lite", 44 "${appexecfwk_lite_path}/interfaces/inner_api/bundlemgr_lite", 45 "//foundation/communication/dsoftbus/interfaces/kits/bus_center", 46 "//foundation/communication/dsoftbus/interfaces/kits/common", 47 "//foundation/communication/dsoftbus/interfaces/kits/transport", 48 "//foundation/ability/dmsfwk_lite/include", 49 "//foundation/ability/dmsfwk_lite/interfaces/innerkits", 50 ] 51 52 deps = [ 53 "${aafwk_lite_path}/frameworks/abilitymgr_lite:aafwk_abilityManager_lite", 54 "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle", 55 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 56 "//foundation/communication/dsoftbus/sdk:softbus_client", 57 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 58 ] 59 60 output_dir = "$root_out_dir/test/unittest/ability" 61 } 62 group("unittest") { 63 deps = [ ":distributed_schedule_test_dms_door" ] 64 } 65} 66