blob: 798d4f1e329a3b45b5f00095e393b747b5416e98 [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")
source_set("test_utils") {
testonly = true
sources = [
"run_program.cc",
"run_program.h",
]
public_deps = [
"//sdk/lib/fdio",
"//sdk/lib/sys/cpp",
"//src/lib/fxl",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/zx",
]
deps = [ "//src/lib/fsl" ]
}
executable("tracing_test_utils_tests_app") {
testonly = true
output_name = "tracing_test_utils_tests"
sources = [ "run_program_tests.cc" ]
deps = [
":test_utils",
"//src/lib/fxl/test:gtest_main",
]
}
executable("tracing_test_utils_return_1234") {
testonly = true
output_dir = target_out_dir
output_name = "return_1234"
sources = [ "return_1234.cc" ]
}
executable("tracing_test_utils_signal_peer") {
testonly = true
output_dir = target_out_dir
output_name = "signal_peer"
sources = [ "signal_peer.cc" ]
deps = [ "//zircon/system/ulib/zx" ]
}
fuchsia_unittest_package("tracing_test_utils_tests") {
manifest = "meta/tracing_test_utils_tests.cml"
deps = [
":tracing_test_utils_return_1234",
":tracing_test_utils_signal_peer",
":tracing_test_utils_tests_app",
]
}