blob: bd4fa8f9226c070f8d7301c1ff8a8e29b94d1791 [file] [log] [blame]
# This package aids testing the 'copy_directory' rule.
load("//rules:copy_directory.bzl", "copy_directory")
load(":empty_directory.bzl", "empty_directory")
package(
default_applicable_licenses = ["//:license"],
default_testonly = 1,
)
licenses(["notice"])
# Copy of directory containing files a and b, and a subdir containing c
copy_directory(
name = "copy_of_dir_with_subdir",
src = "dir_with_subdir",
out = "dir_copy",
)
empty_directory(
name = "empty_dir",
)
copy_directory(
name = "copy_of_empty_dir",
src = "empty_dir",
out = "empty_dir_copy",
)
copy_directory(
name = "copy_of_dir_with_symlink",
src = "dir_with_symlink",
out = "dir_with_symlink_copy",
)
sh_test(
name = "copy_directory_tests",
srcs = ["copy_directory_tests.sh"],
data = [
":copy_of_dir_with_subdir",
":copy_of_dir_with_symlink",
":copy_of_empty_dir",
"//tests:unittest.bash",
],
deps = ["@bazel_tools//tools/bash/runfiles"],
)