未验证 提交 c0238e4d 编写于 作者: O openharmony_ci 提交者: Gitee

!5622 fix toolchain for master

Merge pull request !5622 from FondMemoryVVV/toolchain
...@@ -14,17 +14,19 @@ import("//build/ohos_var.gni") ...@@ -14,17 +14,19 @@ import("//build/ohos_var.gni")
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
group("toolchain") { group("toolchain") {
testonly = true if (!(product_name == "m40")) {
deps = [ "//third_party/musl:libctest" ] testonly = true
if (is_standard_system) { deps = [ "//third_party/musl:libctest" ]
deps += [ ":tar_dllib" ] if (is_standard_system) {
deps += [ ":tar_dllib" ]
}
} }
} }
action("tar_testcases") { action("tar_testcases") {
testonly = true testonly = true
deps = [ deps = [
"libc-test:ActToolChainTest", "libc-test:ActsToolChainTest",
"//third_party/musl:libctest", "//third_party/musl:libctest",
] ]
project_dir = rebase_path(".") project_dir = rebase_path(".")
...@@ -42,7 +44,7 @@ action("tar_testcases") { ...@@ -42,7 +44,7 @@ action("tar_testcases") {
_outputs = [ "$target_out_dir/libc-test.tar" ] _outputs = [ "$target_out_dir/libc-test.tar" ]
outputs = _outputs outputs = _outputs
input_path = rebase_path("$test_path/tests/unittest/libc-test") input_path = rebase_path("$test_path/musl/libc-test")
output_path = rebase_path("$test_path/suites/acts/testcases/libc-test.tar") output_path = rebase_path("$test_path/suites/acts/testcases/libc-test.tar")
print("root_build_dir-49", root_build_dir) print("root_build_dir-49", root_build_dir)
......
...@@ -27,7 +27,7 @@ config("module_private_config") { ...@@ -27,7 +27,7 @@ config("module_private_config") {
} }
######################################################## ########################################################
ohos_moduletest_suite("ActToolChainTest") { ohos_moduletest_suite("ActsToolChainTest") {
configs = [ ":module_private_config" ] configs = [ ":module_private_config" ]
cflags_cc = [ "-DHILOG_ENABLE" ] cflags_cc = [ "-DHILOG_ENABLE" ]
defines = [ "_STANDARD_SYSTEM_" ] defines = [ "_STANDARD_SYSTEM_" ]
......
...@@ -36,7 +36,7 @@ using namespace testing; ...@@ -36,7 +36,7 @@ using namespace testing;
namespace OHOS { namespace OHOS {
class toolchaintest : public ::testing::TestWithParam<string> {}; class toolchaintest : public ::testing::TestWithParam<string> {};
static string filepath = "/data/local/tmp/libc-test/src"; static string filepath = "/data/local/tmp/libc-test";
static vector<std::string> temp = runtest::GetFileNames(filepath); static vector<std::string> temp = runtest::GetFileNames(filepath);
volatile int t_status = 0; volatile int t_status = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册