blob: f67de2a3244b2be69862293f2d38440f0a9f5b38 [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",
Spandan Das7ea92702021-09-16 00:45:05 +0000142 min_sdk_version: "S",
Roland Levillainf0409142021-03-22 15:45:03 +0000143}
144
145// Properties common to `art_gtest_defaults` and `art_standalone_gtest_defaults`.
146art_cc_defaults {
147 name: "art_gtest_common_defaults",
148 // These really are gtests, but the gtest library comes from `libart(d)-gtest.so`.
149 gtest: false,
David Srbecky9a09e7c2020-07-02 00:08:06 +0000150
Colin Cross6e95dd52016-09-12 15:37:10 -0700151 shared_libs: [
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700152 "libbase",
Orion Hodsone3124d22021-05-24 17:41:34 +0100153 "liblog",
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000154 "libz",
Colin Cross6e95dd52016-09-12 15:37:10 -0700155 ],
Colin Cross6e95dd52016-09-12 15:37:10 -0700156
157 target: {
Dan Willemsen057f1e42017-10-03 14:11:48 -0700158 linux: {
Colin Cross6e95dd52016-09-12 15:37:10 -0700159 ldflags: [
160 // Allow jni_compiler_test to find Java_MyClassNatives_bar
161 // within itself using dlopen(NULL, ...).
162 // Mac OS linker doesn't understand --export-dynamic.
163 "-Wl,--export-dynamic",
164 "-Wl,-u,Java_MyClassNatives_bar",
165 "-Wl,-u,Java_MyClassNatives_sbar",
166 ],
Colin Cross6e95dd52016-09-12 15:37:10 -0700167 cflags: [
168 // gtest issue
169 "-Wno-used-but-marked-unused",
170 "-Wno-deprecated",
171 "-Wno-missing-noreturn",
172 ],
173 },
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000174 host: {
175 shared_libs: [
176 "libziparchive",
177 ],
178 },
Colin Cross6e95dd52016-09-12 15:37:10 -0700179 },
180}
181
182art_cc_defaults {
Roland Levillainf0409142021-03-22 15:45:03 +0000183 name: "art_gtest_defaults",
Colin Cross6b22aa52016-09-12 14:35:39 -0700184 defaults: [
Roland Levillainf0409142021-03-22 15:45:03 +0000185 "art_test_defaults",
186 "art_gtest_common_defaults",
Colin Cross6b22aa52016-09-12 14:35:39 -0700187 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700188 "art_defaults",
Colin Cross6b22aa52016-09-12 14:35:39 -0700189 ],
Roland Levillainf0409142021-03-22 15:45:03 +0000190
191 test_suites: ["art-host-tests"],
192 test_options: {
193 test_suite_tag: ["art-host-gtest"],
194 },
195
Colin Cross6b22aa52016-09-12 14:35:39 -0700196 shared_libs: [
197 "libartd",
Roland Levillainf0409142021-03-22 15:45:03 +0000198 "libartd-disassembler",
199 "libartd-gtest",
David Sehrfcbe15c2018-02-15 09:41:13 -0800200 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700201 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700202 "libartbased",
Roland Levillainf0409142021-03-22 15:45:03 +0000203
204 // Library `libnativehelper` needs to appear after `libartd` here,
205 // otherwise the following tests from module `libartd-runtime-gtest`
206 // will fail because `art/runtime/jni/java_vm_ext.cc` and
207 // `libnativehelper/JniInvocation.c` define symbols with the same name
208 // (e.g. `JNI_GetDefaultJavaVMInitArgs`) and the link order does matter
209 // for these tests:
210 // - JavaVmExtTest#JNI_GetDefaultJavaVMInitArgs
211 // - JavaVmExtTest#JNI_GetCreatedJavaVMs
212 // - JavaVmExtTest#AttachCurrentThread
213 // - JavaVmExtTest#AttachCurrentThreadAsDaemon
214 // - JavaVmExtTest#AttachCurrentThread_SmallStack
215 "libnativehelper",
216 ],
217}
218
219art_cc_defaults {
220 name: "art_standalone_gtest_defaults",
221 defaults: [
222 // Note: We don't include "art_debug_defaults" here, as standalone ART
223 // gtests link with the "non-d" versions of the libraries contained in
224 // the ART APEX, so that they can be used with all ART APEX flavors
225 // (including the Release ART APEX).
226 "art_standalone_test_defaults",
227 "art_gtest_common_defaults",
228 "art_defaults",
229 ],
230
Roland Levillain6a2e6892021-07-04 14:21:07 +0100231 test_suites: [
232 "general-tests",
233 "mts-art",
234 ],
Roland Levillainf0409142021-03-22 15:45:03 +0000235
236 // Support multilib variants (using different suffix per sub-architecture), which is needed on
237 // build targets with secondary architectures, as the MTS test suite packaging logic flattens
238 // all test artifacts into a single `testcases` directory.
239 compile_multilib: "both",
240 multilib: {
241 lib32: {
242 suffix: "32",
243 },
244 lib64: {
245 suffix: "64",
246 },
247 },
248
249 // We use the "non-d" variants of libraries, as the Release ART APEX does
250 // not contain the "d" (debug) variants.
251 shared_libs: [
252 "libart",
253 "libart-disassembler",
254 "libdexfile",
255 "libprofile",
256 "libartbase",
257
258 // Library `libnativehelper` needs to appear after `libart` here,
259 // otherwise the following tests from module `libart-runtime-gtest`
260 // will fail because `art/runtime/jni/java_vm_ext.cc` and
261 // `libnativehelper/JniInvocation.c` define symbols with the same name
262 // (e.g. `JNI_GetDefaultJavaVMInitArgs`) and the link order does matter
263 // for these tests:
264 // - JavaVmExtTest#JNI_GetDefaultJavaVMInitArgs
265 // - JavaVmExtTest#JNI_GetCreatedJavaVMs
266 // - JavaVmExtTest#AttachCurrentThread
267 // - JavaVmExtTest#AttachCurrentThreadAsDaemon
268 // - JavaVmExtTest#AttachCurrentThread_SmallStack
269 "libnativehelper",
270 ],
271 static_libs: [
272 // For now, link `libart-gtest` statically for simplicity, to save the
273 // added complexity to package it in test suites (along with other test
274 // artifacts) and install it on device during tests.
275 // TODO(b/192070541): Consider linking `libart-gtest` dynamically.
276 "libart-gtest",
277 ],
278
279 test_for: [
280 "com.android.art",
281 "com.android.art.debug",
282 ],
283}
284
285// Properties common to `libart-gtest-defaults` and `libartd-gtest-defaults`.
286art_cc_defaults {
287 name: "libart-gtest-common-defaults",
288 defaults: [
289 "art_defaults",
290 ],
291 host_supported: true,
292 shared_libs: [
David Srbecky883c1342020-05-11 23:30:29 +0000293 "liblog",
Colin Cross6b22aa52016-09-12 14:35:39 -0700294 ],
295 static_libs: [
David Srbecky883c1342020-05-11 23:30:29 +0000296 "libgtest_isolated",
Colin Cross6b22aa52016-09-12 14:35:39 -0700297 ],
298 target: {
299 android32: {
Colin Crossc5c71872016-09-15 21:07:29 -0700300 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest/art"],
Colin Cross6b22aa52016-09-12 14:35:39 -0700301 },
302 android64: {
303 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest64/art"],
304 },
Dan Willemsen057f1e42017-10-03 14:11:48 -0700305 linux: {
Colin Cross6b22aa52016-09-12 14:35:39 -0700306 cflags: [
307 // gtest issue
308 "-Wno-used-but-marked-unused",
309 "-Wno-deprecated",
310 "-Wno-missing-noreturn",
311 ],
312 },
Colin Cross942036f2016-09-15 16:24:51 -0700313 darwin: {
314 enabled: false,
315 },
Colin Cross6b22aa52016-09-12 14:35:39 -0700316 },
Jiyong Park066dd9022019-12-19 02:11:59 +0000317 apex_available: [
318 "com.android.art.debug",
Martin Stjernholmd3e9ff32021-03-16 00:44:25 +0000319 // TODO(b/183882457): This lib doesn't go into com.android.art, but
320 // apex_available lists need to be the same for internal libs to avoid
321 // stubs, and this depends on libdexfiled and others.
322 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +0000323 ],
Colin Cross6b22aa52016-09-12 14:35:39 -0700324}
325
Roland Levillainf0409142021-03-22 15:45:03 +0000326art_cc_defaults {
327 name: "libart-gtest-defaults",
328 defaults: [
329 "libart-gtest-common-defaults",
330 ],
331 shared_libs: [
332 "libart",
333 "libart-compiler",
334 "libdexfile",
335 "libprofile",
336 "libartbase",
337 ],
338}
339
340art_cc_defaults {
341 name: "libartd-gtest-defaults",
David Srbecky883c1342020-05-11 23:30:29 +0000342 defaults: [
343 "art_debug_defaults",
Roland Levillainf0409142021-03-22 15:45:03 +0000344 "libart-gtest-common-defaults",
Colin Cross6b22aa52016-09-12 14:35:39 -0700345 ],
346 shared_libs: [
347 "libartd",
348 "libartd-compiler",
David Sehrfcbe15c2018-02-15 09:41:13 -0800349 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700350 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700351 "libartbased",
Roland Levillainf0409142021-03-22 15:45:03 +0000352 ],
353}
354
355// Properties common to `libart-gtest` and `libartd-gtest`.
356art_cc_defaults {
357 name: "libart-gtest-common",
358 defaults: [
359 "art_defaults",
360 ],
361 host_supported: true,
362 srcs: [
363 "common/gtest_main.cc",
364 ],
365 whole_static_libs: [
366 "libgtest_isolated",
367 ],
368 shared_libs: [
Colin Crossf0af9062016-10-21 10:50:31 -0700369 "libbase",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700370 "libbacktrace",
David Srbecky883c1342020-05-11 23:30:29 +0000371 "liblog",
Colin Cross6b22aa52016-09-12 14:35:39 -0700372 ],
373 target: {
Colin Cross942036f2016-09-15 16:24:51 -0700374 darwin: {
375 enabled: false,
376 },
Colin Cross6b22aa52016-09-12 14:35:39 -0700377 },
Jiyong Park066dd9022019-12-19 02:11:59 +0000378 apex_available: [
379 "com.android.art.debug",
Martin Stjernholmd3e9ff32021-03-16 00:44:25 +0000380 // TODO(b/183882457): This lib doesn't go into com.android.art, but
381 // apex_available lists need to be the same for internal libs to avoid
382 // stubs, and this depends on libdexfiled and others.
383 "com.android.art",
Jiyong Park066dd9022019-12-19 02:11:59 +0000384 ],
Colin Cross6b22aa52016-09-12 14:35:39 -0700385}
Colin Crossafd3c9e2016-09-16 13:47:21 -0700386
Roland Levillainf0409142021-03-22 15:45:03 +0000387art_cc_library {
388 name: "libart-gtest",
389 defaults: [
390 "libart-gtest-common",
391 ],
392 whole_static_libs: [
393 "libart-compiler-gtest",
394 "libart-runtime-gtest",
395 "libartbase-art-gtest",
396 ],
397 shared_libs: [
398 "libart",
399 "libart-compiler",
400 "libdexfile",
401 "libprofile",
402 "libartbase",
403 ],
404}
405
406art_cc_library {
407 name: "libartd-gtest",
408 defaults: [
409 "art_debug_defaults",
410 "libart-gtest-common",
411 ],
412 whole_static_libs: [
413 "libartd-compiler-gtest",
414 "libartd-runtime-gtest",
415 "libartbased-art-gtest",
416 ],
417 shared_libs: [
418 "libartd",
419 "libartd-compiler",
420 "libdexfiled",
421 "libprofiled",
422 "libartbased",
423 ],
424}
425
Roland Levillain962a1102019-11-01 16:20:33 +0000426// ART run-tests.
427
Roland Levillain4258f9e2020-10-13 12:10:59 +0100428// Test configuration template for ART run-tests on target expected to run
429// successfully, and as such tagged as part of TradeFed's `art-target-run-test`
430// test suite via the `test-suite-tag`.
Roland Levillaina8049c62019-11-01 16:11:20 +0000431filegroup {
Roland Levillain4258f9e2020-10-13 12:10:59 +0100432 name: "art-run-test-target-template",
Roland Levillaina8049c62019-11-01 16:11:20 +0000433 srcs: [
Roland Levillain4258f9e2020-10-13 12:10:59 +0100434 "art-run-test-target-template.xml",
435 ],
436}
437
438// Test configuration template for ART run-tests on target expected to run
439// successfully, and as such *not* tagged as part of TradeFed's
440// `art-target-run-test` test suite via the `test-suite-tag`. This is as
441// temporary measure, while we add proper support for all ART (target) run-tests
442// to TradeFed (b/147818031).
443filegroup {
444 name: "art-run-test-target-no-test-suite-tag-template",
445 srcs: [
446 "art-run-test-target-no-test-suite-tag-template.xml",
Roland Levillaina8049c62019-11-01 16:11:20 +0000447 ],
448}
449
Roland Levillain79d90922020-02-04 15:41:45 +0000450java_defaults {
451 name: "art-run-test-defaults",
Roland Levillain9a0f9ba2020-02-13 15:06:54 +0000452
Roland Levillain79d90922020-02-04 15:41:45 +0000453 // Compile against the "core" bootclasspath, not the "default" one (current
Roland Levillain9a0f9ba2020-02-13 15:06:54 +0000454 // platform) -- use the same settings as Libcore tests (see e.g. the
455 // definition of module `core-tests` in libcore/JavaLibrary.bp).
456 //
457 // Note: The legacy way to build ART run-tests uses the
458 // `javac_with_bootclasspath` function defined in `test/etc/default-build`.
459 // See also `tools/javac-helper.sh`.
460 sdk_version: "none",
461 system_modules: "core-all-system-modules",
462
Roland Levillain01e56982020-02-10 12:28:01 +0000463 // Some ART run-tests contain constructs which break ErrorProne checks;
Colin Cross1e6be712021-08-18 16:28:06 -0700464 // disable `errorprone` builds.
Roland Levillain01e56982020-02-10 12:28:01 +0000465 errorprone: {
Colin Cross1e6be712021-08-18 16:28:06 -0700466 enabled: false,
Roland Levillain01e56982020-02-10 12:28:01 +0000467 },
Roland Levillain00381bf2020-09-01 17:28:11 +0100468 test_suites: [
469 "general-tests",
Kimberly Kreider284e8b02020-12-15 09:40:30 -0800470 "mts-art",
Roland Levillain00381bf2020-09-01 17:28:11 +0100471 ],
Daniil Riazanovskiy1ca19bc2020-10-01 00:32:21 +0000472 host_required: [
473 "art-run-test-checker",
474 ],
Spandan Das7ea92702021-09-16 00:45:05 +0000475 min_sdk_version: "S",
Roland Levillain79d90922020-02-04 15:41:45 +0000476}
477
Roland Levillain962a1102019-11-01 16:20:33 +0000478art_cc_test_library {
479 name: "libarttest",
480 defaults: ["libarttest-defaults"],
481 shared_libs: [
482 "libart",
483 "libdexfile",
484 "libprofile",
485 "libartbase",
486 ],
487}
488
489art_cc_test_library {
490 name: "libarttestd",
491 defaults: [
492 "art_debug_defaults",
493 "libarttest-defaults",
494 ],
495 shared_libs: [
496 "libartd",
497 "libdexfiled",
498 "libprofiled",
499 "libartbased",
500 ],
501}
502
503art_cc_defaults {
504 name: "libnativebridgetest-defaults",
505 defaults: [
506 "art_test_defaults",
507 "art_defaults",
508 ],
509 header_libs: ["libnativebridge-headers"],
510 srcs: ["115-native-bridge/nativebridge.cc"],
511}
512
513art_cc_test_library {
514 name: "libnativebridgetest",
515 shared_libs: ["libart"],
516 defaults: [
517 "libnativebridgetest-defaults",
518 ],
519}
520
521art_cc_test_library {
522 name: "libnativebridgetestd",
523 shared_libs: ["libartd"],
524 defaults: [
525 "libnativebridgetest-defaults",
526 "art_debug_defaults",
527 ],
528}
529
530// ART JVMTI run-tests.
531
Colin Crossafd3c9e2016-09-16 13:47:21 -0700532cc_defaults {
533 name: "libartagent-defaults",
534 defaults: [
Martin Stjernholm0d0f8df2021-04-28 16:47:01 +0100535 "art_test_internal_library_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700536 "art_defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700537 ],
538 shared_libs: [
539 "libbacktrace",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700540 "libbase",
Orion Hodsonfcc922a2021-05-21 11:32:33 +0100541 "liblog",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700542 "libnativehelper",
543 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700544}
545
546art_cc_test_library {
547 name: "libartagent",
548 srcs: ["900-hello-plugin/load_unload.cc"],
549 defaults: ["libartagent-defaults"],
Andreas Gampe9462a562018-02-20 09:35:21 -0800550 shared_libs: [
551 "libart",
552 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700553 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700554 "libartbase",
Andreas Gampe9462a562018-02-20 09:35:21 -0800555 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700556}
557
558art_cc_test_library {
559 name: "libartagentd",
560 srcs: ["900-hello-plugin/load_unload.cc"],
561 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700562 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700563 "libartagent-defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700564 ],
Andreas Gampe9462a562018-02-20 09:35:21 -0800565 shared_libs: [
566 "libartd",
567 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700568 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700569 "libartbased",
Andreas Gampe9462a562018-02-20 09:35:21 -0800570 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700571}
572
Andreas Gampee54d9922016-10-11 19:55:37 -0700573art_cc_defaults {
Dan Willemsen2ca27802017-09-27 14:57:43 -0700574 name: "libtiagent-base-defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800575 defaults: [
Martin Stjernholm0d0f8df2021-04-28 16:47:01 +0100576 "art_test_internal_library_defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800577 "art_defaults",
578 // Not derived from libartagent-defaults for NDK.
579 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700580 srcs: [
Andreas Gampe027444b2017-03-31 12:49:07 -0700581 // These are the ART-independent parts.
Andreas Gampe46651672017-04-07 09:00:04 -0700582 "ti-agent/agent_common.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700583 "ti-agent/agent_startup.cc",
Andreas Gampe3f46c962017-03-30 10:26:59 -0700584 "ti-agent/jni_binder.cc",
585 "ti-agent/jvmti_helper.cc",
586 "ti-agent/test_env.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700587 "ti-agent/breakpoint_helper.cc",
Alex Light78d63412017-04-14 16:20:53 -0700588 "ti-agent/common_helper.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700589 "ti-agent/early_return_helper.cc",
Alex Lighte814f9d2017-07-31 16:14:39 -0700590 "ti-agent/frame_pop_helper.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700591 "ti-agent/locals_helper.cc",
Alex Lightce568642017-09-05 16:54:25 -0700592 "ti-agent/monitors_helper.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700593 "ti-agent/redefinition_helper.cc",
Alex Light88fd7202017-06-30 08:31:59 -0700594 "ti-agent/suspension_helper.cc",
Alex Lightb4e65072019-04-25 15:10:32 -0700595 "ti-agent/suspend_event_helper.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700596 "ti-agent/stack_trace_helper.cc",
Alex Light54d39dc2017-09-25 17:00:16 -0700597 "ti-agent/threads_helper.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700598 "ti-agent/trace_helper.cc",
Alex Light9fb1ab12017-09-05 09:32:49 -0700599 "ti-agent/exceptions_helper.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700600 // This is the list of non-special OnLoad things and excludes BCI and anything that depends
601 // on ART internals.
Andreas Gampe6dee92e2016-09-12 19:58:13 -0700602 "903-hello-tagging/tagging.cc",
Andreas Gampe27fa96c2016-10-07 15:05:24 -0700603 "904-object-allocation/tracking.cc",
Andreas Gampecc13b222016-10-10 19:09:09 -0700604 "905-object-free/tracking_free.cc",
Andreas Gampee54d9922016-10-11 19:55:37 -0700605 "906-iterate-heap/iterate_heap.cc",
Andreas Gampeaa8b60c2016-10-12 12:51:25 -0700606 "907-get-loaded-classes/get_loaded_classes.cc",
Andreas Gampe9b8c5882016-10-21 15:27:46 -0700607 "908-gc-start-finish/gc_callbacks.cc",
Andreas Gampe3c252f02016-10-27 18:25:17 -0700608 "910-methods/methods.cc",
Andreas Gampeb5eb94a2016-10-27 19:23:09 -0700609 "911-get-stack-trace/stack_trace.cc",
Andreas Gamped5f2ccc2017-04-19 13:37:48 -0700610 "912-classes/classes.cc",
Andreas Gampee0f8ed92017-04-13 16:52:23 -0700611 "913-heaps/heaps.cc",
Andreas Gampeab2f0d02017-01-05 17:23:45 -0800612 "918-fields/fields.cc",
Andreas Gampe50a4e492017-01-06 18:00:20 -0800613 "920-objects/objects.cc",
Andreas Gampe1bdaf732017-01-09 19:21:06 -0800614 "922-properties/properties.cc",
Andreas Gampe319dbe82017-01-09 16:42:21 -0800615 "923-monitors/monitors.cc",
Andreas Gampeaf13ab92017-01-11 20:57:40 -0800616 "924-threads/threads.cc",
Andreas Gamped18d9e22017-01-16 16:08:45 +0000617 "925-threadgroups/threadgroups.cc",
Andreas Gampe35bcf812017-01-13 16:24:17 -0800618 "927-timers/timers.cc",
Andreas Gampe6f8e4f02017-01-16 18:18:14 -0800619 "928-jni-table/jni_table.cc",
Andreas Gampece7732b2017-01-17 15:50:26 -0800620 "929-search/search.cc",
Andreas Gampe732b0ac2017-01-18 15:23:39 -0800621 "931-agent-thread/agent_thread.cc",
Andreas Gampeeb0cea12017-01-23 08:50:04 -0800622 "933-misc-events/misc_events.cc",
Alex Light78d63412017-04-14 16:20:53 -0700623 "945-obsolete-native/obsolete_native.cc",
Alex Light8fd08562018-02-13 10:09:03 -0800624 "983-source-transform-verify/source_transform.cc",
Alex Light78d63412017-04-14 16:20:53 -0700625 "984-obsolete-invoke/obsolete_invoke.cc",
Alex Lightd78ddec2017-04-18 15:20:38 -0700626 "986-native-method-bind/native_bind.cc",
Alex Light65af20b2017-04-20 09:15:08 -0700627 "987-agent-bind/agent_bind.cc",
Alex Lighte85595e2018-08-17 15:54:34 -0700628 "988-method-trace/trace_fib.cc",
Alex Lightb7edcda2017-04-27 13:20:31 -0700629 "989-method-trace-throw/method_trace.cc",
Alex Light7c958492017-06-16 08:59:19 -0700630 "991-field-trace-2/field_trace.cc",
Alex Light6fa7b812017-06-16 09:04:29 -0700631 "992-source-data/source_file.cc",
Alex Lightc38c3692017-06-27 15:45:14 -0700632 "993-breakpoints/breakpoints.cc",
633 "996-breakpoint-obsolete/obsolete_breakpoints.cc",
Alex Light8ddfd9f2017-07-05 16:33:46 -0700634 "1900-track-alloc/alloc.cc",
Alex Light4c174282017-07-05 10:18:18 -0700635 "1901-get-bytecodes/bytecodes.cc",
Alex Light88fd7202017-06-30 08:31:59 -0700636 "1905-suspend-native/native_suspend.cc",
637 "1908-suspend-native-resume-self/native_suspend_resume.cc",
Alex Light092a4042017-07-12 08:46:44 -0700638 "1909-per-agent-tls/agent_tls.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700639 "1914-get-local-instance/local_instance.cc",
Alex Light1d8a9742017-08-17 11:12:06 -0700640 "1919-vminit-thread-start-timing/vminit.cc",
Alex Light23aa7482017-08-16 10:01:13 -0700641 "1920-suspend-native-monitor/native_suspend_monitor.cc",
642 "1921-suspend-native-recursive-monitor/native_suspend_recursive_monitor.cc",
Alex Light88e1ddd2017-08-21 13:09:55 -0700643 "1922-owned-monitors-info/owned_monitors.cc",
Alex Lighte814f9d2017-07-31 16:14:39 -0700644 "1924-frame-pop-toggle/frame_pop_toggle.cc",
645 "1926-missed-frame-pop/frame_pop_missed.cc",
Alex Lightce568642017-09-05 16:54:25 -0700646 "1927-exception-event/exception_event.cc",
647 "1930-monitor-info/monitor.cc",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700648 "1932-monitor-events-misc/monitor_misc.cc",
Alex Light54d39dc2017-09-25 17:00:16 -0700649 "1934-jvmti-signal-thread/signal_threads.cc",
Alex Light3dea2122017-10-11 15:56:48 +0000650 "1939-proxy-frames/local_instance.cc",
Alex Lightb284f8d2017-11-21 00:00:48 +0000651 "1941-dispose-stress/dispose_stress.cc",
Alex Light4d77daf2018-01-04 11:51:14 -0800652 "1942-suspend-raw-monitor-exit/native_suspend_monitor.cc",
653 "1943-suspend-raw-monitor-wait/native_suspend_monitor.cc",
Alex Lightc7588752018-02-20 11:15:54 -0800654 "1946-list-descriptors/descriptors.cc",
Alex Light9e7859c2018-04-05 13:49:43 -0700655 "1950-unprepared-transform/unprepared_transform.cc",
Alex Lightc98f83e2018-07-26 08:28:36 -0700656 "1951-monitor-enter-no-suspend/raw_monitor.cc",
Alex Light0aa7a5a2018-10-10 15:58:14 +0000657 "1953-pop-frame/pop_frame.cc",
Alex Lightae45cbb2018-10-18 15:49:56 -0700658 "1957-error-ext/lasterror.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700659 // TODO Renumber
Alex Light40607862019-05-06 18:16:24 +0000660 "1962-multi-thread-events/multi_thread_events.cc",
Alex Light639e73b2019-05-17 21:44:36 +0000661 "1963-add-to-dex-classloader-in-memory/add_to_loader.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700662 "1968-force-early-return/force_early_return.cc",
663 "1969-force-early-return-void/force_early_return_void.cc",
664 "1970-force-early-return-long/force_early_return_long.cc",
Alex Lightc14ec8f2019-07-18 16:08:41 -0700665 "1974-resize-array/resize_array.cc",
Nicolas Geoffray4ac0e152019-09-18 06:14:50 +0000666 "1975-hello-structural-transformation/structural_transform.cc",
667 "1976-hello-structural-static-methods/structural_transform_methods.cc",
Alex Light80777ed2019-12-17 17:07:33 +0000668 "2005-pause-all-redefine-multithreaded/pause-all.cc",
Alex Light72325b62020-01-09 17:49:45 -0800669 "2009-structural-local-ref/local-ref.cc",
Alex Light16527e82020-06-08 09:21:12 -0700670 "2035-structural-native-method/structural-native.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700671 ],
Andreas Gampecb5125d2018-02-20 09:36:54 -0800672 // Use NDK-compatible headers for ctstiagent.
Alex Light8c2b9292017-11-09 13:21:01 -0800673 header_libs: [
Alex Light8c2b9292017-11-09 13:21:01 -0800674 "libopenjdkjvmti_headers",
675 ],
Paul Duffin4345aac2019-07-17 15:51:54 +0100676 local_include_dirs: ["ti-agent"],
Andreas Gampee54d9922016-10-11 19:55:37 -0700677}
678
Andreas Gampe027444b2017-03-31 12:49:07 -0700679art_cc_defaults {
680 name: "libtiagent-defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800681 defaults: [
682 "libtiagent-base-defaults",
683 "libartagent-defaults",
684 ],
Andreas Gampe027444b2017-03-31 12:49:07 -0700685 srcs: [
686 // This is to get the IsInterpreted native method.
687 "common/stack_inspect.cc",
688 "common/runtime_state.cc",
Alex Light78d63412017-04-14 16:20:53 -0700689 "ti-agent/common_load.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700690 // This includes the remaining test functions. We should try to refactor things to
691 // make this list smaller.
Andreas Gampe027444b2017-03-31 12:49:07 -0700692 "901-hello-ti-agent/basics.cc",
693 "909-attach-agent/attach.cc",
Andreas Gamped5f2ccc2017-04-19 13:37:48 -0700694 "912-classes/classes_art.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700695 "936-search-onload/search_onload.cc",
Alex Lightfbee3982018-05-24 10:28:46 -0700696 "980-redefine-object/redef_object.cc",
Andreas Gampe59484b92018-02-14 14:00:46 -0800697 "983-source-transform-verify/source_transform_art.cc",
Alex Light8c2b9292017-11-09 13:21:01 -0800698 "1940-ddms-ext/ddm_ext.cc",
Alex Light0aa7a5a2018-10-10 15:58:14 +0000699 // "1952-pop-frame-jit/pop_frame.cc",
Alex Lightfc81d802018-12-07 13:39:05 -0800700 "1959-redefine-object-instrument/fake_redef_object.cc",
Alex Lighte7a33542019-04-10 14:22:49 -0700701 "1960-obsolete-jit-multithread-native/native_say_hi.cc",
Alex Light639e73b2019-05-17 21:44:36 +0000702 "1964-add-to-dex-classloader-file/add_to_loader.cc",
Alex Light098e7a62019-05-21 16:57:10 -0700703 "1963-add-to-dex-classloader-in-memory/check_memfd_create.cc",
Alex Light3f0dca12020-01-27 17:20:28 -0800704 "2012-structural-redefinition-failures-jni-id/set-jni-id-used.cc",
Alex Light280e6c32020-03-03 13:52:07 -0800705 "2031-zygote-compiled-frame-deopt/native-wait.cc",
Alex Light1a0e2922021-01-12 13:57:42 +0000706 "2038-hiddenapi-jvmti-ext/hiddenapi_ext.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700707 ],
Alex Lightfbee3982018-05-24 10:28:46 -0700708 static_libs: [
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000709 "libz",
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800710 "slicer_no_rtti",
Alex Lightfbee3982018-05-24 10:28:46 -0700711 ],
Andreas Gampe027444b2017-03-31 12:49:07 -0700712}
713
Andreas Gampee54d9922016-10-11 19:55:37 -0700714art_cc_test_library {
715 name: "libtiagent",
716 defaults: ["libtiagent-defaults"],
David Sehrfcbe15c2018-02-15 09:41:13 -0800717 shared_libs: [
718 "libart",
719 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700720 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700721 "libartbase",
David Sehrfcbe15c2018-02-15 09:41:13 -0800722 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700723}
724
725art_cc_test_library {
726 name: "libtiagentd",
727 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700728 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700729 "libtiagent-defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700730 ],
David Sehrfcbe15c2018-02-15 09:41:13 -0800731 shared_libs: [
732 "libartd",
733 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700734 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700735 "libartbased",
David Sehrfcbe15c2018-02-15 09:41:13 -0800736 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700737}
738
Andreas Gampe59484b92018-02-14 14:00:46 -0800739cc_library_static {
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800740 name: "libctstiagent",
741 defaults: ["libtiagent-base-defaults"],
Martin Stjernholm1dc77ab2021-05-10 17:44:05 +0100742
743 // TODO(b/187288515): Providing this as a prebuilt introduces an issue with
744 // sdk_version propagation. Temporarily use the source library instead,
745 // which means we need to override the logic inherited from art_defaults and
746 // art_test_internal_library_defaults that disables sources when not
747 // building ART from sources.
748 enabled: true,
749
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100750 visibility: [
751 "//cts/hostsidetests/jvmti:__subpackages__",
752 ],
Andreas Gampe59484b92018-02-14 14:00:46 -0800753 host_supported: false,
754 srcs: [
755 "983-source-transform-verify/source_transform_slicer.cc",
756 ],
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800757 whole_static_libs: [
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800758 "slicer_ndk_no_rtti",
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800759 ],
760 static_libs: [
Andreas Gampecb5125d2018-02-20 09:36:54 -0800761 "libbase_ndk",
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800762 ],
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000763 shared_libs: [
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700764 "libz", // for slicer (using adler32).
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000765 ],
Andreas Gampecb5125d2018-02-20 09:36:54 -0800766 sdk_version: "current",
767 stl: "c++_static",
Paul Duffin4345aac2019-07-17 15:51:54 +0100768 header_libs: [
769 "jni_headers",
Alex Light8fd08562018-02-13 10:09:03 -0800770 // This is needed to resolve the base/ header file in libdexfile. Unfortunately there are
771 // many problems with how we export headers that are making doing this the 'right' way
772 // difficult.
773 // TODO: move those headers to art/ rather than under runtime.
Paul Duffin4345aac2019-07-17 15:51:54 +0100774 "libart_runtime_headers_ndk",
Alex Light8fd08562018-02-13 10:09:03 -0800775 ],
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800776 export_include_dirs: ["ti-agent"],
777}
778
Alex Light8f2c6d42017-04-10 16:27:35 -0700779art_cc_defaults {
Alex Light88659142018-05-15 10:53:06 -0700780 name: "libtistress-srcs",
Alex Light8f2c6d42017-04-10 16:27:35 -0700781 defaults: ["libartagent-defaults"],
782 srcs: [
783 "ti-stress/stress.cc",
784 ],
Alex Light88659142018-05-15 10:53:06 -0700785 header_libs: ["libopenjdkjvmti_headers"],
786}
787
788art_cc_defaults {
789 name: "libtistress-defaults",
790 defaults: ["libtistress-srcs"],
Alex Light8f2c6d42017-04-10 16:27:35 -0700791 shared_libs: [
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800792 "slicer_no_rtti",
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000793 "libz", // for slicer (using adler32).
Alex Light8f2c6d42017-04-10 16:27:35 -0700794 ],
Alex Light8f2c6d42017-04-10 16:27:35 -0700795}
796
797art_cc_test_library {
798 name: "libtistress",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700799 defaults: ["libtistress-defaults"],
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000800 shared_libs: [
801 "libartbase",
802 "libz",
803 ],
Alex Light8f2c6d42017-04-10 16:27:35 -0700804}
805
806art_cc_test_library {
807 name: "libtistressd",
808 defaults: [
Alex Light8f2c6d42017-04-10 16:27:35 -0700809 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700810 "libtistress-defaults",
Alex Light8f2c6d42017-04-10 16:27:35 -0700811 ],
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000812 shared_libs: [
813 "libartbased",
814 "libz",
815 ],
Alex Light88659142018-05-15 10:53:06 -0700816}
817
818art_cc_defaults {
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000819 name: "libtistress-shared-defaults",
Andreas Gampeec5ed062018-01-26 16:20:02 -0800820 defaults: [
821 "libtistress-srcs",
Alex Light88659142018-05-15 10:53:06 -0700822 ],
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800823 static_libs: ["slicer_no_rtti"],
Alex Light88659142018-05-15 10:53:06 -0700824}
825
826art_cc_test_library {
827 name: "libtistresss",
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000828 defaults: ["libtistress-shared-defaults"],
829 shared_libs: [
830 "libartbase",
831 "libz",
832 ],
Alex Light88659142018-05-15 10:53:06 -0700833}
834
835art_cc_test_library {
836 name: "libtistressds",
837 defaults: [
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000838 "libtistress-shared-defaults",
Alex Light88659142018-05-15 10:53:06 -0700839 ],
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000840 shared_libs: [
841 "libartbased",
842 "libz",
843 ],
Alex Light8f2c6d42017-04-10 16:27:35 -0700844}
845
Colin Crossafd3c9e2016-09-16 13:47:21 -0700846cc_defaults {
847 name: "libarttest-defaults",
848 defaults: [
Martin Stjernholm0d0f8df2021-04-28 16:47:01 +0100849 "art_test_internal_library_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700850 "art_defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700851 ],
852 srcs: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700853 "004-JniTest/jni_test.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700854 "004-ReferenceMap/stack_walk_refmap_jni.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000855 "004-SignalTest/signaltest.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700856 "004-StackWalk/stack_walk_jni.cc",
857 "004-ThreadStress/thread_stress.cc",
858 "004-UnsafeTest/unsafe_test.cc",
859 "044-proxy/native_proxy.cc",
860 "051-thread/thread_test.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700861 "1337-gc-coverage/gc_coverage.cc",
862 "136-daemon-jni-shutdown/daemon_jni_shutdown.cc",
863 "137-cfi/cfi.cc",
864 "139-register-natives/regnative.cc",
865 "141-class-unload/jni_unload.cc",
866 "148-multithread-gc-annotations/gc_coverage.cc",
867 "149-suspend-all-stress/suspend_all.cc",
Mathieu Chartier72a32892017-01-24 09:40:56 -0800868 "154-gc-loop/heap_interface.cc",
Andreas Gampeaaf0d382017-11-27 14:10:21 -0800869 "167-visit-locks/visit_locks.cc",
Andreas Gampe56776012018-01-26 17:40:55 -0800870 "169-threadgroup-jni/jni_daemon_thread.cc",
Mathieu Chartieradc90862018-05-11 13:03:06 -0700871 "172-app-image-twice/debug_print_class.cc",
Vladimir Marko422a9eb2019-08-01 12:54:07 +0100872 "177-visibly-initialized-deadlock/visibly_initialized.cc",
Vladimir Marko7dac8642019-11-06 17:09:30 +0000873 "178-app-image-native-method/native_methods.cc",
Alex Lighta2efd2a2020-05-19 09:44:49 -0700874 "179-nonvirtual-jni/nonvirtual-call.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000875 "1945-proxy-method-arguments/get_args.cc",
Andreas Gampeaaf0d382017-11-27 14:10:21 -0800876 "203-multi-checkpoint/multi_checkpoint.cc",
Alex Lightf4ed7e82018-01-17 11:52:36 -0800877 "305-other-fault-handler/fault_handler.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700878 "454-get-vreg/get_vreg_jni.cc",
879 "457-regs/regs_jni.cc",
880 "461-get-reference-vreg/get_reference_vreg_jni.cc",
881 "466-get-live-vreg/get_live_vreg_jni.cc",
882 "497-inlining-and-class-loader/clear_dex_cache.cc",
883 "543-env-long-ref/env_long_ref.cc",
884 "566-polymorphic-inlining/polymorphic_inline.cc",
885 "570-checker-osr/osr.cc",
886 "595-profile-saving/profile-saving.cc",
887 "596-app-images/app_images.cc",
Hans Boehm6fe97e02016-05-04 18:35:57 -0700888 "596-monitor-inflation/monitor_inflation.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700889 "597-deopt-new-string/deopt.cc",
Alexey Grebenkinbe4c2bd2018-02-01 19:09:59 +0300890 "616-cha-unloading/cha_unload.cc",
Vladimir Markoc5798bf2016-12-09 10:20:54 +0000891 "626-const-class-linking/clear_dex_cache_types.cc",
Nicolas Geoffray13a797b2017-03-15 16:41:31 +0000892 "642-fp-callees/fp_callees.cc",
Vladimir Marko5fdd7782017-04-20 11:26:03 +0100893 "647-jni-get-field-id/get_field_id.cc",
Roland Levillain0d2323e2017-06-26 18:14:39 +0100894 "656-annotation-lookup-generic-jni/test.cc",
Igor Murashkin545412b2017-08-17 15:26:54 -0700895 "661-oat-writer-layout/oat_writer_layout.cc",
896 "664-aget-verifier/aget-verifier.cc",
Vladimir Marko2196c652017-11-30 16:16:07 +0000897 "667-jit-jni-stub/jit_jni_stub_test.cc",
David Brazdil11b67b22018-01-18 16:41:40 +0000898 "674-hiddenapi/hiddenapi.cc",
David Brazdil331a5e12019-04-01 22:46:16 +0000899 "692-vdex-inmem-loader/vdex_inmem_loader.cc",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700900 "708-jit-cache-churn/jit.cc",
Nicolas Geoffrayfa595882019-08-06 17:40:09 +0100901 "720-thread-priority/thread_priority.cc",
Alexey Grebenkince750492018-05-31 23:42:20 +0300902 "800-smali/jni.cc",
Nicolas Geoffrayaf61f502021-03-31 16:03:50 +0000903 "817-hiddenapi/test_native.cc",
Alex Lightf889c702018-02-23 15:25:45 -0800904 "909-attach-agent/disallow_debugging.cc",
Mathieu Chartier00fbe4f2019-01-02 16:52:38 -0800905 "1001-app-image-regions/app_image_regions.cc",
Mathieu Chartier175ce3d2019-03-06 16:54:24 -0800906 "1002-notify-startup/startup_interface.cc",
Alex Lighte34fe442018-02-21 17:35:55 -0800907 "1947-breakpoint-redefine-deopt/check_deopt.cc",
Alex Lightf3677472019-06-26 16:31:53 -0700908 "1972-jni-id-swap-indices/jni_id.cc",
Alex Light55eccdf2019-10-07 13:51:13 +0000909 "1985-structural-redefine-stack-scope/stack_scope.cc",
Nicolas Geoffraye91e7952020-01-23 10:15:56 +0000910 "2011-stack-walk-concurrent-instrument/stack_walk_concurrent.cc",
Alex Light280e6c32020-03-03 13:52:07 -0800911 "2031-zygote-compiled-frame-deopt/native-wait.cc",
Hans Boehm672295a2020-04-16 21:31:17 -0700912 "2033-shutdown-mechanics/native_shutdown.cc",
Orion Hodson7285a4b2020-07-10 13:31:35 +0100913 "2036-jni-filechannel/jni_filechannel.cc",
Alex Light8d9c6042020-09-22 15:35:59 -0700914 "2037-thread-name-inherit/thread_name_inherit.cc",
Hans Boehm6031ec12021-05-25 22:08:59 +0000915 "2040-huge-native-alloc/huge_native_buf.cc",
Sorin Basca2f01e8e2021-06-18 06:44:07 +0000916 "2235-JdkUnsafeTest/unsafe_test.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000917 "common/runtime_state.cc",
918 "common/stack_inspect.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700919 ],
920 shared_libs: [
921 "libbacktrace",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700922 "libbase",
Orion Hodsonfcc922a2021-05-21 11:32:33 +0100923 "liblog",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700924 "libnativehelper",
925 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700926}
927
Paul Duffin2506eff2020-04-07 11:32:24 +0100928java_library {
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800929 name: "art_cts_jvmti_test_library",
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100930 visibility: [
Paul Duffincc9df4f2020-08-13 14:57:41 +0100931 "//art:__subpackages__",
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100932 "//cts/hostsidetests/jvmti:__subpackages__",
933 ],
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800934 srcs: [
935 // shim classes. We use one that exposes the common functionality.
Alex Light23ca8fb2019-05-10 11:27:02 -0700936 "jvmti-common/Redefinition.java",
937 "jvmti-common/Main.java",
938 "jvmti-common/Trace.java",
939 "jvmti-common/Breakpoint.java",
940 "jvmti-common/Suspension.java",
941 "jvmti-common/Locals.java",
942 "jvmti-common/StackTrace.java",
943 "jvmti-common/FramePop.java",
944 "jvmti-common/Exceptions.java",
945 "jvmti-common/Monitors.java",
Alex Lightfe0ce642020-01-07 13:14:18 -0800946 "jvmti-common/NonStandardExit.java",
Alex Light23ca8fb2019-05-10 11:27:02 -0700947 "jvmti-common/Threads.java",
948 "jvmti-common/SuspendEvents.java",
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800949
950 // Actual test classes.
951 "901-hello-ti-agent/src/art/Test901.java",
952 "902-hello-transformation/src/art/Test902.java",
953 "903-hello-tagging/src/art/Test903.java",
954 "904-object-allocation/src/art/Test904.java",
955 "905-object-free/src/art/Test905.java",
956 "906-iterate-heap/src/art/Test906.java",
957 "907-get-loaded-classes/src/art/Test907.java",
958 "907-get-loaded-classes/src/art/Cerr.java",
959 "908-gc-start-finish/src/art/Test908.java",
960 "910-methods/src/art/Test910.java",
961 "911-get-stack-trace/src/art/Test911.java",
962 "911-get-stack-trace/src/art/AllTraces.java",
963 "911-get-stack-trace/src/art/ControlData.java",
964 "911-get-stack-trace/src/art/Frames.java",
965 "911-get-stack-trace/src/art/OtherThread.java",
966 "911-get-stack-trace/src/art/PrintThread.java",
967 "911-get-stack-trace/src/art/Recurse.java",
968 "911-get-stack-trace/src/art/SameThread.java",
969 "911-get-stack-trace/src/art/ThreadListTraces.java",
970 "912-classes/src-art/art/Test912.java",
971 "912-classes/src-art/art/DexData.java",
972 "913-heaps/src/art/Test913.java",
973 "914-hello-obsolescence/src/art/Test914.java",
974 "915-obsolete-2/src/art/Test915.java",
975 "917-fields-transformation/src/art/Test917.java",
976 "918-fields/src/art/Test918.java",
977 "919-obsolete-fields/src/art/Test919.java",
978 "920-objects/src/art/Test920.java",
979 "922-properties/src/art/Test922.java",
980 "923-monitors/src/art/Test923.java",
981 "924-threads/src/art/Test924.java",
982 "925-threadgroups/src/art/Test925.java",
983 "926-multi-obsolescence/src/art/Test926.java",
984 "927-timers/src/art/Test927.java",
985 "928-jni-table/src/art/Test928.java",
986 "930-hello-retransform/src/art/Test930.java",
987 "931-agent-thread/src/art/Test931.java",
988 "932-transform-saves/src/art/Test932.java",
989 "933-misc-events/src/art/Test933.java",
990 "940-recursive-obsolete/src/art/Test940.java",
991 "942-private-recursive/src/art/Test942.java",
992 "944-transform-classloaders/src/art/Test944.java",
993 "945-obsolete-native/src/art/Test945.java",
994 "947-reflect-method/src/art/Test947.java",
995 "951-threaded-obsolete/src/art/Test951.java",
996 "982-ok-no-retransform/src/art/Test982.java",
997 "983-source-transform-verify/src/art/Test983.java",
998 "984-obsolete-invoke/src/art/Test984.java",
999 "985-re-obsolete/src/art/Test985.java",
1000 "986-native-method-bind/src/art/Test986.java",
1001 "988-method-trace/src/art/Test988.java",
1002 "988-method-trace/src/art/Test988Intrinsics.java",
1003 "989-method-trace-throw/src/art/Test989.java",
1004 "990-field-trace/src/art/Test990.java",
1005 "991-field-trace-2/src/art/Test991.java",
1006 "992-source-data/src/art/Test992.java",
1007 "992-source-data/src/art/Target2.java",
1008 "993-breakpoints/src/art/Test993.java",
1009 "994-breakpoint-line/src/art/Test994.java",
1010 "995-breakpoints-throw/src/art/Test995.java",
1011 "996-breakpoint-obsolete/src/art/Test996.java",
1012 "997-single-step/src/art/Test997.java",
1013 "1900-track-alloc/src/art/Test1900.java",
1014 "1901-get-bytecodes/src/art/Test1901.java",
1015 "1902-suspend/src/art/Test1902.java",
1016 "1903-suspend-self/src/art/Test1903.java",
1017 "1904-double-suspend/src/art/Test1904.java",
1018 "1906-suspend-list-me-first/src/art/Test1906.java",
1019 "1907-suspend-list-self-twice/src/art/Test1907.java",
1020 "1908-suspend-native-resume-self/src/art/Test1908.java",
1021 "1909-per-agent-tls/src/art/Test1909.java",
1022 "1910-transform-with-default/src/art/Test1910.java",
1023 "1911-get-local-var-table/src/art/Test1911.java",
1024 "1912-get-set-local-primitive/src/art/Test1912.java",
1025 "1913-get-set-local-objects/src/art/Test1913.java",
1026 "1914-get-local-instance/src/art/Test1914.java",
1027 "1915-get-set-local-current-thread/src/art/Test1915.java",
1028 "1916-get-set-current-frame/src/art/Test1916.java",
1029 "1917-get-stack-frame/src/art/Test1917.java",
1030 "1920-suspend-native-monitor/src/art/Test1920.java",
1031 "1921-suspend-native-recursive-monitor/src/art/Test1921.java",
1032 "1922-owned-monitors-info/src/art/Test1922.java",
1033 "1923-frame-pop/src/art/Test1923.java",
1034 "1924-frame-pop-toggle/src/art/Test1924.java",
1035 "1925-self-frame-pop/src/art/Test1925.java",
1036 "1926-missed-frame-pop/src/art/Test1926.java",
1037 "1927-exception-event/src/art/Test1927.java",
1038 "1928-exception-event-exception/src/art/Test1928.java",
1039 "1930-monitor-info/src/art/Test1930.java",
1040 "1931-monitor-events/src/art/Test1931.java",
1041 "1932-monitor-events-misc/src/art/Test1932.java",
1042 "1933-monitor-current-contended/src/art/Test1933.java",
1043 "1934-jvmti-signal-thread/src/art/Test1934.java",
1044 "1936-thread-end-events/src/art/Test1936.java",
1045 "1937-transform-soft-fail/src/art/Test1937.java",
1046 "1939-proxy-frames/src/art/Test1939.java",
1047 "1941-dispose-stress/src/art/Test1941.java",
1048 "1942-suspend-raw-monitor-exit/src/art/Test1942.java",
1049 "1943-suspend-raw-monitor-wait/src/art/Test1943.java",
1050 "1953-pop-frame/src/art/Test1953.java",
1051 "1958-transform-try-jit/src/art/Test1958.java",
Alex Light40607862019-05-06 18:16:24 +00001052 "1962-multi-thread-events/src/art/Test1962.java",
Alex Lightfe0ce642020-01-07 13:14:18 -08001053 "1963-add-to-dex-classloader-in-memory/src/art/Test1963.java",
1054 "1967-get-set-local-bad-slot/src/art/Test1967.java",
1055 "1968-force-early-return/src/art/Test1968.java",
1056 "1969-force-early-return-void/src/art/Test1969.java",
1057 "1970-force-early-return-long/src/art/Test1970.java",
1058 "1971-multi-force-early-return/src/art/Test1971.java",
1059 "1974-resize-array/src/art/Test1974.java",
1060 "1975-hello-structural-transformation/src/art/Test1975.java",
1061 "1975-hello-structural-transformation/src/art/Transform1975.java",
1062 "1976-hello-structural-static-methods/src/art/Test1976.java",
1063 "1976-hello-structural-static-methods/src/art/Transform1976.java",
1064 "1977-hello-structural-obsolescence/src/art/Test1977.java",
1065 "1978-regular-obsolete-then-structural-obsolescence/src/art/Test1978.java",
1066 "1979-threaded-structural-transformation/src/art/Test1979.java",
1067 "1981-structural-redef-private-method-handles/src/art/Test1981.java",
1068 // TODO Requires VarHandles to be un-@hide. See b/64382372
1069 // "1981-structural-redef-private-method-handles/src/art/Test1981_Varhandles.java",
1070 "1982-no-virtuals-structural-redefinition/src/art/Test1982.java",
1071 "1983-structural-redefinition-failures/src/art/Test1983.java",
1072 "1984-structural-redefine-field-trace/src/art/Test1984.java",
1073 "1988-multi-structural-redefine/src/art/Test1988.java",
1074 "1989-transform-bad-monitor/src/art/Test1989.java",
1075 "1990-structural-bad-verify/src/art/Test1990.java",
1076 "1991-hello-structural-retransform/src/art/Test1991.java",
1077 "1992-retransform-no-such-field/src/art/Test1992.java",
1078 "1994-final-virtual-structural/src/art/Test1994.java",
1079 "1995-final-virtual-structural-multithread/src/art/Test1995.java",
1080 "1996-final-override-virtual-structural/src/art/Test1996.java",
1081 "1997-structural-shadow-method/src/art/Test1997.java",
1082 "1998-structural-shadow-field/src/art/Test1998.java",
1083 "1999-virtual-structural/src/art/Test1999.java",
1084 "2001-virtual-structural-multithread/src-art/art/Test2001.java",
1085 "2002-virtual-structural-initializing/src-art/art/Test2002.java",
1086 "2003-double-virtual-structural/src/art/Test2003.java",
1087 "2004-double-virtual-structural-abstract/src/art/Test2004.java",
1088 "2005-pause-all-redefine-multithreaded/src/art/Test2005.java",
1089 "2006-virtual-structural-finalizing/src-art/art/Test2006.java",
1090 "2007-virtual-structural-finalizable/src-art/art/Test2007.java",
Sasha Smundakc7c5d532019-02-27 15:03:37 -08001091 ],
Paul Duffin463d03e2020-10-21 21:38:58 +01001092 sdk_version: "core_platform",
Colin Cross1e6be712021-08-18 16:28:06 -07001093 // Some ART run-tests contain constructs which break ErrorProne checks;
1094 // disable `errorprone` builds.
1095 errorprone: {
1096 enabled: false,
1097 },
Sasha Smundakc7c5d532019-02-27 15:03:37 -08001098}
1099
1100// CTS test runner in cts/hostsidetests/jvmti looks for an expected test
1101// result for the test NN in the file results.NN.expected.txt while in the
Roland Levillaina073f462020-10-28 12:48:24 +00001102// source tree each expected test result is in the NN-xxxx/expected-stdout.txt.
Sasha Smundakc7c5d532019-02-27 15:03:37 -08001103// Copy+rename them them to a temporary directory and them zip them.
1104java_genrule {
Paul Duffine5621f52020-03-25 10:51:14 +00001105 name: "expected_cts_outputs_gen",
Sasha Smundakc7c5d532019-02-27 15:03:37 -08001106 srcs: [
Roland Levillaina073f462020-10-28 12:48:24 +00001107 "901-hello-ti-agent/expected-stdout.txt",
1108 "902-hello-transformation/expected-stdout.txt",
1109 "903-hello-tagging/expected-stdout.txt",
1110 "904-object-allocation/expected-stdout.txt",
1111 "905-object-free/expected-stdout.txt",
1112 "906-iterate-heap/expected-stdout.txt",
1113 "907-get-loaded-classes/expected-stdout.txt",
1114 "908-gc-start-finish/expected-stdout.txt",
1115 "910-methods/expected-stdout.txt",
Alex Light4681f202020-01-10 09:27:57 -08001116 "911-get-stack-trace/expected-cts-version.txt",
Roland Levillaina073f462020-10-28 12:48:24 +00001117 "912-classes/expected-stdout.txt",
1118 "913-heaps/expected-stdout.txt",
1119 "914-hello-obsolescence/expected-stdout.txt",
1120 "915-obsolete-2/expected-stdout.txt",
1121 "917-fields-transformation/expected-stdout.txt",
1122 "918-fields/expected-stdout.txt",
1123 "919-obsolete-fields/expected-stdout.txt",
1124 "920-objects/expected-stdout.txt",
1125 "922-properties/expected-stdout.txt",
1126 "923-monitors/expected-stdout.txt",
1127 "924-threads/expected-stdout.txt",
1128 "925-threadgroups/expected-stdout.txt",
1129 "926-multi-obsolescence/expected-stdout.txt",
1130 "927-timers/expected-stdout.txt",
1131 "928-jni-table/expected-stdout.txt",
1132 "930-hello-retransform/expected-stdout.txt",
1133 "931-agent-thread/expected-stdout.txt",
1134 "932-transform-saves/expected-stdout.txt",
1135 "933-misc-events/expected-stdout.txt",
1136 "940-recursive-obsolete/expected-stdout.txt",
1137 "942-private-recursive/expected-stdout.txt",
1138 "944-transform-classloaders/expected-stdout.txt",
1139 "945-obsolete-native/expected-stdout.txt",
1140 "947-reflect-method/expected-stdout.txt",
1141 "951-threaded-obsolete/expected-stdout.txt",
1142 "982-ok-no-retransform/expected-stdout.txt",
1143 "983-source-transform-verify/expected-stdout.txt",
1144 "984-obsolete-invoke/expected-stdout.txt",
1145 "985-re-obsolete/expected-stdout.txt",
1146 "986-native-method-bind/expected-stdout.txt",
1147 "988-method-trace/expected-stdout.txt",
1148 "989-method-trace-throw/expected-stdout.txt",
1149 "990-field-trace/expected-stdout.txt",
1150 "991-field-trace-2/expected-stdout.txt",
1151 "992-source-data/expected-stdout.txt",
Alex Light2b8d3c82020-11-03 11:52:40 -08001152 // Need to avoid using hidden-apis
1153 "993-breakpoints/expected_cts.txt",
Roland Levillaina073f462020-10-28 12:48:24 +00001154 "994-breakpoint-line/expected-stdout.txt",
1155 "995-breakpoints-throw/expected-stdout.txt",
1156 "996-breakpoint-obsolete/expected-stdout.txt",
1157 "997-single-step/expected-stdout.txt",
1158 "1900-track-alloc/expected-stdout.txt",
1159 "1901-get-bytecodes/expected-stdout.txt",
1160 "1902-suspend/expected-stdout.txt",
1161 "1903-suspend-self/expected-stdout.txt",
1162 "1904-double-suspend/expected-stdout.txt",
1163 "1906-suspend-list-me-first/expected-stdout.txt",
1164 "1907-suspend-list-self-twice/expected-stdout.txt",
1165 "1908-suspend-native-resume-self/expected-stdout.txt",
1166 "1909-per-agent-tls/expected-stdout.txt",
1167 "1910-transform-with-default/expected-stdout.txt",
1168 "1911-get-local-var-table/expected-stdout.txt",
1169 "1912-get-set-local-primitive/expected-stdout.txt",
1170 "1913-get-set-local-objects/expected-stdout.txt",
1171 "1914-get-local-instance/expected-stdout.txt",
1172 "1915-get-set-local-current-thread/expected-stdout.txt",
1173 "1916-get-set-current-frame/expected-stdout.txt",
1174 "1917-get-stack-frame/expected-stdout.txt",
1175 "1920-suspend-native-monitor/expected-stdout.txt",
1176 "1921-suspend-native-recursive-monitor/expected-stdout.txt",
1177 "1922-owned-monitors-info/expected-stdout.txt",
1178 "1923-frame-pop/expected-stdout.txt",
1179 "1924-frame-pop-toggle/expected-stdout.txt",
1180 "1925-self-frame-pop/expected-stdout.txt",
1181 "1926-missed-frame-pop/expected-stdout.txt",
1182 "1927-exception-event/expected-stdout.txt",
1183 "1928-exception-event-exception/expected-stdout.txt",
1184 "1930-monitor-info/expected-stdout.txt",
1185 "1931-monitor-events/expected-stdout.txt",
1186 "1932-monitor-events-misc/expected-stdout.txt",
1187 "1933-monitor-current-contended/expected-stdout.txt",
1188 "1934-jvmti-signal-thread/expected-stdout.txt",
1189 "1936-thread-end-events/expected-stdout.txt",
1190 "1937-transform-soft-fail/expected-stdout.txt",
1191 "1939-proxy-frames/expected-stdout.txt",
1192 "1941-dispose-stress/expected-stdout.txt",
1193 "1942-suspend-raw-monitor-exit/expected-stdout.txt",
1194 "1943-suspend-raw-monitor-wait/expected-stdout.txt",
1195 "1953-pop-frame/expected-stdout.txt",
1196 "1958-transform-try-jit/expected-stdout.txt",
1197 "1962-multi-thread-events/expected-stdout.txt",
1198 "1963-add-to-dex-classloader-in-memory/expected-stdout.txt",
1199 "1967-get-set-local-bad-slot/expected-stdout.txt",
1200 "1968-force-early-return/expected-stdout.txt",
1201 "1969-force-early-return-void/expected-stdout.txt",
1202 "1970-force-early-return-long/expected-stdout.txt",
1203 "1971-multi-force-early-return/expected-stdout.txt",
1204 "1974-resize-array/expected-stdout.txt",
1205 "1975-hello-structural-transformation/expected-stdout.txt",
1206 "1976-hello-structural-static-methods/expected-stdout.txt",
1207 "1977-hello-structural-obsolescence/expected-stdout.txt",
1208 "1978-regular-obsolete-then-structural-obsolescence/expected-stdout.txt",
1209 "1979-threaded-structural-transformation/expected-stdout.txt",
Alex Lightfe0ce642020-01-07 13:14:18 -08001210 // TODO Requires VarHandles to be un-@hide. See b/64382372
Roland Levillaina073f462020-10-28 12:48:24 +00001211 // "test/1981-structural-redef-private-method-handles/expected-stdout.txt",
Alex Lightfe0ce642020-01-07 13:14:18 -08001212 "1981-structural-redef-private-method-handles/expected_no_mh.txt",
Roland Levillaina073f462020-10-28 12:48:24 +00001213 "1982-no-virtuals-structural-redefinition/expected-stdout.txt",
Alex Light5c7f3672020-01-27 15:23:30 -08001214 // JNI-id use can change the outcome of this test on device.
1215 "1983-structural-redefinition-failures/expected-cts.txt",
Roland Levillaina073f462020-10-28 12:48:24 +00001216 "1984-structural-redefine-field-trace/expected-stdout.txt",
1217 "1988-multi-structural-redefine/expected-stdout.txt",
1218 "1989-transform-bad-monitor/expected-stdout.txt",
1219 "1990-structural-bad-verify/expected-stdout.txt",
1220 "1991-hello-structural-retransform/expected-stdout.txt",
1221 "1992-retransform-no-such-field/expected-stdout.txt",
1222 "1994-final-virtual-structural/expected-stdout.txt",
1223 "1995-final-virtual-structural-multithread/expected-stdout.txt",
1224 "1996-final-override-virtual-structural/expected-stdout.txt",
1225 "1997-structural-shadow-method/expected-stdout.txt",
1226 "1998-structural-shadow-field/expected-stdout.txt",
1227 "1999-virtual-structural/expected-stdout.txt",
1228 "2001-virtual-structural-multithread/expected-stdout.txt",
1229 "2002-virtual-structural-initializing/expected-stdout.txt",
1230 "2003-double-virtual-structural/expected-stdout.txt",
1231 "2004-double-virtual-structural-abstract/expected-stdout.txt",
1232 "2005-pause-all-redefine-multithreaded/expected-stdout.txt",
1233 "2006-virtual-structural-finalizing/expected-stdout.txt",
1234 "2007-virtual-structural-finalizable/expected-stdout.txt",
Sasha Smundakc7c5d532019-02-27 15:03:37 -08001235 ],
1236 out: ["expected_cts_outputs.jar"],
1237 tools: ["soong_zip"],
1238 cmd: "rm -rf $(genDir)/res && mkdir -p $(genDir)/res && " +
1239 "for f in $(in); do x=$${f#art/test/}; " +
1240 "cp $$f $(genDir)/res/results.$${x%%-*}.expected.txt; done && " +
1241 "$(location soong_zip) -o $(out) -C $(genDir)/res -D $(genDir)/res",
1242}
David Srbecky8c8f1482020-02-05 20:17:10 +00001243
Paul Duffine5621f52020-03-25 10:51:14 +00001244// Wrap the expected_cts_outputs_gen inside a java library to make it easy
1245// to export as a member of a module_exports.
1246java_library {
1247 name: "expected_cts_outputs",
1248 visibility: [
1249 "//art/build/sdk",
1250 "//cts/hostsidetests/jvmti:__subpackages__",
1251 ],
1252 static_libs: [
1253 "expected_cts_outputs_gen",
1254 ],
1255 sdk_version: "core_current",
1256}
1257
David Srbeckyee257162020-02-28 15:50:13 +00001258art_cc_test {
David Srbeckyf61e0612020-08-14 16:13:35 +01001259 name: "ArtGtestsTargetInstallApex",
Martin Stjernholm90b26612021-03-03 09:49:27 +00001260 defaults: [
1261 // Enable only in source builds, where com.android.art.testing is
1262 // available.
1263 "art_module_source_build_defaults",
1264 ],
David Srbeckyee257162020-02-28 15:50:13 +00001265 data: [
1266 // We need the ART testing apex, which contains all gtest binaries.
David Srbeckyf61e0612020-08-14 16:13:35 +01001267 // Note that due to build system and linker constraints the gtests must be in the apex.
David Srbeckyee257162020-02-28 15:50:13 +00001268 ":com.android.art.testing",
David Srbeckyee257162020-02-28 15:50:13 +00001269 ],
David Srbeckyf61e0612020-08-14 16:13:35 +01001270 // It seems that only device-tests build can create a valid apex.
Roland Levillain423aefc2020-09-01 18:42:22 +01001271 test_suites: [
1272 "device-tests",
Kimberly Kreider284e8b02020-12-15 09:40:30 -08001273 "mts-art",
Roland Levillain423aefc2020-09-01 18:42:22 +01001274 ],
David Srbeckyf61e0612020-08-14 16:13:35 +01001275 test_config: "art-gtests-target-install-apex.xml",
Roland Levillain423aefc2020-09-01 18:42:22 +01001276
1277 // Support multilib variants (using different suffix per sub-architecture), which is needed on
1278 // build targets with secondary architectures, as the MTS test suite packaging logic flattens
1279 // all test artifacts into a single `testcases` directory.
1280 compile_multilib: "both",
1281 multilib: {
1282 lib32: {
1283 suffix: "32",
1284 },
1285 lib64: {
1286 suffix: "64",
1287 },
1288 },
Martin Stjernholmd3e9ff32021-03-16 00:44:25 +00001289 test_for: [
1290 "com.android.art",
1291 "com.android.art.debug",
1292 ],
David Srbeckyf61e0612020-08-14 16:13:35 +01001293}
1294
1295art_cc_test {
1296 name: "ArtGtestsTargetChroot",
Martin Stjernholm90b26612021-03-03 09:49:27 +00001297 defaults: [
1298 // Enable only in source builds, where com.android.art.testing is
1299 // available.
1300 "art_module_source_build_defaults",
1301 ],
David Srbeckyf61e0612020-08-14 16:13:35 +01001302 data: [
1303 // We need the ART testing apex, which contains all gtest binaries.
1304 // Note that due to build system and linker constraints the gtests must be in the apex.
1305 ":com.android.art.testing",
1306 ],
1307 test_suites: ["general-tests"],
1308 test_config: "art-gtests-target-chroot.xml",
Martin Stjernholmd3e9ff32021-03-16 00:44:25 +00001309 test_for: [
1310 "com.android.art",
1311 "com.android.art.debug",
1312 ],
David Srbeckyee257162020-02-28 15:50:13 +00001313}
1314
David Srbecky8c8f1482020-02-05 20:17:10 +00001315filegroup {
1316 name: "art-gtest-jars",
1317 srcs: [
1318 ":art-gtest-jars-AbstractMethod",
1319 ":art-gtest-jars-AllFields",
1320 ":art-gtest-jars-DefaultMethods",
1321 ":art-gtest-jars-DexToDexDecompiler",
1322 ":art-gtest-jars-ErroneousA",
1323 ":art-gtest-jars-ErroneousB",
1324 ":art-gtest-jars-ErroneousInit",
Vladimir Markofdd46842020-03-25 14:57:17 +00001325 ":art-gtest-jars-Extension1",
1326 ":art-gtest-jars-Extension2",
David Srbecky8c8f1482020-02-05 20:17:10 +00001327 ":art-gtest-jars-ForClassLoaderA",
1328 ":art-gtest-jars-ForClassLoaderB",
1329 ":art-gtest-jars-ForClassLoaderC",
1330 ":art-gtest-jars-ForClassLoaderD",
1331 ":art-gtest-jars-ExceptionHandle",
1332 ":art-gtest-jars-GetMethodSignature",
1333 ":art-gtest-jars-HiddenApi",
1334 ":art-gtest-jars-HiddenApiSignatures",
1335 ":art-gtest-jars-HiddenApiStubs",
1336 ":art-gtest-jars-ImageLayoutA",
1337 ":art-gtest-jars-ImageLayoutB",
1338 ":art-gtest-jars-IMTA",
1339 ":art-gtest-jars-IMTB",
1340 ":art-gtest-jars-Instrumentation",
1341 ":art-gtest-jars-Interfaces",
1342 ":art-gtest-jars-Lookup",
1343 ":art-gtest-jars-Main",
1344 ":art-gtest-jars-ManyMethods",
1345 ":art-gtest-jars-MethodTypes",
1346 ":art-gtest-jars-MultiDex",
1347 ":art-gtest-jars-MultiDexModifiedSecondary",
1348 ":art-gtest-jars-MyClass",
1349 ":art-gtest-jars-MyClassNatives",
1350 ":art-gtest-jars-Nested",
1351 ":art-gtest-jars-NonStaticLeafMethods",
1352 ":art-gtest-jars-Packages",
1353 ":art-gtest-jars-ProtoCompare",
1354 ":art-gtest-jars-ProtoCompare2",
1355 ":art-gtest-jars-ProfileTestMultiDex",
1356 ":art-gtest-jars-StaticLeafMethods",
1357 ":art-gtest-jars-Statics",
1358 ":art-gtest-jars-StaticsFromCode",
1359 ":art-gtest-jars-StringLiterals",
1360 ":art-gtest-jars-Transaction",
1361 ":art-gtest-jars-XandY",
1362 ":art-gtest-jars-MainEmptyUncompressed",
1363 ":art-gtest-jars-MainEmptyUncompressedAligned",
1364 ":art-gtest-jars-MainStripped",
1365 ":art-gtest-jars-MainUncompressedAligned",
1366 ":art-gtest-jars-MultiDexUncompressedAligned",
1367 ":art-gtest-jars-VerifierDeps",
1368 ":art-gtest-jars-VerifierDepsMulti",
1369 ":art-gtest-jars-VerifySoftFailDuringClinit",
1370 ],
1371}
1372
1373java_defaults {
1374 name: "art-gtest-jars-defaults",
1375 installable: true,
1376 dex_preopt: {
1377 enabled: false,
1378 },
1379 sdk_version: "core_platform",
David Srbecky4a88a5a2020-05-05 16:21:57 +01001380 uncompress_dex: false,
David Srbecky8c8f1482020-02-05 20:17:10 +00001381}
1382
1383// The following modules are just trivial compilations (non-trivial cases are the end).
1384
1385java_library {
1386 name: "art-gtest-jars-AbstractMethod",
1387 srcs: ["AbstractMethod/**/*.java"],
1388 defaults: ["art-gtest-jars-defaults"],
1389}
1390
1391java_library {
1392 name: "art-gtest-jars-AllFields",
1393 srcs: ["AllFields/**/*.java"],
1394 defaults: ["art-gtest-jars-defaults"],
1395}
1396
1397java_library {
1398 name: "art-gtest-jars-DefaultMethods",
1399 srcs: ["DefaultMethods/**/*.java"],
1400 defaults: ["art-gtest-jars-defaults"],
1401}
1402
1403java_library {
1404 name: "art-gtest-jars-DexToDexDecompiler",
1405 srcs: ["DexToDexDecompiler/**/*.java"],
1406 defaults: ["art-gtest-jars-defaults"],
1407}
1408
1409java_library {
1410 name: "art-gtest-jars-ErroneousA",
1411 srcs: ["ErroneousA/**/*.java"],
1412 defaults: ["art-gtest-jars-defaults"],
1413}
1414
1415java_library {
1416 name: "art-gtest-jars-ErroneousB",
1417 srcs: ["ErroneousB/**/*.java"],
1418 defaults: ["art-gtest-jars-defaults"],
1419}
1420
1421java_library {
1422 name: "art-gtest-jars-ErroneousInit",
1423 srcs: ["ErroneousInit/**/*.java"],
1424 defaults: ["art-gtest-jars-defaults"],
1425}
1426
1427java_library {
Vladimir Markofdd46842020-03-25 14:57:17 +00001428 name: "art-gtest-jars-Extension1",
1429 srcs: ["Extension1/**/*.java"],
1430 defaults: ["art-gtest-jars-defaults"],
1431}
1432
1433java_library {
1434 name: "art-gtest-jars-Extension2",
1435 srcs: ["Extension2/**/*.java"],
1436 defaults: ["art-gtest-jars-defaults"],
1437}
1438
1439java_library {
David Srbecky8c8f1482020-02-05 20:17:10 +00001440 name: "art-gtest-jars-ForClassLoaderA",
1441 srcs: ["ForClassLoaderA/**/*.java"],
1442 defaults: ["art-gtest-jars-defaults"],
1443}
1444
1445java_library {
1446 name: "art-gtest-jars-ForClassLoaderB",
1447 srcs: ["ForClassLoaderB/**/*.java"],
1448 defaults: ["art-gtest-jars-defaults"],
1449}
1450
1451java_library {
1452 name: "art-gtest-jars-ForClassLoaderC",
1453 srcs: ["ForClassLoaderC/**/*.java"],
1454 defaults: ["art-gtest-jars-defaults"],
1455}
1456
1457java_library {
1458 name: "art-gtest-jars-ForClassLoaderD",
1459 srcs: ["ForClassLoaderD/**/*.java"],
1460 defaults: ["art-gtest-jars-defaults"],
1461}
1462
1463java_library {
1464 name: "art-gtest-jars-ExceptionHandle",
1465 srcs: ["ExceptionHandle/**/*.java"],
1466 defaults: ["art-gtest-jars-defaults"],
1467}
1468
1469java_library {
1470 name: "art-gtest-jars-GetMethodSignature",
1471 srcs: ["GetMethodSignature/**/*.java"],
1472 defaults: ["art-gtest-jars-defaults"],
1473}
1474
1475java_library {
1476 name: "art-gtest-jars-HiddenApi",
1477 srcs: ["HiddenApi/**/*.java"],
1478 defaults: ["art-gtest-jars-defaults"],
1479}
1480
1481java_library {
1482 name: "art-gtest-jars-HiddenApiSignatures",
1483 srcs: ["HiddenApiSignatures/**/*.java"],
1484 defaults: ["art-gtest-jars-defaults"],
1485}
1486
1487java_library {
1488 name: "art-gtest-jars-HiddenApiStubs",
1489 srcs: ["HiddenApiStubs/**/*.java"],
1490 defaults: ["art-gtest-jars-defaults"],
1491}
1492
1493java_library {
1494 name: "art-gtest-jars-ImageLayoutA",
1495 srcs: ["ImageLayoutA/**/*.java"],
1496 defaults: ["art-gtest-jars-defaults"],
1497}
1498
1499java_library {
1500 name: "art-gtest-jars-ImageLayoutB",
1501 srcs: ["ImageLayoutB/**/*.java"],
1502 defaults: ["art-gtest-jars-defaults"],
1503}
1504
1505java_library {
1506 name: "art-gtest-jars-IMTA",
1507 srcs: ["IMTA/**/*.java"],
1508 defaults: ["art-gtest-jars-defaults"],
1509}
1510
1511java_library {
1512 name: "art-gtest-jars-IMTB",
1513 srcs: ["IMTB/**/*.java"],
1514 defaults: ["art-gtest-jars-defaults"],
1515}
1516
1517java_library {
1518 name: "art-gtest-jars-Instrumentation",
1519 srcs: ["Instrumentation/**/*.java"],
1520 defaults: ["art-gtest-jars-defaults"],
1521}
1522
1523java_library {
1524 name: "art-gtest-jars-Interfaces",
1525 srcs: ["Interfaces/**/*.java"],
1526 defaults: ["art-gtest-jars-defaults"],
1527}
1528
1529java_library {
1530 name: "art-gtest-jars-Lookup",
1531 srcs: ["Lookup/**/*.java"],
1532 defaults: ["art-gtest-jars-defaults"],
1533}
1534
1535java_library {
1536 name: "art-gtest-jars-Main",
1537 srcs: ["Main/**/*.java"],
1538 defaults: ["art-gtest-jars-defaults"],
1539}
1540
1541java_library {
1542 name: "art-gtest-jars-ManyMethods",
1543 srcs: ["ManyMethods/**/*.java"],
1544 defaults: ["art-gtest-jars-defaults"],
1545}
1546
1547java_library {
1548 name: "art-gtest-jars-MethodTypes",
1549 srcs: ["MethodTypes/**/*.java"],
1550 defaults: ["art-gtest-jars-defaults"],
1551}
1552
1553java_library {
1554 name: "art-gtest-jars-MyClass",
1555 srcs: ["MyClass/**/*.java"],
1556 defaults: ["art-gtest-jars-defaults"],
1557}
1558
1559java_library {
1560 name: "art-gtest-jars-MyClassNatives",
1561 srcs: ["MyClassNatives/**/*.java"],
1562 defaults: ["art-gtest-jars-defaults"],
1563}
1564
1565java_library {
1566 name: "art-gtest-jars-Nested",
1567 srcs: ["Nested/**/*.java"],
1568 defaults: ["art-gtest-jars-defaults"],
1569}
1570
1571java_library {
1572 name: "art-gtest-jars-NonStaticLeafMethods",
1573 srcs: ["NonStaticLeafMethods/**/*.java"],
1574 defaults: ["art-gtest-jars-defaults"],
1575}
1576
1577java_library {
1578 name: "art-gtest-jars-Packages",
1579 srcs: ["Packages/**/*.java"],
1580 defaults: ["art-gtest-jars-defaults"],
1581}
1582
1583java_library {
1584 name: "art-gtest-jars-ProtoCompare",
1585 srcs: ["ProtoCompare/**/*.java"],
1586 defaults: ["art-gtest-jars-defaults"],
1587}
1588
1589java_library {
1590 name: "art-gtest-jars-ProtoCompare2",
1591 srcs: ["ProtoCompare2/**/*.java"],
1592 defaults: ["art-gtest-jars-defaults"],
1593}
1594
1595java_library {
1596 name: "art-gtest-jars-StaticLeafMethods",
1597 srcs: ["StaticLeafMethods/**/*.java"],
1598 defaults: ["art-gtest-jars-defaults"],
1599}
1600
1601java_library {
1602 name: "art-gtest-jars-Statics",
1603 srcs: ["Statics/**/*.java"],
1604 defaults: ["art-gtest-jars-defaults"],
1605}
1606
1607java_library {
1608 name: "art-gtest-jars-StaticsFromCode",
1609 srcs: ["StaticsFromCode/**/*.java"],
1610 defaults: ["art-gtest-jars-defaults"],
1611}
1612
1613java_library {
1614 name: "art-gtest-jars-StringLiterals",
1615 srcs: ["StringLiterals/**/*.java"],
1616 defaults: ["art-gtest-jars-defaults"],
1617}
1618
1619java_library {
1620 name: "art-gtest-jars-Transaction",
1621 srcs: ["Transaction/**/*.java"],
1622 defaults: ["art-gtest-jars-defaults"],
1623}
1624
1625java_library {
1626 name: "art-gtest-jars-XandY",
1627 srcs: ["XandY/**/*.java"],
1628 defaults: ["art-gtest-jars-defaults"],
1629}
1630
Calin Juravle33787682019-07-26 14:27:18 -07001631java_library {
1632 name: "art-gtest-jars-Dex2oatVdexTestDex",
1633 srcs: ["Dex2oatVdexTestDex/**/*.java"],
1634 defaults: ["art-gtest-jars-defaults"],
1635}
1636
David Srbecky8c8f1482020-02-05 20:17:10 +00001637// The following cases are non-trivial.
1638
1639// Uncompress classes.dex files in the jar file.
1640genrule_defaults {
1641 name: "art-gtest-jars-uncompress-defaults",
1642 cmd: "$(location zip2zip) -i $(in) -o $(out) -0 'classes*.dex'",
1643 tools: ["zip2zip"],
1644}
1645
1646// Ensure the files are at least 4 byte aligned.
1647genrule_defaults {
1648 name: "art-gtest-jars-align-defaults",
1649 cmd: "$(location zipalign) 4 $(in) $(out)",
1650 tools: ["zipalign"],
1651}
1652
1653// Assemble jar file from smali source.
1654genrule_defaults {
1655 name: "art-gtest-jars-smali-defaults",
1656 cmd: "$(location smali) assemble --output $(out) $(in)",
1657 tools: ["smali"],
1658}
1659
1660// A copy of Main with the classes.dex stripped for the oat file assistant tests.
1661genrule {
1662 name: "art-gtest-jars-MainStripped",
1663 srcs: [":art-gtest-jars-Main"],
1664 cmd: "$(location zip2zip) -i $(in) -o $(out) -x 'classes*.dex'",
1665 out: ["art-gtest-jars-MainStripped.jar"],
1666 tools: ["zip2zip"],
1667}
1668
1669// An empty.dex that is empty and uncompressed for the dex2oat tests.
1670genrule {
1671 name: "art-gtest-jars-MainEmptyUncompressed",
1672 srcs: ["Main/empty.dex"],
1673 cmd: "$(location soong_zip) -j -L 0 -o $(out) -f $(in)",
1674 out: ["art-gtest-jars-MainEmptyUncompressed.jar"],
1675 tools: ["soong_zip"],
1676}
1677
1678// An empty.dex that is empty and uncompressed and aligned for the dex2oat tests.
1679genrule {
1680 name: "art-gtest-jars-MainEmptyUncompressedAligned",
1681 defaults: ["art-gtest-jars-align-defaults"],
1682 srcs: [":art-gtest-jars-MainEmptyUncompressed"],
1683 out: ["art-gtest-jars-MainEmptyUncompressedAligned.jar"],
1684}
1685
1686// A copy of Main with the classes.dex uncompressed for the dex2oat tests.
1687genrule {
1688 name: "art-gtest-jars-MainUncompressed",
1689 defaults: ["art-gtest-jars-uncompress-defaults"],
1690 srcs: [":art-gtest-jars-Main"],
1691 out: ["art-gtest-jars-MainUncompressed.jar"],
1692}
1693
1694// A copy of Main with the classes.dex uncompressed and aligned for the dex2oat tests.
1695genrule {
1696 name: "art-gtest-jars-MainUncompressedAligned",
1697 defaults: ["art-gtest-jars-align-defaults"],
1698 srcs: [":art-gtest-jars-MainUncompressed"],
1699 out: ["art-gtest-jars-MainUncompressedAligned.jar"],
1700}
1701
1702java_library {
1703 name: "art-gtest-jars-MultiDex",
1704 srcs: ["MultiDex/**/*.java"],
1705 defaults: ["art-gtest-jars-defaults"],
1706 min_sdk_version: "19",
1707 dxflags: [
1708 "--main-dex-list",
1709 "art/test/MultiDex/main.list",
1710 ],
1711}
1712
1713// A copy of MultiDex with the classes.dex uncompressed for the OatFile tests.
1714genrule {
1715 name: "art-gtest-jars-MultiDexUncompressed",
1716 defaults: ["art-gtest-jars-uncompress-defaults"],
1717 srcs: [":art-gtest-jars-MultiDex"],
1718 out: ["art-gtest-jars-MultiDexUncompressed.jar"],
1719}
1720
1721// A copy of MultiDex with the classes.dex uncompressed and aligned for the OatFile tests.
1722genrule {
1723 name: "art-gtest-jars-MultiDexUncompressedAligned",
1724 defaults: ["art-gtest-jars-align-defaults"],
1725 srcs: [":art-gtest-jars-MultiDexUncompressed"],
1726 out: ["art-gtest-jars-MultiDexUncompressedAligned.jar"],
1727}
1728
1729java_library {
1730 name: "art-gtest-jars-MultiDexModifiedSecondary",
1731 srcs: ["MultiDexModifiedSecondary/**/*.java"],
1732 defaults: ["art-gtest-jars-defaults"],
1733 min_sdk_version: "19",
1734 dxflags: [
1735 "--main-dex-list",
1736 "art/test/MultiDexModifiedSecondary/main.list",
1737 ],
1738}
1739
1740java_library {
1741 name: "art-gtest-jars-ProfileTestMultiDex",
1742 srcs: ["ProfileTestMultiDex/**/*.java"],
1743 defaults: ["art-gtest-jars-defaults"],
1744 min_sdk_version: "19",
1745 dxflags: [
1746 "--main-dex-list",
1747 "art/test/ProfileTestMultiDex/main.list",
1748 ],
1749}
1750
David Srbeckyedda3ca2020-07-08 00:41:08 +01001751// Smali compiled files.
1752// Since they are not compiled by javac, we use different extension for them.
1753// The .jar extension for them would cause subtle failures in the test infra,
1754// which finds and opens all jar files and expects them to be valid zip files.
1755
David Srbecky8c8f1482020-02-05 20:17:10 +00001756genrule {
1757 name: "art-gtest-jars-VerifierDeps",
1758 defaults: ["art-gtest-jars-smali-defaults"],
1759 srcs: ["VerifierDeps/**/*.smali"],
David Srbeckyedda3ca2020-07-08 00:41:08 +01001760 out: ["art-gtest-jars-VerifierDeps.dex"],
David Srbecky8c8f1482020-02-05 20:17:10 +00001761}
1762
1763genrule {
1764 name: "art-gtest-jars-VerifierDepsMulti",
1765 defaults: ["art-gtest-jars-smali-defaults"],
1766 srcs: ["VerifierDepsMulti/**/*.smali"],
David Srbeckyedda3ca2020-07-08 00:41:08 +01001767 out: ["art-gtest-jars-VerifierDepsMulti.dex"],
David Srbecky8c8f1482020-02-05 20:17:10 +00001768}
1769
1770genrule {
1771 name: "art-gtest-jars-VerifySoftFailDuringClinit",
1772 defaults: ["art-gtest-jars-smali-defaults"],
1773 srcs: ["VerifySoftFailDuringClinit/**/*.smali"],
David Srbeckyedda3ca2020-07-08 00:41:08 +01001774 out: ["art-gtest-jars-VerifySoftFailDuringClinit.dex"],
David Srbecky8c8f1482020-02-05 20:17:10 +00001775}
David Srbecky4a88a5a2020-05-05 16:21:57 +01001776
1777genrule {
1778 name: "art-gtest-jars-LinkageTest",
1779 defaults: ["art-gtest-jars-smali-defaults"],
1780 srcs: ["LinkageTest/*.smali"],
David Srbeckyedda3ca2020-07-08 00:41:08 +01001781 out: ["art-gtest-jars-LinkageTest.dex"],
David Srbecky4a88a5a2020-05-05 16:21:57 +01001782}
Calin Juravle33787682019-07-26 14:27:18 -07001783
1784genrule {
1785 name: "art-gtest-jars-Dex2oatVdexPublicSdkDex",
1786 defaults: ["art-gtest-jars-smali-defaults"],
1787 srcs: ["Dex2oatVdexPublicSdkDex/*.smali"],
1788 out: ["art-gtest-jars-Dex2oatVdexPublicSdkDex.dex"],
1789}