| #Copyright 2018 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") |
| |
| executable("bin") { |
| output_name = "inspect_test_app" |
| |
| sources = [ |
| "program.cc", |
| ] |
| |
| deps = [ |
| "//garnet/public/lib/component/cpp", |
| "//zircon/public/lib/async-loop-cpp", |
| ] |
| } |
| |
| executable("test") { |
| testonly = true |
| output_name = "inspect_integration_tests" |
| |
| sources = [ |
| "test.cc", |
| ] |
| |
| deps = [ |
| "//garnet/public/lib/component/cpp", |
| "//garnet/public/lib/component/cpp/testing", |
| "//garnet/public/lib/fxl", |
| "//garnet/public/lib/fxl/test:gtest_main", |
| "//third_party/googletest:gmock", |
| ] |
| } |
| |
| test_package("inspect_integration_tests") { |
| deps = [ |
| ":test", |
| ] |
| |
| tests = [ |
| { |
| name = "inspect_integration_tests" |
| }, |
| ] |
| } |
| |
| package("inspect_test_app") { |
| deps = [ |
| ":bin", |
| ] |
| |
| binaries = [ |
| { |
| name = "inspect_test_app" |
| }, |
| ] |
| |
| meta = [ |
| { |
| path = rebase_path("meta/inspect_test_app.cmx") |
| dest = "inspect_test_app.cmx" |
| }, |
| ] |
| } |