blob: 0326e762cfa91b372f00a1de5ac9bbc952e5975a [file] [log] [blame]
# Copyright 2020 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/zircon/c_utils.gni")
import("//sdk/ctf/build/ctf.gni")
group("tests") {
testonly = true
assert_no_deps = e2e_test_libs
deps = [
"examples:tests",
"fidl:tests",
"pkg:tests",
# Tests defined outside of //sdk/ctf
"//src/connectivity/wlan/testing/hw-sim/test:ctf-tests",
"//src/devices/tests/ctf:ctf-tests",
"//src/sys/component_manager/tests/reboot_on_terminate:tests",
"//src/sys/pkg/tests/pkgdir:ctf-tests",
"//src/sys/time/timekeeper_integration:ctf-tests",
"//src/ui/tests/conformance_input_tests:ctf-tests",
]
}
group("e2e_tests") {
testonly = true
deps = [ "examples:e2e_tests" ]
}
ctf_unstripped_binaries_file = "$root_out_dir/ctf_unstripped_binaries.list"
link_output_rspfile("ctf_unstripped_binaries_list") {
testonly = true
outputs = [ ctf_unstripped_binaries_file ]
deps = [
# TODO(chok): This currently contains a superset of unstripped binaries.
# We will want to create a smaller group which only contains executable()'s.
":tests",
]
}
action("fidl_mangled_to_api_mapping") {
testonly = true
sources = [ ctf_unstripped_binaries_file ]
deps = [ ":ctf_unstripped_binaries_list" ]
script = "//sdk/ctf/build/scripts/fidl_api_mapper.py"
depfile = "$target_gen_dir/$target_name.dd"
outputs = [ "$root_out_dir/fidl_mangled_to_api_mapping.json" ]
args = [
"--input",
rebase_path(sources[0], root_build_dir),
"--output",
rebase_path(outputs[0], root_build_dir),
"--depfile",
rebase_path(depfile, root_build_dir),
"--dwarfdump",
rebase_path("$clang_prefix/llvm-dwarfdump", root_build_dir),
]
}