14e56987cSopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd. 24e56987cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 34e56987cSopenharmony_ci# you may not use this file except in compliance with the License. 44e56987cSopenharmony_ci# You may obtain a copy of the License at 54e56987cSopenharmony_ci# 64e56987cSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 74e56987cSopenharmony_ci# 84e56987cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 94e56987cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 104e56987cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 114e56987cSopenharmony_ci# See the License for the specific language governing permissions and 124e56987cSopenharmony_ci# limitations under the License. 134e56987cSopenharmony_ci 144e56987cSopenharmony_ciimport("//build/config/features.gni") 154e56987cSopenharmony_ciimport("//build/test.gni") 164e56987cSopenharmony_ci 174e56987cSopenharmony_cimodule_output_path = "certificate_manager/certificate_manager" 184e56987cSopenharmony_ci 194e56987cSopenharmony_ci##############################fuzztest########################################## 204e56987cSopenharmony_ciohos_fuzztest("CmGetAppCertFuzzTest") { 214e56987cSopenharmony_ci module_out_path = module_output_path 224e56987cSopenharmony_ci fuzz_config_file = "../../../test/fuzz_test/cmgetappcert_fuzzer" 234e56987cSopenharmony_ci 244e56987cSopenharmony_ci include_dirs = [ 254e56987cSopenharmony_ci "../../../frameworks/cert_manager_standard/main/common/include", 264e56987cSopenharmony_ci "../../../test/unittest/include", 274e56987cSopenharmony_ci ] 284e56987cSopenharmony_ci cflags = [ 294e56987cSopenharmony_ci "-g", 304e56987cSopenharmony_ci "-O0", 314e56987cSopenharmony_ci "-Wno-unused-variable", 324e56987cSopenharmony_ci "-fno-omit-frame-pointer", 334e56987cSopenharmony_ci ] 344e56987cSopenharmony_ci sources = [ 354e56987cSopenharmony_ci "../../../test/unittest/src/cm_test_common.cpp", 364e56987cSopenharmony_ci "cmgetappcert_fuzzer.cpp", 374e56987cSopenharmony_ci ] 384e56987cSopenharmony_ci deps = [ 394e56987cSopenharmony_ci "../../../interfaces/innerkits/cert_manager_standard/main:cert_manager_sdk", 404e56987cSopenharmony_ci "../../../test/fuzz_test/fuzz_test_common:libcert_manager_fuzz_test_common_static", 414e56987cSopenharmony_ci ] 424e56987cSopenharmony_ci external_deps = [ 434e56987cSopenharmony_ci "access_token:libaccesstoken_sdk", 444e56987cSopenharmony_ci "access_token:libnativetoken", 454e56987cSopenharmony_ci "access_token:libtoken_setproc", 464e56987cSopenharmony_ci "bounds_checking_function:libsec_static", 474e56987cSopenharmony_ci "c_utils:utils", 484e56987cSopenharmony_ci ] 494e56987cSopenharmony_ci} 504e56987cSopenharmony_ci 514e56987cSopenharmony_ci############################################################################### 524e56987cSopenharmony_cigroup("fuzztest") { 534e56987cSopenharmony_ci testonly = true 544e56987cSopenharmony_ci deps = [] 554e56987cSopenharmony_ci 564e56987cSopenharmony_ci deps += [ 574e56987cSopenharmony_ci # deps file 584e56987cSopenharmony_ci ":CmGetAppCertFuzzTest", 594e56987cSopenharmony_ci ] 604e56987cSopenharmony_ci} 614e56987cSopenharmony_ci############################################################################### 62