Skip to content

Commit

Permalink
Remove "windows_tests" and "all_windows_tests" targets from BUILD files
Browse files Browse the repository at this point in the history
After 572d4fd, we no longer rely on
those targets to run Windows tests on Bazel CI.

This also simplify the process to enable your tests on Windows when creating a new package (boilerplate targets are no longer needed).

Related #4292

Closes #13608.

PiperOrigin-RevId: 381841867
  • Loading branch information
meteorcloudy authored and copybara-github committed Jun 28, 2021
1 parent ae81f95 commit 7ce19e4
Show file tree
Hide file tree
Showing 99 changed files with 0 additions and 1,580 deletions.
30 changes: 0 additions & 30 deletions src/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -483,36 +483,6 @@ genrule(
visibility = ["//:__pkg__"],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
"//src/test/cpp:all_windows_tests",
"//src/test/java/com/google/devtools/build/android:all_windows_tests",
"//src/test/java/com/google/devtools/build/lib:all_windows_tests",
"//src/test/java/com/google/devtools/build/skyframe:all_windows_tests",
"//src/test/java/com/google/devtools/common/options:all_windows_tests",
"//src/test/native/windows:all_windows_tests",
"//src/test/py/bazel:all_windows_tests",
"//src/test/res:all_windows_tests",
"//src/test/shell:all_windows_tests",
"//src/test/shell/bazel/android:all_windows_tests",
"//src/tools/launcher:all_windows_tests",
"//src/tools/singlejar:all_windows_tests",
"//third_party/def_parser:all_windows_tests",
"//tools:all_windows_tests",
],
)

# config_setting alias left here because bazel-only third_party code is pointing to it
alias(
name = "windows",
Expand Down
18 changes: 0 additions & 18 deletions src/test/cpp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,3 @@ cc_test(
)

test_suite(name = "all_tests")

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
"//src/test/cpp/util:all_windows_tests",
],
visibility = ["//src:__pkg__"],
)
17 changes: 0 additions & 17 deletions src/test/cpp/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -143,20 +143,3 @@ cc_library(
)

test_suite(name = "all_tests")

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/cpp:__pkg__"],
)
23 changes: 0 additions & 23 deletions src/test/java/com/google/devtools/build/android/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -350,26 +350,3 @@ java_library(
"//third_party:truth",
],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
"//src/test/java/com/google/devtools/build/android/desugar:all_windows_tests",
"//src/test/java/com/google/devtools/build/android/dexer:all_windows_tests",
"//src/test/java/com/google/devtools/build/android/idlclass:all_windows_tests",
"//src/test/java/com/google/devtools/build/android/junctions:all_windows_tests",
"//src/test/java/com/google/devtools/build/android/resources:all_windows_tests",
"//src/test/java/com/google/devtools/build/android/ziputils:all_windows_tests",
],
visibility = ["//src:__pkg__"],
)
21 changes: 0 additions & 21 deletions src/test/java/com/google/devtools/build/android/desugar/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2108,27 +2108,6 @@ java_binary(
],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
"//src/test/java/com/google/devtools/build/android/desugar/classes_for_testing_type_inference:all_windows_tests",
"//src/test/java/com/google/devtools/build/android/desugar/dependencies:all_windows_tests",
"//src/test/java/com/google/devtools/build/android/desugar/io:all_windows_tests",
"//src/test/java/com/google/devtools/build/android/desugar/runtime:all_windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android:__pkg__"],
)

java_test(
name = "ClassSignatureParserTest",
size = "small",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,3 @@ java_import(
name = "test_subjects",
jars = ["test_subjects.jar"],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android/desugar:__pkg__"],
)
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,3 @@ java_test(
"//third_party:truth",
],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android/desugar:__pkg__"],
)
16 changes: 0 additions & 16 deletions src/test/java/com/google/devtools/build/android/desugar/io/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,3 @@ java_test(
"//third_party:truth",
],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android/desugar:__pkg__"],
)
Original file line number Diff line number Diff line change
Expand Up @@ -113,20 +113,3 @@ java_test(
"//third_party:junit4",
],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android/desugar:__pkg__"],
)
17 changes: 0 additions & 17 deletions src/test/java/com/google/devtools/build/android/dexer/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,3 @@ java_library(
name = "mixed_testinput",
srcs = [":mixed_srcjar_gen"],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android:__pkg__"],
)
17 changes: 0 additions & 17 deletions src/test/java/com/google/devtools/build/android/idlclass/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,3 @@ java_test(
"//third_party:truth",
],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android:__pkg__"],
)
17 changes: 0 additions & 17 deletions src/test/java/com/google/devtools/build/android/junctions/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,3 @@ java_test(
"//third_party:truth",
],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android:__pkg__"],
)
17 changes: 0 additions & 17 deletions src/test/java/com/google/devtools/build/android/r8/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,3 @@ java_library(
name = "dexmergersample",
srcs = glob(["testdata/dexmergersample/*.java"]),
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android:__pkg__"],
)
17 changes: 0 additions & 17 deletions src/test/java/com/google/devtools/build/android/resources/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,3 @@ java_test(
"//third_party:truth",
],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android:__pkg__"],
)
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,3 @@ filegroup(
"merger/AndroidManifest.xml",
],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android/testing:__pkg__"],
)
17 changes: 0 additions & 17 deletions src/test/java/com/google/devtools/build/android/ziputils/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,3 @@ java_test(
"//third_party:truth",
],
)

test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/test/java/com/google/devtools/build/android:__pkg__"],
)
Loading

0 comments on commit 7ce19e4

Please sign in to comment.