mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-27 02:40:40 +00:00
change compile build
Signed-off-by: zianed <houxuanzhe@huawei.com> change compile build Signed-off-by: zianed <houxuanzhe@huawei.com> change compile build Signed-off-by: zianed <houxuanzhe@huawei.com> change compile build Signed-off-by: zianed <houxuanzhe@huawei.com>
This commit is contained in:
parent
a24dd37018
commit
229e5a62f4
27
bundle.json
27
bundle.json
@ -94,25 +94,20 @@
|
|||||||
"//foundation/communication/dsoftbus/tests/core/bus_center:unittest",
|
"//foundation/communication/dsoftbus/tests/core/bus_center:unittest",
|
||||||
"//foundation/communication/dsoftbus/tests/core/common:fuzztest",
|
"//foundation/communication/dsoftbus/tests/core/common:fuzztest",
|
||||||
"//foundation/communication/dsoftbus/tests/core/common:unittest",
|
"//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:fuzztest",
|
||||||
|
"//foundation/communication/dsoftbus/tests/core/connection:unittest",
|
||||||
"//foundation/communication/dsoftbus/tests/core/discovery: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:unittest",
|
||||||
"//foundation/communication/dsoftbus/tests/core/transmission/trans_channel/common:unittest",
|
"//foundation/communication/dsoftbus/tests/sdk/bus_center:fuzztest",
|
||||||
"//foundation/communication/dsoftbus/tests/core/transmission/ipc:unittest",
|
"//foundation/communication/dsoftbus/tests/sdk/bus_center:unittest",
|
||||||
"//foundation/communication/dsoftbus/tests/core/transmission/session:unittest",
|
"//foundation/communication/dsoftbus/tests/sdk/discovery:fuzztest",
|
||||||
"//foundation/communication/dsoftbus/tests/sdk/transmission/session:unittest",
|
"//foundation/communication/dsoftbus/tests/sdk/discovery:unittest",
|
||||||
"//foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest:fuzztest",
|
"//foundation/communication/dsoftbus/tests/sdk/transmission:fuzztest",
|
||||||
"//foundation/communication/dsoftbus/tests/sdk/bus_center/unittest:unittest",
|
"//foundation/communication/dsoftbus/tests/sdk/transmission:unittest",
|
||||||
"//foundation/communication/dsoftbus/tests/sdk/discovery/fuzztest:fuzztest",
|
"//foundation/communication/dsoftbus/tests/sdk/bus_center:benchmarktest",
|
||||||
"//foundation/communication/dsoftbus/tests/sdk/discovery/unittest:unittest",
|
"//foundation/communication/dsoftbus/tests/sdk/discovery:benchmarktest",
|
||||||
"//foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest:fuzztest",
|
"//foundation/communication/dsoftbus/tests/sdk/transmission:benchmarktest",
|
||||||
"//foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel:unittest",
|
"//foundation/communication/dsoftbus/tests/sdk/transmission:integration_test"
|
||||||
"//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"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,10 +15,7 @@ import("//build/lite/config/component/lite_component.gni")
|
|||||||
|
|
||||||
lite_component("softbus_test_core_common") {
|
lite_component("softbus_test_core_common") {
|
||||||
features = [
|
features = [
|
||||||
"common/message_handler/unittest:softbus_test_message_handler",
|
|
||||||
|
|
||||||
"authentication/auth_test:softbus_auth_test",
|
"authentication/auth_test:softbus_auth_test",
|
||||||
|
"common/message_handler/unittest:softbus_test_message_handler",
|
||||||
# "iothardware:led_example",
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,10 @@ group("unittest") {
|
|||||||
testonly = true
|
testonly = true
|
||||||
deps = [
|
deps = [
|
||||||
"common:unittest",
|
"common:unittest",
|
||||||
|
"ipc:unittest",
|
||||||
|
"session:unittest",
|
||||||
"trans_channel/auth_channel:unittest",
|
"trans_channel/auth_channel:unittest",
|
||||||
|
"trans_channel/common:unittest",
|
||||||
"trans_channel/manager:unittest",
|
"trans_channel/manager:unittest",
|
||||||
"trans_channel/proxy_channel:unittest",
|
"trans_channel/proxy_channel:unittest",
|
||||||
"trans_channel/tcp_direct:unittest",
|
"trans_channel/tcp_direct:unittest",
|
||||||
|
30
tests/sdk/bus_center/BUILD.gn
Normal file
30
tests/sdk/bus_center/BUILD.gn
Normal file
@ -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" ]
|
||||||
|
}
|
30
tests/sdk/discovery/BUILD.gn
Normal file
30
tests/sdk/discovery/BUILD.gn
Normal file
@ -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" ]
|
||||||
|
}
|
38
tests/sdk/transmission/BUILD.gn
Normal file
38
tests/sdk/transmission/BUILD.gn
Normal file
@ -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",
|
||||||
|
]
|
||||||
|
}
|
@ -152,6 +152,7 @@ if (defined(ohos_lite)) {
|
|||||||
"monitor_permission_test:MonitorPermission",
|
"monitor_permission_test:MonitorPermission",
|
||||||
"permission:DynamicPermissionTest",
|
"permission:DynamicPermissionTest",
|
||||||
"udp/distributed_stream:distributed_stream_test",
|
"udp/distributed_stream:distributed_stream_test",
|
||||||
|
"udp/file:unittest",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 localNodeinfo;
|
||||||
NodeBasicInfo *remoteNodeInfo = NULL;
|
NodeBasicInfo *remoteNodeInfo = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user