blob: 7656361874ccfb20620e8073f3e4eef84fb594a1 [file]
# 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" ]
exclude_toolchain_tags = [ "coverage" ]
}
resource("print_helper_resource") {
testonly = true
sources = [ "$root_out_dir/print_helper" ]
outputs = [ "data/print_helper" ]
deps = [ ":print_helper" ]
}
executable("clone_exec_helper") {
testonly = true
emit_tool_path = false
sources = [ "clone_exec_helper.cc" ]
exclude_toolchain_tags = [ "coverage" ]
}
resource("clone_exec_helper_resource") {
testonly = true
sources = [ "$root_out_dir/clone_exec_helper" ]
outputs = [ "data/clone_exec_helper" ]
deps = [ ":clone_exec_helper" ]
}
executable("exit_zero") {
testonly = true
emit_tool_path = false
sources = [ "exit_zero.cc" ]
exclude_toolchain_tags = [ "coverage" ]
}
resource("exit_zero_resource") {
testonly = true
sources = [ "$root_out_dir/exit_zero" ]
outputs = [ "data/exit_zero" ]
deps = [ ":exit_zero" ]
}
executable("custom_pt_interp_child") {
testonly = true
emit_tool_path = false
sources = [ "exit_zero.cc" ]
ldflags = [ "-Wl,--dynamic-linker=./test_interp" ]
exclude_toolchain_tags = [ "coverage" ]
}
resource("custom_pt_interp_child_resource") {
testonly = true
sources = [ "$root_out_dir/custom_pt_interp_child" ]
outputs = [ "data/custom_pt_interp_child" ]
deps = [ ":custom_pt_interp_child" ]
}
executable("signal_handling_test_exec_parent_before_exit") {
testonly = true
emit_tool_path = false
sources = [ "signal_handling_test_exec_parent_before_exit.cc" ]
exclude_toolchain_tags = [ "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/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" ]
exclude_toolchain_tags = [ "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/signal_handling_test_exec_parent_after_exit" ]
deps = [ ":signal_handling_test_exec_parent_after_exit" ]
}
}