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_tests") { 23 deps = [ 24 ":faultloggerd_moduletest", 25 ":faultloggerd_systemtest", 26 ":faultloggerd_unittest", 27 "../tools/crasher_c:crasher_c", 28 "../tools/crasher_cpp:crasher_cpp", 29 ] 30 if (!defined(ohos_lite)) { 31 testonly = true 32 deps += [ 33 ":faultloggerd_benchmarktest", 34 ":faultloggerd_funchook", 35 ":faultloggerd_fuzzertest", 36 ":faultloggerd_performancetest", 37 "../example:dumpcatcherdemo", 38 "../tools/panic_maker:panic_maker", 39 ] 40 } 41} 42 43group("faultloggerd_benchmarktest") { 44 if (!defined(ohos_lite)) { 45 testonly = true 46 } 47 deps = [ "benchmarktest:benchmarktest" ] 48} 49 50group("faultloggerd_moduletest") { 51 if (!defined(ohos_lite)) { 52 testonly = true 53 } 54 deps = [ "moduletest:moduletest" ] 55} 56 57group("faultloggerd_systemtest") { 58 if (!defined(ohos_lite)) { 59 testonly = true 60 } 61 deps = [ "systemtest:systemtest" ] 62} 63 64group("faultloggerd_funchook") { 65 if (!defined(ohos_lite)) { 66 testonly = true 67 } 68 deps = [ "funchook:dfxfunchook" ] 69} 70 71group("faultloggerd_performancetest") { 72 if (!defined(ohos_lite)) { 73 testonly = true 74 } 75 deps = [ "performancetest:performance" ] 76} 77 78group("faultloggerd_fuzzertest") { 79 if (!defined(ohos_lite)) { 80 testonly = true 81 } 82 deps = [ "fuzztest:fuzztest" ] 83} 84 85group("faultloggerd_unittest") { 86 if (!defined(ohos_lite)) { 87 testonly = true 88 } 89 deps = [ "unittest:unittest" ] 90} 91