blob: a4a10655b268ac3714841d90368f88f9c95b0445 [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("//build/package.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" ]
}
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",
]
}
package("profiler_tests") {
# testonly = true
deps = [
":profiledata_unittest",
":profiler_unittest",
":stacktrace_unittest",
]
binaries = [
{
name = "stacktrace_unittest"
},
{
name = "profiler_unittest"
},
{
name = "profiledata_unittest"
},
]
}