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/test.gni") 15import("//build/lite/config/subsystem/aafwk/path.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 "source/famgr_test.cpp", 23 "source/permission_test.cpp", 24 "source/tlv_parse_test.cpp", 25 "//foundation/distributedschedule/dmsfwk_lite/source/dmslite_famgr.c", 26 "//foundation/distributedschedule/dmsfwk_lite/source/dmslite_msg_handler.c", 27 "//foundation/distributedschedule/dmsfwk_lite/source/dmslite_packet.c", 28 "//foundation/distributedschedule/dmsfwk_lite/source/dmslite_parser.c", 29 "//foundation/distributedschedule/dmsfwk_lite/source/dmslite_permission.c", 30 "//foundation/distributedschedule/dmsfwk_lite/source/dmslite_session.c", 31 "//foundation/distributedschedule/dmsfwk_lite/source/dmslite_tlv_common.c", 32 "//foundation/distributedschedule/dmsfwk_lite/source/dmslite_feature.c" 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/innerkits/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/distributedschedule/dmsfwk_lite/include", 49 "//foundation/distributedschedule/dmsfwk_lite/interfaces/innerkits" 50 ] 51 52 deps = [ 53 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 54 "//foundation/communication/ipc_lite:liteipc_adapter", 55 "//foundation/distributedschedule/samgr_lite/samgr:samgr", 56 "${aafwk_lite_path}/frameworks/abilitymgr_lite:aafwk_abilityManager_lite", 57 "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle", 58 "//foundation/communication/dsoftbus/sdk:softbus_client" 59 ] 60 61 output_dir = "$root_out_dir/test/unittest/distributedschedule" 62 } 63 group("unittest") { 64 deps = [ ":distributed_schedule_test_dms_door" ] 65 } 66} 67