| load("@bazel_skylib//rules:copy_file.bzl", "copy_file") |
| load("@bazel_skylib//rules/directory:directory.bzl", "directory") |
| load(":directory_test.bzl", "directory_test_suite") |
| load(":glob_test.bzl", "glob_test_suite") |
| load(":subdirectory_test.bzl", "subdirectory_test_suite") |
| |
| package(default_applicable_licenses = ["@bazel_skylib//:license"]) |
| |
| directory( |
| name = "root", |
| srcs = glob(["testdata/**"]), |
| ) |
| |
| filegroup( |
| name = "f1_filegroup", |
| srcs = ["testdata/f1"], |
| ) |
| |
| filegroup( |
| name = "f2_filegroup", |
| srcs = ["testdata/subdir/f2"], |
| ) |
| |
| copy_file( |
| name = "generated_file", |
| src = "testdata/f1", |
| out = "dir/generated", |
| ) |
| |
| directory_test_suite( |
| name = "directory_tests", |
| ) |
| |
| glob_test_suite( |
| name = "glob_tests", |
| ) |
| |
| subdirectory_test_suite( |
| name = "subdirectory_tests", |
| ) |