-
Notifications
You must be signed in to change notification settings - Fork 16.1k
Expand file tree
/
Copy pathBUILD.bazel
More file actions
64 lines (57 loc) · 1.46 KB
/
BUILD.bazel
File metadata and controls
64 lines (57 loc) · 1.46 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
53
54
55
56
57
58
59
60
61
62
63
64
load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")
load("@rules_ruby//ruby:defs.bzl", "ruby_test")
load("//ruby:defs.bzl", "internal_ruby_proto_library")
internal_ruby_proto_library(
name = "test_ruby_protos",
srcs = glob(["*.proto"]),
includes = ["."],
protoc = "//ruby/compatibility_tests/v3.0.0:protoc",
)
ruby_test(
name = "basic",
srcs = ["basic.rb"],
deps = [
":test_ruby_protos",
"//ruby:protobuf",
"@protobuf_bundle//:test-unit",
],
)
ruby_test(
name = "generated_code_test",
srcs = ["generated_code_test.rb"],
deps = [
":test_ruby_protos",
"//ruby:protobuf",
"@protobuf_bundle//:test-unit",
],
)
ruby_test(
name = "repeated_field_test",
srcs = ["repeated_field_test.rb"],
deps = [
":test_ruby_protos",
"//ruby:protobuf",
"@protobuf_bundle//:test-unit",
],
)
ruby_test(
name = "stress",
srcs = ["stress.rb"],
deps = [
":test_ruby_protos",
"//ruby:protobuf",
"@protobuf_bundle//:test-unit",
],
)
################################################################################
# Distribution files
############################################################################
pkg_files(
name = "dist_files",
srcs = glob([
"**/*.rb",
"**/*.proto",
]),
strip_prefix = strip_prefix.from_root(""),
visibility = ["//ruby/compatibility_tests/v3.0.0:__pkg__"],
)