# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") import("../../../dsoftbus.gni") dsoftbus_root_path = "../../.." native_source_path = rebase_path("$dsoftbus_root_path") dep_dir = "dsoftbus_enhance/test/core/transmission" has_enhance_test = exec_script("$dsoftbus_root_path/check_sub_module.py", [ "$native_source_path", "$dep_dir", ], "value") group("unittest") { testonly = true deps = [ "common:unittest", "ipc:unittest", "session:unittest", "trans_channel/auth_channel:unittest", "trans_channel/common:unittest", "trans_channel/manager:unittest", "trans_channel/proxy_channel:unittest", "trans_channel/tcp_direct:unittest", "trans_channel/udp_negotiation:unittest", ] if (has_enhance_test) { deps += [ "$dsoftbus_root_path/dsoftbus_enhance/test/core/transmission/ipc:unittest", "$dsoftbus_root_path/dsoftbus_enhance/test/core/transmission/manager:unittest", "$dsoftbus_root_path/dsoftbus_enhance/test/core/transmission/session:unittest", "$dsoftbus_root_path/dsoftbus_enhance/test/core/transmission/spe:unittest", "$dsoftbus_root_path/dsoftbus_enhance/test/core/transmission/trans_channel:unittest", ] } } group("fuzztest") { testonly = true deps = [ "fuzztest:fuzztest" ] if (has_enhance_test) { deps += [ "$dsoftbus_root_path/dsoftbus_enhance/test/core/transmission:fuzztest", ] } }