| # Copyright 2022 The Fuchsia Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":debug_data_processor_unittests_package" ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| source_set("lib") { | |
| testonly = true | |
| sources = [ | |
| "data_processor.cc", | |
| "data_processor_fidl.cc", | |
| ] | |
| public = [ | |
| "abstract_data_processor.h", | |
| "common.h", | |
| "data_processor.h", | |
| "data_processor_fidl.h", | |
| ] | |
| public_deps = [ | |
| "//sdk/fidl/fuchsia.debugdata:fuchsia.debugdata_hlcpp", | |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2_hlcpp", | |
| "//sdk/lib/async:async-cpp", | |
| "//sdk/lib/async-loop:async-loop-cpp", | |
| "//sdk/lib/async-loop:async-loop-default", | |
| "//sdk/lib/fdio", | |
| "//sdk/lib/syslog/cpp", | |
| "//src/lib/fxl", | |
| "//src/lib/json_parser", | |
| "//src/sys/test_manager/fidl/fuchsia.test.debug:fuchsia.test.debug_hlcpp", | |
| "//zircon/system/ulib/debugdata", | |
| ] | |
| } | |
| executable("debug_data_processor_bin") { | |
| testonly = true | |
| sources = [ "processor_main.cc" ] | |
| output_name = "debug_data_processor" | |
| deps = [ | |
| ":lib", | |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2_hlcpp", | |
| "//sdk/lib/async-loop:async-loop-cpp", | |
| "//sdk/lib/async-loop:async-loop-default", | |
| "//sdk/lib/sys/cpp", | |
| "//sdk/lib/syslog/cpp", | |
| "//src/sys/test_manager/fidl/fuchsia.test.debug:fuchsia.test.debug_hlcpp", | |
| ] | |
| } | |
| fuchsia_component_manifest("debug_data_processor_manifest") { | |
| testonly = true | |
| component_name = "debug_data_processor" | |
| manifest = "meta/debug_data_processor.cml" | |
| } | |
| fuchsia_component("debug_data_processor") { | |
| testonly = true | |
| cm_label = ":debug_data_processor_manifest" | |
| visibility = [ | |
| ":*", | |
| "//src/sys/test_manager:*", | |
| ] | |
| deps = [ ":debug_data_processor_bin" ] | |
| } | |
| cc_test_executable("test_bin") { | |
| sources = [ | |
| "data_processor_fidl_unittests.cc", | |
| "data_processor_unittests.cc", | |
| "test_data_processor.h", | |
| ] | |
| output_name = "debug_data_processor_unittests" | |
| deps = [ | |
| ":lib", | |
| "//sdk/lib/async-loop:async-loop-cpp", | |
| "//sdk/lib/async-loop:async-loop-default", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//src/lib/testing/loop_fixture", | |
| ] | |
| testonly = true | |
| emit_tool_path = false | |
| } | |
| fuchsia_component_manifest("debug_data_processor_unittests_manifest") { | |
| testonly = true | |
| component_name = "debug_data_processor_unittests" | |
| manifest = "meta/debug_data_processor_unittests.cml" | |
| } | |
| fuchsia_test_component("debug_data_processor_unittests_component") { | |
| cm_label = ":debug_data_processor_unittests_manifest" | |
| deps = [ ":test_bin" ] | |
| } | |
| fuchsia_test_package("debug_data_processor_unittests_package") { | |
| package_name = "debug_data_processor_unittests-gn" | |
| test_components = [ ":debug_data_processor_unittests_component" ] | |
| test_specs = { | |
| log_settings = { | |
| max_severity = "ERROR" | |
| } | |
| } | |
| } |