# Copyright (c) 2021-2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//base/hiviewdfx/faultloggerd/faultloggerd.gni") if (defined(ohos_lite)) { import("//build/lite/config/test.gni") } else { import("//build/test.gni") } group("faultloggerd_tests") { deps = [ ":faultloggerd_moduletest", ":faultloggerd_systemtest", ":faultloggerd_unittest", "../tools/crasher_c:crasher_c", "../tools/crasher_cpp:crasher_cpp", ] if (!defined(ohos_lite)) { testonly = true deps += [ ":faultloggerd_benchmarktest", ":faultloggerd_funchook", ":faultloggerd_fuzzertest", ":faultloggerd_performancetest", "../example:dumpcatcherdemo", "../tools/panic_maker:panic_maker", ] } } group("faultloggerd_benchmarktest") { if (!defined(ohos_lite)) { testonly = true } deps = [ "benchmarktest:benchmarktest" ] } group("faultloggerd_moduletest") { if (!defined(ohos_lite)) { testonly = true } deps = [ "moduletest:moduletest" ] } group("faultloggerd_systemtest") { if (!defined(ohos_lite)) { testonly = true } deps = [ "systemtest:systemtest" ] } group("faultloggerd_funchook") { if (!defined(ohos_lite)) { testonly = true } deps = [ "funchook:dfxfunchook" ] } group("faultloggerd_performancetest") { if (!defined(ohos_lite)) { testonly = true } deps = [ "performancetest:performance" ] } group("faultloggerd_fuzzertest") { if (!defined(ohos_lite)) { testonly = true } deps = [ "fuzztest:fuzztest" ] } group("faultloggerd_unittest") { if (!defined(ohos_lite)) { testonly = true } deps = [ "unittest:unittest" ] }