blob: 3600745f9b6ea0e1bc2e78c8e70fb64271d7b565 [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/public/lib/zx",
"//zircon/system/ulib/async-loop:async-loop-cpp",
]
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/public/lib/zx" ]
}
fuchsia_unittest_package("tracing_test_utils_tests") {
manifest = "meta/tracing_test_utils_tests.cmx"
deps = [
":tracing_test_utils_return_1234",
":tracing_test_utils_signal_peer",
":tracing_test_utils_tests_app",
]
}