blob: f10d3788bf5712be118cb4cc8c7195a0aed28313 [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 },
29 android_mips: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010030 relative_install_path: "art/mips",
Colin Crossafd3c9e2016-09-16 13:47:21 -070031 },
32 android_mips64: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010033 relative_install_path: "art/mips64",
Colin Crossafd3c9e2016-09-16 13:47:21 -070034 },
35 android_x86: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010036 relative_install_path: "art/x86",
Colin Crossafd3c9e2016-09-16 13:47:21 -070037 },
38 android_x86_64: {
Roland Levillaind4d6fb52019-08-05 12:28:39 +010039 relative_install_path: "art/x86_64",
Colin Crossafd3c9e2016-09-16 13:47:21 -070040 },
Colin Crossfd5428b2016-09-19 10:40:05 -070041 darwin: {
42 enabled: false,
43 },
Colin Crossafd3c9e2016-09-16 13:47:21 -070044 },
Dan Albertb5d36de2016-09-21 14:56:51 -070045 cflags: [
46 "-Wno-frame-larger-than=",
47 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -070048}
49
50art_cc_defaults {
51 name: "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070052 test_per_src: true,
53 // These really are gtests, but the gtest library comes from libart-gtest.so
54 gtest: false,
55 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070056 "art_test_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -070057 "art_debug_defaults",
58 "art_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070059 ],
60
61 shared_libs: [
62 "libartd",
63 "libartd-disassembler",
Roland Levillain12dd9ae2018-11-06 13:32:06 +000064 "libvixld",
Colin Cross6e95dd52016-09-12 15:37:10 -070065 "libart-gtest",
David Sehrfcbe15c2018-02-15 09:41:13 -080066 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -070067 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -070068 "libartbased",
Colin Cross6e95dd52016-09-12 15:37:10 -070069
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070070 "libbase",
Colin Cross6e95dd52016-09-12 15:37:10 -070071 "libicuuc",
72 "libicui18n",
73 "libnativehelper",
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000074 "libz",
Colin Cross6e95dd52016-09-12 15:37:10 -070075 ],
76 whole_static_libs: [
77 "libsigchain",
78 ],
Colin Cross6e95dd52016-09-12 15:37:10 -070079
80 target: {
Dan Willemsen057f1e42017-10-03 14:11:48 -070081 linux: {
Colin Cross6e95dd52016-09-12 15:37:10 -070082 ldflags: [
83 // Allow jni_compiler_test to find Java_MyClassNatives_bar
84 // within itself using dlopen(NULL, ...).
85 // Mac OS linker doesn't understand --export-dynamic.
86 "-Wl,--export-dynamic",
87 "-Wl,-u,Java_MyClassNatives_bar",
88 "-Wl,-u,Java_MyClassNatives_sbar",
89 ],
Colin Cross6e95dd52016-09-12 15:37:10 -070090 cflags: [
91 // gtest issue
92 "-Wno-used-but-marked-unused",
93 "-Wno-deprecated",
94 "-Wno-missing-noreturn",
95 ],
96 },
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +000097 host: {
98 shared_libs: [
99 "libziparchive",
100 ],
101 },
Dan Willemsen057f1e42017-10-03 14:11:48 -0700102 android: {
Colin Cross6e95dd52016-09-12 15:37:10 -0700103 shared_libs: [
Dimitry Ivanov9642b1b2016-09-28 02:44:00 -0700104 "liblog",
Colin Cross6e95dd52016-09-12 15:37:10 -0700105 ],
Colin Cross6e95dd52016-09-12 15:37:10 -0700106 },
Colin Cross6e95dd52016-09-12 15:37:10 -0700107 },
108}
109
110art_cc_defaults {
Colin Cross6b22aa52016-09-12 14:35:39 -0700111 name: "libart-gtest-defaults",
112 host_supported: true,
113 defaults: [
Colin Cross6b22aa52016-09-12 14:35:39 -0700114 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700115 "art_defaults",
Colin Cross6b22aa52016-09-12 14:35:39 -0700116 ],
117 shared_libs: [
118 "libartd",
119 "libartd-compiler",
David Sehrfcbe15c2018-02-15 09:41:13 -0800120 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700121 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700122 "libartbased",
Colin Cross6b22aa52016-09-12 14:35:39 -0700123 ],
124 static_libs: [
125 "libgtest",
126 ],
127 target: {
128 android32: {
Colin Crossc5c71872016-09-15 21:07:29 -0700129 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest/art"],
Colin Cross6b22aa52016-09-12 14:35:39 -0700130 },
131 android64: {
132 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest64/art"],
133 },
Dan Willemsen057f1e42017-10-03 14:11:48 -0700134 linux: {
Colin Cross6b22aa52016-09-12 14:35:39 -0700135 cflags: [
136 // gtest issue
137 "-Wno-used-but-marked-unused",
138 "-Wno-deprecated",
139 "-Wno-missing-noreturn",
140 ],
141 },
Colin Cross942036f2016-09-15 16:24:51 -0700142 darwin: {
143 enabled: false,
144 },
Colin Cross6b22aa52016-09-12 14:35:39 -0700145 },
146}
147
148art_cc_library {
149 name: "libart-gtest",
150 host_supported: true,
151 whole_static_libs: [
152 "libart-compiler-gtest",
153 "libart-runtime-gtest",
David Sehrd5f8de82018-04-27 14:12:03 -0700154 "libartbase-art-gtest",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700155 "libgtest",
Colin Cross6b22aa52016-09-12 14:35:39 -0700156 ],
157 shared_libs: [
158 "libartd",
159 "libartd-compiler",
David Sehrfcbe15c2018-02-15 09:41:13 -0800160 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700161 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700162 "libartbased",
Colin Crossf0af9062016-10-21 10:50:31 -0700163 "libbase",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700164 "libbacktrace",
Colin Cross6b22aa52016-09-12 14:35:39 -0700165 ],
166 target: {
Colin Cross942036f2016-09-15 16:24:51 -0700167 darwin: {
168 enabled: false,
169 },
Colin Cross6b22aa52016-09-12 14:35:39 -0700170 },
171}
Colin Crossafd3c9e2016-09-16 13:47:21 -0700172
Roland Levillain962a1102019-11-01 16:20:33 +0000173// ART run-tests.
174
175art_cc_test_library {
176 name: "libarttest",
177 defaults: ["libarttest-defaults"],
178 shared_libs: [
179 "libart",
180 "libdexfile",
181 "libprofile",
182 "libartbase",
183 ],
184}
185
186art_cc_test_library {
187 name: "libarttestd",
188 defaults: [
189 "art_debug_defaults",
190 "libarttest-defaults",
191 ],
192 shared_libs: [
193 "libartd",
194 "libdexfiled",
195 "libprofiled",
196 "libartbased",
197 ],
198}
199
200art_cc_defaults {
201 name: "libnativebridgetest-defaults",
202 defaults: [
203 "art_test_defaults",
204 "art_defaults",
205 ],
206 header_libs: ["libnativebridge-headers"],
207 srcs: ["115-native-bridge/nativebridge.cc"],
208}
209
210art_cc_test_library {
211 name: "libnativebridgetest",
212 shared_libs: ["libart"],
213 defaults: [
214 "libnativebridgetest-defaults",
215 ],
216}
217
218art_cc_test_library {
219 name: "libnativebridgetestd",
220 shared_libs: ["libartd"],
221 defaults: [
222 "libnativebridgetest-defaults",
223 "art_debug_defaults",
224 ],
225}
226
227// ART JVMTI run-tests.
228
Colin Crossafd3c9e2016-09-16 13:47:21 -0700229cc_defaults {
230 name: "libartagent-defaults",
231 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700232 "art_test_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700233 "art_defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700234 ],
235 shared_libs: [
236 "libbacktrace",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700237 "libbase",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700238 "libnativehelper",
239 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700240}
241
242art_cc_test_library {
243 name: "libartagent",
244 srcs: ["900-hello-plugin/load_unload.cc"],
245 defaults: ["libartagent-defaults"],
Andreas Gampe9462a562018-02-20 09:35:21 -0800246 shared_libs: [
247 "libart",
248 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700249 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700250 "libartbase",
Andreas Gampe9462a562018-02-20 09:35:21 -0800251 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700252}
253
254art_cc_test_library {
255 name: "libartagentd",
256 srcs: ["900-hello-plugin/load_unload.cc"],
257 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700258 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700259 "libartagent-defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700260 ],
Andreas Gampe9462a562018-02-20 09:35:21 -0800261 shared_libs: [
262 "libartd",
263 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700264 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700265 "libartbased",
Andreas Gampe9462a562018-02-20 09:35:21 -0800266 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700267}
268
Andreas Gampee54d9922016-10-11 19:55:37 -0700269art_cc_defaults {
Dan Willemsen2ca27802017-09-27 14:57:43 -0700270 name: "libtiagent-base-defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800271 defaults: [
272 "art_test_defaults",
273 "art_defaults",
274 // Not derived from libartagent-defaults for NDK.
275 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700276 srcs: [
Andreas Gampe027444b2017-03-31 12:49:07 -0700277 // These are the ART-independent parts.
Andreas Gampe46651672017-04-07 09:00:04 -0700278 "ti-agent/agent_common.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700279 "ti-agent/agent_startup.cc",
Andreas Gampe3f46c962017-03-30 10:26:59 -0700280 "ti-agent/jni_binder.cc",
281 "ti-agent/jvmti_helper.cc",
282 "ti-agent/test_env.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700283 "ti-agent/breakpoint_helper.cc",
Alex Light78d63412017-04-14 16:20:53 -0700284 "ti-agent/common_helper.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700285 "ti-agent/early_return_helper.cc",
Alex Lighte814f9d2017-07-31 16:14:39 -0700286 "ti-agent/frame_pop_helper.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700287 "ti-agent/locals_helper.cc",
Alex Lightce568642017-09-05 16:54:25 -0700288 "ti-agent/monitors_helper.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700289 "ti-agent/redefinition_helper.cc",
Alex Light88fd7202017-06-30 08:31:59 -0700290 "ti-agent/suspension_helper.cc",
Alex Lightb4e65072019-04-25 15:10:32 -0700291 "ti-agent/suspend_event_helper.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700292 "ti-agent/stack_trace_helper.cc",
Alex Light54d39dc2017-09-25 17:00:16 -0700293 "ti-agent/threads_helper.cc",
Alex Lightd0d65962017-06-30 11:13:33 -0700294 "ti-agent/trace_helper.cc",
Alex Light9fb1ab12017-09-05 09:32:49 -0700295 "ti-agent/exceptions_helper.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700296 // This is the list of non-special OnLoad things and excludes BCI and anything that depends
297 // on ART internals.
Andreas Gampe6dee92e2016-09-12 19:58:13 -0700298 "903-hello-tagging/tagging.cc",
Andreas Gampe27fa96c2016-10-07 15:05:24 -0700299 "904-object-allocation/tracking.cc",
Andreas Gampecc13b222016-10-10 19:09:09 -0700300 "905-object-free/tracking_free.cc",
Andreas Gampee54d9922016-10-11 19:55:37 -0700301 "906-iterate-heap/iterate_heap.cc",
Andreas Gampeaa8b60c2016-10-12 12:51:25 -0700302 "907-get-loaded-classes/get_loaded_classes.cc",
Andreas Gampe9b8c5882016-10-21 15:27:46 -0700303 "908-gc-start-finish/gc_callbacks.cc",
Andreas Gampe3c252f02016-10-27 18:25:17 -0700304 "910-methods/methods.cc",
Andreas Gampeb5eb94a2016-10-27 19:23:09 -0700305 "911-get-stack-trace/stack_trace.cc",
Andreas Gamped5f2ccc2017-04-19 13:37:48 -0700306 "912-classes/classes.cc",
Andreas Gampee0f8ed92017-04-13 16:52:23 -0700307 "913-heaps/heaps.cc",
Andreas Gampeab2f0d02017-01-05 17:23:45 -0800308 "918-fields/fields.cc",
Andreas Gampe50a4e492017-01-06 18:00:20 -0800309 "920-objects/objects.cc",
Andreas Gampe1bdaf732017-01-09 19:21:06 -0800310 "922-properties/properties.cc",
Andreas Gampe319dbe82017-01-09 16:42:21 -0800311 "923-monitors/monitors.cc",
Andreas Gampeaf13ab92017-01-11 20:57:40 -0800312 "924-threads/threads.cc",
Andreas Gamped18d9e22017-01-16 16:08:45 +0000313 "925-threadgroups/threadgroups.cc",
Andreas Gampe35bcf812017-01-13 16:24:17 -0800314 "927-timers/timers.cc",
Andreas Gampe6f8e4f02017-01-16 18:18:14 -0800315 "928-jni-table/jni_table.cc",
Andreas Gampece7732b2017-01-17 15:50:26 -0800316 "929-search/search.cc",
Andreas Gampe732b0ac2017-01-18 15:23:39 -0800317 "931-agent-thread/agent_thread.cc",
Andreas Gampeeb0cea12017-01-23 08:50:04 -0800318 "933-misc-events/misc_events.cc",
Alex Light78d63412017-04-14 16:20:53 -0700319 "945-obsolete-native/obsolete_native.cc",
Alex Light8fd08562018-02-13 10:09:03 -0800320 "983-source-transform-verify/source_transform.cc",
Alex Light78d63412017-04-14 16:20:53 -0700321 "984-obsolete-invoke/obsolete_invoke.cc",
Alex Lightd78ddec2017-04-18 15:20:38 -0700322 "986-native-method-bind/native_bind.cc",
Alex Light65af20b2017-04-20 09:15:08 -0700323 "987-agent-bind/agent_bind.cc",
Alex Lighte85595e2018-08-17 15:54:34 -0700324 "988-method-trace/trace_fib.cc",
Alex Lightb7edcda2017-04-27 13:20:31 -0700325 "989-method-trace-throw/method_trace.cc",
Alex Light7c958492017-06-16 08:59:19 -0700326 "991-field-trace-2/field_trace.cc",
Alex Light6fa7b812017-06-16 09:04:29 -0700327 "992-source-data/source_file.cc",
Alex Lightc38c3692017-06-27 15:45:14 -0700328 "993-breakpoints/breakpoints.cc",
329 "996-breakpoint-obsolete/obsolete_breakpoints.cc",
Alex Light8ddfd9f2017-07-05 16:33:46 -0700330 "1900-track-alloc/alloc.cc",
Alex Light4c174282017-07-05 10:18:18 -0700331 "1901-get-bytecodes/bytecodes.cc",
Alex Light88fd7202017-06-30 08:31:59 -0700332 "1905-suspend-native/native_suspend.cc",
333 "1908-suspend-native-resume-self/native_suspend_resume.cc",
Alex Light092a4042017-07-12 08:46:44 -0700334 "1909-per-agent-tls/agent_tls.cc",
Alex Light47d49b82017-07-25 14:06:34 -0700335 "1914-get-local-instance/local_instance.cc",
Alex Light1d8a9742017-08-17 11:12:06 -0700336 "1919-vminit-thread-start-timing/vminit.cc",
Alex Light23aa7482017-08-16 10:01:13 -0700337 "1920-suspend-native-monitor/native_suspend_monitor.cc",
338 "1921-suspend-native-recursive-monitor/native_suspend_recursive_monitor.cc",
Alex Light88e1ddd2017-08-21 13:09:55 -0700339 "1922-owned-monitors-info/owned_monitors.cc",
Alex Lighte814f9d2017-07-31 16:14:39 -0700340 "1924-frame-pop-toggle/frame_pop_toggle.cc",
341 "1926-missed-frame-pop/frame_pop_missed.cc",
Alex Lightce568642017-09-05 16:54:25 -0700342 "1927-exception-event/exception_event.cc",
343 "1930-monitor-info/monitor.cc",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700344 "1932-monitor-events-misc/monitor_misc.cc",
Alex Light54d39dc2017-09-25 17:00:16 -0700345 "1934-jvmti-signal-thread/signal_threads.cc",
Alex Light3dea2122017-10-11 15:56:48 +0000346 "1939-proxy-frames/local_instance.cc",
Alex Lightb284f8d2017-11-21 00:00:48 +0000347 "1941-dispose-stress/dispose_stress.cc",
Alex Light4d77daf2018-01-04 11:51:14 -0800348 "1942-suspend-raw-monitor-exit/native_suspend_monitor.cc",
349 "1943-suspend-raw-monitor-wait/native_suspend_monitor.cc",
Alex Lightc7588752018-02-20 11:15:54 -0800350 "1946-list-descriptors/descriptors.cc",
Alex Light9e7859c2018-04-05 13:49:43 -0700351 "1950-unprepared-transform/unprepared_transform.cc",
Alex Lightc98f83e2018-07-26 08:28:36 -0700352 "1951-monitor-enter-no-suspend/raw_monitor.cc",
Alex Light0aa7a5a2018-10-10 15:58:14 +0000353 "1953-pop-frame/pop_frame.cc",
Alex Lightae45cbb2018-10-18 15:49:56 -0700354 "1957-error-ext/lasterror.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700355 // TODO Renumber
Alex Light40607862019-05-06 18:16:24 +0000356 "1962-multi-thread-events/multi_thread_events.cc",
Alex Light639e73b2019-05-17 21:44:36 +0000357 "1963-add-to-dex-classloader-in-memory/add_to_loader.cc",
Alex Lightb7c640d2019-03-20 15:52:13 -0700358 "1968-force-early-return/force_early_return.cc",
359 "1969-force-early-return-void/force_early_return_void.cc",
360 "1970-force-early-return-long/force_early_return_long.cc",
Alex Lightc14ec8f2019-07-18 16:08:41 -0700361 "1974-resize-array/resize_array.cc",
Nicolas Geoffray4ac0e152019-09-18 06:14:50 +0000362 "1975-hello-structural-transformation/structural_transform.cc",
363 "1976-hello-structural-static-methods/structural_transform_methods.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700364 ],
Andreas Gampecb5125d2018-02-20 09:36:54 -0800365 // Use NDK-compatible headers for ctstiagent.
Alex Light8c2b9292017-11-09 13:21:01 -0800366 header_libs: [
Alex Light8c2b9292017-11-09 13:21:01 -0800367 "libopenjdkjvmti_headers",
368 ],
Paul Duffin4345aac2019-07-17 15:51:54 +0100369 local_include_dirs: ["ti-agent"],
Andreas Gampee54d9922016-10-11 19:55:37 -0700370}
371
Andreas Gampe027444b2017-03-31 12:49:07 -0700372art_cc_defaults {
373 name: "libtiagent-defaults",
Andreas Gampecb5125d2018-02-20 09:36:54 -0800374 defaults: [
375 "libtiagent-base-defaults",
376 "libartagent-defaults",
377 ],
Andreas Gampe027444b2017-03-31 12:49:07 -0700378 srcs: [
379 // This is to get the IsInterpreted native method.
380 "common/stack_inspect.cc",
381 "common/runtime_state.cc",
Alex Light78d63412017-04-14 16:20:53 -0700382 "ti-agent/common_load.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700383 // This includes the remaining test functions. We should try to refactor things to
384 // make this list smaller.
Andreas Gampe027444b2017-03-31 12:49:07 -0700385 "901-hello-ti-agent/basics.cc",
386 "909-attach-agent/attach.cc",
Andreas Gamped5f2ccc2017-04-19 13:37:48 -0700387 "912-classes/classes_art.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700388 "936-search-onload/search_onload.cc",
Alex Lightfbee3982018-05-24 10:28:46 -0700389 "980-redefine-object/redef_object.cc",
Andreas Gampe59484b92018-02-14 14:00:46 -0800390 "983-source-transform-verify/source_transform_art.cc",
Alex Light8c2b9292017-11-09 13:21:01 -0800391 "1940-ddms-ext/ddm_ext.cc",
Alex Light0e841182018-02-12 17:42:50 +0000392 "1944-sudden-exit/sudden_exit.cc",
Alex Light0aa7a5a2018-10-10 15:58:14 +0000393 // "1952-pop-frame-jit/pop_frame.cc",
Alex Lightfc81d802018-12-07 13:39:05 -0800394 "1959-redefine-object-instrument/fake_redef_object.cc",
Alex Lighte7a33542019-04-10 14:22:49 -0700395 "1960-obsolete-jit-multithread-native/native_say_hi.cc",
Alex Light639e73b2019-05-17 21:44:36 +0000396 "1964-add-to-dex-classloader-file/add_to_loader.cc",
Alex Light098e7a62019-05-21 16:57:10 -0700397 "1963-add-to-dex-classloader-in-memory/check_memfd_create.cc",
Andreas Gampe027444b2017-03-31 12:49:07 -0700398 ],
Alex Lightfbee3982018-05-24 10:28:46 -0700399 static_libs: [
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000400 "libz",
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800401 "slicer_no_rtti",
Alex Lightfbee3982018-05-24 10:28:46 -0700402 ],
Andreas Gampe027444b2017-03-31 12:49:07 -0700403}
404
Andreas Gampee54d9922016-10-11 19:55:37 -0700405art_cc_test_library {
406 name: "libtiagent",
407 defaults: ["libtiagent-defaults"],
David Sehrfcbe15c2018-02-15 09:41:13 -0800408 shared_libs: [
409 "libart",
410 "libdexfile",
David Sehr82d046e2018-04-23 08:14:19 -0700411 "libprofile",
David Sehr1f010162018-05-15 08:59:32 -0700412 "libartbase",
David Sehrfcbe15c2018-02-15 09:41:13 -0800413 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700414}
415
416art_cc_test_library {
417 name: "libtiagentd",
418 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700419 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700420 "libtiagent-defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700421 ],
David Sehrfcbe15c2018-02-15 09:41:13 -0800422 shared_libs: [
423 "libartd",
424 "libdexfiled",
David Sehr82d046e2018-04-23 08:14:19 -0700425 "libprofiled",
David Sehr1f010162018-05-15 08:59:32 -0700426 "libartbased",
David Sehrfcbe15c2018-02-15 09:41:13 -0800427 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700428}
429
Andreas Gampe59484b92018-02-14 14:00:46 -0800430cc_library_static {
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800431 name: "libctstiagent",
432 defaults: ["libtiagent-base-defaults"],
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100433 visibility: [
434 "//cts/hostsidetests/jvmti:__subpackages__",
435 ],
Andreas Gampe59484b92018-02-14 14:00:46 -0800436 host_supported: false,
437 srcs: [
438 "983-source-transform-verify/source_transform_slicer.cc",
439 ],
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800440 whole_static_libs: [
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800441 "slicer_ndk_no_rtti",
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800442 ],
443 static_libs: [
Andreas Gampecb5125d2018-02-20 09:36:54 -0800444 "libbase_ndk",
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800445 ],
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000446 shared_libs: [
Andreas Gampe0dc93b12019-05-15 10:30:22 -0700447 "libz", // for slicer (using adler32).
Nicolas Geoffray65ed42a2018-10-30 12:33:04 +0000448 ],
Andreas Gampecb5125d2018-02-20 09:36:54 -0800449 sdk_version: "current",
450 stl: "c++_static",
Paul Duffin4345aac2019-07-17 15:51:54 +0100451 header_libs: [
452 "jni_headers",
Alex Light8fd08562018-02-13 10:09:03 -0800453 // This is needed to resolve the base/ header file in libdexfile. Unfortunately there are
454 // many problems with how we export headers that are making doing this the 'right' way
455 // difficult.
456 // TODO: move those headers to art/ rather than under runtime.
Paul Duffin4345aac2019-07-17 15:51:54 +0100457 "libart_runtime_headers_ndk",
Alex Light8fd08562018-02-13 10:09:03 -0800458 ],
Andreas Gamped0ed0d92018-02-12 15:03:36 -0800459 export_include_dirs: ["ti-agent"],
460}
461
Alex Light8f2c6d42017-04-10 16:27:35 -0700462art_cc_defaults {
Alex Light88659142018-05-15 10:53:06 -0700463 name: "libtistress-srcs",
Alex Light8f2c6d42017-04-10 16:27:35 -0700464 defaults: ["libartagent-defaults"],
465 srcs: [
466 "ti-stress/stress.cc",
467 ],
Alex Light88659142018-05-15 10:53:06 -0700468 header_libs: ["libopenjdkjvmti_headers"],
469}
470
471art_cc_defaults {
472 name: "libtistress-defaults",
473 defaults: ["libtistress-srcs"],
Alex Light8f2c6d42017-04-10 16:27:35 -0700474 shared_libs: [
475 "libbase",
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800476 "slicer_no_rtti",
Alex Light8f2c6d42017-04-10 16:27:35 -0700477 ],
Alex Light8f2c6d42017-04-10 16:27:35 -0700478}
479
480art_cc_test_library {
481 name: "libtistress",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700482 defaults: ["libtistress-defaults"],
Alex Light88659142018-05-15 10:53:06 -0700483 shared_libs: ["libartbase"],
Alex Light8f2c6d42017-04-10 16:27:35 -0700484}
485
486art_cc_test_library {
487 name: "libtistressd",
488 defaults: [
Alex Light8f2c6d42017-04-10 16:27:35 -0700489 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700490 "libtistress-defaults",
Alex Light8f2c6d42017-04-10 16:27:35 -0700491 ],
Alex Light88659142018-05-15 10:53:06 -0700492 shared_libs: ["libartbased"],
493}
494
495art_cc_defaults {
496 name: "libtistress-static-defaults",
Andreas Gampeec5ed062018-01-26 16:20:02 -0800497 defaults: [
498 "libtistress-srcs",
499 "libart_static_defaults",
Alex Light88659142018-05-15 10:53:06 -0700500 ],
Andreas Gampe7e057ec2019-03-04 13:11:22 -0800501 static_libs: ["slicer_no_rtti"],
Alex Light88659142018-05-15 10:53:06 -0700502}
503
504art_cc_test_library {
505 name: "libtistresss",
506 defaults: ["libtistress-static-defaults"],
507 static_libs: ["libartbase"],
508}
509
510art_cc_test_library {
511 name: "libtistressds",
512 defaults: [
513 "art_debug_defaults",
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800514 "libtistress-static-defaults",
Alex Light88659142018-05-15 10:53:06 -0700515 ],
516 static_libs: ["libartbased"],
Alex Light8f2c6d42017-04-10 16:27:35 -0700517}
518
Colin Crossafd3c9e2016-09-16 13:47:21 -0700519cc_defaults {
520 name: "libarttest-defaults",
521 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700522 "art_test_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -0700523 "art_defaults",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700524 ],
525 srcs: [
Colin Crossafd3c9e2016-09-16 13:47:21 -0700526 "004-JniTest/jni_test.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700527 "004-ReferenceMap/stack_walk_refmap_jni.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000528 "004-SignalTest/signaltest.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700529 "004-StackWalk/stack_walk_jni.cc",
530 "004-ThreadStress/thread_stress.cc",
531 "004-UnsafeTest/unsafe_test.cc",
532 "044-proxy/native_proxy.cc",
533 "051-thread/thread_test.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700534 "1337-gc-coverage/gc_coverage.cc",
535 "136-daemon-jni-shutdown/daemon_jni_shutdown.cc",
536 "137-cfi/cfi.cc",
537 "139-register-natives/regnative.cc",
538 "141-class-unload/jni_unload.cc",
539 "148-multithread-gc-annotations/gc_coverage.cc",
540 "149-suspend-all-stress/suspend_all.cc",
Mathieu Chartier72a32892017-01-24 09:40:56 -0800541 "154-gc-loop/heap_interface.cc",
Andreas Gampeaaf0d382017-11-27 14:10:21 -0800542 "167-visit-locks/visit_locks.cc",
Andreas Gampe56776012018-01-26 17:40:55 -0800543 "169-threadgroup-jni/jni_daemon_thread.cc",
Mathieu Chartieradc90862018-05-11 13:03:06 -0700544 "172-app-image-twice/debug_print_class.cc",
Vladimir Marko422a9eb2019-08-01 12:54:07 +0100545 "177-visibly-initialized-deadlock/visibly_initialized.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000546 "1945-proxy-method-arguments/get_args.cc",
Andreas Gampeaaf0d382017-11-27 14:10:21 -0800547 "203-multi-checkpoint/multi_checkpoint.cc",
Alex Lightf4ed7e82018-01-17 11:52:36 -0800548 "305-other-fault-handler/fault_handler.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700549 "454-get-vreg/get_vreg_jni.cc",
550 "457-regs/regs_jni.cc",
551 "461-get-reference-vreg/get_reference_vreg_jni.cc",
552 "466-get-live-vreg/get_live_vreg_jni.cc",
553 "497-inlining-and-class-loader/clear_dex_cache.cc",
554 "543-env-long-ref/env_long_ref.cc",
555 "566-polymorphic-inlining/polymorphic_inline.cc",
556 "570-checker-osr/osr.cc",
557 "595-profile-saving/profile-saving.cc",
558 "596-app-images/app_images.cc",
Hans Boehm6fe97e02016-05-04 18:35:57 -0700559 "596-monitor-inflation/monitor_inflation.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700560 "597-deopt-new-string/deopt.cc",
Alexey Grebenkinbe4c2bd2018-02-01 19:09:59 +0300561 "616-cha-unloading/cha_unload.cc",
Vladimir Markoc5798bf2016-12-09 10:20:54 +0000562 "626-const-class-linking/clear_dex_cache_types.cc",
Nicolas Geoffray13a797b2017-03-15 16:41:31 +0000563 "642-fp-callees/fp_callees.cc",
Vladimir Marko5fdd7782017-04-20 11:26:03 +0100564 "647-jni-get-field-id/get_field_id.cc",
Roland Levillain0d2323e2017-06-26 18:14:39 +0100565 "656-annotation-lookup-generic-jni/test.cc",
Igor Murashkin545412b2017-08-17 15:26:54 -0700566 "661-oat-writer-layout/oat_writer_layout.cc",
567 "664-aget-verifier/aget-verifier.cc",
Vladimir Marko2196c652017-11-30 16:16:07 +0000568 "667-jit-jni-stub/jit_jni_stub_test.cc",
David Brazdil11b67b22018-01-18 16:41:40 +0000569 "674-hiddenapi/hiddenapi.cc",
David Brazdil331a5e12019-04-01 22:46:16 +0000570 "692-vdex-inmem-loader/vdex_inmem_loader.cc",
Dan Willemsen2ca27802017-09-27 14:57:43 -0700571 "708-jit-cache-churn/jit.cc",
Nicolas Geoffrayfa595882019-08-06 17:40:09 +0100572 "720-thread-priority/thread_priority.cc",
Alexey Grebenkince750492018-05-31 23:42:20 +0300573 "800-smali/jni.cc",
Alex Lightf889c702018-02-23 15:25:45 -0800574 "909-attach-agent/disallow_debugging.cc",
Mathieu Chartier00fbe4f2019-01-02 16:52:38 -0800575 "1001-app-image-regions/app_image_regions.cc",
Mathieu Chartier175ce3d2019-03-06 16:54:24 -0800576 "1002-notify-startup/startup_interface.cc",
Alex Lighte34fe442018-02-21 17:35:55 -0800577 "1947-breakpoint-redefine-deopt/check_deopt.cc",
Alex Lightf3677472019-06-26 16:31:53 -0700578 "1972-jni-id-swap-indices/jni_id.cc",
Alex Light55eccdf2019-10-07 13:51:13 +0000579 "1985-structural-redefine-stack-scope/stack_scope.cc",
Roland Levillainad0777d2018-02-12 20:00:18 +0000580 "common/runtime_state.cc",
581 "common/stack_inspect.cc",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700582 ],
583 shared_libs: [
584 "libbacktrace",
Andreas Gampe3fec9ac2016-09-13 10:47:28 -0700585 "libbase",
Colin Crossafd3c9e2016-09-16 13:47:21 -0700586 "libnativehelper",
587 ],
Colin Crossafd3c9e2016-09-16 13:47:21 -0700588}
589
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800590filegroup {
591 name: "art_cts_jvmti_test_library",
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100592 visibility: [
593 "//cts/hostsidetests/jvmti:__subpackages__",
594 ],
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800595 srcs: [
596 // shim classes. We use one that exposes the common functionality.
Alex Light23ca8fb2019-05-10 11:27:02 -0700597 "jvmti-common/Redefinition.java",
598 "jvmti-common/Main.java",
599 "jvmti-common/Trace.java",
600 "jvmti-common/Breakpoint.java",
601 "jvmti-common/Suspension.java",
602 "jvmti-common/Locals.java",
603 "jvmti-common/StackTrace.java",
604 "jvmti-common/FramePop.java",
605 "jvmti-common/Exceptions.java",
606 "jvmti-common/Monitors.java",
607 "jvmti-common/Threads.java",
608 "jvmti-common/SuspendEvents.java",
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800609
610 // Actual test classes.
611 "901-hello-ti-agent/src/art/Test901.java",
612 "902-hello-transformation/src/art/Test902.java",
613 "903-hello-tagging/src/art/Test903.java",
614 "904-object-allocation/src/art/Test904.java",
615 "905-object-free/src/art/Test905.java",
616 "906-iterate-heap/src/art/Test906.java",
617 "907-get-loaded-classes/src/art/Test907.java",
618 "907-get-loaded-classes/src/art/Cerr.java",
619 "908-gc-start-finish/src/art/Test908.java",
620 "910-methods/src/art/Test910.java",
621 "911-get-stack-trace/src/art/Test911.java",
622 "911-get-stack-trace/src/art/AllTraces.java",
623 "911-get-stack-trace/src/art/ControlData.java",
624 "911-get-stack-trace/src/art/Frames.java",
625 "911-get-stack-trace/src/art/OtherThread.java",
626 "911-get-stack-trace/src/art/PrintThread.java",
627 "911-get-stack-trace/src/art/Recurse.java",
628 "911-get-stack-trace/src/art/SameThread.java",
629 "911-get-stack-trace/src/art/ThreadListTraces.java",
630 "912-classes/src-art/art/Test912.java",
631 "912-classes/src-art/art/DexData.java",
632 "913-heaps/src/art/Test913.java",
633 "914-hello-obsolescence/src/art/Test914.java",
634 "915-obsolete-2/src/art/Test915.java",
635 "917-fields-transformation/src/art/Test917.java",
636 "918-fields/src/art/Test918.java",
637 "919-obsolete-fields/src/art/Test919.java",
638 "920-objects/src/art/Test920.java",
639 "922-properties/src/art/Test922.java",
640 "923-monitors/src/art/Test923.java",
641 "924-threads/src/art/Test924.java",
642 "925-threadgroups/src/art/Test925.java",
643 "926-multi-obsolescence/src/art/Test926.java",
644 "927-timers/src/art/Test927.java",
645 "928-jni-table/src/art/Test928.java",
646 "930-hello-retransform/src/art/Test930.java",
647 "931-agent-thread/src/art/Test931.java",
648 "932-transform-saves/src/art/Test932.java",
649 "933-misc-events/src/art/Test933.java",
650 "940-recursive-obsolete/src/art/Test940.java",
651 "942-private-recursive/src/art/Test942.java",
652 "944-transform-classloaders/src/art/Test944.java",
653 "945-obsolete-native/src/art/Test945.java",
654 "947-reflect-method/src/art/Test947.java",
655 "951-threaded-obsolete/src/art/Test951.java",
656 "982-ok-no-retransform/src/art/Test982.java",
657 "983-source-transform-verify/src/art/Test983.java",
658 "984-obsolete-invoke/src/art/Test984.java",
659 "985-re-obsolete/src/art/Test985.java",
660 "986-native-method-bind/src/art/Test986.java",
661 "988-method-trace/src/art/Test988.java",
662 "988-method-trace/src/art/Test988Intrinsics.java",
663 "989-method-trace-throw/src/art/Test989.java",
664 "990-field-trace/src/art/Test990.java",
665 "991-field-trace-2/src/art/Test991.java",
666 "992-source-data/src/art/Test992.java",
667 "992-source-data/src/art/Target2.java",
668 "993-breakpoints/src/art/Test993.java",
669 "994-breakpoint-line/src/art/Test994.java",
670 "995-breakpoints-throw/src/art/Test995.java",
671 "996-breakpoint-obsolete/src/art/Test996.java",
672 "997-single-step/src/art/Test997.java",
673 "1900-track-alloc/src/art/Test1900.java",
674 "1901-get-bytecodes/src/art/Test1901.java",
675 "1902-suspend/src/art/Test1902.java",
676 "1903-suspend-self/src/art/Test1903.java",
677 "1904-double-suspend/src/art/Test1904.java",
678 "1906-suspend-list-me-first/src/art/Test1906.java",
679 "1907-suspend-list-self-twice/src/art/Test1907.java",
680 "1908-suspend-native-resume-self/src/art/Test1908.java",
681 "1909-per-agent-tls/src/art/Test1909.java",
682 "1910-transform-with-default/src/art/Test1910.java",
683 "1911-get-local-var-table/src/art/Test1911.java",
684 "1912-get-set-local-primitive/src/art/Test1912.java",
685 "1913-get-set-local-objects/src/art/Test1913.java",
686 "1914-get-local-instance/src/art/Test1914.java",
687 "1915-get-set-local-current-thread/src/art/Test1915.java",
688 "1916-get-set-current-frame/src/art/Test1916.java",
689 "1917-get-stack-frame/src/art/Test1917.java",
690 "1920-suspend-native-monitor/src/art/Test1920.java",
691 "1921-suspend-native-recursive-monitor/src/art/Test1921.java",
692 "1922-owned-monitors-info/src/art/Test1922.java",
693 "1923-frame-pop/src/art/Test1923.java",
694 "1924-frame-pop-toggle/src/art/Test1924.java",
695 "1925-self-frame-pop/src/art/Test1925.java",
696 "1926-missed-frame-pop/src/art/Test1926.java",
697 "1927-exception-event/src/art/Test1927.java",
698 "1928-exception-event-exception/src/art/Test1928.java",
699 "1930-monitor-info/src/art/Test1930.java",
700 "1931-monitor-events/src/art/Test1931.java",
701 "1932-monitor-events-misc/src/art/Test1932.java",
702 "1933-monitor-current-contended/src/art/Test1933.java",
703 "1934-jvmti-signal-thread/src/art/Test1934.java",
704 "1936-thread-end-events/src/art/Test1936.java",
705 "1937-transform-soft-fail/src/art/Test1937.java",
706 "1939-proxy-frames/src/art/Test1939.java",
707 "1941-dispose-stress/src/art/Test1941.java",
708 "1942-suspend-raw-monitor-exit/src/art/Test1942.java",
709 "1943-suspend-raw-monitor-wait/src/art/Test1943.java",
710 "1953-pop-frame/src/art/Test1953.java",
711 "1958-transform-try-jit/src/art/Test1958.java",
Alex Light40607862019-05-06 18:16:24 +0000712 "1962-multi-thread-events/src/art/Test1962.java",
Alex Lightb7c640d2019-03-20 15:52:13 -0700713 // TODO Renumber
714 // "1962-force-early-return/src/art/Test1962.java",
715 // "1963-force-early-return-void/src/art/Test1963.java",
716 // "1964-force-early-return-long/src/art/Test1964.java",
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800717 ],
718}
719
720// CTS test runner in cts/hostsidetests/jvmti looks for an expected test
721// result for the test NN in the file results.NN.expected.txt while in the
722// source tree each expected test result is in the NN-xxxx/expected.txt.
723// Copy+rename them them to a temporary directory and them zip them.
724java_genrule {
725 name: "expected_cts_outputs",
Martin Stjernholmb4abe0a2019-05-17 19:22:55 +0100726 visibility: [
727 "//cts/hostsidetests/jvmti:__subpackages__",
728 ],
Sasha Smundakc7c5d532019-02-27 15:03:37 -0800729 srcs: [
730 "901-hello-ti-agent/expected.txt",
731 "902-hello-transformation/expected.txt",
732 "903-hello-tagging/expected.txt",
733 "904-object-allocation/expected.txt",
734 "905-object-free/expected.txt",
735 "906-iterate-heap/expected.txt",
736 "907-get-loaded-classes/expected.txt",
737 "908-gc-start-finish/expected.txt",
738 "910-methods/expected.txt",
739 "911-get-stack-trace/expected.txt",
740 "912-classes/expected.txt",
741 "913-heaps/expected.txt",
742 "914-hello-obsolescence/expected.txt",
743 "915-obsolete-2/expected.txt",
744 "917-fields-transformation/expected.txt",
745 "918-fields/expected.txt",
746 "919-obsolete-fields/expected.txt",
747 "920-objects/expected.txt",
748 "922-properties/expected.txt",
749 "923-monitors/expected.txt",
750 "924-threads/expected.txt",
751 "925-threadgroups/expected.txt",
752 "926-multi-obsolescence/expected.txt",
753 "927-timers/expected.txt",
754 "928-jni-table/expected.txt",
755 "930-hello-retransform/expected.txt",
756 "931-agent-thread/expected.txt",
757 "932-transform-saves/expected.txt",
758 "933-misc-events/expected.txt",
759 "940-recursive-obsolete/expected.txt",
760 "942-private-recursive/expected.txt",
761 "944-transform-classloaders/expected.txt",
762 "945-obsolete-native/expected.txt",
763 "947-reflect-method/expected.txt",
764 "951-threaded-obsolete/expected.txt",
765 "982-ok-no-retransform/expected.txt",
766 "983-source-transform-verify/expected.txt",
767 "984-obsolete-invoke/expected.txt",
768 "985-re-obsolete/expected.txt",
769 "986-native-method-bind/expected.txt",
770 "988-method-trace/expected.txt",
771 "989-method-trace-throw/expected.txt",
772 "990-field-trace/expected.txt",
773 "991-field-trace-2/expected.txt",
774 "992-source-data/expected.txt",
775 "993-breakpoints/expected.txt",
776 "994-breakpoint-line/expected.txt",
777 "995-breakpoints-throw/expected.txt",
778 "996-breakpoint-obsolete/expected.txt",
779 "997-single-step/expected.txt",
780 "1900-track-alloc/expected.txt",
781 "1901-get-bytecodes/expected.txt",
782 "1902-suspend/expected.txt",
783 "1903-suspend-self/expected.txt",
784 "1904-double-suspend/expected.txt",
785 "1906-suspend-list-me-first/expected.txt",
786 "1907-suspend-list-self-twice/expected.txt",
787 "1908-suspend-native-resume-self/expected.txt",
788 "1909-per-agent-tls/expected.txt",
789 "1910-transform-with-default/expected.txt",
790 "1911-get-local-var-table/expected.txt",
791 "1912-get-set-local-primitive/expected.txt",
792 "1913-get-set-local-objects/expected.txt",
793 "1914-get-local-instance/expected.txt",
794 "1915-get-set-local-current-thread/expected.txt",
795 "1916-get-set-current-frame/expected.txt",
796 "1917-get-stack-frame/expected.txt",
797 "1920-suspend-native-monitor/expected.txt",
798 "1921-suspend-native-recursive-monitor/expected.txt",
799 "1922-owned-monitors-info/expected.txt",
800 "1923-frame-pop/expected.txt",
801 "1924-frame-pop-toggle/expected.txt",
802 "1925-self-frame-pop/expected.txt",
803 "1926-missed-frame-pop/expected.txt",
804 "1927-exception-event/expected.txt",
805 "1928-exception-event-exception/expected.txt",
806 "1930-monitor-info/expected.txt",
807 "1931-monitor-events/expected.txt",
808 "1932-monitor-events-misc/expected.txt",
809 "1933-monitor-current-contended/expected.txt",
810 "1934-jvmti-signal-thread/expected.txt",
811 "1936-thread-end-events/expected.txt",
812 "1937-transform-soft-fail/expected.txt",
813 "1939-proxy-frames/expected.txt",
814 "1941-dispose-stress/expected.txt",
815 "1942-suspend-raw-monitor-exit/expected.txt",
816 "1943-suspend-raw-monitor-wait/expected.txt",
817 "1953-pop-frame/expected.txt",
818 "1958-transform-try-jit/expected.txt",
819 ],
820 out: ["expected_cts_outputs.jar"],
821 tools: ["soong_zip"],
822 cmd: "rm -rf $(genDir)/res && mkdir -p $(genDir)/res && " +
823 "for f in $(in); do x=$${f#art/test/}; " +
824 "cp $$f $(genDir)/res/results.$${x%%-*}.expected.txt; done && " +
825 "$(location soong_zip) -o $(out) -C $(genDir)/res -D $(genDir)/res",
826}