diff --git a/bundle.json b/bundle.json index c71ddda83..90ea6d7cb 100644 --- a/bundle.json +++ b/bundle.json @@ -94,25 +94,20 @@ "//foundation/communication/dsoftbus/tests/core/bus_center:unittest", "//foundation/communication/dsoftbus/tests/core/common:fuzztest", "//foundation/communication/dsoftbus/tests/core/common:unittest", - "//foundation/communication/dsoftbus/tests/core/connection:unittest", "//foundation/communication/dsoftbus/tests/core/connection:fuzztest", + "//foundation/communication/dsoftbus/tests/core/connection:unittest", "//foundation/communication/dsoftbus/tests/core/discovery:unittest", - "//foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/file:unittest", "//foundation/communication/dsoftbus/tests/core/transmission:unittest", - "//foundation/communication/dsoftbus/tests/core/transmission/trans_channel/common:unittest", - "//foundation/communication/dsoftbus/tests/core/transmission/ipc:unittest", - "//foundation/communication/dsoftbus/tests/core/transmission/session:unittest", - "//foundation/communication/dsoftbus/tests/sdk/transmission/session:unittest", - "//foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest:fuzztest", - "//foundation/communication/dsoftbus/tests/sdk/bus_center/unittest:unittest", - "//foundation/communication/dsoftbus/tests/sdk/discovery/fuzztest:fuzztest", - "//foundation/communication/dsoftbus/tests/sdk/discovery/unittest:unittest", - "//foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest:fuzztest", - "//foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel:unittest", - "//foundation/communication/dsoftbus/tests/sdk/transmission/integration_test:integration_test", - "//foundation/communication/dsoftbus/tests/sdk/bus_center/benchmarktest:BusCenterTest", - "//foundation/communication/dsoftbus/tests/sdk/discovery/benchmarktest:DiscoveryTest", - "//foundation/communication/dsoftbus/tests/sdk/transmission/benchmarktest:TransTest" + "//foundation/communication/dsoftbus/tests/sdk/bus_center:fuzztest", + "//foundation/communication/dsoftbus/tests/sdk/bus_center:unittest", + "//foundation/communication/dsoftbus/tests/sdk/discovery:fuzztest", + "//foundation/communication/dsoftbus/tests/sdk/discovery:unittest", + "//foundation/communication/dsoftbus/tests/sdk/transmission:fuzztest", + "//foundation/communication/dsoftbus/tests/sdk/transmission:unittest", + "//foundation/communication/dsoftbus/tests/sdk/bus_center:benchmarktest", + "//foundation/communication/dsoftbus/tests/sdk/discovery:benchmarktest", + "//foundation/communication/dsoftbus/tests/sdk/transmission:benchmarktest", + "//foundation/communication/dsoftbus/tests/sdk/transmission:integration_test" ] } } diff --git a/tests/core/BUILD.gn b/tests/core/BUILD.gn index ffbf71bdd..f53e8836e 100644 --- a/tests/core/BUILD.gn +++ b/tests/core/BUILD.gn @@ -15,10 +15,7 @@ import("//build/lite/config/component/lite_component.gni") lite_component("softbus_test_core_common") { features = [ - "common/message_handler/unittest:softbus_test_message_handler", - "authentication/auth_test:softbus_auth_test", - - # "iothardware:led_example", + "common/message_handler/unittest:softbus_test_message_handler", ] } diff --git a/tests/core/transmission/BUILD.gn b/tests/core/transmission/BUILD.gn index de6794767..7c36f7bd9 100644 --- a/tests/core/transmission/BUILD.gn +++ b/tests/core/transmission/BUILD.gn @@ -18,7 +18,10 @@ 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", diff --git a/tests/sdk/bus_center/BUILD.gn b/tests/sdk/bus_center/BUILD.gn new file mode 100644 index 000000000..ecdad4da5 --- /dev/null +++ b/tests/sdk/bus_center/BUILD.gn @@ -0,0 +1,30 @@ +# 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("//foundation/communication/dsoftbus/dsoftbus.gni") + +group("benchmarktest") { + testonly = true + deps = [ "benchmarktest:benchmarktest" ] +} + +group("fuzztest") { + testonly = true + deps = [ "fuzztest:fuzztest" ] +} + +group("unittest") { + testonly = true + deps = [ "unittest:unittest" ] +} diff --git a/tests/sdk/discovery/BUILD.gn b/tests/sdk/discovery/BUILD.gn new file mode 100644 index 000000000..ecdad4da5 --- /dev/null +++ b/tests/sdk/discovery/BUILD.gn @@ -0,0 +1,30 @@ +# 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("//foundation/communication/dsoftbus/dsoftbus.gni") + +group("benchmarktest") { + testonly = true + deps = [ "benchmarktest:benchmarktest" ] +} + +group("fuzztest") { + testonly = true + deps = [ "fuzztest:fuzztest" ] +} + +group("unittest") { + testonly = true + deps = [ "unittest:unittest" ] +} diff --git a/tests/sdk/transmission/BUILD.gn b/tests/sdk/transmission/BUILD.gn new file mode 100644 index 000000000..651750330 --- /dev/null +++ b/tests/sdk/transmission/BUILD.gn @@ -0,0 +1,38 @@ +# 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("//foundation/communication/dsoftbus/dsoftbus.gni") + +group("benchmarktest") { + testonly = true + deps = [ "benchmarktest:benchmarktest" ] +} + +group("fuzztest") { + testonly = true + deps = [ "fuzztest:fuzztest" ] +} + +group("integration_test") { + testonly = true + deps = [ "integration_test:integration_test" ] +} + +group("unittest") { + testonly = true + deps = [ + "session:unittest", + "trans_channel:unittest", + ] +} diff --git a/tests/sdk/transmission/trans_channel/BUILD.gn b/tests/sdk/transmission/trans_channel/BUILD.gn index c105b3738..ff5c3f6f9 100644 --- a/tests/sdk/transmission/trans_channel/BUILD.gn +++ b/tests/sdk/transmission/trans_channel/BUILD.gn @@ -152,6 +152,7 @@ if (defined(ohos_lite)) { "monitor_permission_test:MonitorPermission", "permission:DynamicPermissionTest", "udp/distributed_stream:distributed_stream_test", + "udp/file:unittest", ] } } diff --git a/tools/device_info/get_device_info.c b/tools/device_info/get_device_info.c index 5e39ecb99..fc5f15987 100644 --- a/tools/device_info/get_device_info.c +++ b/tools/device_info/get_device_info.c @@ -89,7 +89,7 @@ static void PrintNodePropertyNum(const NodeBasicInfo *nodeInfo) } } -int main(void) +int main(int argc __attribute__((unused)), char **argv __attribute__((unused))) { NodeBasicInfo localNodeinfo; NodeBasicInfo *remoteNodeInfo = NULL;