-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
BUILD.bazel
40 lines (34 loc) · 1.13 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
load("//tools/lint:lint.bzl", "add_lint_tests")
load(":workspace_test.bzl", "workspace_test")
load("//tools/skylark:meta.bzl", "all_files")
drake_workspace_files = [
":all_files",
"//tools/external_data/bazel_external_data:all_files",
"//tools:all_files",
"//tools/install:all_files",
"//tools/lint:all_files",
"//tools/skylark:all_files",
"//tools/workspace:all_files",
"//tools/workspace/buildifier:all_files",
"//tools/workspace/pycodestyle:all_files",
"//:skylark_files",
]
workspace_test(
name = "bazel_pkg_test",
data = drake_workspace_files,
workspace = "test/workspaces/bazel_pkg_test",
)
# For use with `workspace_test`.
exports_files(
srcs = [
"workspace_writeable_test.sh",
],
visibility = ["//visibility:public"],
)
# Bazel does not let us glob into `test/workspaces`, even though it's not a
# package of this workspace. Thus, we cannot add lint tests for them externally.
# (We could add each package as repository, and declare filegroups from within,
# but then that couples Drake's `bazel test @drake//...` to these local
# repositories).
add_lint_tests()
all_files()