1# Copyright (C) 2021-2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//base/security/huks/build/config.gni") 15import("//base/security/huks/huks.gni") 16import("//build/ohos.gni") 17import("//build/test.gni") 18 19module_output_path = "huks_standard/huks_standard_test" 20 21ohos_reliabilitytest("huks_stability_test") { 22 module_out_path = module_output_path 23 sources = [ 24 "src/api_pressure_test.cpp", 25 "src/pressure_test.cpp", 26 "src/three_stage_multi_thread.cpp", 27 ] 28 29 configs = [ 30 "//base/security/huks/frameworks/config/build:l2_standard_common_config", 31 ] 32 defines = [] 33 34 if (use_crypto_lib == "openssl") { 35 defines += [ "_USE_OPENSSL_" ] 36 } 37 if (use_crypto_lib == "mbedtls") { 38 defines += [ "_USE_MBEDTLS_" ] 39 } 40 41 include_dirs = [ 42 "//base/security/huks/interfaces/inner_api/huks_standard/main/include", 43 "//base/security/huks/frameworks/huks_standard/main/common/include", 44 ] 45 46 deps = [ 47 "//base/security/huks/interfaces/inner_api/huks_standard/main:libhukssdk", 48 ] 49 external_deps = [ 50 "c_utils:utils", 51 "hilog:libhilog", 52 ] 53 if (os_level == "standard") { 54 external_deps += [ "googletest:gtest" ] 55 } 56} 57