• 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_modify_key_test.cpp",
37    "hks_others_test.cpp",
38    "hks_safe_cipher_key_test.cpp",
39    "hks_safe_compare_key_test.cpp",
40  ]
41
42  include_dirs = [
43    "//commonlibrary/c_utils/base/include",
44    "//third_party/bounds_checking_function/include",
45    "../common/include",
46  ]
47
48  deps = [
49    "//base/security/huks/interfaces/innerkits/huks_lite:huks_3.0_sdk",
50    "//test/xts/acts/security_lite/huks/common:huks_test_common",
51    "//third_party/bounds_checking_function:libsec_shared",
52  ]
53  cflags = [ "-Wno-error" ]
54
55  defines = [ "_LITEONE_SYSTEM_" ]
56
57  if (disable_authenticate == true) {
58    defines = [ "_CUT_AUTHENTICATE_" ]
59  }
60}
61
62group("Hukslitetest") {
63  deps = [ ":ActsHuksLiteFunctionTest" ]
64}
65