diff options
Diffstat (limited to 'tests/legacy/test_chdir/remote.bzl')
-rw-r--r-- | tests/legacy/test_chdir/remote.bzl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/legacy/test_chdir/remote.bzl b/tests/legacy/test_chdir/remote.bzl new file mode 100644 index 00000000..03642fe2 --- /dev/null +++ b/tests/legacy/test_chdir/remote.bzl @@ -0,0 +1,14 @@ +def _test_chdir_remote_impl(ctx): + ctx.file("WORKSPACE", """workspace("test_chdir_remote")""") + ctx.file("BUILD.bazel", "") + for f in ["BUILD.bazel", "data_test.go", "data.txt"]: + input = Label("@io_bazel_rules_go//tests/legacy/test_chdir:{}".format(f)) + ctx.template("sub/" + f, input) + +_test_chdir_remote = repository_rule( + implementation = _test_chdir_remote_impl, + attrs = {}, +) + +def test_chdir_remote(): + _test_chdir_remote(name = "test_chdir_remote") |