Skip to content

Commit 0aeaf65

Browse files
gkdncopybara-github
authored andcommitted
Strip tests using TestSuite from open source.
These are not yet executable in open-source. PiperOrigin-RevId: 702151934
1 parent 1891f73 commit 0aeaf65

File tree

2 files changed

+3
-120
lines changed

2 files changed

+3
-120
lines changed

build_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ bazel build :all {jre,transpiler,tools,benchmarking,junit/generator,junit/emul}/
2121
# Do a quick smoke check of integration test
2222
bazel test transpiler/javatests/com/google/j2cl/integration/java/emptyclass/...
2323

24-
# Run OpenSourceJRE test
25-
bazel test jre/javatests:OpenSourceJre
24+
# Run JRE tests
25+
bazel test jre/javatests/...
2626

2727
# Run CI test if requested
2828
if [[ $1 == "CI" ]]; then

jre/javatests/BUILD

Lines changed: 1 addition & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Description:
22
# j2cl/jre: JRE subset for transpilation.
33

4-
load("@bazel_skylib//rules:build_test.bzl", "build_test")
5-
load("//build_defs:rules.bzl", "j2cl_library", "j2cl_test", "j2kt_native_library", "j2wasm_test")
4+
load("//build_defs:rules.bzl", "j2cl_library", "j2kt_native_library")
65
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_binary")
76
load("@rules_java//java:defs.bzl", "java_library")
87
load(":j2cl_multi_test.bzl", "j2cl_multi_test")
@@ -83,113 +82,6 @@ j2kt_native_library(
8382
],
8483
)
8584

86-
j2cl_multi_test(
87-
name = "BigDecimal",
88-
shard_count = 2,
89-
test_class = "com.google.j2cl.jre.BigDecimalSuite",
90-
deps = [":emul_tests_lib"],
91-
)
92-
93-
j2cl_multi_test(
94-
name = "BigInteger",
95-
shard_count = 2,
96-
test_class = "com.google.j2cl.jre.BigIntegerSuite",
97-
deps = [":emul_tests_lib"],
98-
)
99-
100-
j2cl_multi_test(
101-
name = "Collections",
102-
shard_count = 4,
103-
test_class = "com.google.j2cl.jre.CollectionsSuite",
104-
deps = [":emul_tests_lib"],
105-
)
106-
107-
j2cl_multi_test(
108-
name = "Concurrent",
109-
shard_count = 4,
110-
test_class = "com.google.j2cl.jre.ConcurrentSuite",
111-
deps = [":emul_tests_lib"],
112-
)
113-
114-
j2cl_multi_test(
115-
name = "Emul",
116-
shard_count = 4,
117-
test_class = "com.google.j2cl.jre.EmulSuite",
118-
deps = [":emul_tests_lib"],
119-
)
120-
121-
j2cl_multi_test(
122-
name = "EmulJava8",
123-
shard_count = 4,
124-
test_class = "com.google.j2cl.jre.EmulJava8Suite",
125-
deps = [":emul_tests_lib"],
126-
)
127-
128-
j2cl_multi_test(
129-
name = "EmulJava9",
130-
enable_j2kt_native = False,
131-
shard_count = 2,
132-
test_class = "com.google.j2cl.jre.EmulJava9Suite",
133-
deps = [":emul_tests_lib"],
134-
)
135-
136-
j2cl_multi_test(
137-
name = "Lang",
138-
shard_count = 4,
139-
test_class = "com.google.j2cl.jre.LangSuite",
140-
deps = [":emul_tests_lib"],
141-
)
142-
143-
j2cl_multi_test(
144-
name = "DateTime",
145-
test_class = "com.google.j2cl.jre.DateTimeSuite",
146-
deps = [":emul_tests_lib"],
147-
)
148-
149-
j2cl_library(
150-
name = "js_tests_lib-j2cl",
151-
testonly = 1,
152-
srcs = JS_ONLY_SRCS,
153-
deps = [
154-
"//third_party:jsinterop-annotations-j2cl",
155-
"//third_party:junit-j2cl",
156-
],
157-
)
158-
159-
j2cl_multi_test(
160-
name = "JsSuite",
161-
enable_j2kt_native = False,
162-
enable_jvm = False,
163-
enable_wasm = False,
164-
test_class = "com.google.j2cl.jre.JsSuite",
165-
deps = [":js_tests_lib"],
166-
)
167-
168-
# A smoke check that verifies es5 transpiled test works
169-
j2cl_test(
170-
name = "Concurrent_es5",
171-
browsers = ["//testing/web/browsers:chrome-linux"],
172-
generate_build_test = False,
173-
jvm_flags = ["-Djsrunner.net.transpileMode=always"],
174-
shard_count = 4,
175-
test_class = "com.google.j2cl.jre.ConcurrentSuite",
176-
runtime_deps = [
177-
":emul_tests_lib-j2cl",
178-
"//third_party:junit-j2cl",
179-
],
180-
)
181-
182-
j2wasm_test(
183-
name = "ConcurrentSuite_wasm_magic_string_imports",
184-
shard_count = 4,
185-
test_class = "com.google.j2cl.jre.ConcurrentSuite",
186-
use_magic_string_imports = True,
187-
runtime_deps = [
188-
":emul_tests_lib-j2wasm",
189-
"//third_party:junit-j2wasm",
190-
],
191-
)
192-
19385
# A test entry point for running JRE tests in open source.
19486
# To run the test for all platforms:
19587
# bazel test //jre/javatests:OpenSourceJre
@@ -202,15 +94,6 @@ j2cl_multi_test(
20294
deps = [":emul_tests_lib"],
20395
)
20496

205-
build_test(
206-
name = "conformance_test",
207-
tags = ["j2cl"],
208-
targets = [
209-
":conformance_binary",
210-
":conformance_binary_head",
211-
],
212-
)
213-
21497
closure_js_binary(
21598
name = "conformance_binary_opensource",
21699
dependency_mode = "SORT_ONLY",

0 commit comments

Comments
 (0)