Skip to content

Commit

Permalink
upb: add :test_srcs targets for cmake on GH
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 593854176
  • Loading branch information
ericsalo authored and copybara-github committed Dec 26, 2023
1 parent f50ea84 commit 3c3d771
Show file tree
Hide file tree
Showing 10 changed files with 157 additions and 0 deletions.
12 changes: 12 additions & 0 deletions upb/hash/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,15 @@ filegroup(
]
)
# end:github_only

# begin:github_only
filegroup(
name = "test_srcs",
srcs = glob(
[
"**/*test.cc",
],
),
visibility = ["//pkg:__pkg__"],
)
# end:github_only
21 changes: 21 additions & 0 deletions upb/json/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,24 @@ upb_c_proto_library(
# ],
# )
# end:google_only

# begin:github_only
filegroup(
name = "test_srcs",
srcs = glob(
[
"**/*test.cc",
],
),
visibility = ["//pkg:__pkg__"],
)
filegroup(
name = "test_utils",
srcs = glob(
[
"**/*test.proto",
],
),
visibility = ["//pkg:__pkg__"],
)
# end:github_only
12 changes: 12 additions & 0 deletions upb/lex/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,15 @@ filegroup(
]
)
# end:github_only

# begin:github_only
filegroup(
name = "test_srcs",
srcs = glob(
[
"**/*test.cc",
],
),
visibility = ["//pkg:__pkg__"],
)
# end:github_only
12 changes: 12 additions & 0 deletions upb/mem/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,15 @@ filegroup(
]
)
# end:github_only

# begin:github_only
filegroup(
name = "test_srcs",
srcs = glob(
[
"**/*test.cc",
],
),
visibility = ["//pkg:__pkg__"],
)
# end:github_only
21 changes: 21 additions & 0 deletions upb/message/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -423,3 +423,24 @@ filegroup(
]
)
# end:github_only

# begin:github_only
filegroup(
name = "test_srcs",
srcs = glob(
[
"**/*test.cc",
],
),
visibility = ["//pkg:__pkg__"],
)
filegroup(
name = "test_utils",
srcs = glob(
[
"**/*test.proto",
],
),
visibility = ["//pkg:__pkg__"],
)
# end:github_only
12 changes: 12 additions & 0 deletions upb/mini_descriptor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,15 @@ filegroup(
]
)
# end:github_only

# begin:github_only
filegroup(
name = "test_srcs",
srcs = glob(
[
"**/*test.cc",
],
),
visibility = ["//pkg:__pkg__"],
)
# end:github_only
12 changes: 12 additions & 0 deletions upb/mini_table/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,15 @@ filegroup(
]
)
# end:github_only

# begin:github_only
filegroup(
name = "test_srcs",
srcs = glob(
[
"**/*test.cc",
],
),
visibility = ["//pkg:__pkg__"],
)
# end:github_only
22 changes: 22 additions & 0 deletions upb/test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,25 @@ cc_test(
"@com_google_googletest//:gtest_main",
],
)

# begin:github_only
filegroup(
name = "test_srcs",
srcs = glob(
[
"**/*.cc",
"**/*.h",
],
),
visibility = ["//pkg:__pkg__"],
)
filegroup(
name = "test_utils",
srcs = glob(
[
"**/*.proto",
],
),
visibility = ["//pkg:__pkg__"],
)
# end:github_only
21 changes: 21 additions & 0 deletions upb/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,24 @@ filegroup(
visibility = ["//python/dist:__pkg__"],
)
# end:github_only

# begin:github_only
filegroup(
name = "test_srcs",
srcs = glob(
[
"**/*test.cc",
],
),
visibility = ["//pkg:__pkg__"],
)
filegroup(
name = "test_utils",
srcs = glob(
[
"**/*test.proto",
],
),
visibility = ["//pkg:__pkg__"],
)
# end:github_only
12 changes: 12 additions & 0 deletions upb/wire/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,15 @@ filegroup(
]
)
# end:github_only

# begin:github_only
filegroup(
name = "test_srcs",
srcs = glob(
[
"**/*test.cc",
],
),
visibility = ["//pkg:__pkg__"],
)
# end:github_only

0 comments on commit 3c3d771

Please sign in to comment.