-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathBUILD.bazel
More file actions
52 lines (46 loc) · 1.32 KB
/
BUILD.bazel
File metadata and controls
52 lines (46 loc) · 1.32 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
load("@rules_multitool//multitool:cwd.bzl", "cwd")
load("@rules_shell//shell:sh_test.bzl", "sh_test")
load("//:add_dummy_file.bzl", "add_dummy_file")
sh_test(
name = "integration_test",
srcs = ["integration_test.sh"],
args = [
"$(location @multitool//tools/target-determinator)",
],
data = ["@multitool//tools/target-determinator"],
)
sh_test(
name = "integration_test_cwd",
srcs = ["integration_test.sh"],
args = [
"$(location @multitool//tools/target-determinator:cwd)",
],
data = ["@multitool//tools/target-determinator:cwd"],
env = {"BUILD_WORKING_DIRECTORY": "."},
)
sh_test(
name = "integration_test_workspace_root",
srcs = ["integration_test.sh"],
args = [
"$(location @multitool//tools/target-determinator:workspace_root)",
],
data = ["@multitool//tools/target-determinator:workspace_root"],
env = {"BUILD_WORKSPACE_DIRECTORY": "."},
)
add_dummy_file(
name = "add_dummy_file",
tool = "@multitool//tools/target-determinator",
)
cwd(
name = "add_dummy_file_cwd",
tool = ":add_dummy_file",
)
sh_test(
name = "integration_test_add_dummy_file_cwd",
srcs = ["integration_test.sh"],
args = [
"$(location :add_dummy_file_cwd)",
],
data = [":add_dummy_file_cwd"],
env = {"BUILD_WORKING_DIRECTORY": "."},
)