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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
# Description:
# C++ utility tests for Bazel
package(default_visibility = ["//visibility:public"])
filegroup(
name = "srcs",
srcs = glob(["**"]) + ["//src/test/cpp/util:srcs"],
visibility = ["//src:__pkg__"],
)
cc_test(
name = "blaze_util_test",
srcs = select({
"//src/conditions:windows": [
"blaze_util_windows_test.cc",
],
"//conditions:default": [
"blaze_util_test.cc",
"blaze_util_posix_test.cc",
],
}),
deps = [
"//src/main/cpp:blaze_util",
"//src/main/cpp/util",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "option_processor_test",
size = "small",
srcs = ["option_processor_test.cc"],
tags = ["requires_internet"],
deps = [
"//src/main/cpp:bazel_startup_options",
"//src/main/cpp:blaze_util",
"//src/main/cpp:option_processor",
"//src/main/cpp:workspace_layout",
"//src/main/cpp/util",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "rc_file_test",
size = "small",
srcs = ["rc_file_test.cc"],
tags = ["requires_internet"],
deps = [
"//src/main/cpp:bazel_startup_options",
"//src/main/cpp:blaze_util",
"//src/main/cpp:option_processor",
"//src/main/cpp:rc_file",
"//src/main/cpp:workspace_layout",
"//src/main/cpp/util",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "rc_options_test",
size = "small",
srcs = ["rc_options_test.cc"],
deps = [
"//src/main/cpp:blaze_util",
"//src/main/cpp:option_processor",
"//src/main/cpp:workspace_layout",
"//src/main/cpp/util",
"@com_google_googletest//:gtest_main",
],
)
cc_library(
name = "test_util",
testonly = 1,
srcs = ["test_util.cc"],
hdrs = ["test_util.h"],
deps = [
"//src/main/cpp:startup_options",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "startup_options_test",
size = "small",
srcs = ["startup_options_test.cc"],
deps = [
":test_util",
"//src/main/cpp:blaze_util",
"//src/main/cpp:startup_options",
"//src/main/cpp:workspace_layout",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "bazel_startup_options_test",
size = "small",
srcs = ["bazel_startup_options_test.cc"],
deps = [
":test_util",
"//src/main/cpp:bazel_startup_options",
"//src/main/cpp:blaze_util",
"//src/main/cpp:workspace_layout",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "workspace_layout_test",
size = "small",
srcs = ["workspace_layout_test.cc"],
deps = [
"//src/main/cpp:blaze_util",
"//src/main/cpp:workspace_layout",
"//src/main/cpp/util",
"@com_google_googletest//:gtest_main",
],
)
test_suite(name = "all_tests")
test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)
test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
"//src/test/cpp/util:all_windows_tests",
],
visibility = ["//src/test:__pkg__"],
)
|