forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
117 lines (110 loc) · 2.56 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
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
load("//bazel:skia_rules.bzl", "skia_cc_library")
load("//tools/testrunners/unit:android_unit_test.bzl", "android_unit_test")
load("//tools/testrunners/unit:unit_tests.bzl", "unit_tests")
load(
":testgroups.bzl",
"CORE_TESTS",
"RECORD_TESTS",
)
skia_cc_library(
name = "test_type",
hdrs = ["TestType.h"],
visibility = ["//tools/gpu:__pkg__"],
)
skia_cc_library(
name = "test_harness",
testonly = True,
srcs = [
"CtsEnforcement.cpp",
"Test.cpp",
"TestHarness.cpp",
"//tools:Registry.h",
"//tools/flags:CommandLineFlags.cpp",
"//tools/flags:CommandLineFlags.h",
],
hdrs = [
"CtsEnforcement.h",
"Test.h",
"TestHarness.h",
"TestType.h",
],
visibility = ["//tools/testrunners/unit:__pkg__"],
deps = [
"//:core",
"//src/base",
"//tools/timer",
],
)
skia_cc_library(
name = "tests_base",
testonly = True,
srcs = [
"//tools:Registry.h",
"//tools:ResourceFactory.h",
"//tools:Resources.cpp",
"//tools:SkMetaData.cpp",
"//tools:SkMetaData.h",
"//tools:ToolUtils.cpp",
"//tools/fonts:test_font_manager_srcs",
],
hdrs = [
"CtsEnforcement.h",
"Test.h",
"TestType.h",
"//tools:Resources.h",
"//tools:ToolUtils.h",
"//tools/flags:CommandLineFlags.h",
"//tools/fonts:test_empty_typeface",
],
features = ["layering_check"],
textual_hdrs = [
"//tools/fonts:test_fonts",
],
deps = [
"//:core",
"//:pathops",
"//src/base",
"//src/core:core_priv",
] + select({
"@platforms//os:android": ["//:fontmgr_android_freetype"],
"@platforms//os:linux": ["//:fontmgr_fontconfig_freetype"],
# TODO(kjlubick) mac, windows
"//conditions:default": ["//:fontmgr_empty"],
}),
)
unit_tests(
name = "core_tests",
resources = [
"//resources:core_test_resources",
],
tests = CORE_TESTS,
deps = [
":tests_base",
"//:core",
],
)
unit_tests(
name = "record_tests",
extra_srcs = ["RecordTestUtils.h"],
tests = RECORD_TESTS,
deps = [
":tests_base",
"//:core",
],
)
# The set of all tests that can be compiled on Linux RBE
test_suite(
name = "linux_rbe_tests",
tests = [
":core_tests",
":record_tests",
],
)
android_unit_test(
name = "android_math_test",
srcs = ["MathTest.cpp"],
deps = [
":tests_base",
"//:core",
],
)