2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-28 21:33:48 +00:00
bazel-lib/lib/tests/copy_directory/BUILD.bazel

38 lines
613 B
Python
Raw Normal View History

2022-04-04 00:52:03 +00:00
"Tests for copy_directory"
load("//lib:diff_test.bzl", "diff_test")
load("//lib:copy_directory.bzl", "copy_directory")
load("//lib:copy_to_directory.bzl", "copy_to_directory")
genrule(
name = "a_file",
outs = ["a"],
cmd = "echo 'foo' > $@",
)
genrule(
name = "b_file",
outs = ["a2"],
cmd = "echo 'bar' > $@",
)
copy_to_directory(
name = "dir",
srcs = [
":a_file",
":b_file",
],
)
copy_directory(
name = "dir_copy",
src = "dir",
out = "copy_of_dir",
)
diff_test(
name = "copy_directory_test",
file1 = ":dir",
file2 = ":dir_copy",
)