1
1
# Description:
2
2
# j2cl/jre: JRE subset for transpilation.
3
3
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" )
6
5
load ("@io_bazel_rules_closure//closure:defs.bzl" , "closure_js_binary" )
7
6
load ("@rules_java//java:defs.bzl" , "java_library" )
8
7
load (":j2cl_multi_test.bzl" , "j2cl_multi_test" )
@@ -83,113 +82,6 @@ j2kt_native_library(
83
82
],
84
83
)
85
84
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
-
193
85
# A test entry point for running JRE tests in open source.
194
86
# To run the test for all platforms:
195
87
# bazel test //jre/javatests:OpenSourceJre
@@ -202,15 +94,6 @@ j2cl_multi_test(
202
94
deps = [":emul_tests_lib" ],
203
95
)
204
96
205
- build_test (
206
- name = "conformance_test" ,
207
- tags = ["j2cl" ],
208
- targets = [
209
- ":conformance_binary" ,
210
- ":conformance_binary_head" ,
211
- ],
212
- )
213
-
214
97
closure_js_binary (
215
98
name = "conformance_binary_opensource" ,
216
99
dependency_mode = "SORT_ONLY" ,
0 commit comments