blob: 5f5c523bfdf315114c48c236d717a8bfae825c50 [file] [log] [blame]
# Copyright 2021 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")
gvisor_prebuilt_test_root = "//prebuilt/starnix/tests/syscalls/linux-amd64"
template("starnix_test_component") {
test_name = target_name
resource("${test_name}_bin") {
sources =
[ "${gvisor_prebuilt_test_root}/${invoker.test_dir}/${test_name}" ]
outputs = [ "data/tests/${test_name}" ]
}
fuchsia_component(test_name) {
forward_variables_from(invoker, "*")
testonly = true
check_references = false
manifest = "${invoker.meta_dir}/${test_name}.cml"
if (!defined(deps)) {
deps = []
}
deps += [ ":${test_name}_bin" ]
}
}