blob: 43f1631eabc6679cdfcc613653b6a43baa659048 [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
Colin Cross6b22aa52016-09-12 14:35:39 -070019art_cc_defaults {
Colin Cross6e95dd52016-09-12 15:37:10 -070020 name: "art_test_defaults",
21 host_supported: true,
Colin Crossafd3c9e2016-09-16 13:47:21 -070022 target: {
23 android_arm: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010024 relative_install_path: "art/arm",
Colin Crossafd3c9e2016-09-16 13:47:21 -070025 },
26 android_arm64: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010027 relative_install_path: "art/arm64",
Colin Crossafd3c9e2016-09-16 13:47:21 -070028 },
Colin Crossafd3c9e2016-09-16 13:47:21 -070029 android_x86: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010030 relative_install_path: "art/x86",
Colin Crossafd3c9e2016-09-16 13:47:21 -070031 },
32 android_x86_64: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010033 relative_install_path: "art/x86_64",
Colin Crossafd3c9e2016-09-16 13:47:21 -070034 },
Colin Crossfd5428b2016-09-19 10:40:05 -070035 darwin: {
36 enabled: false,
37 },
Colin Crossafd3c9e2016-09-16 13:47:21 -070038 },
Dan Albertb5d36de2016-09-21 14:56:51 -070039 cflags: [
40 "-Wno-frame-larger-than=",
41 ],
Jiyong Park066dd9022019-12-19 02:11:59 +000042 apex_available: [
43 "com.android.art.debug",
44 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -070045}
46
47art_cc_defaults {
48 name: "art_gtest_defaults",
Christopher Ferrisfc5e2ef2020-05-08 00:08:42 +000049 test_per_src: true,
Colin Cross6e95dd52016-09-12 15:37:10 -070050 // These really are gtests, but the gtest library comes from libart-gtest.so
51 gtest: false,
52 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070053 "art_test_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -070054 "art_debug_defaults",
55 "art_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070056 ],
57
58 shared_libs: [
59 "libartd",
60 "libartd-disassembler",
Roland Levillain12dd9ae2018-11-06 13:32:06 +000061 "libvixld",
Colin Cross6e95dd52016-09-12 15:37:10 -070062 "libart-gtest",
David Sehrfcbe15c2018-02-15 09:41:13 -080063 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -070064 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -070065 "libartbased",
Colin Cross6e95dd52016-09-12 15:37:10 -070066
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070067 "libbase",
Colin Cross6e95dd52016-09-12 15:37:10 -070068 "libnativehelper",
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000069 "libz",
Colin Cross6e95dd52016-09-12 15:37:10 -070070 ],
71 whole_static_libs: [
72 "libsigchain",
73 ],
Colin Cross6e95dd52016-09-12 15:37:10 -070074
75 target: {
Dan Willemsen057f1e42017-10-03 14:11:48 -070076 linux: {
Colin Cross6e95dd52016-09-12 15:37:10 -070077 ldflags: [
78 // Allow jni_compiler_test to find Java_MyClassNatives_bar
79 // within itself using dlopen(NULL, ...).
80 // Mac OS linker doesn't understand --export-dynamic.
81 "-Wl,--export-dynamic",
82 "-Wl,-u,Java_MyClassNatives_bar",
83 "-Wl,-u,Java_MyClassNatives_sbar",
84 ],
Colin Cross6e95dd52016-09-12 15:37:10 -070085 cflags: [
86 // gtest issue
87 "-Wno-used-but-marked-unused",
88 "-Wno-deprecated",
89 "-Wno-missing-noreturn",
90 ],
91 },
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000092 host: {
93 shared_libs: [
94 "libziparchive",
95 ],
96 },
Dan Willemsen057f1e42017-10-03 14:11:48 -070097 android: {
Colin Cross6e95dd52016-09-12 15:37:10 -070098 shared_libs: [
Dimitry Ivanov9642b1b2016-09-28 02:44:00 -070099 "liblog",
Colin Cross6e95dd52016-09-12 15:37:10 -0700100 ],
Colin Cross6e95dd52016-09-12 15:37:10 -0700101 },
Colin Cross6e95dd52016-09-12 15:37:10 -0700102 },
103}
104
105art_cc_defaults {
Colin Cross6b22aa52016-09-12 14:35:39 -0700106 name: "libart-gtest-defaults",
107 host_supported: true,
108 defaults: [
Colin Cross6b22aa52016-09-12 14:35:39 -0700109 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700110 "art_defaults",
Colin Cross6b22aa52016-09-12 14:35:39 -0700111 ],
112 shared_libs: [
113 "libartd",
114 "libartd-compiler",
David Sehrfcbe15c2018-02-15 09:41:13 -0800115 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700116 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700117 "libartbased",
Colin Cross6b22aa52016-09-12 14:35:39 -0700118 ],
119 static_libs: [
Christopher Ferrisfc5e2ef2020-05-08 00:08:42 +0000120 "libgtest",
Colin Cross6b22aa52016-09-12 14:35:39 -0700121 ],
122 target: {
123 android32: {
Colin Crossc5c71872016-09-15 21:07:29 -0700124 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest/art"],
Colin Cross6b22aa52016-09-12 14:35:39 -0700125 },
126 android64: {
127 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest64/art"],
128 },
Dan Willemsen057f1e42017-10-03 14:11:48 -0700129 linux: {
Colin Cross6b22aa52016-09-12 14:35:39 -0700130 cflags: [
131 // gtest issue
132 "-Wno-used-but-marked-unused",
133 "-Wno-deprecated",
134 "-Wno-missing-noreturn",
135 ],
136 },
Colin Cross942036f2016-09-15 16:24:51 -0700137 darwin: {
138 enabled: false,
139 },
Colin Cross6b22aa52016-09-12 14:35:39 -0700140 },
Jiyong Park066dd9022019-12-19 02:11:59 +0000141 apex_available: [
142 "com.android.art.debug",
143 ],
Colin Cross6b22aa52016-09-12 14:35:39 -0700144}
145
146art_cc_library {
147 name: "libart-gtest",
148 host_supported: true,
149 whole_static_libs: [
150 "libart-compiler-gtest",
151 "libart-runtime-gtest",
David Sehrd5f8de82018-04-27 14:12:03 -0700152 "libartbase-art-gtest",
Christopher Ferrisfc5e2ef2020-05-08 00:08:42 +0000153 "libgtest",
Colin Cross6b22aa52016-09-12 14:35:39 -0700154 ],
155 shared_libs: [
156 "libartd",
157 "libartd-compiler",
David Sehrfcbe15c2018-02-15 09:41:13 -0800158 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700159 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700160 "libartbased",
Colin Crossf0af9062016-10-21 10:50:31 -0700161 "libbase",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700162 "libbacktrace",
Colin Cross6b22aa52016-09-12 14:35:39 -0700163 ],
164 target: {
Colin Cross942036f2016-09-15 16:24:51 -0700165 darwin: {
166 enabled: false,
167 },
Colin Cross6b22aa52016-09-12 14:35:39 -0700168 },
Jiyong Park066dd9022019-12-19 02:11:59 +0000169 apex_available: [
170 "com.android.art.debug",
171 ],
Colin Cross6b22aa52016-09-12 14:35:39 -0700172}
Colin Crossafd3c9e2016-09-16 13:47:21 -0700173
Roland Levillain962a1102019-11-01 16:20:33 +0000174// ART run-tests.
175
176art_cc_test_library {
177 name: "libarttest",
178 defaults: ["libarttest-defaults"],
179 shared_libs: [
180 "libart",
181 "libdexfile",
182 "libprofile",
183 "libartbase",
184 ],
185}
186
187art_cc_test_library {
188 name: "libarttestd",
189 defaults: [
190 "art_debug_defaults",
191 "libarttest-defaults",
192 ],
193 shared_libs: [
194 "libartd",
195 "libdexfiled",
196 "libprofiled",
197 "libartbased",
198 ],
199}
200
201art_cc_defaults {
202 name: "libnativebridgetest-defaults",
203 defaults: [
204 "art_test_defaults",
205 "art_defaults",
206 ],
207 header_libs: ["libnativebridge-headers"],
208 srcs: ["115-native-bridge/nativebridge.cc"],
209}
210
211art_cc_test_library {
212 name: "libnativebridgetest",
213 shared_libs: ["libart"],
214 defaults: [
215 "libnativebridgetest-defaults",
216 ],
217}
218
219art_cc_test_library {
220 name: "libnativebridgetestd",
221 shared_libs: ["libartd"],
222 defaults: [
223 "libnativebridgetest-defaults",
224 "art_debug_defaults",
225 ],
226}
227
228// ART JVMTI run-tests.
229
Colin Crossafd3c9e2016-09-16 13:47:21 -0700230cc_defaults {
231 name: "libartagent-defaults",
232 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700233 "art_test_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700234 "art_defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700235 ],
236 shared_libs: [
237 "libbacktrace",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700238 "libbase",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700239 "libnativehelper",
240 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700241}
242
243art_cc_test_library {
244 name: "libartagent",
245 srcs: ["900-hello-plugin/load_unload.cc"],
246 defaults: ["libartagent-defaults"],
Andreas Gampe9462a562018-02-20 09:35:21 -0800247 shared_libs: [
248 "libart",
249 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700250 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700251 "libartbase",
Andreas Gampe9462a562018-02-20 09:35:21 -0800252 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700253}
254
255art_cc_test_library {
256 name: "libartagentd",
257 srcs: ["900-hello-plugin/load_unload.cc"],
258 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700259 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700260 "libartagent-defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700261 ],
Andreas Gampe9462a562018-02-20 09:35:21 -0800262 shared_libs: [
263 "libartd",
264 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700265 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700266 "libartbased",
Andreas Gampe9462a562018-02-20 09:35:21 -0800267 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700268}
269
Andreas Gampee54d9922016-10-11 19:55:37 -0700270art_cc_defaults {
Dan Willemsen2ca27802017-09-27 14:57:43 -0700271 name: "libtiagent-base-defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800272 defaults: [
273 "art_test_defaults",
274 "art_defaults",
275 // Not derived from libartagent-defaults for NDK.
276 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700277 srcs: [
Andreas Gampe027444b2017-03-31 12:49:07 -0700278 // These are the ART-independent parts.
Andreas Gampe46651672017-04-07 09:00:04 -0700279 "ti-agent/agent_common.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700280 "ti-agent/agent_startup.cc",
Andreas Gampe3f46c962017-03-30 10:26:59 -0700281 "ti-agent/jni_binder.cc",
282 "ti-agent/jvmti_helper.cc",
283 "ti-agent/test_env.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700284 "ti-agent/breakpoint_helper.cc",
Alex Light78d63412017-04-14 16:20:53 -0700285 "ti-agent/common_helper.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700286 "ti-agent/early_return_helper.cc",
Alex Lighte814f9d2017-07-31 16:14:39 -0700287 "ti-agent/frame_pop_helper.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700288 "ti-agent/locals_helper.cc",
Alex Lightce568642017-09-05 16:54:25 -0700289 "ti-agent/monitors_helper.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700290 "ti-agent/redefinition_helper.cc",
Alex Light88fd7202017-06-30 08:31:59 -0700291 "ti-agent/suspension_helper.cc",
Alex Lightb4e65072019-04-25 15:10:32 -0700292 "ti-agent/suspend_event_helper.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700293 "ti-agent/stack_trace_helper.cc",
Alex Light54d39dc2017-09-25 17:00:16 -0700294 "ti-agent/threads_helper.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700295 "ti-agent/trace_helper.cc",
Alex Light9fb1ab12017-09-05 09:32:49 -0700296 "ti-agent/exceptions_helper.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700297 // This is the list of non-special OnLoad things and excludes BCI and anything that depends
298 // on ART internals.
Andreas Gampe6dee92e2016-09-12 19:58:13 -0700299 "903-hello-tagging/tagging.cc",
Andreas Gampe27fa96c2016-10-07 15:05:24 -0700300 "904-object-allocation/tracking.cc",
Andreas Gampecc13b222016-10-10 19:09:09 -0700301 "905-object-free/tracking_free.cc",
Andreas Gampee54d9922016-10-11 19:55:37 -0700302 "906-iterate-heap/iterate_heap.cc",
Andreas Gampeaa8b60c2016-10-12 12:51:25 -0700303 "907-get-loaded-classes/get_loaded_classes.cc",
Andreas Gampe9b8c5882016-10-21 15:27:46 -0700304 "908-gc-start-finish/gc_callbacks.cc",
Andreas Gampe3c252f02016-10-27 18:25:17 -0700305 "910-methods/methods.cc",
Andreas Gampeb5eb94a2016-10-27 19:23:09 -0700306 "911-get-stack-trace/stack_trace.cc",
Andreas Gamped5f2ccc2017-04-19 13:37:48 -0700307 "912-classes/classes.cc",
Andreas Gampee0f8ed92017-04-13 16:52:23 -0700308 "913-heaps/heaps.cc",
Andreas Gampeab2f0d02017-01-05 17:23:45 -0800309 "918-fields/fields.cc",
Andreas Gampe50a4e492017-01-06 18:00:20 -0800310 "920-objects/objects.cc",
Andreas Gampe1bdaf732017-01-09 19:21:06 -0800311 "922-properties/properties.cc",
Andreas Gampe319dbe82017-01-09 16:42:21 -0800312 "923-monitors/monitors.cc",
Andreas Gampeaf13ab92017-01-11 20:57:40 -0800313 "924-threads/threads.cc",
Andreas Gamped18d9e22017-01-16 16:08:45 +0000314 "925-threadgroups/threadgroups.cc",
Andreas Gampe35bcf812017-01-13 16:24:17 -0800315 "927-timers/timers.cc",
Andreas Gampe6f8e4f02017-01-16 18:18:14 -0800316 "928-jni-table/jni_table.cc",
Andreas Gampece7732b2017-01-17 15:50:26 -0800317 "929-search/search.cc",
Andreas Gampe732b0ac2017-01-18 15:23:39 -0800318 "931-agent-thread/agent_thread.cc",
Andreas Gampeeb0cea12017-01-23 08:50:04 -0800319 "933-misc-events/misc_events.cc",
Alex Light78d63412017-04-14 16:20:53 -0700320 "945-obsolete-native/obsolete_native.cc",
Alex Light8fd08562018-02-13 10:09:03 -0800321 "983-source-transform-verify/source_transform.cc",
Alex Light78d63412017-04-14 16:20:53 -0700322 "984-obsolete-invoke/obsolete_invoke.cc",
Alex Lightd78ddec2017-04-18 15:20:38 -0700323 "986-native-method-bind/native_bind.cc",
Alex Light65af20b2017-04-20 09:15:08 -0700324 "987-agent-bind/agent_bind.cc",
Alex Lighte85595e2018-08-17 15:54:34 -0700325 "988-method-trace/trace_fib.cc",
Alex Lightb7edcda2017-04-27 13:20:31 -0700326 "989-method-trace-throw/method_trace.cc",
Alex Light7c958492017-06-16 08:59:19 -0700327 "991-field-trace-2/field_trace.cc",
Alex Light6fa7b812017-06-16 09:04:29 -0700328 "992-source-data/source_file.cc",
Alex Lightc38c3692017-06-27 15:45:14 -0700329 "993-breakpoints/breakpoints.cc",
330 "996-breakpoint-obsolete/obsolete_breakpoints.cc",
Alex Light8ddfd9f2017-07-05 16:33:46 -0700331 "1900-track-alloc/alloc.cc",
Alex Light4c174282017-07-05 10:18:18 -0700332 "1901-get-bytecodes/bytecodes.cc",
Alex Light88fd7202017-06-30 08:31:59 -0700333 "1905-suspend-native/native_suspend.cc",
334 "1908-suspend-native-resume-self/native_suspend_resume.cc",
Alex Light092a4042017-07-12 08:46:44 -0700335 "1909-per-agent-tls/agent_tls.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700336 "1914-get-local-instance/local_instance.cc",
Alex Light1d8a9742017-08-17 11:12:06 -0700337 "1919-vminit-thread-start-timing/vminit.cc",
Alex Light23aa7482017-08-16 10:01:13 -0700338 "1920-suspend-native-monitor/native_suspend_monitor.cc",
339 "1921-suspend-native-recursive-monitor/native_suspend_recursive_monitor.cc",
Alex Light88e1ddd2017-08-21 13:09:55 -0700340 "1922-owned-monitors-info/owned_monitors.cc",
Alex Lighte814f9d2017-07-31 16:14:39 -0700341 "1924-frame-pop-toggle/frame_pop_toggle.cc",
342 "1926-missed-frame-pop/frame_pop_missed.cc",
Alex Lightce568642017-09-05 16:54:25 -0700343 "1927-exception-event/exception_event.cc",
344 "1930-monitor-info/monitor.cc",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700345 "1932-monitor-events-misc/monitor_misc.cc",
Alex Light54d39dc2017-09-25 17:00:16 -0700346 "1934-jvmti-signal-thread/signal_threads.cc",
Alex Light3dea2122017-10-11 15:56:48 +0000347 "1939-proxy-frames/local_instance.cc",
Alex Lightb284f8d2017-11-21 00:00:48 +0000348 "1941-dispose-stress/dispose_stress.cc",
Alex Light4d77daf2018-01-04 11:51:14 -0800349 "1942-suspend-raw-monitor-exit/native_suspend_monitor.cc",
350 "1943-suspend-raw-monitor-wait/native_suspend_monitor.cc",
Alex Lightc7588752018-02-20 11:15:54 -0800351 "1946-list-descriptors/descriptors.cc",
Alex Light9e7859c2018-04-05 13:49:43 -0700352 "1950-unprepared-transform/unprepared_transform.cc",
Alex Lightc98f83e2018-07-26 08:28:36 -0700353 "1951-monitor-enter-no-suspend/raw_monitor.cc",
Alex Light0aa7a5a2018-10-10 15:58:14 +0000354 "1953-pop-frame/pop_frame.cc",
Alex Lightae45cbb2018-10-18 15:49:56 -0700355 "1957-error-ext/lasterror.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700356 // TODO Renumber
Alex Light40607862019-05-06 18:16:24 +0000357 "1962-multi-thread-events/multi_thread_events.cc",
Alex Light639e73b2019-05-17 21:44:36 +0000358 "1963-add-to-dex-classloader-in-memory/add_to_loader.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700359 "1968-force-early-return/force_early_return.cc",
360 "1969-force-early-return-void/force_early_return_void.cc",
361 "1970-force-early-return-long/force_early_return_long.cc",
Alex Lightc14ec8f2019-07-18 16:08:41 -0700362 "1974-resize-array/resize_array.cc",
Nicolas Geoffray4ac0e152019-09-18 06:14:50 +0000363 "1975-hello-structural-transformation/structural_transform.cc",
364 "1976-hello-structural-static-methods/structural_transform_methods.cc",
Alex Light80777ed2019-12-17 17:07:33 +0000365 "2005-pause-all-redefine-multithreaded/pause-all.cc",
Alex Light72325b62020-01-09 17:49:45 -0800366 "2009-structural-local-ref/local-ref.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700367 ],
Andreas Gampecb5125d2018-02-20 09:36:54 -0800368 // Use NDK-compatible headers for ctstiagent.
Alex Light8c2b9292017-11-09 13:21:01 -0800369 header_libs: [
Alex Light8c2b9292017-11-09 13:21:01 -0800370 "libopenjdkjvmti_headers",
371 ],
Paul Duffin4345aac2019-07-17 15:51:54 +0100372 local_include_dirs: ["ti-agent"],
Andreas Gampee54d9922016-10-11 19:55:37 -0700373}
374
Andreas Gampe027444b2017-03-31 12:49:07 -0700375art_cc_defaults {
376 name: "libtiagent-defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800377 defaults: [
378 "libtiagent-base-defaults",
379 "libartagent-defaults",
380 ],
Andreas Gampe027444b2017-03-31 12:49:07 -0700381 srcs: [
382 // This is to get the IsInterpreted native method.
383 "common/stack_inspect.cc",
384 "common/runtime_state.cc",
Alex Light78d63412017-04-14 16:20:53 -0700385 "ti-agent/common_load.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700386 // This includes the remaining test functions. We should try to refactor things to
387 // make this list smaller.
Andreas Gampe027444b2017-03-31 12:49:07 -0700388 "901-hello-ti-agent/basics.cc",
389 "909-attach-agent/attach.cc",
Andreas Gamped5f2ccc2017-04-19 13:37:48 -0700390 "912-classes/classes_art.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700391 "936-search-onload/search_onload.cc",
Alex Lightfbee3982018-05-24 10:28:46 -0700392 "980-redefine-object/redef_object.cc",
Andreas Gampe59484b92018-02-14 14:00:46 -0800393 "983-source-transform-verify/source_transform_art.cc",
Alex Light8c2b9292017-11-09 13:21:01 -0800394 "1940-ddms-ext/ddm_ext.cc",
Alex Light0aa7a5a2018-10-10 15:58:14 +0000395 // "1952-pop-frame-jit/pop_frame.cc",
Alex Lightfc81d802018-12-07 13:39:05 -0800396 "1959-redefine-object-instrument/fake_redef_object.cc",
Alex Lighte7a33542019-04-10 14:22:49 -0700397 "1960-obsolete-jit-multithread-native/native_say_hi.cc",
Alex Light639e73b2019-05-17 21:44:36 +0000398 "1964-add-to-dex-classloader-file/add_to_loader.cc",
Alex Light098e7a62019-05-21 16:57:10 -0700399 "1963-add-to-dex-classloader-in-memory/check_memfd_create.cc",
Alex Light3f0dca12020-01-27 17:20:28 -0800400 "2012-structural-redefinition-failures-jni-id/set-jni-id-used.cc",
Alex Light280e6c32020-03-03 13:52:07 -0800401 "2031-zygote-compiled-frame-deopt/native-wait.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700402 ],
Alex Lightfbee3982018-05-24 10:28:46 -0700403 static_libs: [
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000404 "libz",
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800405 "slicer_no_rtti",
Alex Lightfbee3982018-05-24 10:28:46 -0700406 ],
Andreas Gampe027444b2017-03-31 12:49:07 -0700407}
408
Andreas Gampee54d9922016-10-11 19:55:37 -0700409art_cc_test_library {
410 name: "libtiagent",
411 defaults: ["libtiagent-defaults"],
David Sehrfcbe15c2018-02-15 09:41:13 -0800412 shared_libs: [
413 "libart",
414 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700415 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700416 "libartbase",
David Sehrfcbe15c2018-02-15 09:41:13 -0800417 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700418}
419
420art_cc_test_library {
421 name: "libtiagentd",
422 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700423 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700424 "libtiagent-defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700425 ],
David Sehrfcbe15c2018-02-15 09:41:13 -0800426 shared_libs: [
427 "libartd",
428 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700429 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700430 "libartbased",
David Sehrfcbe15c2018-02-15 09:41:13 -0800431 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700432}
433
Andreas Gampe59484b92018-02-14 14:00:46 -0800434cc_library_static {
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800435 name: "libctstiagent",
436 defaults: ["libtiagent-base-defaults"],
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100437 visibility: [
438 "//cts/hostsidetests/jvmti:__subpackages__",
439 ],
Andreas Gampe59484b92018-02-14 14:00:46 -0800440 host_supported: false,
441 srcs: [
442 "983-source-transform-verify/source_transform_slicer.cc",
443 ],
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800444 whole_static_libs: [
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800445 "slicer_ndk_no_rtti",
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800446 ],
447 static_libs: [
Andreas Gampecb5125d2018-02-20 09:36:54 -0800448 "libbase_ndk",
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800449 ],
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000450 shared_libs: [
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700451 "libz", // for slicer (using adler32).
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000452 ],
Andreas Gampecb5125d2018-02-20 09:36:54 -0800453 sdk_version: "current",
454 stl: "c++_static",
Paul Duffin4345aac2019-07-17 15:51:54 +0100455 header_libs: [
456 "jni_headers",
Alex Light8fd08562018-02-13 10:09:03 -0800457 // This is needed to resolve the base/ header file in libdexfile. Unfortunately there are
458 // many problems with how we export headers that are making doing this the 'right' way
459 // difficult.
460 // TODO: move those headers to art/ rather than under runtime.
Paul Duffin4345aac2019-07-17 15:51:54 +0100461 "libart_runtime_headers_ndk",
Alex Light8fd08562018-02-13 10:09:03 -0800462 ],
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800463 export_include_dirs: ["ti-agent"],
464}
465
Alex Light8f2c6d42017-04-10 16:27:35 -0700466art_cc_defaults {
Alex Light88659142018-05-15 10:53:06 -0700467 name: "libtistress-srcs",
Alex Light8f2c6d42017-04-10 16:27:35 -0700468 defaults: ["libartagent-defaults"],
469 srcs: [
470 "ti-stress/stress.cc",
471 ],
Alex Light88659142018-05-15 10:53:06 -0700472 header_libs: ["libopenjdkjvmti_headers"],
473}
474
475art_cc_defaults {
476 name: "libtistress-defaults",
477 defaults: ["libtistress-srcs"],
Alex Light8f2c6d42017-04-10 16:27:35 -0700478 shared_libs: [
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800479 "slicer_no_rtti",
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000480 "libz", // for slicer (using adler32).
Alex Light8f2c6d42017-04-10 16:27:35 -0700481 ],
Alex Light8f2c6d42017-04-10 16:27:35 -0700482}
483
484art_cc_test_library {
485 name: "libtistress",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700486 defaults: ["libtistress-defaults"],
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000487 shared_libs: [
488 "libartbase",
489 "libz",
490 ],
Alex Light8f2c6d42017-04-10 16:27:35 -0700491}
492
493art_cc_test_library {
494 name: "libtistressd",
495 defaults: [
Alex Light8f2c6d42017-04-10 16:27:35 -0700496 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700497 "libtistress-defaults",
Alex Light8f2c6d42017-04-10 16:27:35 -0700498 ],
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000499 shared_libs: [
500 "libartbased",
501 "libz",
502 ],
Alex Light88659142018-05-15 10:53:06 -0700503}
504
505art_cc_defaults {
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000506 name: "libtistress-shared-defaults",
Andreas Gampeec5ed062018-01-26 16:20:02 -0800507 defaults: [
508 "libtistress-srcs",
Alex Light88659142018-05-15 10:53:06 -0700509 ],
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800510 static_libs: ["slicer_no_rtti"],
Alex Light88659142018-05-15 10:53:06 -0700511}
512
513art_cc_test_library {
514 name: "libtistresss",
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000515 defaults: ["libtistress-shared-defaults"],
516 shared_libs: [
517 "libartbase",
518 "libz",
519 ],
Alex Light88659142018-05-15 10:53:06 -0700520}
521
522art_cc_test_library {
523 name: "libtistressds",
524 defaults: [
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000525 "libtistress-shared-defaults",
Alex Light88659142018-05-15 10:53:06 -0700526 ],
Vladimir Markoe8a83af2020-01-29 10:14:44 +0000527 shared_libs: [
528 "libartbased",
529 "libz",
530 ],
Alex Light8f2c6d42017-04-10 16:27:35 -0700531}
532
Colin Crossafd3c9e2016-09-16 13:47:21 -0700533cc_defaults {
534 name: "libarttest-defaults",
535 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700536 "art_test_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700537 "art_defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700538 ],
539 srcs: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700540 "004-JniTest/jni_test.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700541 "004-ReferenceMap/stack_walk_refmap_jni.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000542 "004-SignalTest/signaltest.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700543 "004-StackWalk/stack_walk_jni.cc",
544 "004-ThreadStress/thread_stress.cc",
545 "004-UnsafeTest/unsafe_test.cc",
546 "044-proxy/native_proxy.cc",
547 "051-thread/thread_test.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700548 "1337-gc-coverage/gc_coverage.cc",
549 "136-daemon-jni-shutdown/daemon_jni_shutdown.cc",
550 "137-cfi/cfi.cc",
551 "139-register-natives/regnative.cc",
552 "141-class-unload/jni_unload.cc",
553 "148-multithread-gc-annotations/gc_coverage.cc",
554 "149-suspend-all-stress/suspend_all.cc",
Mathieu Chartier72a32892017-01-24 09:40:56 -0800555 "154-gc-loop/heap_interface.cc",
Andreas Gampeaaf0d382017-11-27 14:10:21 -0800556 "167-visit-locks/visit_locks.cc",
Andreas Gampe56776012018-01-26 17:40:55 -0800557 "169-threadgroup-jni/jni_daemon_thread.cc",
Mathieu Chartieradc90862018-05-11 13:03:06 -0700558 "172-app-image-twice/debug_print_class.cc",
Vladimir Marko422a9eb2019-08-01 12:54:07 +0100559 "177-visibly-initialized-deadlock/visibly_initialized.cc",
Vladimir Marko7dac8642019-11-06 17:09:30 +0000560 "178-app-image-native-method/native_methods.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000561 "1945-proxy-method-arguments/get_args.cc",
Andreas Gampeaaf0d382017-11-27 14:10:21 -0800562 "203-multi-checkpoint/multi_checkpoint.cc",
Alex Lightf4ed7e82018-01-17 11:52:36 -0800563 "305-other-fault-handler/fault_handler.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700564 "454-get-vreg/get_vreg_jni.cc",
565 "457-regs/regs_jni.cc",
566 "461-get-reference-vreg/get_reference_vreg_jni.cc",
567 "466-get-live-vreg/get_live_vreg_jni.cc",
568 "497-inlining-and-class-loader/clear_dex_cache.cc",
569 "543-env-long-ref/env_long_ref.cc",
570 "566-polymorphic-inlining/polymorphic_inline.cc",
571 "570-checker-osr/osr.cc",
572 "595-profile-saving/profile-saving.cc",
573 "596-app-images/app_images.cc",
Hans Boehm6fe97e02016-05-04 18:35:57 -0700574 "596-monitor-inflation/monitor_inflation.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700575 "597-deopt-new-string/deopt.cc",
Alexey Grebenkinbe4c2bd2018-02-01 19:09:59 +0300576 "616-cha-unloading/cha_unload.cc",
Vladimir Markoc5798bf2016-12-09 10:20:54 +0000577 "626-const-class-linking/clear_dex_cache_types.cc",
Nicolas Geoffray13a797b2017-03-15 16:41:31 +0000578 "642-fp-callees/fp_callees.cc",
Vladimir Marko5fdd7782017-04-20 11:26:03 +0100579 "647-jni-get-field-id/get_field_id.cc",
Roland Levillain0d2323e2017-06-26 18:14:39 +0100580 "656-annotation-lookup-generic-jni/test.cc",
Igor Murashkin545412b2017-08-17 15:26:54 -0700581 "661-oat-writer-layout/oat_writer_layout.cc",
582 "664-aget-verifier/aget-verifier.cc",
Vladimir Marko2196c652017-11-30 16:16:07 +0000583 "667-jit-jni-stub/jit_jni_stub_test.cc",
David Brazdil11b67b22018-01-18 16:41:40 +0000584 "674-hiddenapi/hiddenapi.cc",
David Brazdil331a5e12019-04-01 22:46:16 +0000585 "692-vdex-inmem-loader/vdex_inmem_loader.cc",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700586 "708-jit-cache-churn/jit.cc",
Nicolas Geoffrayfa595882019-08-06 17:40:09 +0100587 "720-thread-priority/thread_priority.cc",
Alexey Grebenkince750492018-05-31 23:42:20 +0300588 "800-smali/jni.cc",
Alex Lightf889c702018-02-23 15:25:45 -0800589 "909-attach-agent/disallow_debugging.cc",
Mathieu Chartier00fbe4f2019-01-02 16:52:38 -0800590 "1001-app-image-regions/app_image_regions.cc",
Mathieu Chartier175ce3d2019-03-06 16:54:24 -0800591 "1002-notify-startup/startup_interface.cc",
Alex Lighte34fe442018-02-21 17:35:55 -0800592 "1947-breakpoint-redefine-deopt/check_deopt.cc",
Alex Lightf3677472019-06-26 16:31:53 -0700593 "1972-jni-id-swap-indices/jni_id.cc",
Alex Light55eccdf2019-10-07 13:51:13 +0000594 "1985-structural-redefine-stack-scope/stack_scope.cc",
Nicolas Geoffraye91e7952020-01-23 10:15:56 +0000595 "2011-stack-walk-concurrent-instrument/stack_walk_concurrent.cc",
Alex Light280e6c32020-03-03 13:52:07 -0800596 "2031-zygote-compiled-frame-deopt/native-wait.cc",
Hans Boehm672295a2020-04-16 21:31:17 -0700597 "2033-shutdown-mechanics/native_shutdown.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000598 "common/runtime_state.cc",
599 "common/stack_inspect.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700600 ],
601 shared_libs: [
602 "libbacktrace",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700603 "libbase",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700604 "libnativehelper",
605 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700606}
607
Paul Duffin2506eff2020-04-07 11:32:24 +0100608java_library {
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800609 name: "art_cts_jvmti_test_library",
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100610 visibility: [
611 "//cts/hostsidetests/jvmti:__subpackages__",
612 ],
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800613 srcs: [
614 // shim classes. We use one that exposes the common functionality.
Alex Light23ca8fb2019-05-10 11:27:02 -0700615 "jvmti-common/Redefinition.java",
616 "jvmti-common/Main.java",
617 "jvmti-common/Trace.java",
618 "jvmti-common/Breakpoint.java",
619 "jvmti-common/Suspension.java",
620 "jvmti-common/Locals.java",
621 "jvmti-common/StackTrace.java",
622 "jvmti-common/FramePop.java",
623 "jvmti-common/Exceptions.java",
624 "jvmti-common/Monitors.java",
Alex Lightfe0ce642020-01-07 13:14:18 -0800625 "jvmti-common/NonStandardExit.java",
Alex Light23ca8fb2019-05-10 11:27:02 -0700626 "jvmti-common/Threads.java",
627 "jvmti-common/SuspendEvents.java",
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800628
629 // Actual test classes.
630 "901-hello-ti-agent/src/art/Test901.java",
631 "902-hello-transformation/src/art/Test902.java",
632 "903-hello-tagging/src/art/Test903.java",
633 "904-object-allocation/src/art/Test904.java",
634 "905-object-free/src/art/Test905.java",
635 "906-iterate-heap/src/art/Test906.java",
636 "907-get-loaded-classes/src/art/Test907.java",
637 "907-get-loaded-classes/src/art/Cerr.java",
638 "908-gc-start-finish/src/art/Test908.java",
639 "910-methods/src/art/Test910.java",
640 "911-get-stack-trace/src/art/Test911.java",
641 "911-get-stack-trace/src/art/AllTraces.java",
642 "911-get-stack-trace/src/art/ControlData.java",
643 "911-get-stack-trace/src/art/Frames.java",
644 "911-get-stack-trace/src/art/OtherThread.java",
645 "911-get-stack-trace/src/art/PrintThread.java",
646 "911-get-stack-trace/src/art/Recurse.java",
647 "911-get-stack-trace/src/art/SameThread.java",
648 "911-get-stack-trace/src/art/ThreadListTraces.java",
649 "912-classes/src-art/art/Test912.java",
650 "912-classes/src-art/art/DexData.java",
651 "913-heaps/src/art/Test913.java",
652 "914-hello-obsolescence/src/art/Test914.java",
653 "915-obsolete-2/src/art/Test915.java",
654 "917-fields-transformation/src/art/Test917.java",
655 "918-fields/src/art/Test918.java",
656 "919-obsolete-fields/src/art/Test919.java",
657 "920-objects/src/art/Test920.java",
658 "922-properties/src/art/Test922.java",
659 "923-monitors/src/art/Test923.java",
660 "924-threads/src/art/Test924.java",
661 "925-threadgroups/src/art/Test925.java",
662 "926-multi-obsolescence/src/art/Test926.java",
663 "927-timers/src/art/Test927.java",
664 "928-jni-table/src/art/Test928.java",
665 "930-hello-retransform/src/art/Test930.java",
666 "931-agent-thread/src/art/Test931.java",
667 "932-transform-saves/src/art/Test932.java",
668 "933-misc-events/src/art/Test933.java",
669 "940-recursive-obsolete/src/art/Test940.java",
670 "942-private-recursive/src/art/Test942.java",
671 "944-transform-classloaders/src/art/Test944.java",
672 "945-obsolete-native/src/art/Test945.java",
673 "947-reflect-method/src/art/Test947.java",
674 "951-threaded-obsolete/src/art/Test951.java",
675 "982-ok-no-retransform/src/art/Test982.java",
676 "983-source-transform-verify/src/art/Test983.java",
677 "984-obsolete-invoke/src/art/Test984.java",
678 "985-re-obsolete/src/art/Test985.java",
679 "986-native-method-bind/src/art/Test986.java",
680 "988-method-trace/src/art/Test988.java",
681 "988-method-trace/src/art/Test988Intrinsics.java",
682 "989-method-trace-throw/src/art/Test989.java",
683 "990-field-trace/src/art/Test990.java",
684 "991-field-trace-2/src/art/Test991.java",
685 "992-source-data/src/art/Test992.java",
686 "992-source-data/src/art/Target2.java",
687 "993-breakpoints/src/art/Test993.java",
688 "994-breakpoint-line/src/art/Test994.java",
689 "995-breakpoints-throw/src/art/Test995.java",
690 "996-breakpoint-obsolete/src/art/Test996.java",
691 "997-single-step/src/art/Test997.java",
692 "1900-track-alloc/src/art/Test1900.java",
693 "1901-get-bytecodes/src/art/Test1901.java",
694 "1902-suspend/src/art/Test1902.java",
695 "1903-suspend-self/src/art/Test1903.java",
696 "1904-double-suspend/src/art/Test1904.java",
697 "1906-suspend-list-me-first/src/art/Test1906.java",
698 "1907-suspend-list-self-twice/src/art/Test1907.java",
699 "1908-suspend-native-resume-self/src/art/Test1908.java",
700 "1909-per-agent-tls/src/art/Test1909.java",
701 "1910-transform-with-default/src/art/Test1910.java",
702 "1911-get-local-var-table/src/art/Test1911.java",
703 "1912-get-set-local-primitive/src/art/Test1912.java",
704 "1913-get-set-local-objects/src/art/Test1913.java",
705 "1914-get-local-instance/src/art/Test1914.java",
706 "1915-get-set-local-current-thread/src/art/Test1915.java",
707 "1916-get-set-current-frame/src/art/Test1916.java",
708 "1917-get-stack-frame/src/art/Test1917.java",
709 "1920-suspend-native-monitor/src/art/Test1920.java",
710 "1921-suspend-native-recursive-monitor/src/art/Test1921.java",
711 "1922-owned-monitors-info/src/art/Test1922.java",
712 "1923-frame-pop/src/art/Test1923.java",
713 "1924-frame-pop-toggle/src/art/Test1924.java",
714 "1925-self-frame-pop/src/art/Test1925.java",
715 "1926-missed-frame-pop/src/art/Test1926.java",
716 "1927-exception-event/src/art/Test1927.java",
717 "1928-exception-event-exception/src/art/Test1928.java",
718 "1930-monitor-info/src/art/Test1930.java",
719 "1931-monitor-events/src/art/Test1931.java",
720 "1932-monitor-events-misc/src/art/Test1932.java",
721 "1933-monitor-current-contended/src/art/Test1933.java",
722 "1934-jvmti-signal-thread/src/art/Test1934.java",
723 "1936-thread-end-events/src/art/Test1936.java",
724 "1937-transform-soft-fail/src/art/Test1937.java",
725 "1939-proxy-frames/src/art/Test1939.java",
726 "1941-dispose-stress/src/art/Test1941.java",
727 "1942-suspend-raw-monitor-exit/src/art/Test1942.java",
728 "1943-suspend-raw-monitor-wait/src/art/Test1943.java",
729 "1953-pop-frame/src/art/Test1953.java",
730 "1958-transform-try-jit/src/art/Test1958.java",
Alex Light40607862019-05-06 18:16:24 +0000731 "1962-multi-thread-events/src/art/Test1962.java",
Alex Lightfe0ce642020-01-07 13:14:18 -0800732 "1963-add-to-dex-classloader-in-memory/src/art/Test1963.java",
733 "1967-get-set-local-bad-slot/src/art/Test1967.java",
734 "1968-force-early-return/src/art/Test1968.java",
735 "1969-force-early-return-void/src/art/Test1969.java",
736 "1970-force-early-return-long/src/art/Test1970.java",
737 "1971-multi-force-early-return/src/art/Test1971.java",
738 "1974-resize-array/src/art/Test1974.java",
739 "1975-hello-structural-transformation/src/art/Test1975.java",
740 "1975-hello-structural-transformation/src/art/Transform1975.java",
741 "1976-hello-structural-static-methods/src/art/Test1976.java",
742 "1976-hello-structural-static-methods/src/art/Transform1976.java",
743 "1977-hello-structural-obsolescence/src/art/Test1977.java",
744 "1978-regular-obsolete-then-structural-obsolescence/src/art/Test1978.java",
745 "1979-threaded-structural-transformation/src/art/Test1979.java",
746 "1981-structural-redef-private-method-handles/src/art/Test1981.java",
747 // TODO Requires VarHandles to be un-@hide. See b/64382372
748 // "1981-structural-redef-private-method-handles/src/art/Test1981_Varhandles.java",
749 "1982-no-virtuals-structural-redefinition/src/art/Test1982.java",
750 "1983-structural-redefinition-failures/src/art/Test1983.java",
751 "1984-structural-redefine-field-trace/src/art/Test1984.java",
752 "1988-multi-structural-redefine/src/art/Test1988.java",
753 "1989-transform-bad-monitor/src/art/Test1989.java",
754 "1990-structural-bad-verify/src/art/Test1990.java",
755 "1991-hello-structural-retransform/src/art/Test1991.java",
756 "1992-retransform-no-such-field/src/art/Test1992.java",
757 "1994-final-virtual-structural/src/art/Test1994.java",
758 "1995-final-virtual-structural-multithread/src/art/Test1995.java",
759 "1996-final-override-virtual-structural/src/art/Test1996.java",
760 "1997-structural-shadow-method/src/art/Test1997.java",
761 "1998-structural-shadow-field/src/art/Test1998.java",
762 "1999-virtual-structural/src/art/Test1999.java",
763 "2001-virtual-structural-multithread/src-art/art/Test2001.java",
764 "2002-virtual-structural-initializing/src-art/art/Test2002.java",
765 "2003-double-virtual-structural/src/art/Test2003.java",
766 "2004-double-virtual-structural-abstract/src/art/Test2004.java",
767 "2005-pause-all-redefine-multithreaded/src/art/Test2005.java",
768 "2006-virtual-structural-finalizing/src-art/art/Test2006.java",
769 "2007-virtual-structural-finalizable/src-art/art/Test2007.java",
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800770 ],
771}
772
773// CTS test runner in cts/hostsidetests/jvmti looks for an expected test
774// result for the test NN in the file results.NN.expected.txt while in the
775// source tree each expected test result is in the NN-xxxx/expected.txt.
776// Copy+rename them them to a temporary directory and them zip them.
777java_genrule {
Paul Duffine5621f52020-03-25 10:51:14 +0000778 name: "expected_cts_outputs_gen",
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800779 srcs: [
780 "901-hello-ti-agent/expected.txt",
781 "902-hello-transformation/expected.txt",
782 "903-hello-tagging/expected.txt",
783 "904-object-allocation/expected.txt",
784 "905-object-free/expected.txt",
785 "906-iterate-heap/expected.txt",
786 "907-get-loaded-classes/expected.txt",
787 "908-gc-start-finish/expected.txt",
788 "910-methods/expected.txt",
Alex Light4681f202020-01-10 09:27:57 -0800789 "911-get-stack-trace/expected-cts-version.txt",
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800790 "912-classes/expected.txt",
791 "913-heaps/expected.txt",
792 "914-hello-obsolescence/expected.txt",
793 "915-obsolete-2/expected.txt",
794 "917-fields-transformation/expected.txt",
795 "918-fields/expected.txt",
796 "919-obsolete-fields/expected.txt",
797 "920-objects/expected.txt",
798 "922-properties/expected.txt",
799 "923-monitors/expected.txt",
800 "924-threads/expected.txt",
801 "925-threadgroups/expected.txt",
802 "926-multi-obsolescence/expected.txt",
803 "927-timers/expected.txt",
804 "928-jni-table/expected.txt",
805 "930-hello-retransform/expected.txt",
806 "931-agent-thread/expected.txt",
807 "932-transform-saves/expected.txt",
808 "933-misc-events/expected.txt",
809 "940-recursive-obsolete/expected.txt",
810 "942-private-recursive/expected.txt",
811 "944-transform-classloaders/expected.txt",
812 "945-obsolete-native/expected.txt",
813 "947-reflect-method/expected.txt",
814 "951-threaded-obsolete/expected.txt",
815 "982-ok-no-retransform/expected.txt",
816 "983-source-transform-verify/expected.txt",
817 "984-obsolete-invoke/expected.txt",
818 "985-re-obsolete/expected.txt",
819 "986-native-method-bind/expected.txt",
820 "988-method-trace/expected.txt",
821 "989-method-trace-throw/expected.txt",
822 "990-field-trace/expected.txt",
823 "991-field-trace-2/expected.txt",
824 "992-source-data/expected.txt",
825 "993-breakpoints/expected.txt",
826 "994-breakpoint-line/expected.txt",
827 "995-breakpoints-throw/expected.txt",
828 "996-breakpoint-obsolete/expected.txt",
829 "997-single-step/expected.txt",
830 "1900-track-alloc/expected.txt",
831 "1901-get-bytecodes/expected.txt",
832 "1902-suspend/expected.txt",
833 "1903-suspend-self/expected.txt",
834 "1904-double-suspend/expected.txt",
835 "1906-suspend-list-me-first/expected.txt",
836 "1907-suspend-list-self-twice/expected.txt",
837 "1908-suspend-native-resume-self/expected.txt",
838 "1909-per-agent-tls/expected.txt",
839 "1910-transform-with-default/expected.txt",
840 "1911-get-local-var-table/expected.txt",
841 "1912-get-set-local-primitive/expected.txt",
842 "1913-get-set-local-objects/expected.txt",
843 "1914-get-local-instance/expected.txt",
844 "1915-get-set-local-current-thread/expected.txt",
845 "1916-get-set-current-frame/expected.txt",
846 "1917-get-stack-frame/expected.txt",
847 "1920-suspend-native-monitor/expected.txt",
848 "1921-suspend-native-recursive-monitor/expected.txt",
849 "1922-owned-monitors-info/expected.txt",
850 "1923-frame-pop/expected.txt",
851 "1924-frame-pop-toggle/expected.txt",
852 "1925-self-frame-pop/expected.txt",
853 "1926-missed-frame-pop/expected.txt",
854 "1927-exception-event/expected.txt",
855 "1928-exception-event-exception/expected.txt",
856 "1930-monitor-info/expected.txt",
857 "1931-monitor-events/expected.txt",
858 "1932-monitor-events-misc/expected.txt",
859 "1933-monitor-current-contended/expected.txt",
860 "1934-jvmti-signal-thread/expected.txt",
861 "1936-thread-end-events/expected.txt",
862 "1937-transform-soft-fail/expected.txt",
863 "1939-proxy-frames/expected.txt",
864 "1941-dispose-stress/expected.txt",
865 "1942-suspend-raw-monitor-exit/expected.txt",
866 "1943-suspend-raw-monitor-wait/expected.txt",
867 "1953-pop-frame/expected.txt",
868 "1958-transform-try-jit/expected.txt",
Alex Lightfe0ce642020-01-07 13:14:18 -0800869 "1962-multi-thread-events/expected.txt",
870 "1963-add-to-dex-classloader-in-memory/expected.txt",
871 "1967-get-set-local-bad-slot/expected.txt",
872 "1968-force-early-return/expected.txt",
873 "1969-force-early-return-void/expected.txt",
874 "1970-force-early-return-long/expected.txt",
875 "1971-multi-force-early-return/expected.txt",
876 "1974-resize-array/expected.txt",
877 "1975-hello-structural-transformation/expected.txt",
878 "1976-hello-structural-static-methods/expected.txt",
879 "1977-hello-structural-obsolescence/expected.txt",
880 "1978-regular-obsolete-then-structural-obsolescence/expected.txt",
881 "1979-threaded-structural-transformation/expected.txt",
882 // TODO Requires VarHandles to be un-@hide. See b/64382372
883 // "test/1981-structural-redef-private-method-handles/expected.txt",
884 "1981-structural-redef-private-method-handles/expected_no_mh.txt",
885 "1982-no-virtuals-structural-redefinition/expected.txt",
Alex Light5c7f3672020-01-27 15:23:30 -0800886 // JNI-id use can change the outcome of this test on device.
887 "1983-structural-redefinition-failures/expected-cts.txt",
Alex Lightfe0ce642020-01-07 13:14:18 -0800888 "1984-structural-redefine-field-trace/expected.txt",
889 "1988-multi-structural-redefine/expected.txt",
890 "1989-transform-bad-monitor/expected.txt",
891 "1990-structural-bad-verify/expected.txt",
892 "1991-hello-structural-retransform/expected.txt",
893 "1992-retransform-no-such-field/expected.txt",
894 "1994-final-virtual-structural/expected.txt",
895 "1995-final-virtual-structural-multithread/expected.txt",
896 "1996-final-override-virtual-structural/expected.txt",
897 "1997-structural-shadow-method/expected.txt",
898 "1998-structural-shadow-field/expected.txt",
899 "1999-virtual-structural/expected.txt",
900 "2001-virtual-structural-multithread/expected.txt",
901 "2002-virtual-structural-initializing/expected.txt",
902 "2003-double-virtual-structural/expected.txt",
903 "2004-double-virtual-structural-abstract/expected.txt",
904 "2005-pause-all-redefine-multithreaded/expected.txt",
905 "2006-virtual-structural-finalizing/expected.txt",
906 "2007-virtual-structural-finalizable/expected.txt",
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800907 ],
908 out: ["expected_cts_outputs.jar"],
909 tools: ["soong_zip"],
910 cmd: "rm -rf $(genDir)/res && mkdir -p $(genDir)/res && " +
911 "for f in $(in); do x=$${f#art/test/}; " +
912 "cp $$f $(genDir)/res/results.$${x%%-*}.expected.txt; done && " +
913 "$(location soong_zip) -o $(out) -C $(genDir)/res -D $(genDir)/res",
914}
David Srbecky8c8f1482020-02-05 20:17:10 +0000915
Paul Duffine5621f52020-03-25 10:51:14 +0000916// Wrap the expected_cts_outputs_gen inside a java library to make it easy
917// to export as a member of a module_exports.
918java_library {
919 name: "expected_cts_outputs",
920 visibility: [
921 "//art/build/sdk",
922 "//cts/hostsidetests/jvmti:__subpackages__",
923 ],
924 static_libs: [
925 "expected_cts_outputs_gen",
926 ],
927 sdk_version: "core_current",
928}
929
David Srbeckyee257162020-02-28 15:50:13 +0000930art_cc_test {
931 name: "ArtGtestsTarget",
932 data: [
933 // We need the ART testing apex, which contains all gtest binaries.
934 // Note that due to linker constraints the gtests must be in the apex.
935 ":com.android.art.testing",
936 ":art-gtest-jars",
937 ],
938 test_suites: ["device-tests"],
939 test_config: "gtests-target.xml",
940}
941
David Srbecky8c8f1482020-02-05 20:17:10 +0000942filegroup {
943 name: "art-gtest-jars",
944 srcs: [
945 ":art-gtest-jars-AbstractMethod",
946 ":art-gtest-jars-AllFields",
947 ":art-gtest-jars-DefaultMethods",
948 ":art-gtest-jars-DexToDexDecompiler",
949 ":art-gtest-jars-ErroneousA",
950 ":art-gtest-jars-ErroneousB",
951 ":art-gtest-jars-ErroneousInit",
Vladimir Markofdd46842020-03-25 14:57:17 +0000952 ":art-gtest-jars-Extension1",
953 ":art-gtest-jars-Extension2",
David Srbecky8c8f1482020-02-05 20:17:10 +0000954 ":art-gtest-jars-ForClassLoaderA",
955 ":art-gtest-jars-ForClassLoaderB",
956 ":art-gtest-jars-ForClassLoaderC",
957 ":art-gtest-jars-ForClassLoaderD",
958 ":art-gtest-jars-ExceptionHandle",
959 ":art-gtest-jars-GetMethodSignature",
960 ":art-gtest-jars-HiddenApi",
961 ":art-gtest-jars-HiddenApiSignatures",
962 ":art-gtest-jars-HiddenApiStubs",
963 ":art-gtest-jars-ImageLayoutA",
964 ":art-gtest-jars-ImageLayoutB",
965 ":art-gtest-jars-IMTA",
966 ":art-gtest-jars-IMTB",
967 ":art-gtest-jars-Instrumentation",
968 ":art-gtest-jars-Interfaces",
969 ":art-gtest-jars-Lookup",
970 ":art-gtest-jars-Main",
971 ":art-gtest-jars-ManyMethods",
972 ":art-gtest-jars-MethodTypes",
973 ":art-gtest-jars-MultiDex",
974 ":art-gtest-jars-MultiDexModifiedSecondary",
975 ":art-gtest-jars-MyClass",
976 ":art-gtest-jars-MyClassNatives",
977 ":art-gtest-jars-Nested",
978 ":art-gtest-jars-NonStaticLeafMethods",
979 ":art-gtest-jars-Packages",
980 ":art-gtest-jars-ProtoCompare",
981 ":art-gtest-jars-ProtoCompare2",
982 ":art-gtest-jars-ProfileTestMultiDex",
983 ":art-gtest-jars-StaticLeafMethods",
984 ":art-gtest-jars-Statics",
985 ":art-gtest-jars-StaticsFromCode",
986 ":art-gtest-jars-StringLiterals",
987 ":art-gtest-jars-Transaction",
988 ":art-gtest-jars-XandY",
989 ":art-gtest-jars-MainEmptyUncompressed",
990 ":art-gtest-jars-MainEmptyUncompressedAligned",
991 ":art-gtest-jars-MainStripped",
992 ":art-gtest-jars-MainUncompressedAligned",
993 ":art-gtest-jars-MultiDexUncompressedAligned",
994 ":art-gtest-jars-VerifierDeps",
995 ":art-gtest-jars-VerifierDepsMulti",
996 ":art-gtest-jars-VerifySoftFailDuringClinit",
997 ],
998}
999
1000java_defaults {
1001 name: "art-gtest-jars-defaults",
1002 installable: true,
1003 dex_preopt: {
1004 enabled: false,
1005 },
1006 sdk_version: "core_platform",
1007}
1008
1009// The following modules are just trivial compilations (non-trivial cases are the end).
1010
1011java_library {
1012 name: "art-gtest-jars-AbstractMethod",
1013 srcs: ["AbstractMethod/**/*.java"],
1014 defaults: ["art-gtest-jars-defaults"],
1015}
1016
1017java_library {
1018 name: "art-gtest-jars-AllFields",
1019 srcs: ["AllFields/**/*.java"],
1020 defaults: ["art-gtest-jars-defaults"],
1021}
1022
1023java_library {
1024 name: "art-gtest-jars-DefaultMethods",
1025 srcs: ["DefaultMethods/**/*.java"],
1026 defaults: ["art-gtest-jars-defaults"],
1027}
1028
1029java_library {
1030 name: "art-gtest-jars-DexToDexDecompiler",
1031 srcs: ["DexToDexDecompiler/**/*.java"],
1032 defaults: ["art-gtest-jars-defaults"],
1033}
1034
1035java_library {
1036 name: "art-gtest-jars-ErroneousA",
1037 srcs: ["ErroneousA/**/*.java"],
1038 defaults: ["art-gtest-jars-defaults"],
1039}
1040
1041java_library {
1042 name: "art-gtest-jars-ErroneousB",
1043 srcs: ["ErroneousB/**/*.java"],
1044 defaults: ["art-gtest-jars-defaults"],
1045}
1046
1047java_library {
1048 name: "art-gtest-jars-ErroneousInit",
1049 srcs: ["ErroneousInit/**/*.java"],
1050 defaults: ["art-gtest-jars-defaults"],
1051}
1052
1053java_library {
Vladimir Markofdd46842020-03-25 14:57:17 +00001054 name: "art-gtest-jars-Extension1",
1055 srcs: ["Extension1/**/*.java"],
1056 defaults: ["art-gtest-jars-defaults"],
1057}
1058
1059java_library {
1060 name: "art-gtest-jars-Extension2",
1061 srcs: ["Extension2/**/*.java"],
1062 defaults: ["art-gtest-jars-defaults"],
1063}
1064
1065java_library {
David Srbecky8c8f1482020-02-05 20:17:10 +00001066 name: "art-gtest-jars-ForClassLoaderA",
1067 srcs: ["ForClassLoaderA/**/*.java"],
1068 defaults: ["art-gtest-jars-defaults"],
1069}
1070
1071java_library {
1072 name: "art-gtest-jars-ForClassLoaderB",
1073 srcs: ["ForClassLoaderB/**/*.java"],
1074 defaults: ["art-gtest-jars-defaults"],
1075}
1076
1077java_library {
1078 name: "art-gtest-jars-ForClassLoaderC",
1079 srcs: ["ForClassLoaderC/**/*.java"],
1080 defaults: ["art-gtest-jars-defaults"],
1081}
1082
1083java_library {
1084 name: "art-gtest-jars-ForClassLoaderD",
1085 srcs: ["ForClassLoaderD/**/*.java"],
1086 defaults: ["art-gtest-jars-defaults"],
1087}
1088
1089java_library {
1090 name: "art-gtest-jars-ExceptionHandle",
1091 srcs: ["ExceptionHandle/**/*.java"],
1092 defaults: ["art-gtest-jars-defaults"],
1093}
1094
1095java_library {
1096 name: "art-gtest-jars-GetMethodSignature",
1097 srcs: ["GetMethodSignature/**/*.java"],
1098 defaults: ["art-gtest-jars-defaults"],
1099}
1100
1101java_library {
1102 name: "art-gtest-jars-HiddenApi",
1103 srcs: ["HiddenApi/**/*.java"],
1104 defaults: ["art-gtest-jars-defaults"],
1105}
1106
1107java_library {
1108 name: "art-gtest-jars-HiddenApiSignatures",
1109 srcs: ["HiddenApiSignatures/**/*.java"],
1110 defaults: ["art-gtest-jars-defaults"],
1111}
1112
1113java_library {
1114 name: "art-gtest-jars-HiddenApiStubs",
1115 srcs: ["HiddenApiStubs/**/*.java"],
1116 defaults: ["art-gtest-jars-defaults"],
1117}
1118
1119java_library {
1120 name: "art-gtest-jars-ImageLayoutA",
1121 srcs: ["ImageLayoutA/**/*.java"],
1122 defaults: ["art-gtest-jars-defaults"],
1123}
1124
1125java_library {
1126 name: "art-gtest-jars-ImageLayoutB",
1127 srcs: ["ImageLayoutB/**/*.java"],
1128 defaults: ["art-gtest-jars-defaults"],
1129}
1130
1131java_library {
1132 name: "art-gtest-jars-IMTA",
1133 srcs: ["IMTA/**/*.java"],
1134 defaults: ["art-gtest-jars-defaults"],
1135}
1136
1137java_library {
1138 name: "art-gtest-jars-IMTB",
1139 srcs: ["IMTB/**/*.java"],
1140 defaults: ["art-gtest-jars-defaults"],
1141}
1142
1143java_library {
1144 name: "art-gtest-jars-Instrumentation",
1145 srcs: ["Instrumentation/**/*.java"],
1146 defaults: ["art-gtest-jars-defaults"],
1147}
1148
1149java_library {
1150 name: "art-gtest-jars-Interfaces",
1151 srcs: ["Interfaces/**/*.java"],
1152 defaults: ["art-gtest-jars-defaults"],
1153}
1154
1155java_library {
1156 name: "art-gtest-jars-Lookup",
1157 srcs: ["Lookup/**/*.java"],
1158 defaults: ["art-gtest-jars-defaults"],
1159}
1160
1161java_library {
1162 name: "art-gtest-jars-Main",
1163 srcs: ["Main/**/*.java"],
1164 defaults: ["art-gtest-jars-defaults"],
1165}
1166
1167java_library {
1168 name: "art-gtest-jars-ManyMethods",
1169 srcs: ["ManyMethods/**/*.java"],
1170 defaults: ["art-gtest-jars-defaults"],
1171}
1172
1173java_library {
1174 name: "art-gtest-jars-MethodTypes",
1175 srcs: ["MethodTypes/**/*.java"],
1176 defaults: ["art-gtest-jars-defaults"],
1177}
1178
1179java_library {
1180 name: "art-gtest-jars-MyClass",
1181 srcs: ["MyClass/**/*.java"],
1182 defaults: ["art-gtest-jars-defaults"],
1183}
1184
1185java_library {
1186 name: "art-gtest-jars-MyClassNatives",
1187 srcs: ["MyClassNatives/**/*.java"],
1188 defaults: ["art-gtest-jars-defaults"],
1189}
1190
1191java_library {
1192 name: "art-gtest-jars-Nested",
1193 srcs: ["Nested/**/*.java"],
1194 defaults: ["art-gtest-jars-defaults"],
1195}
1196
1197java_library {
1198 name: "art-gtest-jars-NonStaticLeafMethods",
1199 srcs: ["NonStaticLeafMethods/**/*.java"],
1200 defaults: ["art-gtest-jars-defaults"],
1201}
1202
1203java_library {
1204 name: "art-gtest-jars-Packages",
1205 srcs: ["Packages/**/*.java"],
1206 defaults: ["art-gtest-jars-defaults"],
1207}
1208
1209java_library {
1210 name: "art-gtest-jars-ProtoCompare",
1211 srcs: ["ProtoCompare/**/*.java"],
1212 defaults: ["art-gtest-jars-defaults"],
1213}
1214
1215java_library {
1216 name: "art-gtest-jars-ProtoCompare2",
1217 srcs: ["ProtoCompare2/**/*.java"],
1218 defaults: ["art-gtest-jars-defaults"],
1219}
1220
1221java_library {
1222 name: "art-gtest-jars-StaticLeafMethods",
1223 srcs: ["StaticLeafMethods/**/*.java"],
1224 defaults: ["art-gtest-jars-defaults"],
1225}
1226
1227java_library {
1228 name: "art-gtest-jars-Statics",
1229 srcs: ["Statics/**/*.java"],
1230 defaults: ["art-gtest-jars-defaults"],
1231}
1232
1233java_library {
1234 name: "art-gtest-jars-StaticsFromCode",
1235 srcs: ["StaticsFromCode/**/*.java"],
1236 defaults: ["art-gtest-jars-defaults"],
1237}
1238
1239java_library {
1240 name: "art-gtest-jars-StringLiterals",
1241 srcs: ["StringLiterals/**/*.java"],
1242 defaults: ["art-gtest-jars-defaults"],
1243}
1244
1245java_library {
1246 name: "art-gtest-jars-Transaction",
1247 srcs: ["Transaction/**/*.java"],
1248 defaults: ["art-gtest-jars-defaults"],
1249}
1250
1251java_library {
1252 name: "art-gtest-jars-XandY",
1253 srcs: ["XandY/**/*.java"],
1254 defaults: ["art-gtest-jars-defaults"],
1255}
1256
1257// The following cases are non-trivial.
1258
1259// Uncompress classes.dex files in the jar file.
1260genrule_defaults {
1261 name: "art-gtest-jars-uncompress-defaults",
1262 cmd: "$(location zip2zip) -i $(in) -o $(out) -0 'classes*.dex'",
1263 tools: ["zip2zip"],
1264}
1265
1266// Ensure the files are at least 4 byte aligned.
1267genrule_defaults {
1268 name: "art-gtest-jars-align-defaults",
1269 cmd: "$(location zipalign) 4 $(in) $(out)",
1270 tools: ["zipalign"],
1271}
1272
1273// Assemble jar file from smali source.
1274genrule_defaults {
1275 name: "art-gtest-jars-smali-defaults",
1276 cmd: "$(location smali) assemble --output $(out) $(in)",
1277 tools: ["smali"],
1278}
1279
1280// A copy of Main with the classes.dex stripped for the oat file assistant tests.
1281genrule {
1282 name: "art-gtest-jars-MainStripped",
1283 srcs: [":art-gtest-jars-Main"],
1284 cmd: "$(location zip2zip) -i $(in) -o $(out) -x 'classes*.dex'",
1285 out: ["art-gtest-jars-MainStripped.jar"],
1286 tools: ["zip2zip"],
1287}
1288
1289// An empty.dex that is empty and uncompressed for the dex2oat tests.
1290genrule {
1291 name: "art-gtest-jars-MainEmptyUncompressed",
1292 srcs: ["Main/empty.dex"],
1293 cmd: "$(location soong_zip) -j -L 0 -o $(out) -f $(in)",
1294 out: ["art-gtest-jars-MainEmptyUncompressed.jar"],
1295 tools: ["soong_zip"],
1296}
1297
1298// An empty.dex that is empty and uncompressed and aligned for the dex2oat tests.
1299genrule {
1300 name: "art-gtest-jars-MainEmptyUncompressedAligned",
1301 defaults: ["art-gtest-jars-align-defaults"],
1302 srcs: [":art-gtest-jars-MainEmptyUncompressed"],
1303 out: ["art-gtest-jars-MainEmptyUncompressedAligned.jar"],
1304}
1305
1306// A copy of Main with the classes.dex uncompressed for the dex2oat tests.
1307genrule {
1308 name: "art-gtest-jars-MainUncompressed",
1309 defaults: ["art-gtest-jars-uncompress-defaults"],
1310 srcs: [":art-gtest-jars-Main"],
1311 out: ["art-gtest-jars-MainUncompressed.jar"],
1312}
1313
1314// A copy of Main with the classes.dex uncompressed and aligned for the dex2oat tests.
1315genrule {
1316 name: "art-gtest-jars-MainUncompressedAligned",
1317 defaults: ["art-gtest-jars-align-defaults"],
1318 srcs: [":art-gtest-jars-MainUncompressed"],
1319 out: ["art-gtest-jars-MainUncompressedAligned.jar"],
1320}
1321
1322java_library {
1323 name: "art-gtest-jars-MultiDex",
1324 srcs: ["MultiDex/**/*.java"],
1325 defaults: ["art-gtest-jars-defaults"],
1326 min_sdk_version: "19",
1327 dxflags: [
1328 "--main-dex-list",
1329 "art/test/MultiDex/main.list",
1330 ],
1331}
1332
1333// A copy of MultiDex with the classes.dex uncompressed for the OatFile tests.
1334genrule {
1335 name: "art-gtest-jars-MultiDexUncompressed",
1336 defaults: ["art-gtest-jars-uncompress-defaults"],
1337 srcs: [":art-gtest-jars-MultiDex"],
1338 out: ["art-gtest-jars-MultiDexUncompressed.jar"],
1339}
1340
1341// A copy of MultiDex with the classes.dex uncompressed and aligned for the OatFile tests.
1342genrule {
1343 name: "art-gtest-jars-MultiDexUncompressedAligned",
1344 defaults: ["art-gtest-jars-align-defaults"],
1345 srcs: [":art-gtest-jars-MultiDexUncompressed"],
1346 out: ["art-gtest-jars-MultiDexUncompressedAligned.jar"],
1347}
1348
1349java_library {
1350 name: "art-gtest-jars-MultiDexModifiedSecondary",
1351 srcs: ["MultiDexModifiedSecondary/**/*.java"],
1352 defaults: ["art-gtest-jars-defaults"],
1353 min_sdk_version: "19",
1354 dxflags: [
1355 "--main-dex-list",
1356 "art/test/MultiDexModifiedSecondary/main.list",
1357 ],
1358}
1359
1360java_library {
1361 name: "art-gtest-jars-ProfileTestMultiDex",
1362 srcs: ["ProfileTestMultiDex/**/*.java"],
1363 defaults: ["art-gtest-jars-defaults"],
1364 min_sdk_version: "19",
1365 dxflags: [
1366 "--main-dex-list",
1367 "art/test/ProfileTestMultiDex/main.list",
1368 ],
1369}
1370
1371genrule {
1372 name: "art-gtest-jars-VerifierDeps",
1373 defaults: ["art-gtest-jars-smali-defaults"],
1374 srcs: ["VerifierDeps/**/*.smali"],
1375 out: ["art-gtest-jars-VerifierDeps.jar"],
1376}
1377
1378genrule {
1379 name: "art-gtest-jars-VerifierDepsMulti",
1380 defaults: ["art-gtest-jars-smali-defaults"],
1381 srcs: ["VerifierDepsMulti/**/*.smali"],
1382 out: ["art-gtest-jars-VerifierDepsMulti.jar"],
1383}
1384
1385genrule {
1386 name: "art-gtest-jars-VerifySoftFailDuringClinit",
1387 defaults: ["art-gtest-jars-smali-defaults"],
1388 srcs: ["VerifySoftFailDuringClinit/**/*.smali"],
1389 out: ["art-gtest-jars-VerifySoftFailDuringClinit.jar"],
1390}