| # Description: |
| # Tests for rules which enable users to define configuration |
| |
| package( |
| default_testonly = 1, |
| default_visibility = ["//src:__subpackages__"], |
| ) |
| |
| filegroup( |
| name = "srcs", |
| testonly = 0, # All srcs should be not test only, overwrite package default. |
| srcs = glob(["**"]), |
| ) |
| |
| java_library( |
| name = "ConfigRulesTests_lib", |
| srcs = glob(["*.java"]), |
| deps = [ |
| "//src/main/java/com/google/devtools/build/lib:build-base", |
| "//src/main/java/com/google/devtools/build/lib:collect", |
| "//src/main/java/com/google/devtools/build/lib:packages-internal", |
| "//src/main/java/com/google/devtools/build/lib/actions", |
| "//src/main/java/com/google/devtools/build/lib/cmdline", |
| "//src/main/java/com/google/devtools/build/lib/rules/config", |
| "//src/main/java/com/google/devtools/common/options", |
| "//src/test/java/com/google/devtools/build/lib:actions_testutil", |
| "//src/test/java/com/google/devtools/build/lib:analysis_testutil", |
| "//src/test/java/com/google/devtools/build/lib:testutil", |
| "//src/test/java/com/google/devtools/build/lib/skylark:testutil", |
| "//third_party:guava", |
| "//third_party:guava-testlib", |
| "//third_party:jsr305", |
| "//third_party:junit4", |
| "//third_party:truth", |
| ], |
| ) |
| |
| java_test( |
| name = "ConfigRulesTests", |
| test_class = "com.google.devtools.build.lib.AllTests", |
| runtime_deps = [ |
| ":ConfigRulesTests_lib", |
| "//src/test/java/com/google/devtools/build/lib:test_runner", |
| "//src/test/java/com/google/devtools/build/lib:testutil", |
| ], |
| ) |