blob: a1839f6b0b935d50fdb7b0e4fc1e2e1065f4ce2b [file] [log] [blame]
# Copyright 2019 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.
import("//build/package.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
executable("bin") {
output_name = "inspect_query_unittests"
testonly = true
sources = [
"discover_test.cc",
"fixture.h",
"formatter_test.cc",
"location_test.cc",
"read_test.cc",
"source_test.cc",
]
deps = [
"//src/lib/inspect_deprecated/query",
"//src/lib/inspect_deprecated/query:json_formatter",
"//src/lib/inspect_deprecated/query:text_formatter",
"//src/lib/inspect_deprecated/testing",
"//zircon/public/lib/async-cpp",
]
public_deps = [
"//garnet/public/lib/gtest",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gmock",
"//zircon/public/lib/async-loop-cpp",
"//zircon/public/lib/async-loop-default",
]
public_configs = [ "//build/config:Wno-reorder-init-list" ]
# TODO(46733): Fix the leaks and remove this.
deps += [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ]
}
test_package("inspect_query_unittests") {
deps = [ ":bin" ]
tests = [
{
name = "inspect_query_unittests"
environments = basic_envs
},
]
}