提交 c2bf32f4 编写于 作者: T tangshihua

bugfix

Signed-off-by: Ntangshihua <tangshihua@huawei.com>
上级 f53d6cf4
...@@ -13,8 +13,19 @@ ...@@ -13,8 +13,19 @@
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
config("nnrt_config") {
include_dirs = [
"../common",
"//foundation/ai/neural_network_runtime",
"//foundation/ai/neural_network_runtime/third_party/include",
"//third_party/googletest/googletest/include",
"//third_party/googletest/googlemock/include",
"//third_party/mindspore/mindspore/lite/mindir/include",
]
cflags = [ "-Wno-error" ]
}
ohos_moduletest_suite("ActsAiNnrtFunctionTest") { ohos_moduletest_suite("ActsAiNnrtFunctionTest") {
testonly = true
module_out_path = "acts/nnrt" module_out_path = "acts/nnrt"
sources = [ sources = [
"../common/mock_idevice.cpp", "../common/mock_idevice.cpp",
...@@ -26,14 +37,8 @@ ohos_moduletest_suite("ActsAiNnrtFunctionTest") { ...@@ -26,14 +37,8 @@ ohos_moduletest_suite("ActsAiNnrtFunctionTest") {
"src/ModelTest.cpp", "src/ModelTest.cpp",
] ]
include_dirs = [ configs = [ ":nnrt_config" ]
"../common",
"//foundation/ai/neural_network_runtime",
"//foundation/ai/neural_network_runtime/third_party/include",
"//third_party/googletest/googletest/include",
"//third_party/googletest/googlemock/include",
"//third_party/mindspore/mindspore/lite/mindir/include",
]
deps = [ deps = [
"//foundation/ai/neural_network_runtime/frameworks:libneural_network_runtime", "//foundation/ai/neural_network_runtime/frameworks:libneural_network_runtime",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
...@@ -53,6 +58,4 @@ ohos_moduletest_suite("ActsAiNnrtFunctionTest") { ...@@ -53,6 +58,4 @@ ohos_moduletest_suite("ActsAiNnrtFunctionTest") {
subsystem_name = "ai" subsystem_name = "ai"
part_name = "neural_network_runtime" part_name = "neural_network_runtime"
cflags = [ "-Wno-error" ]
} }
...@@ -13,15 +13,7 @@ ...@@ -13,15 +13,7 @@
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_moduletest_suite("ActsAiNnrtStabilityTest") { config("nnrt_config") {
testonly = true
module_out_path = "acts/nnrt"
sources = [
"../common/mock_idevice.cpp",
"../common/nnrt_utils.cpp",
"src/MultiThreadTest.cpp",
]
include_dirs = [ include_dirs = [
"../common", "../common",
"//foundation/ai/neural_network_runtime", "//foundation/ai/neural_network_runtime",
...@@ -30,6 +22,19 @@ ohos_moduletest_suite("ActsAiNnrtStabilityTest") { ...@@ -30,6 +22,19 @@ ohos_moduletest_suite("ActsAiNnrtStabilityTest") {
"//third_party/googletest/googlemock/include", "//third_party/googletest/googlemock/include",
"//third_party/mindspore/mindspore/lite/mindir/include", "//third_party/mindspore/mindspore/lite/mindir/include",
] ]
cflags = [ "-Wno-error" ]
}
ohos_moduletest_suite("ActsAiNnrtStabilityTest") {
module_out_path = "acts/nnrt"
sources = [
"../common/mock_idevice.cpp",
"../common/nnrt_utils.cpp",
"src/MultiThreadTest.cpp",
]
configs = [ ":nnrt_config" ]
deps = [ deps = [
"//foundation/ai/neural_network_runtime/frameworks:libneural_network_runtime", "//foundation/ai/neural_network_runtime/frameworks:libneural_network_runtime",
"//third_party/googletest:gmock", "//third_party/googletest:gmock",
...@@ -49,6 +54,4 @@ ohos_moduletest_suite("ActsAiNnrtStabilityTest") { ...@@ -49,6 +54,4 @@ ohos_moduletest_suite("ActsAiNnrtStabilityTest") {
subsystem_name = "ai" subsystem_name = "ai"
part_name = "neural_network_runtime" part_name = "neural_network_runtime"
cflags = [ "-Wno-error" ]
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册