| # 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. |
| |
| source_set("testing") { |
| visibility = [ "//src/sys/*" ] |
| testonly = true |
| sources = [ |
| "async-test.h", |
| "corpus-reader.cc", |
| "corpus-reader.h", |
| "module.cc", |
| "module.h", |
| "monitor.cc", |
| "monitor.h", |
| "process.cc", |
| "process.h", |
| "registrar.cc", |
| "registrar.h", |
| "runner.cc", |
| "runner.h", |
| ] |
| |
| deps = [ |
| "//sdk/lib/syslog/cpp", |
| "//zircon/system/ulib/async", |
| ] |
| public_deps = [ |
| "..:common", |
| "//sdk/testing/fidl:test_support", |
| "//third_party/googletest:gtest", |
| "//zircon/system/ulib/sync", |
| ] |
| } |
| |
| # Test executables which use this source_set (in place of a real sanitizer runtime) must include |
| # `exclude_toolchain_tags = [ "instrumented" ]`. |
| source_set("sanitizer") { |
| testonly = true |
| sources = [ |
| "sanitizer.cc", |
| "sanitizer.h", |
| ] |
| deps = [ |
| ":testing", |
| "..:common", |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/fxl", |
| ] |
| } |
| |
| # A standalone fuzzer that uses a fake runner. |
| executable("fuzzer") { |
| output_name = "fake_fuzzer_for_testing" |
| testonly = true |
| sources = [ "engine-main.cc" ] |
| deps = [ |
| ":testing", |
| "//src/lib/fxl", |
| "//src/sys/fuzzing/fidl:fuchsia.fuzzer", |
| ] |
| } |