• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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("//build/lite/config/test.gni")
15
16unittest("hdf_adapter_uhdf_test_osal") {
17  output_extension = "bin"
18  output_dir = "$root_out_dir/test/unittest/hdf"
19  include_dirs = [
20    "//third_party/googletest/googletest/include",
21    "//third_party/bounds_checking_function/include",
22    "//drivers/framework/include/platform",
23    "//drivers/framework/include/core",
24    "//drivers/framework/include/osal",
25    "//drivers/adapter/uhdf/posix/include",
26    "//drivers/framework/include/utils",
27    "//drivers/framework/include",
28    "//drivers/framework/test/unittest/include",
29    "//drivers/framework/test/unittest/osal",
30    "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
31  ]
32
33  defines = [ "__USER__" ]
34  sources = [
35    "//drivers/framework/support/posix/test/unittest/common/hdf_osal_test.cpp",
36  ]
37  deps = [
38    "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
39    "//drivers/adapter/build/test_common:libhdf_test_common",
40    "//drivers/adapter/uhdf/manager:hdf_core",
41    "//drivers/adapter/uhdf/posix:hdf_posix_osal",
42  ]
43  public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
44  cflags = [
45    "-Wall",
46    "-Wextra",
47    "-Werror",
48    "-fsigned-char",
49    "-fno-common",
50    "-fno-strict-aliasing",
51  ]
52}
53
54unittest("hdf_adapter_uhdf_test_osal_posix") {
55  output_extension = "bin"
56  output_dir = "$root_out_dir/test/unittest/hdf"
57  include_dirs = [
58    "//third_party/googletest/googletest/include",
59    "//third_party/bounds_checking_function/include",
60    "//drivers/framework/include/platform",
61    "//drivers/framework/include/core",
62    "//drivers/framework/include/osal",
63    "//drivers/adapter/uhdf/posix/include",
64    "//drivers/framework/include/utils",
65    "//drivers/framework/include",
66    "//drivers/framework/test/unittest/include",
67    "//drivers/framework/test/unittest/osal",
68    "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits",
69  ]
70
71  defines = [ "__USER__" ]
72  sources = [
73    "//drivers/framework/support/posix/test/unittest/common/hdf_osal_test_posix.cpp",
74    "//drivers/framework/test/unittest/osal/osal_all_test.c",
75    "//drivers/framework/test/unittest/osal/osal_get_case_test.c",
76    "//drivers/framework/test/unittest/osal/osal_list_test.c",
77  ]
78  deps = [
79    "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
80    "//drivers/adapter/uhdf/manager:hdf_core",
81    "//drivers/adapter/uhdf/posix:hdf_posix_osal",
82  ]
83  public_deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
84  cflags = [
85    "-Wall",
86    "-Wextra",
87    "-Werror",
88    "-fsigned-char",
89    "-fno-common",
90    "-fno-strict-aliasing",
91  ]
92}
93