• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/hiviewdfx/faultloggerd/faultloggerd.gni")
15
16if (defined(ohos_lite)) {
17  import("//build/lite/config/test.gni")
18} else {
19  import("//build/test.gni")
20}
21
22group("faultloggerd_moduletest") {
23  testonly = true
24  deps = [ "moduletest:moduletest" ]
25}
26
27group("faultloggerd_systemtest") {
28  testonly = true
29  deps = [ "systemtest:systemtest" ]
30}
31
32group("faultloggerd_funchook") {
33  testonly = true
34  deps = [ "funchook:dfxfunchook_unittest" ]
35}
36
37group("faultloggerd_performancetest") {
38  testonly = true
39  deps = [ "performancetest:performance" ]
40}
41
42group("faultloggerd_fuzzertest") {
43  testonly = true
44  deps = [ "fuzztest/faultloggerd_fuzzer:fuzztest" ]
45}
46
47group("faultloggerd_unittest") {
48  testonly = true
49  deps = [
50    "unittest/common:unittest",
51    "unittest/dump_catcher:unittest",
52    "unittest/process_dump:unittest",
53    "unittest/procinfo:unittest",
54    "unittest/services:unittest",
55    "unittest/signal_handler:unittest",
56  ]
57  if (!defined(ohos_lite)) {
58    deps += [
59      "unittest/backtrace:unittest",
60      "unittest/callstack:unittest",
61      "unittest/faultloggerd_client:unittest",
62      "unittest/panic_handler:unittest",
63      "unittest/rustc_demangle:unittest",
64      "unittest/stacktrace_rust:unittest",
65      "unittest/unwinder:unittest",
66    ]
67  }
68}
69