forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
91 lines (89 loc) · 2.33 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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "util",
srcs = [
"cpu_posix.go",
"cpu_windows.go",
"errors.go",
"etcd.go",
"gogc.go",
"misc.go",
"prefix_helper.go",
"printer.go",
"processinfo.go",
"rlimit_other.go",
"rlimit_windows.go",
"security.go",
"tso.go",
"urls.go",
"util.go",
"wait_group_wrapper.go",
],
importpath = "github.com/pingcap/tidb/util",
visibility = ["//visibility:public"],
deps = [
"//config",
"//kv",
"//metrics",
"//parser",
"//parser/model",
"//parser/mysql",
"//parser/terror",
"//session/txninfo",
"//sessionctx/stmtctx",
"//util/collate",
"//util/disk",
"//util/execdetails",
"//util/logutil",
"//util/memory",
"//util/tls",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_log//:log",
"@com_github_pingcap_tipb//go-tipb",
"@com_github_tikv_client_go_v2//oracle",
"@io_etcd_go_etcd_client_v3//:client",
"@io_etcd_go_etcd_client_v3//concurrency",
"@org_golang_google_grpc//:grpc",
"@org_uber_go_atomic//:atomic",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "util_test",
timeout = "short",
srcs = [
"errors_test.go",
"main_test.go",
"misc_test.go",
"prefix_helper_test.go",
"processinfo_test.go",
"security_test.go",
"urls_test.go",
"util_test.go",
"wait_group_wrapper_test.go",
],
data = glob(["tls_test/**"]),
embed = [":util"],
flaky = True,
shard_count = 50,
deps = [
"//config",
"//kv",
"//parser",
"//parser/model",
"//parser/mysql",
"//parser/terror",
"//sessionctx/stmtctx",
"//store/mockstore",
"//testkit/testsetup",
"//types",
"//util/fastrand",
"//util/memory",
"@com_github_pingcap_errors//:errors",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_uber_go_atomic//:atomic",
"@org_uber_go_goleak//:goleak",
],
)