From 26221c0440b72be03a89e9c099389ea98d694d64 Mon Sep 17 00:00:00 2001 From: wangpggg Date: Mon, 17 Mar 2025 17:22:23 +0800 Subject: [PATCH] modify output path Signed-off-by: wangpeng --- BUILD.gn | 8 ++- backup.gni | 2 +- bundle.json | 4 +- .../native/backup_ext/src/untar_file.cpp | 2 +- test/unittest/file_permission_native/BUILD.gn | 2 +- test/unittest/file_share_native/BUILD.gn | 2 +- .../file_share_permission_sup_test/BUILD.gn | 2 +- .../file_share_permission_test/BUILD.gn | 2 +- test/unittest/file_uri_native/BUILD.gn | 2 +- test/unittest/file_uri_ndk_test/BUILD.gn | 2 +- .../permission/BUILD.gn | 2 +- test/unittest/js_file_uri_test/BUILD.gn | 2 +- test/unittest/remote_file_share/BUILD.gn | 2 +- .../backup_tool/tool_help_test.cpp | 4 +- tests/unittests/BUILD.gn | 4 +- tests/unittests/backup_tools/BUILD.gn | 2 +- tests/unittests/backup_utils/BUILD.gn | 2 +- .../backup_utils/b_anony/b_anony_test.cpp | 2 +- .../backup_utils/b_error/b_error_test.cpp | 60 +++++++++---------- .../backup_utils/b_filesystem/b_dir_test.cpp | 4 +- .../b_filesystem/b_file_hash_test.cpp | 4 +- .../b_json/b_json_cached_entity_test.cpp | 24 ++++---- .../b_json/b_json_entity_ext_manage_test.cpp | 22 +++---- .../b_json_entity_extension_config_test.cpp | 8 +-- .../b_json/b_report_entity_test.cpp | 2 +- .../b_jsonutil/b_jsonutil_other_test.cpp | 16 ++--- .../b_jsonutil/b_jsonutil_test.cpp | 38 ++++++------ .../backup_utils/b_process/b_process_test.cpp | 20 +++---- 28 files changed, 126 insertions(+), 120 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index da9bf75da..bf6e14266 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -34,7 +34,7 @@ group("tgt_backup_sa") { ] } -group("tgt_backup_tests") { +group("backup_tests") { testonly = true deps = [ @@ -42,3 +42,9 @@ group("tgt_backup_tests") { "tests/unittests", ] } + +group("file_share_tests") { + testonly = true + + deps = [ "test/unittest" ] +} diff --git a/backup.gni b/backup.gni index 3b07587da..348cfa221 100644 --- a/backup.gni +++ b/backup.gni @@ -12,7 +12,7 @@ # limitations under the License. path_backup = "//foundation/filemanagement/app_file_service" -path_module_out_tests = "filemanagement/app_file_service/backup" +path_module_out_tests = "app_file_service/app_file_service/backup" path_ability_runtime = "//foundation/ability/ability_runtime" path_access_token = "//base/security/access_token" diff --git a/bundle.json b/bundle.json index d81e5f73a..d7c79de2a 100644 --- a/bundle.json +++ b/bundle.json @@ -166,8 +166,8 @@ ], "test": [ "//foundation/filemanagement/app_file_service/test/fuzztest:fuzztest", - "//foundation/filemanagement/app_file_service/test/unittest:unittest", - "//foundation/filemanagement/app_file_service:tgt_backup_tests" + "//foundation/filemanagement/app_file_service:file_share_tests", + "//foundation/filemanagement/app_file_service:backup_tests" ] } } diff --git a/frameworks/native/backup_ext/src/untar_file.cpp b/frameworks/native/backup_ext/src/untar_file.cpp index f78ce3c9d..41b16c7e6 100644 --- a/frameworks/native/backup_ext/src/untar_file.cpp +++ b/frameworks/native/backup_ext/src/untar_file.cpp @@ -740,7 +740,7 @@ std::tuple UntarFile::GetLongName(uint32_t recLen, uint32_t al break; } string pathLen = content.substr(pos, lenEnd - pos); - int recLen = std::atoi(pathLen.c_str()); + size_t recLen = static_cast(std::atoi(pathLen.c_str())); string KvPair = content.substr(lenEnd + 1, recLen - (lenEnd - pos + 1)); size_t eqPos = KvPair.find('='); if (eqPos == string::npos) { diff --git a/test/unittest/file_permission_native/BUILD.gn b/test/unittest/file_permission_native/BUILD.gn index bef7bfa9c..bb78d1e47 100644 --- a/test/unittest/file_permission_native/BUILD.gn +++ b/test/unittest/file_permission_native/BUILD.gn @@ -24,7 +24,7 @@ ohos_unittest("file_permission_test") { blocklist = "${app_file_service_path}/cfi_blocklist.txt" } - module_out_path = "filemanagement/app_file_service" + module_out_path = "app_file_service/app_file_service/file_share" include_dirs = [ "include", "${app_file_service_path}/tests/mock/file_permission_native/include", diff --git a/test/unittest/file_share_native/BUILD.gn b/test/unittest/file_share_native/BUILD.gn index e5feaa091..745736a50 100644 --- a/test/unittest/file_share_native/BUILD.gn +++ b/test/unittest/file_share_native/BUILD.gn @@ -22,7 +22,7 @@ ohos_unittest("file_share_test") { debug = false } - module_out_path = "filemanagement/app_file_service" + module_out_path = "app_file_service/app_file_service/file_share" resource_config_file = "../resource/ohos_test.xml" sources = [ "file_share_test.cpp" ] diff --git a/test/unittest/file_share_ndk_test/file_share_permission_sup_test/BUILD.gn b/test/unittest/file_share_ndk_test/file_share_permission_sup_test/BUILD.gn index 5d75c18f5..662683f46 100644 --- a/test/unittest/file_share_ndk_test/file_share_permission_sup_test/BUILD.gn +++ b/test/unittest/file_share_ndk_test/file_share_permission_sup_test/BUILD.gn @@ -24,7 +24,7 @@ ohos_unittest("file_share_permission_ndk_sup_test") { blocklist = "${app_file_service_path}/cfi_blocklist.txt" } - module_out_path = "filemanagement/app_file_service" + module_out_path = "app_file_service/app_file_service/file_share" include_dirs = [ "include", "${app_file_service_path}/interfaces/kits/ndk/fileshare/include", diff --git a/test/unittest/file_share_ndk_test/file_share_permission_test/BUILD.gn b/test/unittest/file_share_ndk_test/file_share_permission_test/BUILD.gn index 88e9a42ec..ad79bbed7 100644 --- a/test/unittest/file_share_ndk_test/file_share_permission_test/BUILD.gn +++ b/test/unittest/file_share_ndk_test/file_share_permission_test/BUILD.gn @@ -23,7 +23,7 @@ ohos_unittest("file_share_permission_ndk_test") { debug = false } - module_out_path = "filemanagement/app_file_service" + module_out_path = "app_file_service/app_file_service/file_share" include_dirs = [ "include", "${app_file_service_path}/interfaces/kits/ndk/fileshare/include", diff --git a/test/unittest/file_uri_native/BUILD.gn b/test/unittest/file_uri_native/BUILD.gn index 447faf2f7..96ab25bbf 100644 --- a/test/unittest/file_uri_native/BUILD.gn +++ b/test/unittest/file_uri_native/BUILD.gn @@ -22,7 +22,7 @@ ohos_unittest("file_uri_test") { debug = false } - module_out_path = "filemanagement/app_file_service" + module_out_path = "app_file_service/app_file_service/file_share" resource_config_file = "../resource/ohos_test.xml" sources = [ "file_uri_test.cpp" ] diff --git a/test/unittest/file_uri_ndk_test/BUILD.gn b/test/unittest/file_uri_ndk_test/BUILD.gn index 006bc9fa0..577727daf 100644 --- a/test/unittest/file_uri_ndk_test/BUILD.gn +++ b/test/unittest/file_uri_ndk_test/BUILD.gn @@ -23,7 +23,7 @@ ohos_unittest("file_uri_ndk_test") { debug = false } - module_out_path = "filemanagement/app_file_service" + module_out_path = "app_file_service/app_file_service/file_share" include_dirs = [ "include", "${app_file_service_path}/interfaces/kits/ndk/fileuri/include", diff --git a/test/unittest/js_file_permission_test/permission/BUILD.gn b/test/unittest/js_file_permission_test/permission/BUILD.gn index 2073c5c28..b76e94fdb 100644 --- a/test/unittest/js_file_permission_test/permission/BUILD.gn +++ b/test/unittest/js_file_permission_test/permission/BUILD.gn @@ -13,7 +13,7 @@ import("//build/test.gni") ohos_js_unittest("FileShareTestPermission") { - module_out_path = "filemanagement/app_file_service" + module_out_path = "app_file_service/app_file_service/file_share" hap_profile = "./config.json" diff --git a/test/unittest/js_file_uri_test/BUILD.gn b/test/unittest/js_file_uri_test/BUILD.gn index 3a1d2cb6e..5242b2e55 100644 --- a/test/unittest/js_file_uri_test/BUILD.gn +++ b/test/unittest/js_file_uri_test/BUILD.gn @@ -13,7 +13,7 @@ import("//build/test.gni") ohos_js_unittest("FileUriTest") { - module_out_path = "filemanagement/app_file_service" + module_out_path = "app_file_service/app_file_service/file_share" hap_profile = "./config.json" diff --git a/test/unittest/remote_file_share/BUILD.gn b/test/unittest/remote_file_share/BUILD.gn index 13ca80d73..2c1246947 100644 --- a/test/unittest/remote_file_share/BUILD.gn +++ b/test/unittest/remote_file_share/BUILD.gn @@ -23,7 +23,7 @@ ohos_unittest("remote_file_share_test") { debug = false } - module_out_path = "filemanagement/app_file_service" + module_out_path = "app_file_service/app_file_service/file_share" fuzz_config_file = "${app_file_service_path}/test/fuzztest/remotefileshare_fuzzer" resource_config_file = "../resource/ohos_test.xml" diff --git a/tests/moduletests/backup_tool/tool_help_test.cpp b/tests/moduletests/backup_tool/tool_help_test.cpp index 26ad00ab1..3b6dc6cbd 100644 --- a/tests/moduletests/backup_tool/tool_help_test.cpp +++ b/tests/moduletests/backup_tool/tool_help_test.cpp @@ -35,7 +35,7 @@ public: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(ToolsTest, tool_help_0100, testing::ext::TestSize.Level0) +HWTEST_F(ToolsTest, tool_help_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "ToolsTest-begin tool_help_0100"; try { @@ -60,7 +60,7 @@ HWTEST_F(ToolsTest, tool_help_0100, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(ToolsTest, tool_help_0200, testing::ext::TestSize.Level0) +HWTEST_F(ToolsTest, tool_help_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "ToolsTest-begin tool_help_0200"; try { diff --git a/tests/unittests/BUILD.gn b/tests/unittests/BUILD.gn index 082474e55..2467ce9a4 100644 --- a/tests/unittests/BUILD.gn +++ b/tests/unittests/BUILD.gn @@ -21,7 +21,7 @@ group("unittests") { "backup_api:backup_api_test", "backup_ext:backup_ext_test", "backup_sa:backup_sa_test", - "backup_tools:backup_test", - "backup_utils:backup_test", + "backup_tools:backup_tools_test", + "backup_utils:backup_utils_test", ] } diff --git a/tests/unittests/backup_tools/BUILD.gn b/tests/unittests/backup_tools/BUILD.gn index 0a0c1d50a..4a04dff01 100644 --- a/tests/unittests/backup_tools/BUILD.gn +++ b/tests/unittests/backup_tools/BUILD.gn @@ -148,7 +148,7 @@ ohos_unittest("backup_tool_restore_test") { use_exceptions = true } -group("backup_test") { +group("backup_tools_test") { testonly = true deps = [ diff --git a/tests/unittests/backup_utils/BUILD.gn b/tests/unittests/backup_utils/BUILD.gn index 4a16ef68c..9825597ba 100644 --- a/tests/unittests/backup_utils/BUILD.gn +++ b/tests/unittests/backup_utils/BUILD.gn @@ -395,7 +395,7 @@ ohos_unittest("b_json_clear_data_test") { use_exceptions = true } -group("backup_test") { +group("backup_utils_test") { testonly = true deps = [ diff --git a/tests/unittests/backup_utils/b_anony/b_anony_test.cpp b/tests/unittests/backup_utils/b_anony/b_anony_test.cpp index fbe16d220..382eebb6d 100644 --- a/tests/unittests/backup_utils/b_anony/b_anony_test.cpp +++ b/tests/unittests/backup_utils/b_anony/b_anony_test.cpp @@ -36,7 +36,7 @@ public: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BAnonyTest, b_anony_GetAnonyPath_0100, testing::ext::TestSize.Level0) +HWTEST_F(BAnonyTest, b_anony_GetAnonyPath_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BAnonyTest-begin b_anony_GetAnonyPath_0100"; try { diff --git a/tests/unittests/backup_utils/b_error/b_error_test.cpp b/tests/unittests/backup_utils/b_error/b_error_test.cpp index 861f6440a..2466b8b49 100644 --- a/tests/unittests/backup_utils/b_error/b_error_test.cpp +++ b/tests/unittests/backup_utils/b_error/b_error_test.cpp @@ -36,7 +36,7 @@ public: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_construction_0100, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_construction_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_construction_0100"; try { @@ -57,7 +57,7 @@ HWTEST_F(BErrorTest, b_error_construction_0100, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_construction_0300, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_construction_0300, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_construction_0300"; try { @@ -79,7 +79,7 @@ HWTEST_F(BErrorTest, b_error_construction_0300, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_construction_0500, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_construction_0500, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_construction_0500"; try { @@ -102,7 +102,7 @@ HWTEST_F(BErrorTest, b_error_construction_0500, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_construction_0700, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_construction_0700, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_construction_0700"; try { @@ -125,7 +125,7 @@ HWTEST_F(BErrorTest, b_error_construction_0700, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_construction_0900, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_construction_0900, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_construction_0900"; try { @@ -148,7 +148,7 @@ HWTEST_F(BErrorTest, b_error_construction_0900, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_construction_0200, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_construction_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_construction_0200"; try { @@ -171,7 +171,7 @@ HWTEST_F(BErrorTest, b_error_construction_0200, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_construction_0400, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_construction_0400, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_construction_0400"; try { @@ -194,7 +194,7 @@ HWTEST_F(BErrorTest, b_error_construction_0400, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetCode_0100, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetCode_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetCode_0100"; BError be(BError::Codes::OK); @@ -212,7 +212,7 @@ HWTEST_F(BErrorTest, b_error_GetCode_0100, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetCode_0200, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetCode_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetCode_0200"; BError be(BError::Codes::UTILS_INVAL_JSON_ENTITY); @@ -230,7 +230,7 @@ HWTEST_F(BErrorTest, b_error_GetCode_0200, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetCode_0300, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetCode_0300, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetCode_0300"; BError be(BError::Codes::UTILS_INVAL_FILE_HANDLE); @@ -248,7 +248,7 @@ HWTEST_F(BErrorTest, b_error_GetCode_0300, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetCode_0400, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetCode_0400, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetCode_0400"; BError be(BError::Codes::UTILS_INVAL_TARBALL_ARG); @@ -266,7 +266,7 @@ HWTEST_F(BErrorTest, b_error_GetCode_0400, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetCode_0500, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetCode_0500, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetCode_0500"; BError be(BError::Codes::UTILS_INVAL_PROCESS_ARG); @@ -284,7 +284,7 @@ HWTEST_F(BErrorTest, b_error_GetCode_0500, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetCode_0600, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetCode_0600, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetCode_0600"; BError be(BError::Codes::UTILS_INTERRUPTED_PROCESS); @@ -302,7 +302,7 @@ HWTEST_F(BErrorTest, b_error_GetCode_0600, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetRawCode_0100, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetRawCode_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetRawCode_0100"; BError be(BError::Codes::OK); @@ -320,7 +320,7 @@ HWTEST_F(BErrorTest, b_error_GetRawCode_0100, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetRawCode_0200, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetRawCode_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetRawCode_0200"; BError be(BError::Codes::UTILS_INVAL_JSON_ENTITY); @@ -338,7 +338,7 @@ HWTEST_F(BErrorTest, b_error_GetRawCode_0200, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetRawCode_0300, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetRawCode_0300, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetRawCode_0300"; BError be(BError::Codes::UTILS_INVAL_FILE_HANDLE); @@ -356,7 +356,7 @@ HWTEST_F(BErrorTest, b_error_GetRawCode_0300, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetRawCode_0400, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetRawCode_0400, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetRawCode_0400"; BError be(BError::Codes::UTILS_INVAL_TARBALL_ARG); @@ -374,7 +374,7 @@ HWTEST_F(BErrorTest, b_error_GetRawCode_0400, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetRawCode_0500, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetRawCode_0500, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetRawCode_0500"; BError be(BError::Codes::UTILS_INVAL_PROCESS_ARG); @@ -392,7 +392,7 @@ HWTEST_F(BErrorTest, b_error_GetRawCode_0500, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetRawCode_0600, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetRawCode_0600, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetRawCode_0600"; BError be(BError::Codes::UTILS_INTERRUPTED_PROCESS); @@ -410,7 +410,7 @@ HWTEST_F(BErrorTest, b_error_GetRawCode_0600, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_what_0100, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_what_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_what_0100"; BError be(BError::Codes::OK); @@ -428,7 +428,7 @@ HWTEST_F(BErrorTest, b_error_what_0100, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_bool_0100, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_bool_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_bool_0100"; bool result = BError(); @@ -445,7 +445,7 @@ HWTEST_F(BErrorTest, b_error_bool_0100, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_int_0100, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_int_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_int_0100"; int result = BError(); @@ -462,7 +462,7 @@ HWTEST_F(BErrorTest, b_error_int_0100, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetCodeByErrno_0100, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetCodeByErrno_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetCodeByErrno_0100"; int32_t errnoSys = 0; @@ -480,7 +480,7 @@ HWTEST_F(BErrorTest, b_error_GetCodeByErrno_0100, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetCodeByErrno_0200, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetCodeByErrno_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetCodeByErrno_0200"; int32_t errnoSys = EPERM; @@ -498,7 +498,7 @@ HWTEST_F(BErrorTest, b_error_GetCodeByErrno_0200, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetCodeByErrno_0300, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetCodeByErrno_0300, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetCodeByErrno_0300"; int32_t errnoSys = -EPERM; @@ -516,7 +516,7 @@ HWTEST_F(BErrorTest, b_error_GetCodeByErrno_0300, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetBackupCodeByErrno_0100, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetBackupCodeByErrno_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetBackupCodeByErrno_0100"; int err = ERR_OK; @@ -534,7 +534,7 @@ HWTEST_F(BErrorTest, b_error_GetBackupCodeByErrno_0100, testing::ext::TestSize.L * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetBackupCodeByErrno_0200, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetBackupCodeByErrno_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetBackupCodeByErrno_0200"; int err = BError(BError::Codes::SA_INVAL_ARG).GetCode(); @@ -555,7 +555,7 @@ HWTEST_F(BErrorTest, b_error_GetBackupCodeByErrno_0200, testing::ext::TestSize.L * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetBackupCodeByErrno_0300, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetBackupCodeByErrno_0300, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetBackupCodeByErrno_0300"; int err = -EPERM; @@ -573,7 +573,7 @@ HWTEST_F(BErrorTest, b_error_GetBackupCodeByErrno_0300, testing::ext::TestSize.L * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetBackupMsgByErrno_0100, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetBackupMsgByErrno_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetBackupMsgByErrno_0100"; int err = BError(BError::BackupErrorCode::E_PERM).GetCode(); @@ -594,7 +594,7 @@ HWTEST_F(BErrorTest, b_error_GetBackupMsgByErrno_0100, testing::ext::TestSize.Le * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BErrorTest, b_error_GetBackupMsgByErrno_0200, testing::ext::TestSize.Level0) +HWTEST_F(BErrorTest, b_error_GetBackupMsgByErrno_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BErrorTest-begin b_error_GetBackupMsgByErrno_0200"; int err = -EPERM; diff --git a/tests/unittests/backup_utils/b_filesystem/b_dir_test.cpp b/tests/unittests/backup_utils/b_filesystem/b_dir_test.cpp index a893b8164..6cd5d7f4f 100644 --- a/tests/unittests/backup_utils/b_filesystem/b_dir_test.cpp +++ b/tests/unittests/backup_utils/b_filesystem/b_dir_test.cpp @@ -48,7 +48,7 @@ public: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BDirTest, b_dir_GetDirFiles_0100, testing::ext::TestSize.Level0) +HWTEST_F(BDirTest, b_dir_GetDirFiles_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BDirTest-begin b_dir_GetDirFiles_0100"; try { @@ -86,7 +86,7 @@ HWTEST_F(BDirTest, b_dir_GetDirFiles_0100, testing::ext::TestSize.Level0) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BDirTest, b_dir_GetDirFiles_0104, testing::ext::TestSize.Level0) +HWTEST_F(BDirTest, b_dir_GetDirFiles_0104, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BDirTest-begin b_dir_GetDirFiles_0104"; try { diff --git a/tests/unittests/backup_utils/b_filesystem/b_file_hash_test.cpp b/tests/unittests/backup_utils/b_filesystem/b_file_hash_test.cpp index bedfa2e60..e745dedf4 100644 --- a/tests/unittests/backup_utils/b_filesystem/b_file_hash_test.cpp +++ b/tests/unittests/backup_utils/b_filesystem/b_file_hash_test.cpp @@ -58,7 +58,7 @@ static tuple GetTestFile(const TestManager &tm) * @tc.type: FUNC * @tc.level Level 1 */ -HWTEST_F(BFileHashTest, b_file_hash_HashWithSHA256_0100, testing::ext::TestSize.Level0) +HWTEST_F(BFileHashTest, b_file_hash_HashWithSHA256_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BFileHashTest-begin b_file_hash_HashWithSHA256_0100"; try { @@ -83,7 +83,7 @@ HWTEST_F(BFileHashTest, b_file_hash_HashWithSHA256_0100, testing::ext::TestSize. * @tc.type: FUNC * @tc.level Level 1 */ -HWTEST_F(BFileHashTest, b_file_hash_HashWithSHA256_0101, testing::ext::TestSize.Level0) +HWTEST_F(BFileHashTest, b_file_hash_HashWithSHA256_0101, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BFileHashTest-begin b_file_hash_HashWithSHA256_0101"; try { diff --git a/tests/unittests/backup_utils/b_json/b_json_cached_entity_test.cpp b/tests/unittests/backup_utils/b_json/b_json_cached_entity_test.cpp index 2cebb5ad9..61868d40f 100644 --- a/tests/unittests/backup_utils/b_json/b_json_cached_entity_test.cpp +++ b/tests/unittests/backup_utils/b_json/b_json_cached_entity_test.cpp @@ -43,7 +43,7 @@ public: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_construction_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_construction_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_construction_0100"; try { @@ -68,7 +68,7 @@ HWTEST_F(BJsonCachedEntityTest, b_json_construction_0100, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_construction_0101, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_construction_0101, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_construction_0101"; try { @@ -93,7 +93,7 @@ HWTEST_F(BJsonCachedEntityTest, b_json_construction_0101, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_construction_0102, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_construction_0102, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_construction_0102"; try { @@ -118,7 +118,7 @@ HWTEST_F(BJsonCachedEntityTest, b_json_construction_0102, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_construction_0104, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_construction_0104, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_construction_0104"; try { @@ -143,7 +143,7 @@ HWTEST_F(BJsonCachedEntityTest, b_json_construction_0104, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_construction_0105, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_construction_0105, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_construction_0105"; try { @@ -168,7 +168,7 @@ HWTEST_F(BJsonCachedEntityTest, b_json_construction_0105, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_construction_0106, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_construction_0106, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_construction_0106"; try { @@ -193,7 +193,7 @@ HWTEST_F(BJsonCachedEntityTest, b_json_construction_0106, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_construction_0107, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_construction_0107, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_construction_0107"; try { @@ -218,7 +218,7 @@ HWTEST_F(BJsonCachedEntityTest, b_json_construction_0107, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_Structuralize_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_Structuralize_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_Structuralize_0100"; try { @@ -244,7 +244,7 @@ HWTEST_F(BJsonCachedEntityTest, b_json_Structuralize_0100, testing::ext::TestSiz * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_GetFd_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_GetFd_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_GetFd_0100"; try { @@ -270,7 +270,7 @@ HWTEST_F(BJsonCachedEntityTest, b_json_GetFd_0100, testing::ext::TestSize.Level0 * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_Persist_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_Persist_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_Persist_0100"; try { @@ -296,7 +296,7 @@ HWTEST_F(BJsonCachedEntityTest, b_json_Persist_0100, testing::ext::TestSize.Leve * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_ReloadFromFile_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_ReloadFromFile_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_ReloadFromFile_0100"; try { @@ -323,7 +323,7 @@ HWTEST_F(BJsonCachedEntityTest, b_json_ReloadFromFile_0100, testing::ext::TestSi * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonCachedEntityTest, b_json_ReloadFromString_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonCachedEntityTest, b_json_ReloadFromString_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonCachedEntityTest-begin b_json_ReloadFromString_0100"; try { diff --git a/tests/unittests/backup_utils/b_json/b_json_entity_ext_manage_test.cpp b/tests/unittests/backup_utils/b_json/b_json_entity_ext_manage_test.cpp index 239a274bd..f13dd9d0b 100644 --- a/tests/unittests/backup_utils/b_json/b_json_entity_ext_manage_test.cpp +++ b/tests/unittests/backup_utils/b_json/b_json_entity_ext_manage_test.cpp @@ -132,7 +132,7 @@ struct stat GetFileStat(const string &pathTestFile) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtManageTest-begin b_json_entity_ext_manage_0100"; try { @@ -175,7 +175,7 @@ HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0100, testing::ext:: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0200, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtManageTest-begin b_json_entity_ext_manage_0200"; try { @@ -228,7 +228,7 @@ HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0200, testing::ext:: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0300, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0300, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtManageTest-begin b_json_entity_ext_manage_0300"; try { @@ -291,7 +291,7 @@ HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0300, testing::ext:: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0400, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0400, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtManageTest-begin b_json_entity_ext_manage_0400"; try { @@ -355,7 +355,7 @@ HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0400, testing::ext:: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0500, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0500, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtManageTest-begin b_json_entity_ext_manage_0500"; try { @@ -410,7 +410,7 @@ HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0500, testing::ext:: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0700, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0700, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtManageTest-begin b_json_entity_ext_manage_0700"; try { @@ -435,7 +435,7 @@ HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0700, testing::ext:: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0800, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0800, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtManageTest-begin b_json_entity_ext_manage_0800"; try { @@ -460,7 +460,7 @@ HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0800, testing::ext:: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0801, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0801, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtManageTest-begin b_json_entity_ext_manage_0801"; try { @@ -485,7 +485,7 @@ HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0801, testing::ext:: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0802, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0802, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtManageTest-begin b_json_entity_ext_manage_0802"; try { @@ -510,7 +510,7 @@ HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0802, testing::ext:: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0803, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0803, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtManageTest-begin b_json_entity_ext_manage_0803"; try { @@ -535,7 +535,7 @@ HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0803, testing::ext:: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0804, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtManageTest, b_json_entity_ext_manage_0804, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtManageTest-begin b_json_entity_ext_manage_0804"; try { diff --git a/tests/unittests/backup_utils/b_json/b_json_entity_extension_config_test.cpp b/tests/unittests/backup_utils/b_json/b_json_entity_extension_config_test.cpp index 937245c1a..3da3ab4c1 100644 --- a/tests/unittests/backup_utils/b_json/b_json_entity_extension_config_test.cpp +++ b/tests/unittests/backup_utils/b_json/b_json_entity_extension_config_test.cpp @@ -70,7 +70,7 @@ static vector DEFAULT_EXCLUDE_DIR = {}; * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtensionConfigTest, b_json_entity_extension_config_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtensionConfigTest, b_json_entity_extension_config_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtensionConfigTest-begin b_json_entity_extension_config_0100"; try { @@ -102,7 +102,7 @@ HWTEST_F(BJsonEntityExtensionConfigTest, b_json_entity_extension_config_0100, te * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtensionConfigTest, b_json_entity_extension_config_0200, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtensionConfigTest, b_json_entity_extension_config_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtensionConfigTest-begin b_json_entity_extension_config_0200"; try { @@ -133,7 +133,7 @@ HWTEST_F(BJsonEntityExtensionConfigTest, b_json_entity_extension_config_0200, te * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtensionConfigTest, b_json_entity_extension_config_0300, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtensionConfigTest, b_json_entity_extension_config_0300, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtensionConfigTest-begin b_json_entity_extension_config_0300"; try { @@ -164,7 +164,7 @@ HWTEST_F(BJsonEntityExtensionConfigTest, b_json_entity_extension_config_0300, te * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonEntityExtensionConfigTest, b_json_entity_extension_config_0400, testing::ext::TestSize.Level0) +HWTEST_F(BJsonEntityExtensionConfigTest, b_json_entity_extension_config_0400, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonEntityExtensionConfigTest-begin b_json_entity_extension_config_0400"; try { diff --git a/tests/unittests/backup_utils/b_json/b_report_entity_test.cpp b/tests/unittests/backup_utils/b_json/b_report_entity_test.cpp index 5bc9fd747..6624bba1a 100644 --- a/tests/unittests/backup_utils/b_json/b_report_entity_test.cpp +++ b/tests/unittests/backup_utils/b_json/b_report_entity_test.cpp @@ -63,7 +63,7 @@ static tuple GetTestFile(const TestManager &tm, const string con * @tc.type: FUNC * @tc.level Level 1 */ -HWTEST_F(BReportEntityTest, b_report_entity_GetReportInfos_0100, testing::ext::TestSize.Level0) +HWTEST_F(BReportEntityTest, b_report_entity_GetReportInfos_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BReportEntityTest-begin b_report_entity_GetReportInfos_0100"; try { diff --git a/tests/unittests/backup_utils/b_jsonutil/b_jsonutil_other_test.cpp b/tests/unittests/backup_utils/b_jsonutil/b_jsonutil_other_test.cpp index 397424299..a45a423d1 100644 --- a/tests/unittests/backup_utils/b_jsonutil/b_jsonutil_other_test.cpp +++ b/tests/unittests/backup_utils/b_jsonutil/b_jsonutil_other_test.cpp @@ -69,7 +69,7 @@ void BJsonUtilTest::TearDownTestCase() * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildExtensionErrInfo_0101, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildExtensionErrInfo_0101, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildExtensionErrInfo_0101"; try { @@ -104,7 +104,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildExtensionErrInfo_0101, testing::ext::Tes * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildExtensionErrInfo_0201, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildExtensionErrInfo_0201, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildExtensionErrInfo_0201"; try { @@ -137,7 +137,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildExtensionErrInfo_0201, testing::ext::Tes * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildOnProcessRetInfo_0301, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildOnProcessRetInfo_0301, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildOnProcessRetInfo_0301"; try { @@ -183,7 +183,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildOnProcessRetInfo_0301, testing::ext::Tes * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfoJson_0401, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfoJson_0401, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfoJson_0401"; try { @@ -227,7 +227,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfoJson_0401, testing::ext::TestS * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildOnProcessErrInfo_0501, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildOnProcessErrInfo_0501, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildOnProcessErrInfo_0501"; try { @@ -283,7 +283,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildOnProcessErrInfo_0501, testing::ext::Tes * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleNameIndexInfo_0601, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleNameIndexInfo_0601, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleNameIndexInfo_0601"; try { @@ -311,7 +311,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleNameIndexInfo_0601, testing::ext:: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildInitSessionErrInfo_0701, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildInitSessionErrInfo_0701, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildInitSessionErrInfo_0701"; try { @@ -368,7 +368,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildInitSessionErrInfo_0701, testing::ext::T * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_WriteToStr_0801, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_WriteToStr_0801, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin WriteToStr_0801"; try { diff --git a/tests/unittests/backup_utils/b_jsonutil/b_jsonutil_test.cpp b/tests/unittests/backup_utils/b_jsonutil/b_jsonutil_test.cpp index 11bd5ee79..44a5f6da5 100644 --- a/tests/unittests/backup_utils/b_jsonutil/b_jsonutil_test.cpp +++ b/tests/unittests/backup_utils/b_jsonutil/b_jsonutil_test.cpp @@ -51,7 +51,7 @@ public: * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_ParseBundleNameIndexStr_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_ParseBundleNameIndexStr_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin b_dir_GetDirFiles_0100"; try { @@ -74,7 +74,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_ParseBundleNameIndexStr_0100, testing::ext::T * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_ParseBundleNameIndexStr_0200, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_ParseBundleNameIndexStr_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin ParseBundleNameIndexStr_0200"; try { @@ -97,7 +97,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_ParseBundleNameIndexStr_0200, testing::ext::T * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfos_0100"; try { @@ -131,7 +131,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0100, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0200, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfos_0200"; try { @@ -163,7 +163,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0200, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0300, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0300, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfos_0300"; try { @@ -195,7 +195,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0300, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0301, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0301, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfos_0301"; try { @@ -227,7 +227,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0301, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0400, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0400, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfos_0400"; try { @@ -262,7 +262,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0400, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0500, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0500, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfos_0500"; try { @@ -296,7 +296,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0500, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0600, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0600, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfos_0600"; try { @@ -330,7 +330,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0600, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0700, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0700, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfos_0700"; try { @@ -363,7 +363,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0700, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0800, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0800, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfos_0800"; try { @@ -396,7 +396,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0800, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0900, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0900, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfos_0900"; try { @@ -429,7 +429,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_0900, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_1000, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_1000, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildBundleInfos_1000"; try { @@ -462,7 +462,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildBundleInfos_1000, testing::ext::TestSize * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_FindBundleInfoByName_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_FindBundleInfoByName_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin FindBundleInfoByName_0100"; try { @@ -489,7 +489,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_FindBundleInfoByName_0100, testing::ext::Test * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_FindBundleInfoByName_0200, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_FindBundleInfoByName_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin FindBundleInfoByName_0200"; try { @@ -521,7 +521,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_FindBundleInfoByName_0200, testing::ext::Test * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_FindBundleInfoByName_0300, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_FindBundleInfoByName_0300, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin FindBundleInfoByName_0300"; try { @@ -553,7 +553,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_FindBundleInfoByName_0300, testing::ext::Test * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildOnProcessRetInfo_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildOnProcessRetInfo_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildOnProcessRetInfo_0100"; try { @@ -580,7 +580,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildOnProcessRetInfo_0100, testing::ext::Tes * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildExtensionErrInfo_0100, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildExtensionErrInfo_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildExtensionErrInfo_0100"; try { @@ -609,7 +609,7 @@ HWTEST_F(BJsonUtilTest, b_jsonutil_BuildExtensionErrInfo_0100, testing::ext::Tes * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BJsonUtilTest, b_jsonutil_BuildExtensionErrInfo_0200, testing::ext::TestSize.Level0) +HWTEST_F(BJsonUtilTest, b_jsonutil_BuildExtensionErrInfo_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BJsonUtilTest-begin BuildExtensionErrInfo_0200"; try { diff --git a/tests/unittests/backup_utils/b_process/b_process_test.cpp b/tests/unittests/backup_utils/b_process/b_process_test.cpp index 1c8534d99..fc8171422 100644 --- a/tests/unittests/backup_utils/b_process/b_process_test.cpp +++ b/tests/unittests/backup_utils/b_process/b_process_test.cpp @@ -51,7 +51,7 @@ static bool DetectFatalLog(string_view output) * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0100, testing::ext::TestSize.Level0) +HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0100, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BProcessTest-begin SUB_backup_tool_BProcess_0100"; try { @@ -86,7 +86,7 @@ HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0100, testing::ext::TestSize.Lev * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0200, testing::ext::TestSize.Level0) +HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0200, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BProcessTest-begin SUB_backup_tool_BProcess_0200"; try { @@ -114,7 +114,7 @@ HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0200, testing::ext::TestSize.Lev * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0300, testing::ext::TestSize.Level0) +HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0300, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BProcessTest-begin SUB_backup_tool_BProcess_0300"; try { @@ -141,7 +141,7 @@ HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0300, testing::ext::TestSize.Lev * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0400, testing::ext::TestSize.Level0) +HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0400, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BProcessTest-begin SUB_backup_tool_BProcess_0400"; try { @@ -168,7 +168,7 @@ HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0400, testing::ext::TestSize.Lev * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0500, testing::ext::TestSize.Level0) +HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0500, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BProcessTest-begin SUB_backup_tool_BProcess_0500"; try { @@ -195,7 +195,7 @@ HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0500, testing::ext::TestSize.Lev * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0600, testing::ext::TestSize.Level0) +HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0600, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BProcessTest-begin SUB_backup_tool_BProcess_0600"; try { @@ -222,7 +222,7 @@ HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0600, testing::ext::TestSize.Lev * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0700, testing::ext::TestSize.Level0) +HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0700, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BProcessTest-begin SUB_backup_tool_BProcess_0700"; try { @@ -249,7 +249,7 @@ HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0700, testing::ext::TestSize.Lev * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0800, testing::ext::TestSize.Level0) +HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0800, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BProcessTest-begin SUB_backup_tool_BProcess_0800"; try { @@ -276,7 +276,7 @@ HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0800, testing::ext::TestSize.Lev * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0900, testing::ext::TestSize.Level0) +HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0900, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BProcessTest-begin SUB_backup_tool_BProcess_0900"; try { @@ -301,7 +301,7 @@ HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_0900, testing::ext::TestSize.Lev * @tc.level Level 0 * @tc.require: I6F3GV */ -HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_1000, testing::ext::TestSize.Level0) +HWTEST_F(BProcessTest, SUB_backup_tool_BProcess_1000, testing::ext::TestSize.Level1) { GTEST_LOG_(INFO) << "BProcessTest-begin SUB_backup_tool_BProcess_1000"; try { -- Gitee