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:
zianed 2022-11-27 12:33:35 +08:00
parent a24dd37018
commit 229e5a62f4
8 changed files with 115 additions and 21 deletions

View File

@ -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"
]
}
}

View File

@ -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",
]
}

View File

@ -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",

View 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" ]
}

View 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" ]
}

View 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",
]
}

View File

@ -152,6 +152,7 @@ if (defined(ohos_lite)) {
"monitor_permission_test:MonitorPermission",
"permission:DynamicPermissionTest",
"udp/distributed_stream:distributed_stream_test",
"udp/file:unittest",
]
}
}

View File

@ -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;