| # Copyright 2017 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/test/test_package.gni") |
| import("//build/testing/environments.gni") |
| import("//third_party/protobuf/proto_library.gni") |
| |
| executable("cobalt_encoder_unittests") { |
| testonly = true |
| |
| deps = [ |
| "//third_party/cobalt/encoder:unittests", |
| ] |
| } |
| |
| test_package("cobalt_tests") { |
| deps = [ |
| ":cobalt_encoder_unittests", |
| "app:app", |
| "app:cobalt_app_unittests", |
| "system-metrics:cobalt_system_metrics_unittests", |
| "testapp:cobalt_testapp", |
| "testapp:generate_legacy_testapp_metrics", |
| "testapp:generate_testapp_metrics", |
| "utils:cobalt_utils_unittests", |
| ] |
| |
| binaries = [ |
| { |
| name = "cobalt_testapp" |
| }, |
| ] |
| |
| resources = [ |
| { |
| path = rebase_path( |
| get_label_info("testapp:generate_legacy_testapp_metrics", |
| "target_gen_dir") + "/legacy_cobalt_metrics.pb") |
| dest = "legacy_cobalt_metrics.pb" |
| }, |
| { |
| path = |
| rebase_path(get_label_info("testapp:generate_testapp_metrics", |
| "target_gen_dir") + "/cobalt_metrics.pb") |
| dest = "cobalt_metrics.pb" |
| }, |
| ] |
| |
| tests = [ |
| { |
| name = "cobalt_app_unittests" |
| environments = basic_envs |
| }, |
| |
| { |
| name = "cobalt_system_metrics_unittests" |
| environments = basic_envs |
| }, |
| |
| { |
| name = "cobalt_utils_unittests" |
| |
| disabled = true |
| environments = basic_envs |
| }, |
| |
| { |
| name = "cobalt_encoder_unittests" |
| environments = basic_envs |
| }, |
| |
| { |
| name = rebase_path("testapp/cobalt_testapp_no_network.sh") |
| dest = "cobalt_testapp_no_network" |
| environments = basic_envs |
| }, |
| |
| { |
| name = rebase_path("testapp/cobalt_testapp_no_environment.sh") |
| dest = "cobalt_testapp_no_environment" |
| |
| # We don't want to run this version cobalt_testapp in the Garnet |
| # CI/CQ because it uses the real network. We run cobalt_testap_no_network |
| # instead. This version is run in the stand-alone cobalt_client CI. |
| disabled = true |
| environments = basic_envs |
| }, |
| ] |
| } |