blob: f430fad34568a3832a00cf1c426c434c0b5961ed [file] [log] [blame]
# 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("//src/sys/build/components.gni")
gperftools_src_root = "//third_party/gperftools/src/tests/"
executable("stacktrace_unittest") {
# testonly = true
sources = [ rebase_path("stacktrace_unittest.cc", ".", gperftools_src_root) ]
deps = [
"//garnet/lib/profiler:profiler_static",
"//src/lib/fsl",
"//src/lib/fxl",
]
}
source_set("testutil") {
sources = [ rebase_path("testutil.cc", ".", gperftools_src_root) ]
deps = [ "//garnet/lib/profiler:profiler_static" ]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
executable("profiler_unittest") {
# testonly = true
sources = [ rebase_path("profiler_unittest.cc", ".", gperftools_src_root) ]
deps = [
":testutil",
"//garnet/lib/profiler:profiler_static",
"//src/lib/fsl",
"//src/lib/fxl",
]
}
executable("profiledata_unittest") {
# testonly = true
sources = [ rebase_path("profiledata_unittest.cc", ".", gperftools_src_root) ]
deps = [
":testutil",
"//garnet/lib/profiler:profiler_static",
"//src/lib/fsl",
"//src/lib/fxl",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
fuchsia_package("profiler_tests") {
# testonly = true
deps = [
":profiledata_unittest",
":profiler_unittest",
":stacktrace_unittest",
]
}