| # Copyright 2023 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| load("//bazel/bash:defs.bzl", "custom_args_test", "sh_runfiles_binary") |
| |
| custom_args_test( |
| name = "custom_args_test", |
| size = "small", |
| binary = ":read_runfiles", |
| binary_args = [ |
| "cros/bazel/bash/examples/testdata/example.txt", |
| "cros/bazel/bash/examples/testdata/example2.txt", |
| ], |
| data = ["testdata/example.txt"], |
| ) |
| |
| sh_runfiles_binary( |
| name = "read_runfiles", |
| testonly = True, |
| src = "read_runfiles.sh", |
| data = ["testdata/example2.txt"], |
| ) |