57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
# Copyright (C) 2021-2023 Huawei Device Co., Ltd.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import("//base/security/huks/build/config.gni")
|
|
import("//base/security/huks/huks.gni")
|
|
import("//build/ohos.gni")
|
|
import("//build/test.gni")
|
|
|
|
module_output_path = "huks_standard/huks_standard_test"
|
|
|
|
ohos_reliabilitytest("huks_stability_test") {
|
|
module_out_path = module_output_path
|
|
sources = [
|
|
"src/api_pressure_test.cpp",
|
|
"src/pressure_test.cpp",
|
|
"src/three_stage_multi_thread.cpp",
|
|
]
|
|
|
|
configs = [
|
|
"//base/security/huks/frameworks/config/build:l2_standard_common_config",
|
|
]
|
|
defines = []
|
|
|
|
if (use_crypto_lib == "openssl") {
|
|
defines += [ "_USE_OPENSSL_" ]
|
|
}
|
|
if (use_crypto_lib == "mbedtls") {
|
|
defines += [ "_USE_MBEDTLS_" ]
|
|
}
|
|
|
|
include_dirs = [
|
|
"//base/security/huks/interfaces/inner_api/huks_standard/main/include",
|
|
"//base/security/huks/frameworks/huks_standard/main/common/include",
|
|
]
|
|
|
|
deps = [
|
|
"//base/security/huks/interfaces/inner_api/huks_standard/main:libhukssdk",
|
|
]
|
|
external_deps = [
|
|
"c_utils:utils",
|
|
"hilog:libhilog",
|
|
]
|
|
if (os_level == "standard") {
|
|
external_deps += [ "googletest:gtest" ]
|
|
}
|
|
}
|