• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (c) 2021 Huawei Device Co., Ltd.
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16import("//base/security/huks/build/config.gni")
17import("//build/lite/config/component/lite_component.gni")
18import("//build/lite/config/test.gni")
19import("//test/xts/tools/lite/build/suite_lite.gni")
20
21hcpptest_suite("ActsHuksLiteFunctionTest") {
22  suite_name = "acts"
23  sources = [
24    "hks_aes_test.cpp",
25    "hks_agreement_test.cpp",
26    "hks_bn_exp_mod_test.cpp",
27    "hks_cipher_test.cpp",
28    "hks_curve25519_test.cpp",
29    "hks_delete_test.cpp",
30    "hks_derive_test.cpp",
31    "hks_exist_test.cpp",
32    "hks_generate_key_test.cpp",
33    "hks_generate_random_test.cpp",
34    "hks_hash_test.cpp",
35    "hks_mac_test.cpp",
36    "hks_others_test.cpp",
37  ]
38
39  include_dirs = [
40    "//commonlibrary/c_utils/base/include",
41    "//third_party/bounds_checking_function/include",
42    "../common/include",
43  ]
44
45  deps = [
46    "//base/security/huks/interfaces/inner_api/huks_lite:huks_3.0_sdk",
47    "//test/xts/acts/security_lite/huks/common:huks_test_common",
48    "//third_party/bounds_checking_function:libsec_shared",
49  ]
50  cflags = [ "-Wno-error" ]
51
52  defines = [ "_LITEONE_SYSTEM_" ]
53
54  if (disable_authenticate == true) {
55    defines = [ "_CUT_AUTHENTICATE_" ]
56  }
57}
58
59group("Hukslitetest") {
60  deps = [ ":ActsHuksLiteFunctionTest" ]
61}
62