blob: cc89e3c513121f71e7dedfe340fcf31c01098e5c [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/components.gni")
import("//build/test.gni")
import("//build/testing/environments.gni")
source_set("lib") {
sources = [
"action.h",
"measurement.h",
"object.h",
"random.h",
"tracing.cc",
"tracing.h",
"utility.cc",
"utility.h",
"worker.h",
"workload.cc",
"workload.h",
]
public_deps = [
"//sdk/fidl/fuchsia.kernel:fuchsia.kernel_hlcpp",
"//sdk/lib/fdio",
"//sdk/lib/syslog/cpp",
"//src/lib/files",
"//src/lib/fxl",
"//src/performance/lib/fxt",
"//third_party/rapidjson",
"//third_party/re2",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/fzl",
"//zircon/system/ulib/sync",
"//zircon/system/ulib/trace-reader",
"//zircon/system/ulib/zircon-internal",
"//zircon/system/ulib/zx",
]
}
executable("bin") {
output_name = "loadbench"
sources = [ "loadbench.cc" ]
deps = [ ":lib" ]
}
fuchsia_shell_package("loadbench") {
deps = [ ":bin" ]
}
executable("loadbench_unittests") {
testonly = true
sources = [
"tracing_unittest.cc",
"workload_unittest.cc",
]
deps = [
":lib",
"//src/lib/fxl/test:gtest_main",
"//src/performance/lib/fxt",
"//third_party/googletest:gmock",
"//third_party/re2",
]
}
fuchsia_unittest_package("loadbench_tests") {
component_name = "loadbench_unittests"
manifest = "meta/loadbench_unittests.cml"
deps = [ ":loadbench_unittests" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
test_type = "system"
}
group("tests") {
testonly = true
public_deps = [ ":loadbench_tests" ]
}