mirror of
https://gitee.com/openharmony/communication_ipc
synced 2025-02-17 07:20:46 +00:00
add ipc test case
Signed-off-by: liubb_0516 <liubeibei8@huawei.com>
This commit is contained in:
parent
eeff5fad0c
commit
f40c9a9c71
@ -1,22 +1,22 @@
|
||||
# Copyright (c) 2021 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
|
||||
# Copyright (c) 2021 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("//foundation/communication/dsoftbus/dsoftbus.gni")
|
||||
|
||||
lite_component("ipc_test") {
|
||||
features = [
|
||||
"client:ipc_client",
|
||||
"server:ipc_server",
|
||||
"samgr:samgr",
|
||||
]
|
||||
}
|
||||
|
||||
import("//foundation/communication/dsoftbus/dsoftbus.gni")
|
||||
|
||||
lite_component("ipc_test") {
|
||||
features = [
|
||||
"client:ipc_client",
|
||||
"server:ipc_server",
|
||||
"samgr:samgr",
|
||||
]
|
||||
}
|
||||
|
@ -1,39 +1,36 @@
|
||||
# Copyright (c) 2020 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
|
||||
# Copyright (c) 2020 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/lite/config/component/lite_component.gni")
|
||||
|
||||
SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
|
||||
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
|
||||
|
||||
executable("ipc_client") {
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/ipc/client/client.c",
|
||||
]
|
||||
include_dirs = [
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//utils/native/lite/include",
|
||||
"$IPC_CORE_ROOT/manager/include",
|
||||
"//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
|
||||
"$SUBSYSTEM_DIR/ipc/include",
|
||||
]
|
||||
ldflags = [
|
||||
"-lstdc++",
|
||||
"-lpthread",
|
||||
]
|
||||
deps = [
|
||||
"//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single"
|
||||
]
|
||||
|
||||
configs -= [ "//build/lite/config:clang_opt" ]
|
||||
}
|
||||
|
||||
import("//build/lite/config/component/lite_component.gni")
|
||||
|
||||
SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
|
||||
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
|
||||
|
||||
executable("ipc_client") {
|
||||
sources = [ "$SUBSYSTEM_DIR/ipc/client/client.c" ]
|
||||
include_dirs = [
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//utils/native/lite/include",
|
||||
"$IPC_CORE_ROOT/manager/include",
|
||||
"//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
|
||||
"$SUBSYSTEM_DIR/ipc/include",
|
||||
]
|
||||
ldflags = [
|
||||
"-lstdc++",
|
||||
"-lpthread",
|
||||
]
|
||||
deps =
|
||||
[ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ]
|
||||
|
||||
configs -= [ "//build/lite/config:clang_opt" ]
|
||||
}
|
||||
|
@ -1,41 +1,38 @@
|
||||
# Copyright (c) 2020 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
|
||||
# Copyright (c) 2020 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/lite/config/component/lite_component.gni")
|
||||
|
||||
SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
|
||||
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
|
||||
|
||||
executable("samgr") {
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/ipc/samgr/samgr.c",
|
||||
]
|
||||
include_dirs = [
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//utils/native/lite/include",
|
||||
"$IPC_CORE_ROOT/manager/include",
|
||||
"$IPC_CORE_ROOT/ipc/include",
|
||||
"//foundation/communication/ipc/services/dbinder/c/include",
|
||||
"//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
|
||||
"$SUBSYSTEM_DIR/ipc/include",
|
||||
]
|
||||
ldflags = [
|
||||
"-lstdc++",
|
||||
"-lpthread",
|
||||
]
|
||||
deps = [
|
||||
"//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
|
||||
]
|
||||
|
||||
configs -= [ "//build/lite/config:clang_opt" ]
|
||||
}
|
||||
|
||||
import("//build/lite/config/component/lite_component.gni")
|
||||
|
||||
SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
|
||||
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
|
||||
|
||||
executable("samgr") {
|
||||
sources = [ "$SUBSYSTEM_DIR/ipc/samgr/samgr.c" ]
|
||||
include_dirs = [
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//utils/native/lite/include",
|
||||
"$IPC_CORE_ROOT/manager/include",
|
||||
"$IPC_CORE_ROOT/ipc/include",
|
||||
"//foundation/communication/ipc/services/dbinder/c/include",
|
||||
"//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
|
||||
"$SUBSYSTEM_DIR/ipc/include",
|
||||
]
|
||||
ldflags = [
|
||||
"-lstdc++",
|
||||
"-lpthread",
|
||||
]
|
||||
deps =
|
||||
[ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ]
|
||||
|
||||
configs -= [ "//build/lite/config:clang_opt" ]
|
||||
}
|
||||
|
@ -1,39 +1,36 @@
|
||||
# Copyright (c) 2020 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
|
||||
# Copyright (c) 2020 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/lite/config/component/lite_component.gni")
|
||||
|
||||
SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
|
||||
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
|
||||
|
||||
executable("ipc_server") {
|
||||
sources = [
|
||||
"$SUBSYSTEM_DIR/ipc/server/server.c",
|
||||
]
|
||||
include_dirs = [
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//utils/native/lite/include",
|
||||
"$IPC_CORE_ROOT/manager/include",
|
||||
"//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
|
||||
"$SUBSYSTEM_DIR/ipc/include",
|
||||
]
|
||||
ldflags = [
|
||||
"-lstdc++",
|
||||
"-lpthread",
|
||||
]
|
||||
deps = [
|
||||
"//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single"
|
||||
]
|
||||
|
||||
configs -= [ "//build/lite/config:clang_opt" ]
|
||||
}
|
||||
|
||||
import("//build/lite/config/component/lite_component.gni")
|
||||
|
||||
SUBSYSTEM_DIR = "//foundation/communication/ipc/test"
|
||||
IPC_CORE_ROOT = "//foundation/communication/ipc/ipc/native/c"
|
||||
|
||||
executable("ipc_server") {
|
||||
sources = [ "$SUBSYSTEM_DIR/ipc/server/server.c" ]
|
||||
include_dirs = [
|
||||
"//third_party/bounds_checking_function/include",
|
||||
"//utils/native/lite/include",
|
||||
"$IPC_CORE_ROOT/manager/include",
|
||||
"//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
|
||||
"$SUBSYSTEM_DIR/ipc/include",
|
||||
]
|
||||
ldflags = [
|
||||
"-lstdc++",
|
||||
"-lpthread",
|
||||
]
|
||||
deps =
|
||||
[ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single" ]
|
||||
|
||||
configs -= [ "//build/lite/config:clang_opt" ]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user