Skip to content

Commit

Permalink
SingleJar: run tests on Windows
Browse files Browse the repository at this point in the history
See bazelbuild#2241

Change-Id: Ic41645497e1feeb42eb726ada3417900ef239bb6
  • Loading branch information
laszlocsomor committed Oct 25, 2018
1 parent b91d830 commit 91ea085
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ test_suite(
"//src/test/py/bazel:all_windows_tests",
"//src/test/shell: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",
],
Expand Down
36 changes: 36 additions & 0 deletions src/tools/singlejar/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ cc_test(
"//third_party/zlib",
"@com_google_googletest//:gtest_main",
],
tags = [
# https://github.com/bazelbuild/bazel/issues/6512
"no_windows",
],
)

cc_test(
Expand All @@ -119,6 +123,11 @@ cc_test(
"//src/main/cpp/util",
"@com_google_googletest//:gtest_main",
],
tags = [
# TODO(@rongjiecomputer): make this work on Windows as part of
# https://github.com/bazelbuild/bazel/issues/2241
"no_windows",
],
)

cc_test(
Expand All @@ -135,6 +144,11 @@ cc_test(
"//src/main/cpp/util",
"@com_google_googletest//:gtest_main",
],
tags = [
# TODO(@rongjiecomputer): make this work on Windows as part of
# https://github.com/bazelbuild/bazel/issues/2241
"no_windows",
],
)

cc_test(
Expand Down Expand Up @@ -235,6 +249,11 @@ cc_test(
"//src/main/cpp/util",
"@com_google_googletest//:gtest_main",
],
tags = [
# TODO(@rongjiecomputer): make this work on Windows as part of
# https://github.com/bazelbuild/bazel/issues/2241
"no_windows",
],
)

cc_test(
Expand Down Expand Up @@ -489,3 +508,20 @@ genrule(
toolchains = ["@bazel_tools//tools/jdk:current_java_runtime"],
tools = ["@bazel_tools//tools/jdk:current_java_runtime"],
)

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

test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src:__pkg__"],
)

0 comments on commit 91ea085

Please sign in to comment.