mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:30:26 +08:00
create a c10 test suite (#71907)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/71907 This allows us to refactor the c10 tests without anything downstream needing to be concerned about it. ghstack-source-id: 150235098 Test Plan: This ought to be a no-op, rely on CI to validate. Reviewed By: malfet Differential Revision: D33815403 fbshipit-source-id: d358d6e8b1b45b62cef73bdbfd9c7709a7075c42 (cherry picked from commit a554dbe55a28516c8db2287552194860be87f2f0)
This commit is contained in:
committed by
PyTorch MergeBot
parent
026c0af479
commit
2efee542fd
@ -1,6 +1,14 @@
|
||||
def define_targets(rules):
|
||||
rules.cc_test(
|
||||
rules.test_suite(
|
||||
name = "tests",
|
||||
tests = [
|
||||
":core_and_util_tests",
|
||||
],
|
||||
visibility = ["//:__pkg__"],
|
||||
)
|
||||
|
||||
rules.cc_test(
|
||||
name = "core_and_util_tests",
|
||||
size = "small",
|
||||
srcs = rules.glob([
|
||||
"util/*.cpp",
|
||||
@ -18,7 +26,6 @@ def define_targets(rules):
|
||||
"//c10/util:base",
|
||||
"//c10/util:typeid",
|
||||
],
|
||||
visibility = ["//:__pkg__"],
|
||||
)
|
||||
|
||||
rules.cc_library(
|
||||
|
@ -16,4 +16,5 @@ rules = struct(
|
||||
if_cuda = if_cuda,
|
||||
requires_cuda_enabled = requires_cuda_enabled,
|
||||
select = select,
|
||||
test_suite = native.test_suite,
|
||||
)
|
||||
|
Reference in New Issue
Block a user