# Copyright (c) 2022-2024 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/sdk/transmission" trans_enhance_test = exec_script("$dsoftbus_root_path/check_sub_module.py", [ "$native_source_path", "$dep_dir", ], "value") trans_enhance_fuzz_dir = "dsoftbus_enhance/test/sdk/transmission/fuzztest" trans_enhance_fuzz_test = exec_script("$dsoftbus_root_path/check_sub_module.py", [ "$native_source_path", "$trans_enhance_fuzz_dir", ], "value") trans_enhance_mt_dir = "dsoftbus_enhance/test/sdk/transmission/moduletest" trans_enhance_mt_test = exec_script("$dsoftbus_root_path/check_sub_module.py", [ "$native_source_path", "$trans_enhance_mt_dir", ], "value") group("benchmarktest") { testonly = true deps = [ "benchmarktest:benchmarktest" ] } group("fuzztest") { testonly = true deps = [ "fuzztest:fuzztest" ] if (trans_enhance_fuzz_test) { deps += [ "$dsoftbus_root_path/dsoftbus_enhance/test/sdk/transmission/fuzztest:fuzztest" ] } } group("integration_test") { testonly = true deps = [ "integration_test:integration_test" ] } group("moduletest") { testonly = true deps = [ "moduletest:moduletest" ] if (trans_enhance_mt_test) { deps += [ "$dsoftbus_root_path/dsoftbus_enhance/test/sdk/transmission/moduletest:moduletest" ] } } group("unittest") { testonly = true deps = [ "ipc:unittest", "session:unittest", "trans_channel:unittest", ] if (trans_enhance_test) { deps += [ "$dsoftbus_root_path/dsoftbus_enhance/test/sdk/transmission:unittest", ] } }