test //c10/... without Google libraries in OSS (#70853)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70853

We support both configurations, so we should ensure they both work.
ghstack-source-id: 147170900

Test Plan: This is adding a test to CI.

Reviewed By: malfet

Differential Revision: D33304505

fbshipit-source-id: 7074b6b98d05f60801bb1d74bc9ac1458c768d28
(cherry picked from commit 8e4134b777)
This commit is contained in:
Michael Dagitses 2022-01-19 12:48:21 -08:00 committed by PyTorch MergeBot
parent 78e1f9db34
commit 805b7575db

View File

@ -462,6 +462,12 @@ test_bazel() {
get_bazel
# Test //c10/... without Google flags and logging libraries. The
# :all_tests target in the subsequent Bazel invocation tests
# //c10/... with the Google libraries.
tools/bazel test --test_timeout=480 --test_output=all --test_tag_filters=-gpu-required --test_filter=-*CUDA \
--no//c10:use_gflags --no//c10:use_glog //c10/...
tools/bazel test --test_timeout=480 --test_output=all --test_tag_filters=-gpu-required --test_filter=-*CUDA :all_tests
}