1# Copyright (c) 2021-2023 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 14declare_args() { 15 hdf_core_khdf_test_support = true 16 hdf_core_platform_test_support = false 17} 18 19if (hdf_core_khdf_test_support) { 20 group("hdf_test_uhdf") { 21 testonly = true 22 deps = [ 23 "./../../../framework/test/fuzztest:hdf_framework_fuzztest", 24 "fuzztest:hdf_platform_test", 25 "unittest/config:hdf_adapter_uhdf_test_config", 26 "unittest/load_vdi:hdf_load_vdi_test", 27 "unittest/load_vdi:libvdi_sample1_driver", 28 "unittest/load_vdi:libvdi_sample1_symbol", 29 "unittest/load_vdi:libvdi_sample2_driver", 30 "unittest/manager:hdf_adapter_uhdf_test_core_shared", 31 "unittest/manager:hdf_adapter_uhdf_test_ioservice", 32 "unittest/manager:hdf_adapter_uhdf_test_manager", 33 "unittest/manager:hdf_adapter_uhdf_test_pm", 34 "unittest/manager:hdf_adapter_uhdf_test_remote_adapter", 35 "unittest/manager:hdf_adapter_uhdf_test_sbuf", 36 "unittest/manager:hdf_adapter_uhdf_test_uevent", 37 "unittest/osal:hdf_adapter_uhdf_test_osal", 38 "unittest/osal:hdf_adapter_uhdf_test_osal_posix", 39 "unittest/platform/i2c:ui2c_test", 40 ] 41 if (hdf_core_platform_test_support) { 42 deps += [ "unittest/platform:hdf_adapter_uhdf_test_platform" ] 43 } 44 } 45} else { 46 group("hdf_test_uhdf") { 47 testonly = true 48 deps = [ 49 "./../../../framework/test/fuzztest:hdf_framework_fuzztest", 50 "fuzztest:hdf_platform_test", 51 "unittest/load_vdi:hdf_load_vdi_test", 52 "unittest/load_vdi:libvdi_sample1_driver", 53 "unittest/load_vdi:libvdi_sample1_symbol", 54 "unittest/load_vdi:libvdi_sample2_driver", 55 "unittest/manager:hdf_adapter_uhdf_test_core_shared", 56 "unittest/manager:hdf_adapter_uhdf_test_remote_adapter", 57 "unittest/manager:hdf_adapter_uhdf_test_sbuf", 58 "unittest/osal:hdf_adapter_uhdf_test_osal_posix", 59 ] 60 } 61} 62