From 76fff198fdd7308afe53c89f428bc1449d2a4936 Mon Sep 17 00:00:00 2001 From: zhaoguojian Date: Thu, 21 Sep 2023 16:42:46 +0800 Subject: [PATCH] fix fuzz test module_out_path Match-id-b7109da7c7d9303c5112fbe571037d49e3e45d0c --- security_guard.gni | 1 + .../classify/requestsecuritymodelresultasync_fuzzer/BUILD.gn | 4 +--- .../classify/requestsecuritymodelresultsync_fuzzer/BUILD.gn | 4 +--- test/fuzztest/collect/reportsecurityinfo_fuzzer/BUILD.gn | 4 +--- test/fuzztest/ipc/datacollectmanager_fuzzer/BUILD.gn | 4 +--- test/fuzztest/ipc/riskanalysismanager_fuzzer/BUILD.gn | 4 +--- .../obtaindata/requestsecurityeventinfoasync_fuzzer/BUILD.gn | 4 +--- 7 files changed, 7 insertions(+), 18 deletions(-) diff --git a/security_guard.gni b/security_guard.gni index 5746ef2..6cf13bc 100755 --- a/security_guard.gni +++ b/security_guard.gni @@ -12,3 +12,4 @@ # limitations under the License. sg_root_dir = "//base/security/security_guard" +fuzz_test_output_path = "security_guard/security_guard" diff --git a/test/fuzztest/classify/requestsecuritymodelresultasync_fuzzer/BUILD.gn b/test/fuzztest/classify/requestsecuritymodelresultasync_fuzzer/BUILD.gn index 71c2242..2fc43e2 100755 --- a/test/fuzztest/classify/requestsecuritymodelresultasync_fuzzer/BUILD.gn +++ b/test/fuzztest/classify/requestsecuritymodelresultasync_fuzzer/BUILD.gn @@ -15,10 +15,8 @@ import("//base/security/security_guard/security_guard.gni") import("//build/config/features.gni") import("//build/test.gni") -module_output_path = "security_guard/classify" - ohos_fuzztest("RequestSecurityModelResultAsyncFuzzTest") { - module_out_path = module_output_path + module_out_path = fuzz_test_output_path fuzz_config_file = "${sg_root_dir}/test/fuzztest/classify/requestsecuritymodelresultasync_fuzzer" include_dirs = [ diff --git a/test/fuzztest/classify/requestsecuritymodelresultsync_fuzzer/BUILD.gn b/test/fuzztest/classify/requestsecuritymodelresultsync_fuzzer/BUILD.gn index ea135c2..7bbe56a 100755 --- a/test/fuzztest/classify/requestsecuritymodelresultsync_fuzzer/BUILD.gn +++ b/test/fuzztest/classify/requestsecuritymodelresultsync_fuzzer/BUILD.gn @@ -15,10 +15,8 @@ import("//base/security/security_guard/security_guard.gni") import("//build/config/features.gni") import("//build/test.gni") -module_output_path = "security_guard/classify" - ohos_fuzztest("RequestSecurityModelResultSyncFuzzTest") { - module_out_path = module_output_path + module_out_path = fuzz_test_output_path fuzz_config_file = "${sg_root_dir}/test/fuzztest/classify/requestsecuritymodelresultsync_fuzzer" include_dirs = [ diff --git a/test/fuzztest/collect/reportsecurityinfo_fuzzer/BUILD.gn b/test/fuzztest/collect/reportsecurityinfo_fuzzer/BUILD.gn index 472678d..704badc 100755 --- a/test/fuzztest/collect/reportsecurityinfo_fuzzer/BUILD.gn +++ b/test/fuzztest/collect/reportsecurityinfo_fuzzer/BUILD.gn @@ -15,10 +15,8 @@ import("//base/security/security_guard/security_guard.gni") import("//build/config/features.gni") import("//build/test.gni") -module_output_path = "security_guard/collect" - ohos_fuzztest("ReportSecurityInfoFuzzTest") { - module_out_path = module_output_path + module_out_path = fuzz_test_output_path fuzz_config_file = "${sg_root_dir}/test/fuzztest/collect/reportsecurityinfo_fuzzer" diff --git a/test/fuzztest/ipc/datacollectmanager_fuzzer/BUILD.gn b/test/fuzztest/ipc/datacollectmanager_fuzzer/BUILD.gn index 48dfe22..45740d4 100755 --- a/test/fuzztest/ipc/datacollectmanager_fuzzer/BUILD.gn +++ b/test/fuzztest/ipc/datacollectmanager_fuzzer/BUILD.gn @@ -15,10 +15,8 @@ import("//base/security/security_guard/security_guard.gni") import("//build/config/features.gni") import("//build/test.gni") -module_output_path = "security_guard/ipc" - ohos_fuzztest("DataCollectManagerFuzzTest") { - module_out_path = module_output_path + module_out_path = fuzz_test_output_path fuzz_config_file = "${sg_root_dir}/test/fuzztest/ipc/datacollectmanager_fuzzer" include_dirs = [ diff --git a/test/fuzztest/ipc/riskanalysismanager_fuzzer/BUILD.gn b/test/fuzztest/ipc/riskanalysismanager_fuzzer/BUILD.gn index 3514cea..2aee4a2 100755 --- a/test/fuzztest/ipc/riskanalysismanager_fuzzer/BUILD.gn +++ b/test/fuzztest/ipc/riskanalysismanager_fuzzer/BUILD.gn @@ -15,10 +15,8 @@ import("//base/security/security_guard/security_guard.gni") import("//build/config/features.gni") import("//build/test.gni") -module_output_path = "security_guard/ipc" - ohos_fuzztest("RiskAnalysisManagerFuzzTest") { - module_out_path = module_output_path + module_out_path = fuzz_test_output_path fuzz_config_file = "${sg_root_dir}/test/fuzztest/ipc/riskanalysismanager_fuzzer" include_dirs = [ diff --git a/test/fuzztest/obtaindata/requestsecurityeventinfoasync_fuzzer/BUILD.gn b/test/fuzztest/obtaindata/requestsecurityeventinfoasync_fuzzer/BUILD.gn index 70f35f4..8c66687 100755 --- a/test/fuzztest/obtaindata/requestsecurityeventinfoasync_fuzzer/BUILD.gn +++ b/test/fuzztest/obtaindata/requestsecurityeventinfoasync_fuzzer/BUILD.gn @@ -15,10 +15,8 @@ import("//base/security/security_guard/security_guard.gni") import("//build/config/features.gni") import("//build/test.gni") -module_output_path = "security_guard/obtaindata" - ohos_fuzztest("RequestSecurityEventInfoAsyncFuzzTest") { - module_out_path = module_output_path + module_out_path = fuzz_test_output_path fuzz_config_file = "${sg_root_dir}/test/fuzztest/obtaindata/requestsecurityeventinfoasync_fuzzer" include_dirs = [