blob: 4dfa7fa3ce08f5ba10bab6d6d54c55a3a1ba4403 [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/test.gni")
import("//build/testing/bootfs_test.gni")
test("dlfcn") {
sources = [ "dlfcn.cc" ]
deps = [
"//sdk/lib/fdio",
"//src/lib/loader_service",
"//zircon/public/lib/async",
"//zircon/public/lib/zx",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/elfload",
]
data_deps = [ ":test-dso-no-note" ]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
}
loadable_module("test-dso-no-note") {
visibility = [ ":*" ]
testonly = true
sources = [ "test-dso-no-note.cc" ]
configs += [ ":no-build-id" ]
}
config("no-build-id") {
visibility = [ ":*" ]
ldflags = [ "-Wl,--build-id=none" ]
}
bootfs_test("dlfcn-bootfs-test") {
name = "dlfcn"
deps = [ ":dlfcn" ]
}