| # 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/dist/resource.gni") |
| |
| if (is_fuchsia) { |
| group("hermetic_tests") { |
| testonly = true |
| public_deps = [ |
| "blobfs-ramdisk:hermetic_tests", |
| "mock-boot-arguments:hermetic_tests", |
| "mock-crash-reporter:hermetic_tests", |
| "mock-health-verification:hermetic_tests", |
| "mock-installer:hermetic_tests", |
| "mock-metrics:hermetic_tests", |
| "mock-omaha-server:hermetic_tests", |
| "mock-paver:hermetic_tests", |
| "mock-reboot:hermetic_tests", |
| "mock-resolver:hermetic_tests", |
| "mock-space:hermetic_tests", |
| ] |
| } |
| } |
| |
| group("all_tests") { |
| testonly = true |
| public_deps = [ ":hermetic_tests($target_toolchain)" ] |
| } |
| |
| # fuchsia_hyper::new_https_client fails if there isn't a file at /config/ssl/cert.pem, but the tests |
| # don't actually make https connections and so don't need any certs, so we can just give them an |
| # empty file instead of making them a system test and giving them the system certs. |
| resource("fake-ssl-certs") { |
| sources = [ "fake_cert_for_test.pem" ] |
| outputs = [ "fake-ssl-certs/cert.pem" ] |
| } |