Skip to content

Commit

Permalink
Support test_main param in cpp_unittest()
Browse files Browse the repository at this point in the history
Summary: Used in `//folly/docs/examples/folly/test/common/...`

Reviewed By: bigfootjon

Differential Revision: D67035624

fbshipit-source-id: 65e2af45391fdadcf12ccad52b802969925e6c8b
  • Loading branch information
ckwalsh authored and facebook-github-bot committed Dec 10, 2024
1 parent 0782862 commit ca687cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shims.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,12 @@ def cpp_unittest(
compiler_specific_flags = None,
default_strip_mode = None,
resources = {},
test_main = None,
**kwargs):
_unused = (supports_static_listing, allocator, owner, tags, emails, extract_helper_lib, compiler_specific_flags, default_strip_mode) # @unused
if read_config("oss", "folly_cxx_tests", True):
if test_main != None:
deps = deps + [test_main]
elif read_config("oss", "folly_cxx_tests", True):
deps = deps + CPP_FOLLY_UNITTEST_DEPS
else:
deps = deps + CPP_UNITTEST_DEPS
Expand Down

0 comments on commit ca687cb

Please # to comment.