Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 1 | // |
| 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 Levillain | 962a110 | 2019-11-01 16:20:33 +0000 | [diff] [blame^] | 17 | // ART gtests. |
| 18 | |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 19 | art_cc_defaults { |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 20 | name: "art_test_defaults", |
| 21 | host_supported: true, |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 22 | target: { |
| 23 | android_arm: { |
Roland Levillain | d4d6fb5 | 2019-08-05 12:28:39 +0100 | [diff] [blame] | 24 | relative_install_path: "art/arm", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 25 | }, |
| 26 | android_arm64: { |
Roland Levillain | d4d6fb5 | 2019-08-05 12:28:39 +0100 | [diff] [blame] | 27 | relative_install_path: "art/arm64", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 28 | }, |
| 29 | android_mips: { |
Roland Levillain | d4d6fb5 | 2019-08-05 12:28:39 +0100 | [diff] [blame] | 30 | relative_install_path: "art/mips", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 31 | }, |
| 32 | android_mips64: { |
Roland Levillain | d4d6fb5 | 2019-08-05 12:28:39 +0100 | [diff] [blame] | 33 | relative_install_path: "art/mips64", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 34 | }, |
| 35 | android_x86: { |
Roland Levillain | d4d6fb5 | 2019-08-05 12:28:39 +0100 | [diff] [blame] | 36 | relative_install_path: "art/x86", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 37 | }, |
| 38 | android_x86_64: { |
Roland Levillain | d4d6fb5 | 2019-08-05 12:28:39 +0100 | [diff] [blame] | 39 | relative_install_path: "art/x86_64", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 40 | }, |
Colin Cross | fd5428b | 2016-09-19 10:40:05 -0700 | [diff] [blame] | 41 | darwin: { |
| 42 | enabled: false, |
| 43 | }, |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 44 | }, |
Dan Albert | b5d36de | 2016-09-21 14:56:51 -0700 | [diff] [blame] | 45 | cflags: [ |
| 46 | "-Wno-frame-larger-than=", |
| 47 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | art_cc_defaults { |
| 51 | name: "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 52 | test_per_src: true, |
| 53 | // These really are gtests, but the gtest library comes from libart-gtest.so |
| 54 | gtest: false, |
| 55 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 56 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 57 | "art_debug_defaults", |
| 58 | "art_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 59 | ], |
| 60 | |
| 61 | shared_libs: [ |
| 62 | "libartd", |
| 63 | "libartd-disassembler", |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 64 | "libvixld", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 65 | "libart-gtest", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 66 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 67 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 68 | "libartbased", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 69 | |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 70 | "libbase", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 71 | "libicuuc", |
| 72 | "libicui18n", |
| 73 | "libnativehelper", |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 74 | "libz", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 75 | ], |
| 76 | whole_static_libs: [ |
| 77 | "libsigchain", |
| 78 | ], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 79 | |
| 80 | target: { |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 81 | linux: { |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 82 | 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 Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 90 | cflags: [ |
| 91 | // gtest issue |
| 92 | "-Wno-used-but-marked-unused", |
| 93 | "-Wno-deprecated", |
| 94 | "-Wno-missing-noreturn", |
| 95 | ], |
| 96 | }, |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 97 | host: { |
| 98 | shared_libs: [ |
| 99 | "libziparchive", |
| 100 | ], |
| 101 | }, |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 102 | android: { |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 103 | shared_libs: [ |
Dimitry Ivanov | 9642b1b | 2016-09-28 02:44:00 -0700 | [diff] [blame] | 104 | "liblog", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 105 | ], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 106 | }, |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 107 | }, |
| 108 | } |
| 109 | |
| 110 | art_cc_defaults { |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 111 | name: "libart-gtest-defaults", |
| 112 | host_supported: true, |
| 113 | defaults: [ |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 114 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 115 | "art_defaults", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 116 | ], |
| 117 | shared_libs: [ |
| 118 | "libartd", |
| 119 | "libartd-compiler", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 120 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 121 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 122 | "libartbased", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 123 | ], |
| 124 | static_libs: [ |
| 125 | "libgtest", |
| 126 | ], |
| 127 | target: { |
| 128 | android32: { |
Colin Cross | c5c7187 | 2016-09-15 21:07:29 -0700 | [diff] [blame] | 129 | cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest/art"], |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 130 | }, |
| 131 | android64: { |
| 132 | cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest64/art"], |
| 133 | }, |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 134 | linux: { |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 135 | cflags: [ |
| 136 | // gtest issue |
| 137 | "-Wno-used-but-marked-unused", |
| 138 | "-Wno-deprecated", |
| 139 | "-Wno-missing-noreturn", |
| 140 | ], |
| 141 | }, |
Colin Cross | 942036f | 2016-09-15 16:24:51 -0700 | [diff] [blame] | 142 | darwin: { |
| 143 | enabled: false, |
| 144 | }, |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 145 | }, |
| 146 | } |
| 147 | |
| 148 | art_cc_library { |
| 149 | name: "libart-gtest", |
| 150 | host_supported: true, |
| 151 | whole_static_libs: [ |
| 152 | "libart-compiler-gtest", |
| 153 | "libart-runtime-gtest", |
David Sehr | d5f8de8 | 2018-04-27 14:12:03 -0700 | [diff] [blame] | 154 | "libartbase-art-gtest", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 155 | "libgtest", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 156 | ], |
| 157 | shared_libs: [ |
| 158 | "libartd", |
| 159 | "libartd-compiler", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 160 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 161 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 162 | "libartbased", |
Colin Cross | f0af906 | 2016-10-21 10:50:31 -0700 | [diff] [blame] | 163 | "libbase", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 164 | "libbacktrace", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 165 | ], |
| 166 | target: { |
Colin Cross | 942036f | 2016-09-15 16:24:51 -0700 | [diff] [blame] | 167 | darwin: { |
| 168 | enabled: false, |
| 169 | }, |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 170 | }, |
| 171 | } |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 172 | |
Roland Levillain | 962a110 | 2019-11-01 16:20:33 +0000 | [diff] [blame^] | 173 | // ART run-tests. |
| 174 | |
| 175 | art_cc_test_library { |
| 176 | name: "libarttest", |
| 177 | defaults: ["libarttest-defaults"], |
| 178 | shared_libs: [ |
| 179 | "libart", |
| 180 | "libdexfile", |
| 181 | "libprofile", |
| 182 | "libartbase", |
| 183 | ], |
| 184 | } |
| 185 | |
| 186 | art_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 | |
| 200 | art_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 | |
| 210 | art_cc_test_library { |
| 211 | name: "libnativebridgetest", |
| 212 | shared_libs: ["libart"], |
| 213 | defaults: [ |
| 214 | "libnativebridgetest-defaults", |
| 215 | ], |
| 216 | } |
| 217 | |
| 218 | art_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 Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 229 | cc_defaults { |
| 230 | name: "libartagent-defaults", |
| 231 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 232 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 233 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 234 | ], |
| 235 | shared_libs: [ |
| 236 | "libbacktrace", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 237 | "libbase", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 238 | "libnativehelper", |
| 239 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 240 | } |
| 241 | |
| 242 | art_cc_test_library { |
| 243 | name: "libartagent", |
| 244 | srcs: ["900-hello-plugin/load_unload.cc"], |
| 245 | defaults: ["libartagent-defaults"], |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 246 | shared_libs: [ |
| 247 | "libart", |
| 248 | "libdexfile", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 249 | "libprofile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 250 | "libartbase", |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 251 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 252 | } |
| 253 | |
| 254 | art_cc_test_library { |
| 255 | name: "libartagentd", |
| 256 | srcs: ["900-hello-plugin/load_unload.cc"], |
| 257 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 258 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 259 | "libartagent-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 260 | ], |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 261 | shared_libs: [ |
| 262 | "libartd", |
| 263 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 264 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 265 | "libartbased", |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 266 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 267 | } |
| 268 | |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 269 | art_cc_defaults { |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 270 | name: "libtiagent-base-defaults", |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 271 | defaults: [ |
| 272 | "art_test_defaults", |
| 273 | "art_defaults", |
| 274 | // Not derived from libartagent-defaults for NDK. |
| 275 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 276 | srcs: [ |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 277 | // These are the ART-independent parts. |
Andreas Gampe | 4665167 | 2017-04-07 09:00:04 -0700 | [diff] [blame] | 278 | "ti-agent/agent_common.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 279 | "ti-agent/agent_startup.cc", |
Andreas Gampe | 3f46c96 | 2017-03-30 10:26:59 -0700 | [diff] [blame] | 280 | "ti-agent/jni_binder.cc", |
| 281 | "ti-agent/jvmti_helper.cc", |
| 282 | "ti-agent/test_env.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 283 | "ti-agent/breakpoint_helper.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 284 | "ti-agent/common_helper.cc", |
Alex Light | b7c640d | 2019-03-20 15:52:13 -0700 | [diff] [blame] | 285 | "ti-agent/early_return_helper.cc", |
Alex Light | e814f9d | 2017-07-31 16:14:39 -0700 | [diff] [blame] | 286 | "ti-agent/frame_pop_helper.cc", |
Alex Light | 47d49b8 | 2017-07-25 14:06:34 -0700 | [diff] [blame] | 287 | "ti-agent/locals_helper.cc", |
Alex Light | ce56864 | 2017-09-05 16:54:25 -0700 | [diff] [blame] | 288 | "ti-agent/monitors_helper.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 289 | "ti-agent/redefinition_helper.cc", |
Alex Light | 88fd720 | 2017-06-30 08:31:59 -0700 | [diff] [blame] | 290 | "ti-agent/suspension_helper.cc", |
Alex Light | b4e6507 | 2019-04-25 15:10:32 -0700 | [diff] [blame] | 291 | "ti-agent/suspend_event_helper.cc", |
Alex Light | 47d49b8 | 2017-07-25 14:06:34 -0700 | [diff] [blame] | 292 | "ti-agent/stack_trace_helper.cc", |
Alex Light | 54d39dc | 2017-09-25 17:00:16 -0700 | [diff] [blame] | 293 | "ti-agent/threads_helper.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 294 | "ti-agent/trace_helper.cc", |
Alex Light | 9fb1ab1 | 2017-09-05 09:32:49 -0700 | [diff] [blame] | 295 | "ti-agent/exceptions_helper.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 296 | // This is the list of non-special OnLoad things and excludes BCI and anything that depends |
| 297 | // on ART internals. |
Andreas Gampe | 6dee92e | 2016-09-12 19:58:13 -0700 | [diff] [blame] | 298 | "903-hello-tagging/tagging.cc", |
Andreas Gampe | 27fa96c | 2016-10-07 15:05:24 -0700 | [diff] [blame] | 299 | "904-object-allocation/tracking.cc", |
Andreas Gampe | cc13b22 | 2016-10-10 19:09:09 -0700 | [diff] [blame] | 300 | "905-object-free/tracking_free.cc", |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 301 | "906-iterate-heap/iterate_heap.cc", |
Andreas Gampe | aa8b60c | 2016-10-12 12:51:25 -0700 | [diff] [blame] | 302 | "907-get-loaded-classes/get_loaded_classes.cc", |
Andreas Gampe | 9b8c588 | 2016-10-21 15:27:46 -0700 | [diff] [blame] | 303 | "908-gc-start-finish/gc_callbacks.cc", |
Andreas Gampe | 3c252f0 | 2016-10-27 18:25:17 -0700 | [diff] [blame] | 304 | "910-methods/methods.cc", |
Andreas Gampe | b5eb94a | 2016-10-27 19:23:09 -0700 | [diff] [blame] | 305 | "911-get-stack-trace/stack_trace.cc", |
Andreas Gampe | d5f2ccc | 2017-04-19 13:37:48 -0700 | [diff] [blame] | 306 | "912-classes/classes.cc", |
Andreas Gampe | e0f8ed9 | 2017-04-13 16:52:23 -0700 | [diff] [blame] | 307 | "913-heaps/heaps.cc", |
Andreas Gampe | ab2f0d0 | 2017-01-05 17:23:45 -0800 | [diff] [blame] | 308 | "918-fields/fields.cc", |
Andreas Gampe | 50a4e49 | 2017-01-06 18:00:20 -0800 | [diff] [blame] | 309 | "920-objects/objects.cc", |
Andreas Gampe | 1bdaf73 | 2017-01-09 19:21:06 -0800 | [diff] [blame] | 310 | "922-properties/properties.cc", |
Andreas Gampe | 319dbe8 | 2017-01-09 16:42:21 -0800 | [diff] [blame] | 311 | "923-monitors/monitors.cc", |
Andreas Gampe | af13ab9 | 2017-01-11 20:57:40 -0800 | [diff] [blame] | 312 | "924-threads/threads.cc", |
Andreas Gampe | d18d9e2 | 2017-01-16 16:08:45 +0000 | [diff] [blame] | 313 | "925-threadgroups/threadgroups.cc", |
Andreas Gampe | 35bcf81 | 2017-01-13 16:24:17 -0800 | [diff] [blame] | 314 | "927-timers/timers.cc", |
Andreas Gampe | 6f8e4f0 | 2017-01-16 18:18:14 -0800 | [diff] [blame] | 315 | "928-jni-table/jni_table.cc", |
Andreas Gampe | ce7732b | 2017-01-17 15:50:26 -0800 | [diff] [blame] | 316 | "929-search/search.cc", |
Andreas Gampe | 732b0ac | 2017-01-18 15:23:39 -0800 | [diff] [blame] | 317 | "931-agent-thread/agent_thread.cc", |
Andreas Gampe | eb0cea1 | 2017-01-23 08:50:04 -0800 | [diff] [blame] | 318 | "933-misc-events/misc_events.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 319 | "945-obsolete-native/obsolete_native.cc", |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 320 | "983-source-transform-verify/source_transform.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 321 | "984-obsolete-invoke/obsolete_invoke.cc", |
Alex Light | d78ddec | 2017-04-18 15:20:38 -0700 | [diff] [blame] | 322 | "986-native-method-bind/native_bind.cc", |
Alex Light | 65af20b | 2017-04-20 09:15:08 -0700 | [diff] [blame] | 323 | "987-agent-bind/agent_bind.cc", |
Alex Light | e85595e | 2018-08-17 15:54:34 -0700 | [diff] [blame] | 324 | "988-method-trace/trace_fib.cc", |
Alex Light | b7edcda | 2017-04-27 13:20:31 -0700 | [diff] [blame] | 325 | "989-method-trace-throw/method_trace.cc", |
Alex Light | 7c95849 | 2017-06-16 08:59:19 -0700 | [diff] [blame] | 326 | "991-field-trace-2/field_trace.cc", |
Alex Light | 6fa7b81 | 2017-06-16 09:04:29 -0700 | [diff] [blame] | 327 | "992-source-data/source_file.cc", |
Alex Light | c38c369 | 2017-06-27 15:45:14 -0700 | [diff] [blame] | 328 | "993-breakpoints/breakpoints.cc", |
| 329 | "996-breakpoint-obsolete/obsolete_breakpoints.cc", |
Alex Light | 8ddfd9f | 2017-07-05 16:33:46 -0700 | [diff] [blame] | 330 | "1900-track-alloc/alloc.cc", |
Alex Light | 4c17428 | 2017-07-05 10:18:18 -0700 | [diff] [blame] | 331 | "1901-get-bytecodes/bytecodes.cc", |
Alex Light | 88fd720 | 2017-06-30 08:31:59 -0700 | [diff] [blame] | 332 | "1905-suspend-native/native_suspend.cc", |
| 333 | "1908-suspend-native-resume-self/native_suspend_resume.cc", |
Alex Light | 092a404 | 2017-07-12 08:46:44 -0700 | [diff] [blame] | 334 | "1909-per-agent-tls/agent_tls.cc", |
Alex Light | 47d49b8 | 2017-07-25 14:06:34 -0700 | [diff] [blame] | 335 | "1914-get-local-instance/local_instance.cc", |
Alex Light | 1d8a974 | 2017-08-17 11:12:06 -0700 | [diff] [blame] | 336 | "1919-vminit-thread-start-timing/vminit.cc", |
Alex Light | 23aa748 | 2017-08-16 10:01:13 -0700 | [diff] [blame] | 337 | "1920-suspend-native-monitor/native_suspend_monitor.cc", |
| 338 | "1921-suspend-native-recursive-monitor/native_suspend_recursive_monitor.cc", |
Alex Light | 88e1ddd | 2017-08-21 13:09:55 -0700 | [diff] [blame] | 339 | "1922-owned-monitors-info/owned_monitors.cc", |
Alex Light | e814f9d | 2017-07-31 16:14:39 -0700 | [diff] [blame] | 340 | "1924-frame-pop-toggle/frame_pop_toggle.cc", |
| 341 | "1926-missed-frame-pop/frame_pop_missed.cc", |
Alex Light | ce56864 | 2017-09-05 16:54:25 -0700 | [diff] [blame] | 342 | "1927-exception-event/exception_event.cc", |
| 343 | "1930-monitor-info/monitor.cc", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 344 | "1932-monitor-events-misc/monitor_misc.cc", |
Alex Light | 54d39dc | 2017-09-25 17:00:16 -0700 | [diff] [blame] | 345 | "1934-jvmti-signal-thread/signal_threads.cc", |
Alex Light | 3dea212 | 2017-10-11 15:56:48 +0000 | [diff] [blame] | 346 | "1939-proxy-frames/local_instance.cc", |
Alex Light | b284f8d | 2017-11-21 00:00:48 +0000 | [diff] [blame] | 347 | "1941-dispose-stress/dispose_stress.cc", |
Alex Light | 4d77daf | 2018-01-04 11:51:14 -0800 | [diff] [blame] | 348 | "1942-suspend-raw-monitor-exit/native_suspend_monitor.cc", |
| 349 | "1943-suspend-raw-monitor-wait/native_suspend_monitor.cc", |
Alex Light | c758875 | 2018-02-20 11:15:54 -0800 | [diff] [blame] | 350 | "1946-list-descriptors/descriptors.cc", |
Alex Light | 9e7859c | 2018-04-05 13:49:43 -0700 | [diff] [blame] | 351 | "1950-unprepared-transform/unprepared_transform.cc", |
Alex Light | c98f83e | 2018-07-26 08:28:36 -0700 | [diff] [blame] | 352 | "1951-monitor-enter-no-suspend/raw_monitor.cc", |
Alex Light | 0aa7a5a | 2018-10-10 15:58:14 +0000 | [diff] [blame] | 353 | "1953-pop-frame/pop_frame.cc", |
Alex Light | ae45cbb | 2018-10-18 15:49:56 -0700 | [diff] [blame] | 354 | "1957-error-ext/lasterror.cc", |
Alex Light | b7c640d | 2019-03-20 15:52:13 -0700 | [diff] [blame] | 355 | // TODO Renumber |
Alex Light | 4060786 | 2019-05-06 18:16:24 +0000 | [diff] [blame] | 356 | "1962-multi-thread-events/multi_thread_events.cc", |
Alex Light | 639e73b | 2019-05-17 21:44:36 +0000 | [diff] [blame] | 357 | "1963-add-to-dex-classloader-in-memory/add_to_loader.cc", |
Alex Light | b7c640d | 2019-03-20 15:52:13 -0700 | [diff] [blame] | 358 | "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 Light | c14ec8f | 2019-07-18 16:08:41 -0700 | [diff] [blame] | 361 | "1974-resize-array/resize_array.cc", |
Nicolas Geoffray | 4ac0e15 | 2019-09-18 06:14:50 +0000 | [diff] [blame] | 362 | "1975-hello-structural-transformation/structural_transform.cc", |
| 363 | "1976-hello-structural-static-methods/structural_transform_methods.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 364 | ], |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 365 | // Use NDK-compatible headers for ctstiagent. |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 366 | header_libs: [ |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 367 | "libopenjdkjvmti_headers", |
| 368 | ], |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 369 | local_include_dirs: ["ti-agent"], |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 370 | } |
| 371 | |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 372 | art_cc_defaults { |
| 373 | name: "libtiagent-defaults", |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 374 | defaults: [ |
| 375 | "libtiagent-base-defaults", |
| 376 | "libartagent-defaults", |
| 377 | ], |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 378 | srcs: [ |
| 379 | // This is to get the IsInterpreted native method. |
| 380 | "common/stack_inspect.cc", |
| 381 | "common/runtime_state.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 382 | "ti-agent/common_load.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 383 | // This includes the remaining test functions. We should try to refactor things to |
| 384 | // make this list smaller. |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 385 | "901-hello-ti-agent/basics.cc", |
| 386 | "909-attach-agent/attach.cc", |
Andreas Gampe | d5f2ccc | 2017-04-19 13:37:48 -0700 | [diff] [blame] | 387 | "912-classes/classes_art.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 388 | "936-search-onload/search_onload.cc", |
Alex Light | fbee398 | 2018-05-24 10:28:46 -0700 | [diff] [blame] | 389 | "980-redefine-object/redef_object.cc", |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 390 | "983-source-transform-verify/source_transform_art.cc", |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 391 | "1940-ddms-ext/ddm_ext.cc", |
Alex Light | 0e84118 | 2018-02-12 17:42:50 +0000 | [diff] [blame] | 392 | "1944-sudden-exit/sudden_exit.cc", |
Alex Light | 0aa7a5a | 2018-10-10 15:58:14 +0000 | [diff] [blame] | 393 | // "1952-pop-frame-jit/pop_frame.cc", |
Alex Light | fc81d80 | 2018-12-07 13:39:05 -0800 | [diff] [blame] | 394 | "1959-redefine-object-instrument/fake_redef_object.cc", |
Alex Light | e7a3354 | 2019-04-10 14:22:49 -0700 | [diff] [blame] | 395 | "1960-obsolete-jit-multithread-native/native_say_hi.cc", |
Alex Light | 639e73b | 2019-05-17 21:44:36 +0000 | [diff] [blame] | 396 | "1964-add-to-dex-classloader-file/add_to_loader.cc", |
Alex Light | 098e7a6 | 2019-05-21 16:57:10 -0700 | [diff] [blame] | 397 | "1963-add-to-dex-classloader-in-memory/check_memfd_create.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 398 | ], |
Alex Light | fbee398 | 2018-05-24 10:28:46 -0700 | [diff] [blame] | 399 | static_libs: [ |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 400 | "libz", |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 401 | "slicer_no_rtti", |
Alex Light | fbee398 | 2018-05-24 10:28:46 -0700 | [diff] [blame] | 402 | ], |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 403 | } |
| 404 | |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 405 | art_cc_test_library { |
| 406 | name: "libtiagent", |
| 407 | defaults: ["libtiagent-defaults"], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 408 | shared_libs: [ |
| 409 | "libart", |
| 410 | "libdexfile", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 411 | "libprofile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 412 | "libartbase", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 413 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 414 | } |
| 415 | |
| 416 | art_cc_test_library { |
| 417 | name: "libtiagentd", |
| 418 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 419 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 420 | "libtiagent-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 421 | ], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 422 | shared_libs: [ |
| 423 | "libartd", |
| 424 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 425 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 426 | "libartbased", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 427 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 428 | } |
| 429 | |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 430 | cc_library_static { |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 431 | name: "libctstiagent", |
| 432 | defaults: ["libtiagent-base-defaults"], |
Martin Stjernholm | b4abe0a | 2019-05-17 19:22:55 +0100 | [diff] [blame] | 433 | visibility: [ |
| 434 | "//cts/hostsidetests/jvmti:__subpackages__", |
| 435 | ], |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 436 | host_supported: false, |
| 437 | srcs: [ |
| 438 | "983-source-transform-verify/source_transform_slicer.cc", |
| 439 | ], |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 440 | whole_static_libs: [ |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 441 | "slicer_ndk_no_rtti", |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 442 | ], |
| 443 | static_libs: [ |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 444 | "libbase_ndk", |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 445 | ], |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 446 | shared_libs: [ |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 447 | "libz", // for slicer (using adler32). |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 448 | ], |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 449 | sdk_version: "current", |
| 450 | stl: "c++_static", |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 451 | header_libs: [ |
| 452 | "jni_headers", |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 453 | // 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 Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 457 | "libart_runtime_headers_ndk", |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 458 | ], |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 459 | export_include_dirs: ["ti-agent"], |
| 460 | } |
| 461 | |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 462 | art_cc_defaults { |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 463 | name: "libtistress-srcs", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 464 | defaults: ["libartagent-defaults"], |
| 465 | srcs: [ |
| 466 | "ti-stress/stress.cc", |
| 467 | ], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 468 | header_libs: ["libopenjdkjvmti_headers"], |
| 469 | } |
| 470 | |
| 471 | art_cc_defaults { |
| 472 | name: "libtistress-defaults", |
| 473 | defaults: ["libtistress-srcs"], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 474 | shared_libs: [ |
| 475 | "libbase", |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 476 | "slicer_no_rtti", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 477 | ], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 478 | } |
| 479 | |
| 480 | art_cc_test_library { |
| 481 | name: "libtistress", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 482 | defaults: ["libtistress-defaults"], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 483 | shared_libs: ["libartbase"], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 484 | } |
| 485 | |
| 486 | art_cc_test_library { |
| 487 | name: "libtistressd", |
| 488 | defaults: [ |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 489 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 490 | "libtistress-defaults", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 491 | ], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 492 | shared_libs: ["libartbased"], |
| 493 | } |
| 494 | |
| 495 | art_cc_defaults { |
| 496 | name: "libtistress-static-defaults", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 497 | defaults: [ |
| 498 | "libtistress-srcs", |
| 499 | "libart_static_defaults", |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 500 | ], |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 501 | static_libs: ["slicer_no_rtti"], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 502 | } |
| 503 | |
| 504 | art_cc_test_library { |
| 505 | name: "libtistresss", |
| 506 | defaults: ["libtistress-static-defaults"], |
| 507 | static_libs: ["libartbase"], |
| 508 | } |
| 509 | |
| 510 | art_cc_test_library { |
| 511 | name: "libtistressds", |
| 512 | defaults: [ |
| 513 | "art_debug_defaults", |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 514 | "libtistress-static-defaults", |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 515 | ], |
| 516 | static_libs: ["libartbased"], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 517 | } |
| 518 | |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 519 | cc_defaults { |
| 520 | name: "libarttest-defaults", |
| 521 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 522 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 523 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 524 | ], |
| 525 | srcs: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 526 | "004-JniTest/jni_test.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 527 | "004-ReferenceMap/stack_walk_refmap_jni.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 528 | "004-SignalTest/signaltest.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 529 | "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 Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 534 | "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 Chartier | 72a3289 | 2017-01-24 09:40:56 -0800 | [diff] [blame] | 541 | "154-gc-loop/heap_interface.cc", |
Andreas Gampe | aaf0d38 | 2017-11-27 14:10:21 -0800 | [diff] [blame] | 542 | "167-visit-locks/visit_locks.cc", |
Andreas Gampe | 5677601 | 2018-01-26 17:40:55 -0800 | [diff] [blame] | 543 | "169-threadgroup-jni/jni_daemon_thread.cc", |
Mathieu Chartier | adc9086 | 2018-05-11 13:03:06 -0700 | [diff] [blame] | 544 | "172-app-image-twice/debug_print_class.cc", |
Vladimir Marko | 422a9eb | 2019-08-01 12:54:07 +0100 | [diff] [blame] | 545 | "177-visibly-initialized-deadlock/visibly_initialized.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 546 | "1945-proxy-method-arguments/get_args.cc", |
Andreas Gampe | aaf0d38 | 2017-11-27 14:10:21 -0800 | [diff] [blame] | 547 | "203-multi-checkpoint/multi_checkpoint.cc", |
Alex Light | f4ed7e8 | 2018-01-17 11:52:36 -0800 | [diff] [blame] | 548 | "305-other-fault-handler/fault_handler.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 549 | "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 Boehm | 6fe97e0 | 2016-05-04 18:35:57 -0700 | [diff] [blame] | 559 | "596-monitor-inflation/monitor_inflation.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 560 | "597-deopt-new-string/deopt.cc", |
Alexey Grebenkin | be4c2bd | 2018-02-01 19:09:59 +0300 | [diff] [blame] | 561 | "616-cha-unloading/cha_unload.cc", |
Vladimir Marko | c5798bf | 2016-12-09 10:20:54 +0000 | [diff] [blame] | 562 | "626-const-class-linking/clear_dex_cache_types.cc", |
Nicolas Geoffray | 13a797b | 2017-03-15 16:41:31 +0000 | [diff] [blame] | 563 | "642-fp-callees/fp_callees.cc", |
Vladimir Marko | 5fdd778 | 2017-04-20 11:26:03 +0100 | [diff] [blame] | 564 | "647-jni-get-field-id/get_field_id.cc", |
Roland Levillain | 0d2323e | 2017-06-26 18:14:39 +0100 | [diff] [blame] | 565 | "656-annotation-lookup-generic-jni/test.cc", |
Igor Murashkin | 545412b | 2017-08-17 15:26:54 -0700 | [diff] [blame] | 566 | "661-oat-writer-layout/oat_writer_layout.cc", |
| 567 | "664-aget-verifier/aget-verifier.cc", |
Vladimir Marko | 2196c65 | 2017-11-30 16:16:07 +0000 | [diff] [blame] | 568 | "667-jit-jni-stub/jit_jni_stub_test.cc", |
David Brazdil | 11b67b2 | 2018-01-18 16:41:40 +0000 | [diff] [blame] | 569 | "674-hiddenapi/hiddenapi.cc", |
David Brazdil | 331a5e1 | 2019-04-01 22:46:16 +0000 | [diff] [blame] | 570 | "692-vdex-inmem-loader/vdex_inmem_loader.cc", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 571 | "708-jit-cache-churn/jit.cc", |
Nicolas Geoffray | fa59588 | 2019-08-06 17:40:09 +0100 | [diff] [blame] | 572 | "720-thread-priority/thread_priority.cc", |
Alexey Grebenkin | ce75049 | 2018-05-31 23:42:20 +0300 | [diff] [blame] | 573 | "800-smali/jni.cc", |
Alex Light | f889c70 | 2018-02-23 15:25:45 -0800 | [diff] [blame] | 574 | "909-attach-agent/disallow_debugging.cc", |
Mathieu Chartier | 00fbe4f | 2019-01-02 16:52:38 -0800 | [diff] [blame] | 575 | "1001-app-image-regions/app_image_regions.cc", |
Mathieu Chartier | 175ce3d | 2019-03-06 16:54:24 -0800 | [diff] [blame] | 576 | "1002-notify-startup/startup_interface.cc", |
Alex Light | e34fe44 | 2018-02-21 17:35:55 -0800 | [diff] [blame] | 577 | "1947-breakpoint-redefine-deopt/check_deopt.cc", |
Alex Light | f367747 | 2019-06-26 16:31:53 -0700 | [diff] [blame] | 578 | "1972-jni-id-swap-indices/jni_id.cc", |
Alex Light | 55eccdf | 2019-10-07 13:51:13 +0000 | [diff] [blame] | 579 | "1985-structural-redefine-stack-scope/stack_scope.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 580 | "common/runtime_state.cc", |
| 581 | "common/stack_inspect.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 582 | ], |
| 583 | shared_libs: [ |
| 584 | "libbacktrace", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 585 | "libbase", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 586 | "libnativehelper", |
| 587 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 588 | } |
| 589 | |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 590 | filegroup { |
| 591 | name: "art_cts_jvmti_test_library", |
Martin Stjernholm | b4abe0a | 2019-05-17 19:22:55 +0100 | [diff] [blame] | 592 | visibility: [ |
| 593 | "//cts/hostsidetests/jvmti:__subpackages__", |
| 594 | ], |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 595 | srcs: [ |
| 596 | // shim classes. We use one that exposes the common functionality. |
Alex Light | 23ca8fb | 2019-05-10 11:27:02 -0700 | [diff] [blame] | 597 | "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 Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 609 | |
| 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 Light | 4060786 | 2019-05-06 18:16:24 +0000 | [diff] [blame] | 712 | "1962-multi-thread-events/src/art/Test1962.java", |
Alex Light | b7c640d | 2019-03-20 15:52:13 -0700 | [diff] [blame] | 713 | // 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 Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 717 | ], |
| 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. |
| 724 | java_genrule { |
| 725 | name: "expected_cts_outputs", |
Martin Stjernholm | b4abe0a | 2019-05-17 19:22:55 +0100 | [diff] [blame] | 726 | visibility: [ |
| 727 | "//cts/hostsidetests/jvmti:__subpackages__", |
| 728 | ], |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 729 | 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 | } |