blob: 3eb8b230414d9bf115a15a59b35b40f4a7b09e47 [file] [log] [blame]
Colin Cross6b22aa52016-09-12 14:35:39 -07001//
2// Copyright (C) 2016 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Roland Levillain962a1102019-11-01 16:20:33 +000017// ART gtests.
18
Bob Badour9150de62021-02-26 03:22:24 -080019package {
20 // See: http://go/android-license-faq
21 // A large-scale-change added 'default_applicable_licenses' to import
22 // all of the 'license_kinds' from "art_license"
23 // to get the below license kinds:
24 // SPDX-license-identifier-Apache-2.0
25 default_applicable_licenses: ["art_license"],
26}
27
Martin Stjernholm7eedd442021-05-06 10:03:21 +010028soong_config_module_type_import {
29 from: "art/build/SoongConfig.bp",
30 module_types: [
31 "art_module_cc_defaults",
32 ],
33}
34
Roland Levillainf0409142021-03-22 15:45:03 +000035// Properties common to `art_test_defaults` and `art_standalone_test_defaults`.
36art_module_cc_defaults {
37 name: "art_test_common_defaults",
38 target: {
39 darwin: {
40 enabled: false,
41 },
Yi Kong75e50892021-09-02 13:07:54 +080042 // This has to be duplicated for android and host to make sure it
43 // comes after the -Wframe-larger-than warnings inserted by art.go
44 // target-specific properties
45 android: {
46 cflags: ["-Wno-frame-larger-than="],
47 },
48 host: {
49 cflags: ["-Wno-frame-larger-than="],
50 },
Roland Levillainf0409142021-03-22 15:45:03 +000051 },
Roland Levillainf0409142021-03-22 15:45:03 +000052}
53
Martin Stjernholm7eedd442021-05-06 10:03:21 +010054art_module_cc_defaults {
Colin Cross6e95dd52016-09-12 15:37:10 -070055 name: "art_test_defaults",
Roland Levillainf0409142021-03-22 15:45:03 +000056 defaults: [
57 "art_test_common_defaults",
58 ],
Colin Cross6e95dd52016-09-12 15:37:10 -070059 host_supported: true,
Martin Stjernholm7eedd442021-05-06 10:03:21 +010060 soong_config_variables: {
61 source_build: {
62 target: {
63 android: {
64 test_for: [
65 "com.android.art",
66 "com.android.art.debug",
67 ],
68 },
69 },
Martin Stjernholmd3e9ff32021-03-16 00:44:25 +000070 },
Martin Stjernholm7eedd442021-05-06 10:03:21 +010071 },
72 target: {
Martin Stjernholm0d0f8df2021-04-28 16:47:01 +010073 // The following set of relative_install_paths installs the library in a
74 // location that will be available as java.library.path in run tests.
Colin Crossafd3c9e2016-09-16 13:47:21 -070075 android_arm: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010076 relative_install_path: "art/arm",
Colin Crossafd3c9e2016-09-16 13:47:21 -070077 },
78 android_arm64: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010079 relative_install_path: "art/arm64",
Colin Crossafd3c9e2016-09-16 13:47:21 -070080 },
Colin Crossafd3c9e2016-09-16 13:47:21 -070081 android_x86: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010082 relative_install_path: "art/x86",
Colin Crossafd3c9e2016-09-16 13:47:21 -070083 },
84 android_x86_64: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010085 relative_install_path: "art/x86_64",
Colin Crossafd3c9e2016-09-16 13:47:21 -070086 },
87 },
Martin Stjernholmd3e9ff32021-03-16 00:44:25 +000088 // Tests aren't generally included in any APEX, but this is necessary to
89 // avoid duplicate install rules for them by making them unavailable to platform.
Jiyong Park066dd9022019-12-19 02:11:59 +000090 apex_available: [
91 "com.android.art.debug",
92 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -070093}
94
Martin Stjernholm0d0f8df2021-04-28 16:47:01 +010095// Variant of art_test_defaults that installs the library in a location which
96// will be added to the default namespace, and hence also the com_android_art
97// namespace. That allows the library to have shared_libs dependencies on all
98// ART internal libraries.
99//
100// Currently this only works for run tests where run-test-jar sets
101// LD_LIBRARY_PATH and NATIVELOADER_DEFAULT_NAMESPACE_LIBS.
102art_cc_defaults {
103 name: "art_test_internal_library_defaults",
104 defaults: ["art_test_defaults"],
105 target: {
106 android_arm: {
107 relative_install_path: "com.android.art/lib",
108 },
109 android_arm64: {
110 relative_install_path: "com.android.art/lib64",
111 },
112 android_x86: {
113 relative_install_path: "com.android.art/lib",
114 },
115 android_x86_64: {
116 relative_install_path: "com.android.art/lib64",
117 },
118 },
119}
120
Roland Levillainf0409142021-03-22 15:45:03 +0000121// Test configuration template for standalone ART gtests on target (not bundled with the ART APEX).
122filegroup {
123 name: "art-gtests-target-standalone-template",
124 srcs: [
125 "art-gtests-target-standalone-template.xml",
Colin Cross6e95dd52016-09-12 15:37:10 -0700126 ],
Roland Levillainf0409142021-03-22 15:45:03 +0000127}
Colin Cross6e95dd52016-09-12 15:37:10 -0700128
Roland Levillainf0409142021-03-22 15:45:03 +0000129art_cc_defaults {
130 name: "art_standalone_test_defaults",
131 defaults: [
132 "art_test_common_defaults",
133 ],
134 // Standalone ART gtests are only supported on device for now.
135 // TODO: Add support for host standalone ART gtests. Note that they should not differ much
136 // from the original ("non-standalone") host gtests, as the latter are not really bundled with
137 // the host ART APEX / artifacts (unlike their device counterparts); but as we plan to remove
138 // the ART gtests bundled with the ART APEX, we'll have to support the host case here
139 // eventually.
140 host_supported: false,
141 test_config_template: ":art-gtests-target-standalone-template",
142}
143
144// Properties common to `art_gtest_defaults` and `art_standalone_gtest_defaults`.
145art_cc_defaults {
146 name: "art_gtest_common_defaults",
147 // These really are gtests, but the gtest library comes from `libart(d)-gtest.so`.
148 gtest: false,
David Srbecky9a09e7c2020-07-02 00:08:06 +0000149
Colin Cross6e95dd52016-09-12 15:37:10 -0700150 shared_libs: [
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700151 "libbase",
Orion Hodsone3124d22021-05-24 17:41:34 +0100152 "liblog",
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000153 "libz",
Colin Cross6e95dd52016-09-12 15:37:10 -0700154 ],
Colin Cross6e95dd52016-09-12 15:37:10 -0700155
156 target: {
Dan Willemsen057f1e42017-10-03 14:11:48 -0700157 linux: {
Colin Cross6e95dd52016-09-12 15:37:10 -0700158 ldflags: [
159 // Allow jni_compiler_test to find Java_MyClassNatives_bar
160 // within itself using dlopen(NULL, ...).
161 // Mac OS linker doesn't understand --export-dynamic.
162 "-Wl,--export-dynamic",
163 "-Wl,-u,Java_MyClassNatives_bar",
164 "-Wl,-u,Java_MyClassNatives_sbar",
165 ],
Colin Cross6e95dd52016-09-12 15:37:10 -0700166 cflags: [
167 // gtest issue
168 "-Wno-used-but-marked-unused",
169 "-Wno-deprecated",
170 "-Wno-missing-noreturn",
171 ],
172 },
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000173 host: {
174 shared_libs: [
175 "libziparchive",
176 ],
177 },
Colin Cross6e95dd52016-09-12 15:37:10 -0700178 },
179}
180
181art_cc_defaults {
Roland Levillainf0409142021-03-22 15:45:03 +0000182 name: "art_gtest_defaults",
Colin Cross6b22aa52016-09-12 14:35:39 -0700183 defaults: [
Roland Levillainf0409142021-03-22 15:45:03 +0000184 "art_test_defaults",
185 "art_gtest_common_defaults",
Colin Cross6b22aa52016-09-12 14:35:39 -0700186 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700187 "art_defaults",
Colin Cross6b22aa52016-09-12 14:35:39 -0700188 ],
Roland Levillainf0409142021-03-22 15:45:03 +0000189
190 test_suites: ["art-host-tests"],
191 test_options: {
192 test_suite_tag: ["art-host-gtest"],
193 },
194
Colin Cross6b22aa52016-09-12 14:35:39 -0700195 shared_libs: [
196 "libartd",
Roland Levillainf0409142021-03-22 15:45:03 +0000197 "libartd-disassembler",
198 "libartd-gtest",
David Sehrfcbe15c2018-02-15 09:41:13 -0800199 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700200 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700201 "libartbased",
Roland Levillainf0409142021-03-22 15:45:03 +0000202
203 // Library `libnativehelper` needs to appear after `libartd` here,
204 // otherwise the following tests from module `libartd-runtime-gtest`
205 // will fail because `art/runtime/jni/java_vm_ext.cc` and
206 // `libnativehelper/JniInvocation.c` define symbols with the same name
207 // (e.g. `JNI_GetDefaultJavaVMInitArgs`) and the link order does matter
208 // for these tests:
209 // - JavaVmExtTest#JNI_GetDefaultJavaVMInitArgs
210 // - JavaVmExtTest#JNI_GetCreatedJavaVMs
211 // - JavaVmExtTest#AttachCurrentThread
212 // - JavaVmExtTest#AttachCurrentThreadAsDaemon
213 // - JavaVmExtTest#AttachCurrentThread_SmallStack
214 "libnativehelper",
215 ],
216}
217
218art_cc_defaults {
219 name: "art_standalone_gtest_defaults",
220 defaults: [
221 // Note: We don't include "art_debug_defaults" here, as standalone ART
222 // gtests link with the "non-d" versions of the libraries contained in
223 // the ART APEX, so that they can be used with all ART APEX flavors
224 // (including the Release ART APEX).
225 "art_standalone_test_defaults",
226 "art_gtest_common_defaults",
227 "art_defaults",
228 ],
229
Roland Levillain6a2e6892021-07-04 14:21:07 +0100230 test_suites: [
231 "general-tests",
232 "mts-art",
233 ],
Roland Levillainf0409142021-03-22 15:45:03 +0000234
235 // Support multilib variants (using different suffix per sub-architecture), which is needed on
236 // build targets with secondary architectures, as the MTS test suite packaging logic flattens
237 // all test artifacts into a single `testcases` directory.
238 compile_multilib: "both",
239 multilib: {
240 lib32: {
241 suffix: "32",
242 },
243 lib64: {
244 suffix: "64",
245 },
246 },
247
248 // We use the "non-d" variants of libraries, as the Release ART APEX does
249 // not contain the "d" (debug) variants.
250 shared_libs: [
251 "libart",
252 "libart-disassembler",
253 "libdexfile",
254 "libprofile",
255 "libartbase",
256
257 // Library `libnativehelper` needs to appear after `libart` here,
258 // otherwise the following tests from module `libart-runtime-gtest`
259 // will fail because `art/runtime/jni/java_vm_ext.cc` and
260 // `libnativehelper/JniInvocation.c` define symbols with the same name
261 // (e.g. `JNI_GetDefaultJavaVMInitArgs`) and the link order does matter
262 // for these tests:
263 // - JavaVmExtTest#JNI_GetDefaultJavaVMInitArgs
264 // - JavaVmExtTest#JNI_GetCreatedJavaVMs
265 // - JavaVmExtTest#AttachCurrentThread
266 // - JavaVmExtTest#AttachCurrentThreadAsDaemon
267 // - JavaVmExtTest#AttachCurrentThread_SmallStack
268 "libnativehelper",
269 ],
270 static_libs: [
271 // For now, link `libart-gtest` statically for simplicity, to save the
272 // added complexity to package it in test suites (along with other test
273 // artifacts) and install it on device during tests.
274 // TODO(b/192070541): Consider linking `libart-gtest` dynamically.
275 "libart-gtest",
276 ],
277
278 test_for: [
279 "com.android.art",
280 "com.android.art.debug",
281 ],
282}
283
284// Properties common to `libart-gtest-defaults` and `libartd-gtest-defaults`.
285art_cc_defaults {
286 name: "libart-gtest-common-defaults",
287 defaults: [
288 "art_defaults",
289 ],
290 host_supported: true,
291 shared_libs: [
David Srbecky883c1342020-05-11 23:30:29 +0000292 "liblog",
Colin Cross6b22aa52016-09-12 14:35:39 -0700293 ],
294 static_libs: [
David Srbecky883c1342020-05-11 23:30:29 +0000295 "libgtest_isolated",
Colin Cross6b22aa52016-09-12 14:35:39 -0700296 ],
297 target: {
298 android32: {
Colin Crossc5c71872016-09-15 21:07:29 -0700299 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest/art"],
Colin Cross6b22aa52016-09-12 14:35:39 -0700300 },
301 android64: {
302 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest64/art"],
303 },
Dan Willemsen057f1e42017-10-03 14:11:48 -0700304 linux: {
Colin Cross6b22aa52016-09-12 14:35:39 -0700305 cflags: [
306 // gtest issue
307 "-Wno-used-but-marked-unused",
308 "-Wno-deprecated",
309 "-Wno-missing-noreturn",
310 ],
311 },
Colin Cross942036f2016-09-15 16:24:51 -0700312 darwin: {
313 enabled: false,
314 },
Colin Cross6b22aa52016-09-12 14:35:39 -0700315 },
Jiyong Park066dd9022019-12-19 02:11:59 +0000316 apex_available: [
317 "com.android.art.debug",
Martin Stjernholmd3e9ff32021-03-16 00:44:25 +0000318 // TODO(b/183882457): This lib doesn't go into com.android.art, but
319 // apex_available lists need to be the same for internal libs to avoid
320 // stubs, and this depends on libdexfiled and others.
321 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +0000322 ],
Colin Cross6b22aa52016-09-12 14:35:39 -0700323}
324
Roland Levillainf0409142021-03-22 15:45:03 +0000325art_cc_defaults {
326 name: "libart-gtest-defaults",
327 defaults: [
328 "libart-gtest-common-defaults",
329 ],
330 shared_libs: [
331 "libart",
332 "libart-compiler",
333 "libdexfile",
334 "libprofile",
335 "libartbase",
336 ],
337}
338
339art_cc_defaults {
340 name: "libartd-gtest-defaults",
David Srbecky883c1342020-05-11 23:30:29 +0000341 defaults: [
342 "art_debug_defaults",
Roland Levillainf0409142021-03-22 15:45:03 +0000343 "libart-gtest-common-defaults",
Colin Cross6b22aa52016-09-12 14:35:39 -0700344 ],
345 shared_libs: [
346 "libartd",
347 "libartd-compiler",
David Sehrfcbe15c2018-02-15 09:41:13 -0800348 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700349 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700350 "libartbased",
Roland Levillainf0409142021-03-22 15:45:03 +0000351 ],
352}
353
354// Properties common to `libart-gtest` and `libartd-gtest`.
355art_cc_defaults {
356 name: "libart-gtest-common",
357 defaults: [
358 "art_defaults",
359 ],
360 host_supported: true,
361 srcs: [
362 "common/gtest_main.cc",
363 ],
364 whole_static_libs: [
365 "libgtest_isolated",
366 ],
367 shared_libs: [
Colin Crossf0af9062016-10-21 10:50:31 -0700368 "libbase",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700369 "libbacktrace",
David Srbecky883c1342020-05-11 23:30:29 +0000370 "liblog",
Colin Cross6b22aa52016-09-12 14:35:39 -0700371 ],
372 target: {
Colin Cross942036f2016-09-15 16:24:51 -0700373 darwin: {
374 enabled: false,
375 },
Colin Cross6b22aa52016-09-12 14:35:39 -0700376 },
Jiyong Park066dd9022019-12-19 02:11:59 +0000377 apex_available: [
378 "com.android.art.debug",
Martin Stjernholmd3e9ff32021-03-16 00:44:25 +0000379 // TODO(b/183882457): This lib doesn't go into com.android.art, but
380 // apex_available lists need to be the same for internal libs to avoid
381 // stubs, and this depends on libdexfiled and others.
382 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +0000383 ],
Colin Cross6b22aa52016-09-12 14:35:39 -0700384}
Colin Crossafd3c9e2016-09-16 13:47:21 -0700385
Roland Levillainf0409142021-03-22 15:45:03 +0000386art_cc_library {
387 name: "libart-gtest",
388 defaults: [
389 "libart-gtest-common",
390 ],
391 whole_static_libs: [
392 "libart-compiler-gtest",
393 "libart-runtime-gtest",
394 "libartbase-art-gtest",
395 ],
396 shared_libs: [
397 "libart",
398 "libart-compiler",
399 "libdexfile",
400 "libprofile",
401 "libartbase",
402 ],
403}
404
405art_cc_library {
406 name: "libartd-gtest",
407 defaults: [
408 "art_debug_defaults",
409 "libart-gtest-common",
410 ],
411 whole_static_libs: [
412 "libartd-compiler-gtest",
413 "libartd-runtime-gtest",
414 "libartbased-art-gtest",
415 ],
416 shared_libs: [
417 "libartd",
418 "libartd-compiler",
419 "libdexfiled",
420 "libprofiled",
421 "libartbased",
422 ],
423}
424
Roland Levillain962a1102019-11-01 16:20:33 +0000425// ART run-tests.
426
Roland Levillain4258f9e2020-10-13 12:10:59 +0100427// Test configuration template for ART run-tests on target expected to run
428// successfully, and as such tagged as part of TradeFed's `art-target-run-test`
429// test suite via the `test-suite-tag`.
Roland Levillaina8049c62019-11-01 16:11:20 +0000430filegroup {
Roland Levillain4258f9e2020-10-13 12:10:59 +0100431 name: "art-run-test-target-template",
Roland Levillaina8049c62019-11-01 16:11:20 +0000432 srcs: [
Roland Levillain4258f9e2020-10-13 12:10:59 +0100433 "art-run-test-target-template.xml",
434 ],
435}
436
437// Test configuration template for ART run-tests on target expected to run
438// successfully, and as such *not* tagged as part of TradeFed's
439// `art-target-run-test` test suite via the `test-suite-tag`. This is as
440// temporary measure, while we add proper support for all ART (target) run-tests
441// to TradeFed (b/147818031).
442filegroup {
443 name: "art-run-test-target-no-test-suite-tag-template",
444 srcs: [
445 "art-run-test-target-no-test-suite-tag-template.xml",
Roland Levillaina8049c62019-11-01 16:11:20 +0000446 ],
447}
448
Roland Levillain79d90922020-02-04 15:41:45 +0000449java_defaults {
450 name: "art-run-test-defaults",
Roland Levillain9a0f9ba2020-02-13 15:06:54 +0000451
Roland Levillain79d90922020-02-04 15:41:45 +0000452 // Compile against the "core" bootclasspath, not the "default" one (current
Roland Levillain9a0f9ba2020-02-13 15:06:54 +0000453 // platform) -- use the same settings as Libcore tests (see e.g. the
454 // definition of module `core-tests` in libcore/JavaLibrary.bp).
455 //
456 // Note: The legacy way to build ART run-tests uses the
457 // `javac_with_bootclasspath` function defined in `test/etc/default-build`.
458 // See also `tools/javac-helper.sh`.
459 sdk_version: "none",
460 system_modules: "core-all-system-modules",
461
Roland Levillain01e56982020-02-10 12:28:01 +0000462 // Some ART run-tests contain constructs which break ErrorProne checks;
Colin Cross1e6be712021-08-18 16:28:06 -0700463 // disable `errorprone` builds.
Roland Levillain01e56982020-02-10 12:28:01 +0000464 errorprone: {
Colin Cross1e6be712021-08-18 16:28:06 -0700465 enabled: false,
Roland Levillain01e56982020-02-10 12:28:01 +0000466 },
Roland Levillain00381bf2020-09-01 17:28:11 +0100467 test_suites: [
468 "general-tests",
Kimberly Kreider284e8b02020-12-15 09:40:30 -0800469 "mts-art",
Roland Levillain00381bf2020-09-01 17:28:11 +0100470 ],
Daniil Riazanovskiy1ca19bc2020-10-01 00:32:21 +0000471 host_required: [
472 "art-run-test-checker",
473 ],
Roland Levillain79d90922020-02-04 15:41:45 +0000474}
475
Roland Levillain962a1102019-11-01 16:20:33 +0000476art_cc_test_library {
477 name: "libarttest",
478 defaults: ["libarttest-defaults"],
479 shared_libs: [
480 "libart",
481 "libdexfile",
482 "libprofile",
483 "libartbase",
484 ],
485}
486
487art_cc_test_library {
488 name: "libarttestd",
489 defaults: [
490 "art_debug_defaults",
491 "libarttest-defaults",
492 ],
493 shared_libs: [
494 "libartd",
495 "libdexfiled",
496 "libprofiled",
497 "libartbased",
498 ],
499}
500
501art_cc_defaults {
502 name: "libnativebridgetest-defaults",
503 defaults: [
504 "art_test_defaults",
505 "art_defaults",
506 ],
507 header_libs: ["libnativebridge-headers"],
508 srcs: ["115-native-bridge/nativebridge.cc"],
509}
510
511art_cc_test_library {
512 name: "libnativebridgetest",
513 shared_libs: ["libart"],
514 defaults: [
515 "libnativebridgetest-defaults",
516 ],
517}
518
519art_cc_test_library {
520 name: "libnativebridgetestd",
521 shared_libs: ["libartd"],
522 defaults: [
523 "libnativebridgetest-defaults",
524 "art_debug_defaults",
525 ],
526}
527
528// ART JVMTI run-tests.
529
Colin Crossafd3c9e2016-09-16 13:47:21 -0700530cc_defaults {
531 name: "libartagent-defaults",
532 defaults: [
Martin Stjernholm0d0f8df2021-04-28 16:47:01 +0100533 "art_test_internal_library_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700534 "art_defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700535 ],
536 shared_libs: [
537 "libbacktrace",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700538 "libbase",
Orion Hodsonfcc922a2021-05-21 11:32:33 +0100539 "liblog",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700540 "libnativehelper",
541 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700542}
543
544art_cc_test_library {
545 name: "libartagent",
546 srcs: ["900-hello-plugin/load_unload.cc"],
547 defaults: ["libartagent-defaults"],
Andreas Gampe9462a562018-02-20 09:35:21 -0800548 shared_libs: [
549 "libart",
550 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700551 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700552 "libartbase",
Andreas Gampe9462a562018-02-20 09:35:21 -0800553 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700554}
555
556art_cc_test_library {
557 name: "libartagentd",
558 srcs: ["900-hello-plugin/load_unload.cc"],
559 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700560 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700561 "libartagent-defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700562 ],
Andreas Gampe9462a562018-02-20 09:35:21 -0800563 shared_libs: [
564 "libartd",
565 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700566 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700567 "libartbased",
Andreas Gampe9462a562018-02-20 09:35:21 -0800568 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700569}
570
Andreas Gampee54d9922016-10-11 19:55:37 -0700571art_cc_defaults {
Dan Willemsen2ca27802017-09-27 14:57:43 -0700572 name: "libtiagent-base-defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800573 defaults: [
Martin Stjernholm0d0f8df2021-04-28 16:47:01 +0100574 "art_test_internal_library_defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800575 "art_defaults",
576 // Not derived from libartagent-defaults for NDK.
577 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700578 srcs: [
Andreas Gampe027444b2017-03-31 12:49:07 -0700579 // These are the ART-independent parts.
Andreas Gampe46651672017-04-07 09:00:04 -0700580 "ti-agent/agent_common.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700581 "ti-agent/agent_startup.cc",
Andreas Gampe3f46c962017-03-30 10:26:59 -0700582 "ti-agent/jni_binder.cc",
583 "ti-agent/jvmti_helper.cc",
584 "ti-agent/test_env.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700585 "ti-agent/breakpoint_helper.cc",
Alex Light78d63412017-04-14 16:20:53 -0700586 "ti-agent/common_helper.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700587 "ti-agent/early_return_helper.cc",
Alex Lighte814f9d2017-07-31 16:14:39 -0700588 "ti-agent/frame_pop_helper.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700589 "ti-agent/locals_helper.cc",
Alex Lightce568642017-09-05 16:54:25 -0700590 "ti-agent/monitors_helper.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700591 "ti-agent/redefinition_helper.cc",
Alex Light88fd7202017-06-30 08:31:59 -0700592 "ti-agent/suspension_helper.cc",
Alex Lightb4e65072019-04-25 15:10:32 -0700593 "ti-agent/suspend_event_helper.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700594 "ti-agent/stack_trace_helper.cc",
Alex Light54d39dc2017-09-25 17:00:16 -0700595 "ti-agent/threads_helper.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700596 "ti-agent/trace_helper.cc",
Alex Light9fb1ab12017-09-05 09:32:49 -0700597 "ti-agent/exceptions_helper.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700598 // This is the list of non-special OnLoad things and excludes BCI and anything that depends
599 // on ART internals.
Andreas Gampe6dee92e2016-09-12 19:58:13 -0700600 "903-hello-tagging/tagging.cc",
Andreas Gampe27fa96c2016-10-07 15:05:24 -0700601 "904-object-allocation/tracking.cc",
Andreas Gampecc13b222016-10-10 19:09:09 -0700602 "905-object-free/tracking_free.cc",
Andreas Gampee54d9922016-10-11 19:55:37 -0700603 "906-iterate-heap/iterate_heap.cc",
Andreas Gampeaa8b60c2016-10-12 12:51:25 -0700604 "907-get-loaded-classes/get_loaded_classes.cc",
Andreas Gampe9b8c5882016-10-21 15:27:46 -0700605 "908-gc-start-finish/gc_callbacks.cc",
Andreas Gampe3c252f02016-10-27 18:25:17 -0700606 "910-methods/methods.cc",
Andreas Gampeb5eb94a2016-10-27 19:23:09 -0700607 "911-get-stack-trace/stack_trace.cc",
Andreas Gamped5f2ccc2017-04-19 13:37:48 -0700608 "912-classes/classes.cc",
Andreas Gampee0f8ed92017-04-13 16:52:23 -0700609 "913-heaps/heaps.cc",
Andreas Gampeab2f0d02017-01-05 17:23:45 -0800610 "918-fields/fields.cc",
Andreas Gampe50a4e492017-01-06 18:00:20 -0800611 "920-objects/objects.cc",
Andreas Gampe1bdaf732017-01-09 19:21:06 -0800612 "922-properties/properties.cc",
Andreas Gampe319dbe82017-01-09 16:42:21 -0800613 "923-monitors/monitors.cc",
Andreas Gampeaf13ab92017-01-11 20:57:40 -0800614 "924-threads/threads.cc",
Andreas Gamped18d9e22017-01-16 16:08:45 +0000615 "925-threadgroups/threadgroups.cc",
Andreas Gampe35bcf812017-01-13 16:24:17 -0800616 "927-timers/timers.cc",
Andreas Gampe6f8e4f02017-01-16 18:18:14 -0800617 "928-jni-table/jni_table.cc",
Andreas Gampece7732b2017-01-17 15:50:26 -0800618 "929-search/search.cc",
Andreas Gampe732b0ac2017-01-18 15:23:39 -0800619 "931-agent-thread/agent_thread.cc",
Andreas Gampeeb0cea12017-01-23 08:50:04 -0800620 "933-misc-events/misc_events.cc",
Alex Light78d63412017-04-14 16:20:53 -0700621 "945-obsolete-native/obsolete_native.cc",
Alex Light8fd08562018-02-13 10:09:03 -0800622 "983-source-transform-verify/source_transform.cc",
Alex Light78d63412017-04-14 16:20:53 -0700623 "984-obsolete-invoke/obsolete_invoke.cc",
Alex Lightd78ddec2017-04-18 15:20:38 -0700624 "986-native-method-bind/native_bind.cc",
Alex Light65af20b2017-04-20 09:15:08 -0700625 "987-agent-bind/agent_bind.cc",
Alex Lighte85595e2018-08-17 15:54:34 -0700626 "988-method-trace/trace_fib.cc",
Alex Lightb7edcda2017-04-27 13:20:31 -0700627 "989-method-trace-throw/method_trace.cc",
Alex Light7c958492017-06-16 08:59:19 -0700628 "991-field-trace-2/field_trace.cc",
Alex Light6fa7b812017-06-16 09:04:29 -0700629 "992-source-data/source_file.cc",
Alex Lightc38c3692017-06-27 15:45:14 -0700630 "993-breakpoints/breakpoints.cc",
631 "996-breakpoint-obsolete/obsolete_breakpoints.cc",
Alex Light8ddfd9f2017-07-05 16:33:46 -0700632 "1900-track-alloc/alloc.cc",
Alex Light4c174282017-07-05 10:18:18 -0700633 "1901-get-bytecodes/bytecodes.cc",
Alex Light88fd7202017-06-30 08:31:59 -0700634 "1905-suspend-native/native_suspend.cc",
635 "1908-suspend-native-resume-self/native_suspend_resume.cc",
Alex Light092a4042017-07-12 08:46:44 -0700636 "1909-per-agent-tls/agent_tls.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700637 "1914-get-local-instance/local_instance.cc",
Alex Light1d8a9742017-08-17 11:12:06 -0700638 "1919-vminit-thread-start-timing/vminit.cc",
Alex Light23aa7482017-08-16 10:01:13 -0700639 "1920-suspend-native-monitor/native_suspend_monitor.cc",
640 "1921-suspend-native-recursive-monitor/native_suspend_recursive_monitor.cc",
Alex Light88e1ddd2017-08-21 13:09:55 -0700641 "1922-owned-monitors-info/owned_monitors.cc",
Alex Lighte814f9d2017-07-31 16:14:39 -0700642 "1924-frame-pop-toggle/frame_pop_toggle.cc",
643 "1926-missed-frame-pop/frame_pop_missed.cc",
Alex Lightce568642017-09-05 16:54:25 -0700644 "1927-exception-event/exception_event.cc",
645 "1930-monitor-info/monitor.cc",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700646 "1932-monitor-events-misc/monitor_misc.cc",
Alex Light54d39dc2017-09-25 17:00:16 -0700647 "1934-jvmti-signal-thread/signal_threads.cc",
Alex Light3dea2122017-10-11 15:56:48 +0000648 "1939-proxy-frames/local_instance.cc",
Alex Lightb284f8d2017-11-21 00:00:48 +0000649 "1941-dispose-stress/dispose_stress.cc",
Alex Light4d77daf2018-01-04 11:51:14 -0800650 "1942-suspend-raw-monitor-exit/native_suspend_monitor.cc",
651 "1943-suspend-raw-monitor-wait/native_suspend_monitor.cc",
Alex Lightc7588752018-02-20 11:15:54 -0800652 "1946-list-descriptors/descriptors.cc",
Alex Light9e7859c2018-04-05 13:49:43 -0700653 "1950-unprepared-transform/unprepared_transform.cc",
Alex Lightc98f83e2018-07-26 08:28:36 -0700654 "1951-monitor-enter-no-suspend/raw_monitor.cc",
Alex Light0aa7a5a2018-10-10 15:58:14 +0000655 "1953-pop-frame/pop_frame.cc",
Alex Lightae45cbb2018-10-18 15:49:56 -0700656 "1957-error-ext/lasterror.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700657 // TODO Renumber
Alex Light40607862019-05-06 18:16:24 +0000658 "1962-multi-thread-events/multi_thread_events.cc",
Alex Light639e73b2019-05-17 21:44:36 +0000659 "1963-add-to-dex-classloader-in-memory/add_to_loader.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700660 "1968-force-early-return/force_early_return.cc",
661 "1969-force-early-return-void/force_early_return_void.cc",
662 "1970-force-early-return-long/force_early_return_long.cc",
Alex Lightc14ec8f2019-07-18 16:08:41 -0700663 "1974-resize-array/resize_array.cc",
Nicolas Geoffray4ac0e152019-09-18 06:14:50 +0000664 "1975-hello-structural-transformation/structural_transform.cc",
665 "1976-hello-structural-static-methods/structural_transform_methods.cc",
Alex Light80777ed2019-12-17 17:07:33 +0000666 "2005-pause-all-redefine-multithreaded/pause-all.cc",
Alex Light72325b62020-01-09 17:49:45 -0800667 "2009-structural-local-ref/local-ref.cc",
Alex Light16527e82020-06-08 09:21:12 -0700668 "2035-structural-native-method/structural-native.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700669 ],
Andreas Gampecb5125d2018-02-20 09:36:54 -0800670 // Use NDK-compatible headers for ctstiagent.
Alex Light8c2b9292017-11-09 13:21:01 -0800671 header_libs: [
Alex Light8c2b9292017-11-09 13:21:01 -0800672 "libopenjdkjvmti_headers",
673 ],
Paul Duffin4345aac2019-07-17 15:51:54 +0100674 local_include_dirs: ["ti-agent"],
Andreas Gampee54d9922016-10-11 19:55:37 -0700675}
676
Andreas Gampe027444b2017-03-31 12:49:07 -0700677art_cc_defaults {
678 name: "libtiagent-defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800679 defaults: [
680 "libtiagent-base-defaults",
681 "libartagent-defaults",
682 ],
Andreas Gampe027444b2017-03-31 12:49:07 -0700683 srcs: [
684 // This is to get the IsInterpreted native method.
685 "common/stack_inspect.cc",
686 "common/runtime_state.cc",
Alex Light78d63412017-04-14 16:20:53 -0700687 "ti-agent/common_load.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700688 // This includes the remaining test functions. We should try to refactor things to
689 // make this list smaller.
Andreas Gampe027444b2017-03-31 12:49:07 -0700690 "901-hello-ti-agent/basics.cc",
691 "909-attach-agent/attach.cc",
Andreas Gamped5f2ccc2017-04-19 13:37:48 -0700692 "912-classes/classes_art.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700693 "936-search-onload/search_onload.cc",
Alex Lightfbee3982018-05-24 10:28:46 -0700694 "980-redefine-object/redef_object.cc",
Andreas Gampe59484b92018-02-14 14:00:46 -0800695 "983-source-transform-verify/source_transform_art.cc",
Alex Light8c2b9292017-11-09 13:21:01 -0800696 "1940-ddms-ext/ddm_ext.cc",
Alex Light0aa7a5a2018-10-10 15:58:14 +0000697 // "1952-pop-frame-jit/pop_frame.cc",
Alex Lightfc81d802018-12-07 13:39:05 -0800698 "1959-redefine-object-instrument/fake_redef_object.cc",
Alex Lighte7a33542019-04-10 14:22:49 -0700699 "1960-obsolete-jit-multithread-native/native_say_hi.cc",
Alex Light639e73b2019-05-17 21:44:36 +0000700 "1964-add-to-dex-classloader-file/add_to_loader.cc",
Alex Light098e7a62019-05-21 16:57:10 -0700701 "1963-add-to-dex-classloader-in-memory/check_memfd_create.cc",
Alex Light3f0dca12020-01-27 17:20:28 -0800702 "2012-structural-redefinition-failures-jni-id/set-jni-id-used.cc",
Alex Light280e6c32020-03-03 13:52:07 -0800703 "2031-zygote-compiled-frame-deopt/native-wait.cc",
Alex Light1a0e2922021-01-12 13:57:42 +0000704 "2038-hiddenapi-jvmti-ext/hiddenapi_ext.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700705 ],
Alex Lightfbee3982018-05-24 10:28:46 -0700706 static_libs: [
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000707 "libz",
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800708 "slicer_no_rtti",
Alex Lightfbee3982018-05-24 10:28:46 -0700709 ],
Andreas Gampe027444b2017-03-31 12:49:07 -0700710}
711
Andreas Gampee54d9922016-10-11 19:55:37 -0700712art_cc_test_library {
713 name: "libtiagent",
714 defaults: ["libtiagent-defaults"],
David Sehrfcbe15c2018-02-15 09:41:13 -0800715 shared_libs: [
716 "libart",
717 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700718 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700719 "libartbase",
David Sehrfcbe15c2018-02-15 09:41:13 -0800720 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700721}
722
723art_cc_test_library {
724 name: "libtiagentd",
725 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700726 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700727 "libtiagent-defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700728 ],
David Sehrfcbe15c2018-02-15 09:41:13 -0800729 shared_libs: [
730 "libartd",
731 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700732 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700733 "libartbased",
David Sehrfcbe15c2018-02-15 09:41:13 -0800734 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700735}
736
Andreas Gampe59484b92018-02-14 14:00:46 -0800737cc_library_static {
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800738 name: "libctstiagent",
739 defaults: ["libtiagent-base-defaults"],
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +0100740
741 // TODO(b/187288515): Providing this as a prebuilt introduces an issue with
742 // sdk_version propagation. Temporarily use the source library instead,
743 // which means we need to override the logic inherited from art_defaults and
744 // art_test_internal_library_defaults that disables sources when not
745 // building ART from sources.
746 enabled: true,
747
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100748 visibility: [
749 "//cts/hostsidetests/jvmti:__subpackages__",
750 ],
Andreas Gampe59484b92018-02-14 14:00:46 -0800751 host_supported: false,
752 srcs: [
753 "983-source-transform-verify/source_transform_slicer.cc",
754 ],
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800755 whole_static_libs: [
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800756 "slicer_ndk_no_rtti",
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800757 ],
758 static_libs: [
Andreas Gampecb5125d2018-02-20 09:36:54 -0800759 "libbase_ndk",
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800760 ],
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000761 shared_libs: [
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700762 "libz", // for slicer (using adler32).
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000763 ],
Andreas Gampecb5125d2018-02-20 09:36:54 -0800764 sdk_version: "current",
765 stl: "c++_static",
Paul Duffin4345aac2019-07-17 15:51:54 +0100766 header_libs: [
767 "jni_headers",
Alex Light8fd08562018-02-13 10:09:03 -0800768 // This is needed to resolve the base/ header file in libdexfile. Unfortunately there are
769 // many problems with how we export headers that are making doing this the 'right' way
770 // difficult.
771 // TODO: move those headers to art/ rather than under runtime.
Paul Duffin4345aac2019-07-17 15:51:54 +0100772 "libart_runtime_headers_ndk",
Alex Light8fd08562018-02-13 10:09:03 -0800773 ],
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800774 export_include_dirs: ["ti-agent"],
775}
776
Alex Light8f2c6d42017-04-10 16:27:35 -0700777art_cc_defaults {
Alex Light88659142018-05-15 10:53:06 -0700778 name: "libtistress-srcs",
Alex Light8f2c6d42017-04-10 16:27:35 -0700779 defaults: ["libartagent-defaults"],
780 srcs: [
781 "ti-stress/stress.cc",
782 ],
Alex Light88659142018-05-15 10:53:06 -0700783 header_libs: ["libopenjdkjvmti_headers"],
784}
785
786art_cc_defaults {
787 name: "libtistress-defaults",
788 defaults: ["libtistress-srcs"],
Alex Light8f2c6d42017-04-10 16:27:35 -0700789 shared_libs: [
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800790 "slicer_no_rtti",
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000791 "libz", // for slicer (using adler32).
Alex Light8f2c6d42017-04-10 16:27:35 -0700792 ],
Alex Light8f2c6d42017-04-10 16:27:35 -0700793}
794
795art_cc_test_library {
796 name: "libtistress",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700797 defaults: ["libtistress-defaults"],
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000798 shared_libs: [
799 "libartbase",
800 "libz",
801 ],
Alex Light8f2c6d42017-04-10 16:27:35 -0700802}
803
804art_cc_test_library {
805 name: "libtistressd",
806 defaults: [
Alex Light8f2c6d42017-04-10 16:27:35 -0700807 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700808 "libtistress-defaults",
Alex Light8f2c6d42017-04-10 16:27:35 -0700809 ],
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000810 shared_libs: [
811 "libartbased",
812 "libz",
813 ],
Alex Light88659142018-05-15 10:53:06 -0700814}
815
816art_cc_defaults {
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000817 name: "libtistress-shared-defaults",
Andreas Gampeec5ed062018-01-26 16:20:02 -0800818 defaults: [
819 "libtistress-srcs",
Alex Light88659142018-05-15 10:53:06 -0700820 ],
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800821 static_libs: ["slicer_no_rtti"],
Alex Light88659142018-05-15 10:53:06 -0700822}
823
824art_cc_test_library {
825 name: "libtistresss",
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000826 defaults: ["libtistress-shared-defaults"],
827 shared_libs: [
828 "libartbase",
829 "libz",
830 ],
Alex Light88659142018-05-15 10:53:06 -0700831}
832
833art_cc_test_library {
834 name: "libtistressds",
835 defaults: [
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000836 "libtistress-shared-defaults",
Alex Light88659142018-05-15 10:53:06 -0700837 ],
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000838 shared_libs: [
839 "libartbased",
840 "libz",
841 ],
Alex Light8f2c6d42017-04-10 16:27:35 -0700842}
843
Colin Crossafd3c9e2016-09-16 13:47:21 -0700844cc_defaults {
845 name: "libarttest-defaults",
846 defaults: [
Martin Stjernholm0d0f8df2021-04-28 16:47:01 +0100847 "art_test_internal_library_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700848 "art_defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700849 ],
850 srcs: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700851 "004-JniTest/jni_test.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700852 "004-ReferenceMap/stack_walk_refmap_jni.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000853 "004-SignalTest/signaltest.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700854 "004-StackWalk/stack_walk_jni.cc",
855 "004-ThreadStress/thread_stress.cc",
856 "004-UnsafeTest/unsafe_test.cc",
857 "044-proxy/native_proxy.cc",
858 "051-thread/thread_test.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700859 "1337-gc-coverage/gc_coverage.cc",
860 "136-daemon-jni-shutdown/daemon_jni_shutdown.cc",
861 "137-cfi/cfi.cc",
862 "139-register-natives/regnative.cc",
863 "141-class-unload/jni_unload.cc",
864 "148-multithread-gc-annotations/gc_coverage.cc",
865 "149-suspend-all-stress/suspend_all.cc",
Mathieu Chartier72a32892017-01-24 09:40:56 -0800866 "154-gc-loop/heap_interface.cc",
Andreas Gampeaaf0d382017-11-27 14:10:21 -0800867 "167-visit-locks/visit_locks.cc",
Andreas Gampe56776012018-01-26 17:40:55 -0800868 "169-threadgroup-jni/jni_daemon_thread.cc",
Mathieu Chartieradc90862018-05-11 13:03:06 -0700869 "172-app-image-twice/debug_print_class.cc",
Vladimir Marko422a9eb2019-08-01 12:54:07 +0100870 "177-visibly-initialized-deadlock/visibly_initialized.cc",
Vladimir Marko7dac8642019-11-06 17:09:30 +0000871 "178-app-image-native-method/native_methods.cc",
Alex Lighta2efd2a2020-05-19 09:44:49 -0700872 "179-nonvirtual-jni/nonvirtual-call.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000873 "1945-proxy-method-arguments/get_args.cc",
Andreas Gampeaaf0d382017-11-27 14:10:21 -0800874 "203-multi-checkpoint/multi_checkpoint.cc",
Alex Lightf4ed7e82018-01-17 11:52:36 -0800875 "305-other-fault-handler/fault_handler.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700876 "454-get-vreg/get_vreg_jni.cc",
877 "457-regs/regs_jni.cc",
878 "461-get-reference-vreg/get_reference_vreg_jni.cc",
879 "466-get-live-vreg/get_live_vreg_jni.cc",
880 "497-inlining-and-class-loader/clear_dex_cache.cc",
881 "543-env-long-ref/env_long_ref.cc",
882 "566-polymorphic-inlining/polymorphic_inline.cc",
883 "570-checker-osr/osr.cc",
884 "595-profile-saving/profile-saving.cc",
885 "596-app-images/app_images.cc",
Hans Boehm6fe97e02016-05-04 18:35:57 -0700886 "596-monitor-inflation/monitor_inflation.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700887 "597-deopt-new-string/deopt.cc",
Alexey Grebenkinbe4c2bd2018-02-01 19:09:59 +0300888 "616-cha-unloading/cha_unload.cc",
Vladimir Markoc5798bf2016-12-09 10:20:54 +0000889 "626-const-class-linking/clear_dex_cache_types.cc",
Nicolas Geoffray13a797b2017-03-15 16:41:31 +0000890 "642-fp-callees/fp_callees.cc",
Vladimir Marko5fdd7782017-04-20 11:26:03 +0100891 "647-jni-get-field-id/get_field_id.cc",
Roland Levillain0d2323e2017-06-26 18:14:39 +0100892 "656-annotation-lookup-generic-jni/test.cc",
Igor Murashkin545412b2017-08-17 15:26:54 -0700893 "661-oat-writer-layout/oat_writer_layout.cc",
894 "664-aget-verifier/aget-verifier.cc",
Vladimir Marko2196c652017-11-30 16:16:07 +0000895 "667-jit-jni-stub/jit_jni_stub_test.cc",
David Brazdil11b67b22018-01-18 16:41:40 +0000896 "674-hiddenapi/hiddenapi.cc",
David Brazdil331a5e12019-04-01 22:46:16 +0000897 "692-vdex-inmem-loader/vdex_inmem_loader.cc",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700898 "708-jit-cache-churn/jit.cc",
Nicolas Geoffrayfa595882019-08-06 17:40:09 +0100899 "720-thread-priority/thread_priority.cc",
Alexey Grebenkince750492018-05-31 23:42:20 +0300900 "800-smali/jni.cc",
Nicolas Geoffrayaf61f502021-03-31 16:03:50 +0000901 "817-hiddenapi/test_native.cc",
Alex Lightf889c702018-02-23 15:25:45 -0800902 "909-attach-agent/disallow_debugging.cc",
Mathieu Chartier00fbe4f2019-01-02 16:52:38 -0800903 "1001-app-image-regions/app_image_regions.cc",
Mathieu Chartier175ce3d2019-03-06 16:54:24 -0800904 "1002-notify-startup/startup_interface.cc",
Alex Lighte34fe442018-02-21 17:35:55 -0800905 "1947-breakpoint-redefine-deopt/check_deopt.cc",
Alex Lightf3677472019-06-26 16:31:53 -0700906 "1972-jni-id-swap-indices/jni_id.cc",
Alex Light55eccdf2019-10-07 13:51:13 +0000907 "1985-structural-redefine-stack-scope/stack_scope.cc",
Nicolas Geoffraye91e7952020-01-23 10:15:56 +0000908 "2011-stack-walk-concurrent-instrument/stack_walk_concurrent.cc",
Alex Light280e6c32020-03-03 13:52:07 -0800909 "2031-zygote-compiled-frame-deopt/native-wait.cc",
Hans Boehm672295a2020-04-16 21:31:17 -0700910 "2033-shutdown-mechanics/native_shutdown.cc",
Orion Hodson7285a4b2020-07-10 13:31:35 +0100911 "2036-jni-filechannel/jni_filechannel.cc",
Alex Light8d9c6042020-09-22 15:35:59 -0700912 "2037-thread-name-inherit/thread_name_inherit.cc",
Hans Boehm6031ec12021-05-25 22:08:59 +0000913 "2040-huge-native-alloc/huge_native_buf.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000914 "common/runtime_state.cc",
915 "common/stack_inspect.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700916 ],
917 shared_libs: [
918 "libbacktrace",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700919 "libbase",
Orion Hodsonfcc922a2021-05-21 11:32:33 +0100920 "liblog",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700921 "libnativehelper",
922 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700923}
924
Paul Duffin2506eff2020-04-07 11:32:24 +0100925java_library {
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800926 name: "art_cts_jvmti_test_library",
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100927 visibility: [
Paul Duffincc9df4f2020-08-13 14:57:41 +0100928 "//art:__subpackages__",
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100929 "//cts/hostsidetests/jvmti:__subpackages__",
930 ],
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800931 srcs: [
932 // shim classes. We use one that exposes the common functionality.
Alex Light23ca8fb2019-05-10 11:27:02 -0700933 "jvmti-common/Redefinition.java",
934 "jvmti-common/Main.java",
935 "jvmti-common/Trace.java",
936 "jvmti-common/Breakpoint.java",
937 "jvmti-common/Suspension.java",
938 "jvmti-common/Locals.java",
939 "jvmti-common/StackTrace.java",
940 "jvmti-common/FramePop.java",
941 "jvmti-common/Exceptions.java",
942 "jvmti-common/Monitors.java",
Alex Lightfe0ce642020-01-07 13:14:18 -0800943 "jvmti-common/NonStandardExit.java",
Alex Light23ca8fb2019-05-10 11:27:02 -0700944 "jvmti-common/Threads.java",
945 "jvmti-common/SuspendEvents.java",
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800946
947 // Actual test classes.
948 "901-hello-ti-agent/src/art/Test901.java",
949 "902-hello-transformation/src/art/Test902.java",
950 "903-hello-tagging/src/art/Test903.java",
951 "904-object-allocation/src/art/Test904.java",
952 "905-object-free/src/art/Test905.java",
953 "906-iterate-heap/src/art/Test906.java",
954 "907-get-loaded-classes/src/art/Test907.java",
955 "907-get-loaded-classes/src/art/Cerr.java",
956 "908-gc-start-finish/src/art/Test908.java",
957 "910-methods/src/art/Test910.java",
958 "911-get-stack-trace/src/art/Test911.java",
959 "911-get-stack-trace/src/art/AllTraces.java",
960 "911-get-stack-trace/src/art/ControlData.java",
961 "911-get-stack-trace/src/art/Frames.java",
962 "911-get-stack-trace/src/art/OtherThread.java",
963 "911-get-stack-trace/src/art/PrintThread.java",
964 "911-get-stack-trace/src/art/Recurse.java",
965 "911-get-stack-trace/src/art/SameThread.java",
966 "911-get-stack-trace/src/art/ThreadListTraces.java",
967 "912-classes/src-art/art/Test912.java",
968 "912-classes/src-art/art/DexData.java",
969 "913-heaps/src/art/Test913.java",
970 "914-hello-obsolescence/src/art/Test914.java",
971 "915-obsolete-2/src/art/Test915.java",
972 "917-fields-transformation/src/art/Test917.java",
973 "918-fields/src/art/Test918.java",
974 "919-obsolete-fields/src/art/Test919.java",
975 "920-objects/src/art/Test920.java",
976 "922-properties/src/art/Test922.java",
977 "923-monitors/src/art/Test923.java",
978 "924-threads/src/art/Test924.java",
979 "925-threadgroups/src/art/Test925.java",
980 "926-multi-obsolescence/src/art/Test926.java",
981 "927-timers/src/art/Test927.java",
982 "928-jni-table/src/art/Test928.java",
983 "930-hello-retransform/src/art/Test930.java",
984 "931-agent-thread/src/art/Test931.java",
985 "932-transform-saves/src/art/Test932.java",
986 "933-misc-events/src/art/Test933.java",
987 "940-recursive-obsolete/src/art/Test940.java",
988 "942-private-recursive/src/art/Test942.java",
989 "944-transform-classloaders/src/art/Test944.java",
990 "945-obsolete-native/src/art/Test945.java",
991 "947-reflect-method/src/art/Test947.java",
992 "951-threaded-obsolete/src/art/Test951.java",
993 "982-ok-no-retransform/src/art/Test982.java",
994 "983-source-transform-verify/src/art/Test983.java",
995 "984-obsolete-invoke/src/art/Test984.java",
996 "985-re-obsolete/src/art/Test985.java",
997 "986-native-method-bind/src/art/Test986.java",
998 "988-method-trace/src/art/Test988.java",
999 "988-method-trace/src/art/Test988Intrinsics.java",
1000 "989-method-trace-throw/src/art/Test989.java",
1001 "990-field-trace/src/art/Test990.java",
1002 "991-field-trace-2/src/art/Test991.java",
1003 "992-source-data/src/art/Test992.java",
1004 "992-source-data/src/art/Target2.java",
1005 "993-breakpoints/src/art/Test993.java",
1006 "994-breakpoint-line/src/art/Test994.java",
1007 "995-breakpoints-throw/src/art/Test995.java",
1008 "996-breakpoint-obsolete/src/art/Test996.java",
1009 "997-single-step/src/art/Test997.java",
1010 "1900-track-alloc/src/art/Test1900.java",
1011 "1901-get-bytecodes/src/art/Test1901.java",
1012 "1902-suspend/src/art/Test1902.java",
1013 "1903-suspend-self/src/art/Test1903.java",
1014 "1904-double-suspend/src/art/Test1904.java",
1015 "1906-suspend-list-me-first/src/art/Test1906.java",
1016 "1907-suspend-list-self-twice/src/art/Test1907.java",
1017 "1908-suspend-native-resume-self/src/art/Test1908.java",
1018 "1909-per-agent-tls/src/art/Test1909.java",
1019 "1910-transform-with-default/src/art/Test1910.java",
1020 "1911-get-local-var-table/src/art/Test1911.java",
1021 "1912-get-set-local-primitive/src/art/Test1912.java",
1022 "1913-get-set-local-objects/src/art/Test1913.java",
1023 "1914-get-local-instance/src/art/Test1914.java",
1024 "1915-get-set-local-current-thread/src/art/Test1915.java",
1025 "1916-get-set-current-frame/src/art/Test1916.java",
1026 "1917-get-stack-frame/src/art/Test1917.java",
1027 "1920-suspend-native-monitor/src/art/Test1920.java",
1028 "1921-suspend-native-recursive-monitor/src/art/Test1921.java",
1029 "1922-owned-monitors-info/src/art/Test1922.java",
1030 "1923-frame-pop/src/art/Test1923.java",
1031 "1924-frame-pop-toggle/src/art/Test1924.java",
1032 "1925-self-frame-pop/src/art/Test1925.java",
1033 "1926-missed-frame-pop/src/art/Test1926.java",
1034 "1927-exception-event/src/art/Test1927.java",
1035 "1928-exception-event-exception/src/art/Test1928.java",
1036 "1930-monitor-info/src/art/Test1930.java",
1037 "1931-monitor-events/src/art/Test1931.java",
1038 "1932-monitor-events-misc/src/art/Test1932.java",
1039 "1933-monitor-current-contended/src/art/Test1933.java",
1040 "1934-jvmti-signal-thread/src/art/Test1934.java",
1041 "1936-thread-end-events/src/art/Test1936.java",
1042 "1937-transform-soft-fail/src/art/Test1937.java",
1043 "1939-proxy-frames/src/art/Test1939.java",
1044 "1941-dispose-stress/src/art/Test1941.java",
1045 "1942-suspend-raw-monitor-exit/src/art/Test1942.java",
1046 "1943-suspend-raw-monitor-wait/src/art/Test1943.java",
1047 "1953-pop-frame/src/art/Test1953.java",
1048 "1958-transform-try-jit/src/art/Test1958.java",
Alex Light40607862019-05-06 18:16:24 +00001049 "1962-multi-thread-events/src/art/Test1962.java",
Alex Lightfe0ce642020-01-07 13:14:18 -08001050 "1963-add-to-dex-classloader-in-memory/src/art/Test1963.java",
1051 "1967-get-set-local-bad-slot/src/art/Test1967.java",
1052 "1968-force-early-return/src/art/Test1968.java",
1053 "1969-force-early-return-void/src/art/Test1969.java",
1054 "1970-force-early-return-long/src/art/Test1970.java",
1055 "1971-multi-force-early-return/src/art/Test1971.java",
1056 "1974-resize-array/src/art/Test1974.java",
1057 "1975-hello-structural-transformation/src/art/Test1975.java",
1058 "1975-hello-structural-transformation/src/art/Transform1975.java",
1059 "1976-hello-structural-static-methods/src/art/Test1976.java",
1060 "1976-hello-structural-static-methods/src/art/Transform1976.java",
1061 "1977-hello-structural-obsolescence/src/art/Test1977.java",
1062 "1978-regular-obsolete-then-structural-obsolescence/src/art/Test1978.java",
1063 "1979-threaded-structural-transformation/src/art/Test1979.java",
1064 "1981-structural-redef-private-method-handles/src/art/Test1981.java",
1065 // TODO Requires VarHandles to be un-@hide. See b/64382372
1066 // "1981-structural-redef-private-method-handles/src/art/Test1981_Varhandles.java",
1067 "1982-no-virtuals-structural-redefinition/src/art/Test1982.java",
1068 "1983-structural-redefinition-failures/src/art/Test1983.java",
1069 "1984-structural-redefine-field-trace/src/art/Test1984.java",
1070 "1988-multi-structural-redefine/src/art/Test1988.java",
1071 "1989-transform-bad-monitor/src/art/Test1989.java",
1072 "1990-structural-bad-verify/src/art/Test1990.java",
1073 "1991-hello-structural-retransform/src/art/Test1991.java",
1074 "1992-retransform-no-such-field/src/art/Test1992.java",
1075 "1994-final-virtual-structural/src/art/Test1994.java",
1076 "1995-final-virtual-structural-multithread/src/art/Test1995.java",
1077 "1996-final-override-virtual-structural/src/art/Test1996.java",
1078 "1997-structural-shadow-method/src/art/Test1997.java",
1079 "1998-structural-shadow-field/src/art/Test1998.java",
1080 "1999-virtual-structural/src/art/Test1999.java",
1081 "2001-virtual-structural-multithread/src-art/art/Test2001.java",
1082 "2002-virtual-structural-initializing/src-art/art/Test2002.java",
1083 "2003-double-virtual-structural/src/art/Test2003.java",
1084 "2004-double-virtual-structural-abstract/src/art/Test2004.java",
1085 "2005-pause-all-redefine-multithreaded/src/art/Test2005.java",
1086 "2006-virtual-structural-finalizing/src-art/art/Test2006.java",
1087 "2007-virtual-structural-finalizable/src-art/art/Test2007.java",
Sasha Smundakc7c5d532019-02-27 15:03:37 -08001088 ],
Paul Duffin463d03e2020-10-21 21:38:58 +01001089 sdk_version: "core_platform",
Colin Cross1e6be712021-08-18 16:28:06 -07001090 // Some ART run-tests contain constructs which break ErrorProne checks;
1091 // disable `errorprone` builds.
1092 errorprone: {
1093 enabled: false,
1094 },
Sasha Smundakc7c5d532019-02-27 15:03:37 -08001095}
1096
1097// CTS test runner in cts/hostsidetests/jvmti looks for an expected test
1098// result for the test NN in the file results.NN.expected.txt while in the
Roland Levillaina073f462020-10-28 12:48:24 +00001099// source tree each expected test result is in the NN-xxxx/expected-stdout.txt.
Sasha Smundakc7c5d532019-02-27 15:03:37 -08001100// Copy+rename them them to a temporary directory and them zip them.
1101java_genrule {
Paul Duffine5621f52020-03-25 10:51:14 +00001102 name: "expected_cts_outputs_gen",
Sasha Smundakc7c5d532019-02-27 15:03:37 -08001103 srcs: [
Roland Levillaina073f462020-10-28 12:48:24 +00001104 "901-hello-ti-agent/expected-stdout.txt",
1105 "902-hello-transformation/expected-stdout.txt",
1106 "903-hello-tagging/expected-stdout.txt",
1107 "904-object-allocation/expected-stdout.txt",
1108 "905-object-free/expected-stdout.txt",
1109 "906-iterate-heap/expected-stdout.txt",
1110 "907-get-loaded-classes/expected-stdout.txt",
1111 "908-gc-start-finish/expected-stdout.txt",
1112 "910-methods/expected-stdout.txt",
Alex Light4681f202020-01-10 09:27:57 -08001113 "911-get-stack-trace/expected-cts-version.txt",
Roland Levillaina073f462020-10-28 12:48:24 +00001114 "912-classes/expected-stdout.txt",
1115 "913-heaps/expected-stdout.txt",
1116 "914-hello-obsolescence/expected-stdout.txt",
1117 "915-obsolete-2/expected-stdout.txt",
1118 "917-fields-transformation/expected-stdout.txt",
1119 "918-fields/expected-stdout.txt",
1120 "919-obsolete-fields/expected-stdout.txt",
1121 "920-objects/expected-stdout.txt",
1122 "922-properties/expected-stdout.txt",
1123 "923-monitors/expected-stdout.txt",
1124 "924-threads/expected-stdout.txt",
1125 "925-threadgroups/expected-stdout.txt",
1126 "926-multi-obsolescence/expected-stdout.txt",
1127 "927-timers/expected-stdout.txt",
1128 "928-jni-table/expected-stdout.txt",
1129 "930-hello-retransform/expected-stdout.txt",
1130 "931-agent-thread/expected-stdout.txt",
1131 "932-transform-saves/expected-stdout.txt",
1132 "933-misc-events/expected-stdout.txt",
1133 "940-recursive-obsolete/expected-stdout.txt",
1134 "942-private-recursive/expected-stdout.txt",
1135 "944-transform-classloaders/expected-stdout.txt",
1136 "945-obsolete-native/expected-stdout.txt",
1137 "947-reflect-method/expected-stdout.txt",
1138 "951-threaded-obsolete/expected-stdout.txt",
1139 "982-ok-no-retransform/expected-stdout.txt",
1140 "983-source-transform-verify/expected-stdout.txt",
1141 "984-obsolete-invoke/expected-stdout.txt",
1142 "985-re-obsolete/expected-stdout.txt",
1143 "986-native-method-bind/expected-stdout.txt",
1144 "988-method-trace/expected-stdout.txt",
1145 "989-method-trace-throw/expected-stdout.txt",
1146 "990-field-trace/expected-stdout.txt",
1147 "991-field-trace-2/expected-stdout.txt",
1148 "992-source-data/expected-stdout.txt",
Alex Light2b8d3c82020-11-03 11:52:40 -08001149 // Need to avoid using hidden-apis
1150 "993-breakpoints/expected_cts.txt",
Roland Levillaina073f462020-10-28 12:48:24 +00001151 "994-breakpoint-line/expected-stdout.txt",
1152 "995-breakpoints-throw/expected-stdout.txt",
1153 "996-breakpoint-obsolete/expected-stdout.txt",
1154 "997-single-step/expected-stdout.txt",
1155 "1900-track-alloc/expected-stdout.txt",
1156 "1901-get-bytecodes/expected-stdout.txt",
1157 "1902-suspend/expected-stdout.txt",
1158 "1903-suspend-self/expected-stdout.txt",
1159 "1904-double-suspend/expected-stdout.txt",
1160 "1906-suspend-list-me-first/expected-stdout.txt",
1161 "1907-suspend-list-self-twice/expected-stdout.txt",
1162 "1908-suspend-native-resume-self/expected-stdout.txt",
1163 "1909-per-agent-tls/expected-stdout.txt",
1164 "1910-transform-with-default/expected-stdout.txt",
1165 "1911-get-local-var-table/expected-stdout.txt",
1166 "1912-get-set-local-primitive/expected-stdout.txt",
1167 "1913-get-set-local-objects/expected-stdout.txt",
1168 "1914-get-local-instance/expected-stdout.txt",
1169 "1915-get-set-local-current-thread/expected-stdout.txt",
1170 "1916-get-set-current-frame/expected-stdout.txt",
1171 "1917-get-stack-frame/expected-stdout.txt",
1172 "1920-suspend-native-monitor/expected-stdout.txt",
1173 "1921-suspend-native-recursive-monitor/expected-stdout.txt",
1174 "1922-owned-monitors-info/expected-stdout.txt",
1175 "1923-frame-pop/expected-stdout.txt",
1176 "1924-frame-pop-toggle/expected-stdout.txt",
1177 "1925-self-frame-pop/expected-stdout.txt",
1178 "1926-missed-frame-pop/expected-stdout.txt",
1179 "1927-exception-event/expected-stdout.txt",
1180 "1928-exception-event-exception/expected-stdout.txt",
1181 "1930-monitor-info/expected-stdout.txt",
1182 "1931-monitor-events/expected-stdout.txt",
1183 "1932-monitor-events-misc/expected-stdout.txt",
1184 "1933-monitor-current-contended/expected-stdout.txt",
1185 "1934-jvmti-signal-thread/expected-stdout.txt",
1186 "1936-thread-end-events/expected-stdout.txt",
1187 "1937-transform-soft-fail/expected-stdout.txt",
1188 "1939-proxy-frames/expected-stdout.txt",
1189 "1941-dispose-stress/expected-stdout.txt",
1190 "1942-suspend-raw-monitor-exit/expected-stdout.txt",
1191 "1943-suspend-raw-monitor-wait/expected-stdout.txt",
1192 "1953-pop-frame/expected-stdout.txt",
1193 "1958-transform-try-jit/expected-stdout.txt",
1194 "1962-multi-thread-events/expected-stdout.txt",
1195 "1963-add-to-dex-classloader-in-memory/expected-stdout.txt",
1196 "1967-get-set-local-bad-slot/expected-stdout.txt",
1197 "1968-force-early-return/expected-stdout.txt",
1198 "1969-force-early-return-void/expected-stdout.txt",
1199 "1970-force-early-return-long/expected-stdout.txt",
1200 "1971-multi-force-early-return/expected-stdout.txt",
1201 "1974-resize-array/expected-stdout.txt",
1202 "1975-hello-structural-transformation/expected-stdout.txt",
1203 "1976-hello-structural-static-methods/expected-stdout.txt",
1204 "1977-hello-structural-obsolescence/expected-stdout.txt",
1205 "1978-regular-obsolete-then-structural-obsolescence/expected-stdout.txt",
1206 "1979-threaded-structural-transformation/expected-stdout.txt",
Alex Lightfe0ce642020-01-07 13:14:18 -08001207 // TODO Requires VarHandles to be un-@hide. See b/64382372
Roland Levillaina073f462020-10-28 12:48:24 +00001208 // "test/1981-structural-redef-private-method-handles/expected-stdout.txt",
Alex Lightfe0ce642020-01-07 13:14:18 -08001209 "1981-structural-redef-private-method-handles/expected_no_mh.txt",
Roland Levillaina073f462020-10-28 12:48:24 +00001210 "1982-no-virtuals-structural-redefinition/expected-stdout.txt",
Alex Light5c7f3672020-01-27 15:23:30 -08001211 // JNI-id use can change the outcome of this test on device.
1212 "1983-structural-redefinition-failures/expected-cts.txt",
Roland Levillaina073f462020-10-28 12:48:24 +00001213 "1984-structural-redefine-field-trace/expected-stdout.txt",
1214 "1988-multi-structural-redefine/expected-stdout.txt",
1215 "1989-transform-bad-monitor/expected-stdout.txt",
1216 "1990-structural-bad-verify/expected-stdout.txt",
1217 "1991-hello-structural-retransform/expected-stdout.txt",
1218 "1992-retransform-no-such-field/expected-stdout.txt",
1219 "1994-final-virtual-structural/expected-stdout.txt",
1220 "1995-final-virtual-structural-multithread/expected-stdout.txt",
1221 "1996-final-override-virtual-structural/expected-stdout.txt",
1222 "1997-structural-shadow-method/expected-stdout.txt",
1223 "1998-structural-shadow-field/expected-stdout.txt",
1224 "1999-virtual-structural/expected-stdout.txt",
1225 "2001-virtual-structural-multithread/expected-stdout.txt",
1226 "2002-virtual-structural-initializing/expected-stdout.txt",
1227 "2003-double-virtual-structural/expected-stdout.txt",
1228 "2004-double-virtual-structural-abstract/expected-stdout.txt",
1229 "2005-pause-all-redefine-multithreaded/expected-stdout.txt",
1230 "2006-virtual-structural-finalizing/expected-stdout.txt",
1231 "2007-virtual-structural-finalizable/expected-stdout.txt",
Sasha Smundakc7c5d532019-02-27 15:03:37 -08001232 ],
1233 out: ["expected_cts_outputs.jar"],
1234 tools: ["soong_zip"],
1235 cmd: "rm -rf $(genDir)/res && mkdir -p $(genDir)/res && " +
1236 "for f in $(in); do x=$${f#art/test/}; " +
1237 "cp $$f $(genDir)/res/results.$${x%%-*}.expected.txt; done && " +
1238 "$(location soong_zip) -o $(out) -C $(genDir)/res -D $(genDir)/res",
1239}
David Srbecky8c8f1482020-02-05 20:17:10 +00001240
Paul Duffine5621f52020-03-25 10:51:14 +00001241// Wrap the expected_cts_outputs_gen inside a java library to make it easy
1242// to export as a member of a module_exports.
1243java_library {
1244 name: "expected_cts_outputs",
1245 visibility: [
1246 "//art/build/sdk",
1247 "//cts/hostsidetests/jvmti:__subpackages__",
1248 ],
1249 static_libs: [
1250 "expected_cts_outputs_gen",
1251 ],
1252 sdk_version: "core_current",
1253}
1254
David Srbeckyee257162020-02-28 15:50:13 +00001255art_cc_test {
David Srbeckyf61e0612020-08-14 16:13:35 +01001256 name: "ArtGtestsTargetInstallApex",
Martin Stjernholm90b26612021-03-03 09:49:27 +00001257 defaults: [
1258 // Enable only in source builds, where com.android.art.testing is
1259 // available.
1260 "art_module_source_build_defaults",
1261 ],
David Srbeckyee257162020-02-28 15:50:13 +00001262 data: [
1263 // We need the ART testing apex, which contains all gtest binaries.
David Srbeckyf61e0612020-08-14 16:13:35 +01001264 // Note that due to build system and linker constraints the gtests must be in the apex.
David Srbeckyee257162020-02-28 15:50:13 +00001265 ":com.android.art.testing",
David Srbeckyee257162020-02-28 15:50:13 +00001266 ],
David Srbeckyf61e0612020-08-14 16:13:35 +01001267 // It seems that only device-tests build can create a valid apex.
Roland Levillain423aefc2020-09-01 18:42:22 +01001268 test_suites: [
1269 "device-tests",
Kimberly Kreider284e8b02020-12-15 09:40:30 -08001270 "mts-art",
Roland Levillain423aefc2020-09-01 18:42:22 +01001271 ],
David Srbeckyf61e0612020-08-14 16:13:35 +01001272 test_config: "art-gtests-target-install-apex.xml",
Roland Levillain423aefc2020-09-01 18:42:22 +01001273
1274 // Support multilib variants (using different suffix per sub-architecture), which is needed on
1275 // build targets with secondary architectures, as the MTS test suite packaging logic flattens
1276 // all test artifacts into a single `testcases` directory.
1277 compile_multilib: "both",
1278 multilib: {
1279 lib32: {
1280 suffix: "32",
1281 },
1282 lib64: {
1283 suffix: "64",
1284 },
1285 },
Martin Stjernholmd3e9ff32021-03-16 00:44:25 +00001286 test_for: [
1287 "com.android.art",
1288 "com.android.art.debug",
1289 ],
David Srbeckyf61e0612020-08-14 16:13:35 +01001290}
1291
1292art_cc_test {
1293 name: "ArtGtestsTargetChroot",
Martin Stjernholm90b26612021-03-03 09:49:27 +00001294 defaults: [
1295 // Enable only in source builds, where com.android.art.testing is
1296 // available.
1297 "art_module_source_build_defaults",
1298 ],
David Srbeckyf61e0612020-08-14 16:13:35 +01001299 data: [
1300 // We need the ART testing apex, which contains all gtest binaries.
1301 // Note that due to build system and linker constraints the gtests must be in the apex.
1302 ":com.android.art.testing",
1303 ],
1304 test_suites: ["general-tests"],
1305 test_config: "art-gtests-target-chroot.xml",
Martin Stjernholmd3e9ff32021-03-16 00:44:25 +00001306 test_for: [
1307 "com.android.art",
1308 "com.android.art.debug",
1309 ],
David Srbeckyee257162020-02-28 15:50:13 +00001310}
1311
David Srbecky8c8f1482020-02-05 20:17:10 +00001312filegroup {
1313 name: "art-gtest-jars",
1314 srcs: [
1315 ":art-gtest-jars-AbstractMethod",
1316 ":art-gtest-jars-AllFields",
1317 ":art-gtest-jars-DefaultMethods",
1318 ":art-gtest-jars-DexToDexDecompiler",
1319 ":art-gtest-jars-ErroneousA",
1320 ":art-gtest-jars-ErroneousB",
1321 ":art-gtest-jars-ErroneousInit",
Vladimir Markofdd46842020-03-25 14:57:17 +00001322 ":art-gtest-jars-Extension1",
1323 ":art-gtest-jars-Extension2",
David Srbecky8c8f1482020-02-05 20:17:10 +00001324 ":art-gtest-jars-ForClassLoaderA",
1325 ":art-gtest-jars-ForClassLoaderB",
1326 ":art-gtest-jars-ForClassLoaderC",
1327 ":art-gtest-jars-ForClassLoaderD",
1328 ":art-gtest-jars-ExceptionHandle",
1329 ":art-gtest-jars-GetMethodSignature",
1330 ":art-gtest-jars-HiddenApi",
1331 ":art-gtest-jars-HiddenApiSignatures",
1332 ":art-gtest-jars-HiddenApiStubs",
1333 ":art-gtest-jars-ImageLayoutA",
1334 ":art-gtest-jars-ImageLayoutB",
1335 ":art-gtest-jars-IMTA",
1336 ":art-gtest-jars-IMTB",
1337 ":art-gtest-jars-Instrumentation",
1338 ":art-gtest-jars-Interfaces",
1339 ":art-gtest-jars-Lookup",
1340 ":art-gtest-jars-Main",
1341 ":art-gtest-jars-ManyMethods",
1342 ":art-gtest-jars-MethodTypes",
1343 ":art-gtest-jars-MultiDex",
1344 ":art-gtest-jars-MultiDexModifiedSecondary",
1345 ":art-gtest-jars-MyClass",
1346 ":art-gtest-jars-MyClassNatives",
1347 ":art-gtest-jars-Nested",
1348 ":art-gtest-jars-NonStaticLeafMethods",
1349 ":art-gtest-jars-Packages",
1350 ":art-gtest-jars-ProtoCompare",
1351 ":art-gtest-jars-ProtoCompare2",
1352 ":art-gtest-jars-ProfileTestMultiDex",
1353 ":art-gtest-jars-StaticLeafMethods",
1354 ":art-gtest-jars-Statics",
1355 ":art-gtest-jars-StaticsFromCode",
1356 ":art-gtest-jars-StringLiterals",
1357 ":art-gtest-jars-Transaction",
1358 ":art-gtest-jars-XandY",
1359 ":art-gtest-jars-MainEmptyUncompressed",
1360 ":art-gtest-jars-MainEmptyUncompressedAligned",
1361 ":art-gtest-jars-MainStripped",
1362 ":art-gtest-jars-MainUncompressedAligned",
1363 ":art-gtest-jars-MultiDexUncompressedAligned",
1364 ":art-gtest-jars-VerifierDeps",
1365 ":art-gtest-jars-VerifierDepsMulti",
1366 ":art-gtest-jars-VerifySoftFailDuringClinit",
1367 ],
1368}
1369
1370java_defaults {
1371 name: "art-gtest-jars-defaults",
1372 installable: true,
1373 dex_preopt: {
1374 enabled: false,
1375 },
1376 sdk_version: "core_platform",
David Srbecky4a88a5a2020-05-05 16:21:57 +01001377 uncompress_dex: false,
David Srbecky8c8f1482020-02-05 20:17:10 +00001378}
1379
1380// The following modules are just trivial compilations (non-trivial cases are the end).
1381
1382java_library {
1383 name: "art-gtest-jars-AbstractMethod",
1384 srcs: ["AbstractMethod/**/*.java"],
1385 defaults: ["art-gtest-jars-defaults"],
1386}
1387
1388java_library {
1389 name: "art-gtest-jars-AllFields",
1390 srcs: ["AllFields/**/*.java"],
1391 defaults: ["art-gtest-jars-defaults"],
1392}
1393
1394java_library {
1395 name: "art-gtest-jars-DefaultMethods",
1396 srcs: ["DefaultMethods/**/*.java"],
1397 defaults: ["art-gtest-jars-defaults"],
1398}
1399
1400java_library {
1401 name: "art-gtest-jars-DexToDexDecompiler",
1402 srcs: ["DexToDexDecompiler/**/*.java"],
1403 defaults: ["art-gtest-jars-defaults"],
1404}
1405
1406java_library {
1407 name: "art-gtest-jars-ErroneousA",
1408 srcs: ["ErroneousA/**/*.java"],
1409 defaults: ["art-gtest-jars-defaults"],
1410}
1411
1412java_library {
1413 name: "art-gtest-jars-ErroneousB",
1414 srcs: ["ErroneousB/**/*.java"],
1415 defaults: ["art-gtest-jars-defaults"],
1416}
1417
1418java_library {
1419 name: "art-gtest-jars-ErroneousInit",
1420 srcs: ["ErroneousInit/**/*.java"],
1421 defaults: ["art-gtest-jars-defaults"],
1422}
1423
1424java_library {
Vladimir Markofdd46842020-03-25 14:57:17 +00001425 name: "art-gtest-jars-Extension1",
1426 srcs: ["Extension1/**/*.java"],
1427 defaults: ["art-gtest-jars-defaults"],
1428}
1429
1430java_library {
1431 name: "art-gtest-jars-Extension2",
1432 srcs: ["Extension2/**/*.java"],
1433 defaults: ["art-gtest-jars-defaults"],
1434}
1435
1436java_library {
David Srbecky8c8f1482020-02-05 20:17:10 +00001437 name: "art-gtest-jars-ForClassLoaderA",
1438 srcs: ["ForClassLoaderA/**/*.java"],
1439 defaults: ["art-gtest-jars-defaults"],
1440}
1441
1442java_library {
1443 name: "art-gtest-jars-ForClassLoaderB",
1444 srcs: ["ForClassLoaderB/**/*.java"],
1445 defaults: ["art-gtest-jars-defaults"],
1446}
1447
1448java_library {
1449 name: "art-gtest-jars-ForClassLoaderC",
1450 srcs: ["ForClassLoaderC/**/*.java"],
1451 defaults: ["art-gtest-jars-defaults"],
1452}
1453
1454java_library {
1455 name: "art-gtest-jars-ForClassLoaderD",
1456 srcs: ["ForClassLoaderD/**/*.java"],
1457 defaults: ["art-gtest-jars-defaults"],
1458}
1459
1460java_library {
1461 name: "art-gtest-jars-ExceptionHandle",
1462 srcs: ["ExceptionHandle/**/*.java"],
1463 defaults: ["art-gtest-jars-defaults"],
1464}
1465
1466java_library {
1467 name: "art-gtest-jars-GetMethodSignature",
1468 srcs: ["GetMethodSignature/**/*.java"],
1469 defaults: ["art-gtest-jars-defaults"],
1470}
1471
1472java_library {
1473 name: "art-gtest-jars-HiddenApi",
1474 srcs: ["HiddenApi/**/*.java"],
1475 defaults: ["art-gtest-jars-defaults"],
1476}
1477
1478java_library {
1479 name: "art-gtest-jars-HiddenApiSignatures",
1480 srcs: ["HiddenApiSignatures/**/*.java"],
1481 defaults: ["art-gtest-jars-defaults"],
1482}
1483
1484java_library {
1485 name: "art-gtest-jars-HiddenApiStubs",
1486 srcs: ["HiddenApiStubs/**/*.java"],
1487 defaults: ["art-gtest-jars-defaults"],
1488}
1489
1490java_library {
1491 name: "art-gtest-jars-ImageLayoutA",
1492 srcs: ["ImageLayoutA/**/*.java"],
1493 defaults: ["art-gtest-jars-defaults"],
1494}
1495
1496java_library {
1497 name: "art-gtest-jars-ImageLayoutB",
1498 srcs: ["ImageLayoutB/**/*.java"],
1499 defaults: ["art-gtest-jars-defaults"],
1500}
1501
1502java_library {
1503 name: "art-gtest-jars-IMTA",
1504 srcs: ["IMTA/**/*.java"],
1505 defaults: ["art-gtest-jars-defaults"],
1506}
1507
1508java_library {
1509 name: "art-gtest-jars-IMTB",
1510 srcs: ["IMTB/**/*.java"],
1511 defaults: ["art-gtest-jars-defaults"],
1512}
1513
1514java_library {
1515 name: "art-gtest-jars-Instrumentation",
1516 srcs: ["Instrumentation/**/*.java"],
1517 defaults: ["art-gtest-jars-defaults"],
1518}
1519
1520java_library {
1521 name: "art-gtest-jars-Interfaces",
1522 srcs: ["Interfaces/**/*.java"],
1523 defaults: ["art-gtest-jars-defaults"],
1524}
1525
1526java_library {
1527 name: "art-gtest-jars-Lookup",
1528 srcs: ["Lookup/**/*.java"],
1529 defaults: ["art-gtest-jars-defaults"],
1530}
1531
1532java_library {
1533 name: "art-gtest-jars-Main",
1534 srcs: ["Main/**/*.java"],
1535 defaults: ["art-gtest-jars-defaults"],
1536}
1537
1538java_library {
1539 name: "art-gtest-jars-ManyMethods",
1540 srcs: ["ManyMethods/**/*.java"],
1541 defaults: ["art-gtest-jars-defaults"],
1542}
1543
1544java_library {
1545 name: "art-gtest-jars-MethodTypes",
1546 srcs: ["MethodTypes/**/*.java"],
1547 defaults: ["art-gtest-jars-defaults"],
1548}
1549
1550java_library {
1551 name: "art-gtest-jars-MyClass",
1552 srcs: ["MyClass/**/*.java"],
1553 defaults: ["art-gtest-jars-defaults"],
1554}
1555
1556java_library {
1557 name: "art-gtest-jars-MyClassNatives",
1558 srcs: ["MyClassNatives/**/*.java"],
1559 defaults: ["art-gtest-jars-defaults"],
1560}
1561
1562java_library {
1563 name: "art-gtest-jars-Nested",
1564 srcs: ["Nested/**/*.java"],
1565 defaults: ["art-gtest-jars-defaults"],
1566}
1567
1568java_library {
1569 name: "art-gtest-jars-NonStaticLeafMethods",
1570 srcs: ["NonStaticLeafMethods/**/*.java"],
1571 defaults: ["art-gtest-jars-defaults"],
1572}
1573
1574java_library {
1575 name: "art-gtest-jars-Packages",
1576 srcs: ["Packages/**/*.java"],
1577 defaults: ["art-gtest-jars-defaults"],
1578}
1579
1580java_library {
1581 name: "art-gtest-jars-ProtoCompare",
1582 srcs: ["ProtoCompare/**/*.java"],
1583 defaults: ["art-gtest-jars-defaults"],
1584}
1585
1586java_library {
1587 name: "art-gtest-jars-ProtoCompare2",
1588 srcs: ["ProtoCompare2/**/*.java"],
1589 defaults: ["art-gtest-jars-defaults"],
1590}
1591
1592java_library {
1593 name: "art-gtest-jars-StaticLeafMethods",
1594 srcs: ["StaticLeafMethods/**/*.java"],
1595 defaults: ["art-gtest-jars-defaults"],
1596}
1597
1598java_library {
1599 name: "art-gtest-jars-Statics",
1600 srcs: ["Statics/**/*.java"],
1601 defaults: ["art-gtest-jars-defaults"],
1602}
1603
1604java_library {
1605 name: "art-gtest-jars-StaticsFromCode",
1606 srcs: ["StaticsFromCode/**/*.java"],
1607 defaults: ["art-gtest-jars-defaults"],
1608}
1609
1610java_library {
1611 name: "art-gtest-jars-StringLiterals",
1612 srcs: ["StringLiterals/**/*.java"],
1613 defaults: ["art-gtest-jars-defaults"],
1614}
1615
1616java_library {
1617 name: "art-gtest-jars-Transaction",
1618 srcs: ["Transaction/**/*.java"],
1619 defaults: ["art-gtest-jars-defaults"],
1620}
1621
1622java_library {
1623 name: "art-gtest-jars-XandY",
1624 srcs: ["XandY/**/*.java"],
1625 defaults: ["art-gtest-jars-defaults"],
1626}
1627
Calin Juravle33787682019-07-26 14:27:18 -07001628java_library {
1629 name: "art-gtest-jars-Dex2oatVdexTestDex",
1630 srcs: ["Dex2oatVdexTestDex/**/*.java"],
1631 defaults: ["art-gtest-jars-defaults"],
1632}
1633
David Srbecky8c8f1482020-02-05 20:17:10 +00001634// The following cases are non-trivial.
1635
1636// Uncompress classes.dex files in the jar file.
1637genrule_defaults {
1638 name: "art-gtest-jars-uncompress-defaults",
1639 cmd: "$(location zip2zip) -i $(in) -o $(out) -0 'classes*.dex'",
1640 tools: ["zip2zip"],
1641}
1642
1643// Ensure the files are at least 4 byte aligned.
1644genrule_defaults {
1645 name: "art-gtest-jars-align-defaults",
1646 cmd: "$(location zipalign) 4 $(in) $(out)",
1647 tools: ["zipalign"],
1648}
1649
1650// Assemble jar file from smali source.
1651genrule_defaults {
1652 name: "art-gtest-jars-smali-defaults",
1653 cmd: "$(location smali) assemble --output $(out) $(in)",
1654 tools: ["smali"],
1655}
1656
1657// A copy of Main with the classes.dex stripped for the oat file assistant tests.
1658genrule {
1659 name: "art-gtest-jars-MainStripped",
1660 srcs: [":art-gtest-jars-Main"],
1661 cmd: "$(location zip2zip) -i $(in) -o $(out) -x 'classes*.dex'",
1662 out: ["art-gtest-jars-MainStripped.jar"],
1663 tools: ["zip2zip"],
1664}
1665
1666// An empty.dex that is empty and uncompressed for the dex2oat tests.
1667genrule {
1668 name: "art-gtest-jars-MainEmptyUncompressed",
1669 srcs: ["Main/empty.dex"],
1670 cmd: "$(location soong_zip) -j -L 0 -o $(out) -f $(in)",
1671 out: ["art-gtest-jars-MainEmptyUncompressed.jar"],
1672 tools: ["soong_zip"],
1673}
1674
1675// An empty.dex that is empty and uncompressed and aligned for the dex2oat tests.
1676genrule {
1677 name: "art-gtest-jars-MainEmptyUncompressedAligned",
1678 defaults: ["art-gtest-jars-align-defaults"],
1679 srcs: [":art-gtest-jars-MainEmptyUncompressed"],
1680 out: ["art-gtest-jars-MainEmptyUncompressedAligned.jar"],
1681}
1682
1683// A copy of Main with the classes.dex uncompressed for the dex2oat tests.
1684genrule {
1685 name: "art-gtest-jars-MainUncompressed",
1686 defaults: ["art-gtest-jars-uncompress-defaults"],
1687 srcs: [":art-gtest-jars-Main"],
1688 out: ["art-gtest-jars-MainUncompressed.jar"],
1689}
1690
1691// A copy of Main with the classes.dex uncompressed and aligned for the dex2oat tests.
1692genrule {
1693 name: "art-gtest-jars-MainUncompressedAligned",
1694 defaults: ["art-gtest-jars-align-defaults"],
1695 srcs: [":art-gtest-jars-MainUncompressed"],
1696 out: ["art-gtest-jars-MainUncompressedAligned.jar"],
1697}
1698
1699java_library {
1700 name: "art-gtest-jars-MultiDex",
1701 srcs: ["MultiDex/**/*.java"],
1702 defaults: ["art-gtest-jars-defaults"],
1703 min_sdk_version: "19",
1704 dxflags: [
1705 "--main-dex-list",
1706 "art/test/MultiDex/main.list",
1707 ],
1708}
1709
1710// A copy of MultiDex with the classes.dex uncompressed for the OatFile tests.
1711genrule {
1712 name: "art-gtest-jars-MultiDexUncompressed",
1713 defaults: ["art-gtest-jars-uncompress-defaults"],
1714 srcs: [":art-gtest-jars-MultiDex"],
1715 out: ["art-gtest-jars-MultiDexUncompressed.jar"],
1716}
1717
1718// A copy of MultiDex with the classes.dex uncompressed and aligned for the OatFile tests.
1719genrule {
1720 name: "art-gtest-jars-MultiDexUncompressedAligned",
1721 defaults: ["art-gtest-jars-align-defaults"],
1722 srcs: [":art-gtest-jars-MultiDexUncompressed"],
1723 out: ["art-gtest-jars-MultiDexUncompressedAligned.jar"],
1724}
1725
1726java_library {
1727 name: "art-gtest-jars-MultiDexModifiedSecondary",
1728 srcs: ["MultiDexModifiedSecondary/**/*.java"],
1729 defaults: ["art-gtest-jars-defaults"],
1730 min_sdk_version: "19",
1731 dxflags: [
1732 "--main-dex-list",
1733 "art/test/MultiDexModifiedSecondary/main.list",
1734 ],
1735}
1736
1737java_library {
1738 name: "art-gtest-jars-ProfileTestMultiDex",
1739 srcs: ["ProfileTestMultiDex/**/*.java"],
1740 defaults: ["art-gtest-jars-defaults"],
1741 min_sdk_version: "19",
1742 dxflags: [
1743 "--main-dex-list",
1744 "art/test/ProfileTestMultiDex/main.list",
1745 ],
1746}
1747
David Srbeckyedda3ca2020-07-08 00:41:08 +01001748// Smali compiled files.
1749// Since they are not compiled by javac, we use different extension for them.
1750// The .jar extension for them would cause subtle failures in the test infra,
1751// which finds and opens all jar files and expects them to be valid zip files.
1752
David Srbecky8c8f1482020-02-05 20:17:10 +00001753genrule {
1754 name: "art-gtest-jars-VerifierDeps",
1755 defaults: ["art-gtest-jars-smali-defaults"],
1756 srcs: ["VerifierDeps/**/*.smali"],
David Srbeckyedda3ca2020-07-08 00:41:08 +01001757 out: ["art-gtest-jars-VerifierDeps.dex"],
David Srbecky8c8f1482020-02-05 20:17:10 +00001758}
1759
1760genrule {
1761 name: "art-gtest-jars-VerifierDepsMulti",
1762 defaults: ["art-gtest-jars-smali-defaults"],
1763 srcs: ["VerifierDepsMulti/**/*.smali"],
David Srbeckyedda3ca2020-07-08 00:41:08 +01001764 out: ["art-gtest-jars-VerifierDepsMulti.dex"],
David Srbecky8c8f1482020-02-05 20:17:10 +00001765}
1766
1767genrule {
1768 name: "art-gtest-jars-VerifySoftFailDuringClinit",
1769 defaults: ["art-gtest-jars-smali-defaults"],
1770 srcs: ["VerifySoftFailDuringClinit/**/*.smali"],
David Srbeckyedda3ca2020-07-08 00:41:08 +01001771 out: ["art-gtest-jars-VerifySoftFailDuringClinit.dex"],
David Srbecky8c8f1482020-02-05 20:17:10 +00001772}
David Srbecky4a88a5a2020-05-05 16:21:57 +01001773
1774genrule {
1775 name: "art-gtest-jars-LinkageTest",
1776 defaults: ["art-gtest-jars-smali-defaults"],
1777 srcs: ["LinkageTest/*.smali"],
David Srbeckyedda3ca2020-07-08 00:41:08 +01001778 out: ["art-gtest-jars-LinkageTest.dex"],
David Srbecky4a88a5a2020-05-05 16:21:57 +01001779}
Calin Juravle33787682019-07-26 14:27:18 -07001780
1781genrule {
1782 name: "art-gtest-jars-Dex2oatVdexPublicSdkDex",
1783 defaults: ["art-gtest-jars-smali-defaults"],
1784 srcs: ["Dex2oatVdexPublicSdkDex/*.smali"],
1785 out: ["art-gtest-jars-Dex2oatVdexPublicSdkDex.dex"],
1786}