blob: 4b9050b49da9d81290032d79573f99ceb42b2543 [file] [log] [blame]
# Copyright 2024 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")
if (is_linux) {
executable("print_helper") {
testonly = true
emit_tool_path = false
sources = [ "print_helper.cc" ]
# TODO(https://fxbug.dev/297293167) enable ASan instrumentation for Linux binaries in Starnix
exclude_toolchain_tags = [
"asan",
"coverage",
]
}
resource("print_helper_resource") {
testonly = true
sources = [ "$root_out_dir/print_helper" ]
outputs = [ "data/tests/deps/print_helper" ]
deps = [ ":print_helper" ]
}
executable("clone_exec_helper") {
testonly = true
emit_tool_path = false
sources = [ "clone_exec_helper.cc" ]
# TODO(https://fxbug.dev/297293167) enable ASan instrumentation for Linux binaries in Starnix
exclude_toolchain_tags = [
"asan",
"coverage",
]
}
resource("clone_exec_helper_resource") {
testonly = true
sources = [ "$root_out_dir/clone_exec_helper" ]
outputs = [ "data/tests/deps/clone_exec_helper" ]
deps = [ ":clone_exec_helper" ]
}
executable("signal_handling_test_exec_parent_before_exit") {
testonly = true
emit_tool_path = false
sources = [ "signal_handling_test_exec_parent_before_exit.cc" ]
# TODO(https://fxbug.dev/297293167) enable ASan instrumentation for Linux binaries in Starnix
exclude_toolchain_tags = [
"asan",
"coverage",
]
deps = [
"//src/starnix/tests/syscalls/cpp:test_utils",
"//third_party/googletest:gtest",
]
}
resource("signal_handling_test_exec_parent_before_exit_resource") {
testonly = true
sources = [ "$root_out_dir/signal_handling_test_exec_parent_before_exit" ]
outputs = [ "data/tests/deps/signal_handling_test_exec_parent_before_exit" ]
deps = [ ":signal_handling_test_exec_parent_before_exit" ]
}
executable("signal_handling_test_exec_parent_after_exit") {
testonly = true
emit_tool_path = false
sources = [ "signal_handling_test_exec_parent_after_exit.cc" ]
# TODO(https://fxbug.dev/297293167) enable ASan instrumentation for Linux binaries in Starnix
exclude_toolchain_tags = [
"asan",
"coverage",
]
deps = [
"//src/starnix/tests/syscalls/cpp:test_utils",
"//third_party/googletest:gtest",
]
}
resource("signal_handling_test_exec_parent_after_exit_resource") {
testonly = true
sources = [ "$root_out_dir/signal_handling_test_exec_parent_after_exit" ]
outputs = [ "data/tests/deps/signal_handling_test_exec_parent_after_exit" ]
deps = [ ":signal_handling_test_exec_parent_after_exit" ]
}
}