| # Copyright 2021 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 = [ | |
| ":error-unittests-pkg", | |
| ":unittests-pkg", | |
| ] | |
| } | |
| ## 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") | |
| if (is_fuchsia) { | |
| source_set("common") { | |
| sources = [ | |
| "artifact.cc", | |
| "async-eventpair.cc", | |
| "async-socket.cc", | |
| "async-types.cc", | |
| "child-process.cc", | |
| "component-context.cc", | |
| "controller-provider.cc", | |
| "controller.cc", | |
| "corpus-reader-client.cc", | |
| "dictionary.cc", | |
| "engine.cc", | |
| "input.cc", | |
| "monitor-clients.cc", | |
| "options.cc", | |
| "runner.cc", | |
| "shared-memory.cc", | |
| "status.cc", | |
| ] | |
| public = [ | |
| "artifact.h", | |
| "async-deque.h", | |
| "async-eventpair.h", | |
| "async-socket.h", | |
| "async-types.h", | |
| "child-process.h", | |
| "component-context.h", | |
| "controller-provider.h", | |
| "controller.h", | |
| "corpus-reader-client.h", | |
| "dictionary.h", | |
| "engine.h", | |
| "input.h", | |
| "module.h", | |
| "monitor-clients.h", | |
| "options-literal.inc", | |
| "options.h", | |
| "options.inc", | |
| "result.h", | |
| "runner.h", | |
| "sancov.h", | |
| "shared-memory.h", | |
| "status.h", | |
| ] | |
| visibility = [ | |
| ":*", | |
| "//src/sys/*", | |
| ] | |
| public_deps = [ | |
| "//sdk/fidl/fuchsia.mem:fuchsia.mem_hlcpp", | |
| "//sdk/fidl/fuchsia.process:fuchsia.process_hlcpp", | |
| "//sdk/lib/async:async-cpp", | |
| "//sdk/lib/async-loop:async-loop-cpp", | |
| "//sdk/lib/async-loop:async-loop-default", | |
| "//sdk/lib/sys/cpp", | |
| "//sdk/lib/syslog/cpp", | |
| "//src/lib/debug:backtrace-request", | |
| "//src/lib/fxl", | |
| "//src/lib/pkg_url", | |
| "//src/sys/fuzzing/fidl:fuchsia.fuzzer_hlcpp", | |
| "//third_party/re2", | |
| "//zircon/system/ulib/sync", | |
| "//zircon/system/ulib/zx", | |
| ] | |
| } | |
| } | |
| if (is_fuchsia) { | |
| source_set("runner-unittests-common") { | |
| testonly = true | |
| sources = [ "runner-unittest.cc" ] | |
| public = [ "runner-unittest.h" ] | |
| deps = [ "//src/sys/fuzzing/common/testing" ] | |
| visibility = [ ":*" ] | |
| public_deps = [ | |
| ":common", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| } | |
| if (is_fuchsia) { | |
| source_set("runner-unittests") { | |
| testonly = true | |
| public = [ "runner-unittest.inc" ] | |
| visibility = [ | |
| ":*", | |
| "//src/sys/fuzzing/*", | |
| ] | |
| public_deps = [ ":runner-unittests-common" ] | |
| } | |
| } | |
| if (is_fuchsia) { | |
| source_set("runner-fatal-unittests") { | |
| testonly = true | |
| public = [ "runner-fatal-unittest.inc" ] | |
| visibility = [ | |
| ":*", | |
| "//src/sys/fuzzing/*", | |
| ] | |
| public_deps = [ ":runner-unittests-common" ] | |
| } | |
| } | |
| if (is_fuchsia) { | |
| cc_test_executable("unittests-bin") { | |
| sources = [ | |
| "async-deque-unittest.cc", | |
| "async-eventpair-unittest.cc", | |
| "async-socket-unittest.cc", | |
| "controller-provider-unittest.cc", | |
| "controller-unittest.cc", | |
| "corpus-reader-client-unittest.cc", | |
| "dictionary-unittest.cc", | |
| "input-unittest.cc", | |
| "monitor-clients-unittest.cc", | |
| "options-unittest.cc", | |
| "shared-memory-unittest.cc", | |
| ] | |
| output_name = "fuzzing_common_unittests" | |
| visibility = [ ":*" ] | |
| deps = [ | |
| ":common", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//src/sys/fuzzing/common/testing", | |
| "//third_party/googletest:gtest", | |
| ] | |
| testonly = true | |
| emit_tool_path = false | |
| } | |
| } | |
| if (is_fuchsia) { | |
| cc_test_executable("error-unittests-bin") { | |
| sources = [ | |
| "child-process-unittest.cc", | |
| "engine-unittest.cc", | |
| ] | |
| output_name = "fuzzing_common_error_unittests" | |
| visibility = [ ":*" ] | |
| deps = [ | |
| ":common", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//src/sys/fuzzing/common/testing", | |
| "//third_party/googletest:gtest", | |
| ] | |
| testonly = true | |
| emit_tool_path = false | |
| } | |
| } | |
| renamed_binary("unittests-bin_packaged_bin") { | |
| testonly = true | |
| source = "$root_out_dir/fuzzing_common_unittests" | |
| source_deps = [ ":unittests-bin" ] | |
| dest = "test/fuzzing_common_unittests" | |
| } | |
| renamed_binary("error-unittests-bin_packaged_bin") { | |
| testonly = true | |
| source = "$root_out_dir/fuzzing_common_error_unittests" | |
| source_deps = [ ":error-unittests-bin" ] | |
| dest = "test/fuzzing_common_error_unittests" | |
| } | |
| fuchsia_component_manifest("unittests-manifest") { | |
| testonly = true | |
| component_name = "unittests" | |
| manifest = "meta/unittests.cml" | |
| } | |
| fuchsia_component_manifest("error-unittests-manifest") { | |
| testonly = true | |
| component_name = "error-unittests" | |
| manifest = "meta/error-unittests.cml" | |
| } | |
| fuchsia_test_component("unittests") { | |
| cm_label = ":unittests-manifest" | |
| visibility = [ ":*" ] | |
| deps = [ ":unittests-bin_packaged_bin" ] | |
| } | |
| fuchsia_test_component("error-unittests") { | |
| cm_label = ":error-unittests-manifest" | |
| test_type = "system" | |
| visibility = [ ":*" ] | |
| deps = [ | |
| ":error-unittests-bin_packaged_bin", | |
| "//src/sys/fuzzing/common/testing:echo", | |
| ] | |
| } | |
| fuchsia_test_package("unittests-pkg") { | |
| package_name = "fuzzing-common-tests-gn" | |
| test_components = [ ":unittests" ] | |
| } | |
| fuchsia_test_package("error-unittests-pkg") { | |
| package_name = "fuzzing-common-error-tests-gn" | |
| test_components = [ ":error-unittests" ] | |
| test_specs = { | |
| log_settings = { | |
| max_severity = "ERROR" | |
| } | |
| } | |
| } |