blob: 972c6501510ff18c35f6bfdfc3c10e33324c32c3 [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.
zx_library("runtests-utils") {
testonly = true
host = true
sources = [
"discover-and-run-tests.cc",
"runtests-utils.cc",
]
public_deps = [
# <runtests-utils/runtests-utils.h> has #include <lib/zircon-internal/fnv1hash.h>.
"$zx/system/ulib/zircon-internal:headers",
]
deps = [
"$zx/system/ulib/fbl",
"$zx/system/ulib/unittest",
"$zx/system/ulib/zircon-internal",
]
if (is_fuchsia) {
sources += [
"fuchsia-run-test.cc",
"log-exporter.cc",
"service-proxy-dir.cc",
]
public_deps += [
# <runtests-utils/log-exporter.h> has #include <lib/fidl/cpp/message_buffer.h>.
"$zx/system/ulib/fidl:headers",
# <runtests-utils/log-exporter.h> has #include <fuchsia/logger/c/fidl.h>.
"$zx/system/fidl/fuchsia-logger:c.headers",
# <runtests-utils/log-exporter.h> has #include <lib/async-loop/cpp/loop.h>.
"$zx/system/ulib/async-loop:async-loop-cpp.headers",
]
deps += [
"$zx/system/fidl/fuchsia-io:llcpp",
"$zx/system/fidl/fuchsia-logger:c",
"$zx/system/ulib/async",
"$zx/system/ulib/async:async-cpp",
"$zx/system/ulib/async-loop",
"$zx/system/ulib/async-loop:async-loop-cpp",
"$zx/system/ulib/async-loop:async-loop-default.static",
"$zx/system/ulib/debugdata",
"$zx/system/ulib/fdio",
"$zx/system/ulib/fidl",
"$zx/system/ulib/fidl-async:fidl-async-cpp",
"$zx/system/ulib/fs",
"$zx/system/ulib/fzl",
"$zx/system/ulib/loader-service",
"$zx/system/ulib/unittest",
"$zx/system/ulib/zircon",
"$zx/system/ulib/zx",
]
} else {
sources += [ "posix-run-test.cc" ]
}
}