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 | }, |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 29 | android_x86: { |
Roland Levillain | d4d6fb5 | 2019-08-05 12:28:39 +0100 | [diff] [blame] | 30 | relative_install_path: "art/x86", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 31 | }, |
| 32 | android_x86_64: { |
Roland Levillain | d4d6fb5 | 2019-08-05 12:28:39 +0100 | [diff] [blame] | 33 | relative_install_path: "art/x86_64", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 34 | }, |
Colin Cross | fd5428b | 2016-09-19 10:40:05 -0700 | [diff] [blame] | 35 | darwin: { |
| 36 | enabled: false, |
| 37 | }, |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 38 | }, |
Dan Albert | b5d36de | 2016-09-21 14:56:51 -0700 | [diff] [blame] | 39 | cflags: [ |
| 40 | "-Wno-frame-larger-than=", |
| 41 | ], |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 42 | apex_available: [ |
| 43 | "com.android.art.debug", |
| 44 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | art_cc_defaults { |
| 48 | name: "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 49 | // These really are gtests, but the gtest library comes from libart-gtest.so |
| 50 | gtest: false, |
| 51 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 52 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 53 | "art_debug_defaults", |
| 54 | "art_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 55 | ], |
| 56 | |
David Srbecky | 9a09e7c | 2020-07-02 00:08:06 +0000 | [diff] [blame] | 57 | test_suites: ["general-tests"], |
| 58 | test_options: { |
| 59 | test_suite_tag: ["art-host-gtest"], |
| 60 | }, |
| 61 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 62 | shared_libs: [ |
| 63 | "libartd", |
| 64 | "libartd-disassembler", |
Roland Levillain | 12dd9ae | 2018-11-06 13:32:06 +0000 | [diff] [blame] | 65 | "libvixld", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 66 | "libart-gtest", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 67 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 68 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 69 | "libartbased", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 70 | |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 71 | "libbase", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 72 | "libnativehelper", |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 73 | "libz", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 74 | ], |
| 75 | whole_static_libs: [ |
| 76 | "libsigchain", |
| 77 | ], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 78 | |
| 79 | target: { |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 80 | linux: { |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 81 | ldflags: [ |
| 82 | // Allow jni_compiler_test to find Java_MyClassNatives_bar |
| 83 | // within itself using dlopen(NULL, ...). |
| 84 | // Mac OS linker doesn't understand --export-dynamic. |
| 85 | "-Wl,--export-dynamic", |
| 86 | "-Wl,-u,Java_MyClassNatives_bar", |
| 87 | "-Wl,-u,Java_MyClassNatives_sbar", |
| 88 | ], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 89 | cflags: [ |
| 90 | // gtest issue |
| 91 | "-Wno-used-but-marked-unused", |
| 92 | "-Wno-deprecated", |
| 93 | "-Wno-missing-noreturn", |
| 94 | ], |
| 95 | }, |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 96 | host: { |
| 97 | shared_libs: [ |
| 98 | "libziparchive", |
| 99 | ], |
| 100 | }, |
Dan Willemsen | 057f1e4 | 2017-10-03 14:11:48 -0700 | [diff] [blame] | 101 | android: { |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 102 | shared_libs: [ |
Dimitry Ivanov | 9642b1b | 2016-09-28 02:44:00 -0700 | [diff] [blame] | 103 | "liblog", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 104 | ], |
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 | }, |
| 107 | } |
| 108 | |
| 109 | art_cc_defaults { |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 110 | name: "libart-gtest-defaults", |
| 111 | host_supported: true, |
| 112 | defaults: [ |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 113 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 114 | "art_defaults", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 115 | ], |
| 116 | shared_libs: [ |
| 117 | "libartd", |
| 118 | "libartd-compiler", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 119 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 120 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 121 | "libartbased", |
David Srbecky | 883c134 | 2020-05-11 23:30:29 +0000 | [diff] [blame] | 122 | "liblog", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 123 | ], |
| 124 | static_libs: [ |
David Srbecky | 883c134 | 2020-05-11 23:30:29 +0000 | [diff] [blame] | 125 | "libgtest_isolated", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 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 | }, |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 146 | apex_available: [ |
| 147 | "com.android.art.debug", |
| 148 | ], |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 149 | } |
| 150 | |
| 151 | art_cc_library { |
| 152 | name: "libart-gtest", |
| 153 | host_supported: true, |
David Srbecky | 883c134 | 2020-05-11 23:30:29 +0000 | [diff] [blame] | 154 | defaults: [ |
| 155 | "art_debug_defaults", |
| 156 | "art_defaults", |
| 157 | ], |
| 158 | srcs: [ |
| 159 | "common/gtest_main.cc", |
| 160 | ], |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 161 | whole_static_libs: [ |
| 162 | "libart-compiler-gtest", |
| 163 | "libart-runtime-gtest", |
David Sehr | d5f8de8 | 2018-04-27 14:12:03 -0700 | [diff] [blame] | 164 | "libartbase-art-gtest", |
David Srbecky | 883c134 | 2020-05-11 23:30:29 +0000 | [diff] [blame] | 165 | "libgtest_isolated", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 166 | ], |
| 167 | shared_libs: [ |
| 168 | "libartd", |
| 169 | "libartd-compiler", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 170 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 171 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 172 | "libartbased", |
Colin Cross | f0af906 | 2016-10-21 10:50:31 -0700 | [diff] [blame] | 173 | "libbase", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 174 | "libbacktrace", |
David Srbecky | 883c134 | 2020-05-11 23:30:29 +0000 | [diff] [blame] | 175 | "liblog", |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 176 | ], |
| 177 | target: { |
Colin Cross | 942036f | 2016-09-15 16:24:51 -0700 | [diff] [blame] | 178 | darwin: { |
| 179 | enabled: false, |
| 180 | }, |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 181 | }, |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 182 | apex_available: [ |
| 183 | "com.android.art.debug", |
| 184 | ], |
Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame] | 185 | } |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 186 | |
Roland Levillain | 962a110 | 2019-11-01 16:20:33 +0000 | [diff] [blame] | 187 | // ART run-tests. |
| 188 | |
Roland Levillain | a8049c6 | 2019-11-01 16:11:20 +0000 | [diff] [blame] | 189 | filegroup { |
| 190 | name: "art-run-test-template", |
| 191 | srcs: [ |
| 192 | "AndroidTestTemplate.xml", |
| 193 | ], |
| 194 | } |
| 195 | |
Roland Levillain | 79d9092 | 2020-02-04 15:41:45 +0000 | [diff] [blame] | 196 | java_defaults { |
| 197 | name: "art-run-test-defaults", |
Roland Levillain | 9a0f9ba | 2020-02-13 15:06:54 +0000 | [diff] [blame] | 198 | |
Roland Levillain | 79d9092 | 2020-02-04 15:41:45 +0000 | [diff] [blame] | 199 | // Compile against the "core" bootclasspath, not the "default" one (current |
Roland Levillain | 9a0f9ba | 2020-02-13 15:06:54 +0000 | [diff] [blame] | 200 | // platform) -- use the same settings as Libcore tests (see e.g. the |
| 201 | // definition of module `core-tests` in libcore/JavaLibrary.bp). |
| 202 | // |
| 203 | // Note: The legacy way to build ART run-tests uses the |
| 204 | // `javac_with_bootclasspath` function defined in `test/etc/default-build`. |
| 205 | // See also `tools/javac-helper.sh`. |
| 206 | sdk_version: "none", |
| 207 | system_modules: "core-all-system-modules", |
| 208 | |
Roland Levillain | 01e5698 | 2020-02-10 12:28:01 +0000 | [diff] [blame] | 209 | // Some ART run-tests contain constructs which break ErrorProne checks; |
| 210 | // disable them on `errorprone` builds. |
| 211 | errorprone: { |
| 212 | javacflags: ["-XepDisableAllChecks"], |
| 213 | }, |
| 214 | |
Roland Levillain | 79d9092 | 2020-02-04 15:41:45 +0000 | [diff] [blame] | 215 | test_config_template: ":art-run-test-template", |
Roland Levillain | 00381bf | 2020-09-01 17:28:11 +0100 | [diff] [blame^] | 216 | test_suites: [ |
| 217 | "general-tests", |
| 218 | "mts", |
| 219 | ], |
Roland Levillain | 79d9092 | 2020-02-04 15:41:45 +0000 | [diff] [blame] | 220 | } |
| 221 | |
Roland Levillain | 962a110 | 2019-11-01 16:20:33 +0000 | [diff] [blame] | 222 | art_cc_test_library { |
| 223 | name: "libarttest", |
| 224 | defaults: ["libarttest-defaults"], |
| 225 | shared_libs: [ |
| 226 | "libart", |
| 227 | "libdexfile", |
| 228 | "libprofile", |
| 229 | "libartbase", |
| 230 | ], |
| 231 | } |
| 232 | |
| 233 | art_cc_test_library { |
| 234 | name: "libarttestd", |
| 235 | defaults: [ |
| 236 | "art_debug_defaults", |
| 237 | "libarttest-defaults", |
| 238 | ], |
| 239 | shared_libs: [ |
| 240 | "libartd", |
| 241 | "libdexfiled", |
| 242 | "libprofiled", |
| 243 | "libartbased", |
| 244 | ], |
| 245 | } |
| 246 | |
| 247 | art_cc_defaults { |
| 248 | name: "libnativebridgetest-defaults", |
| 249 | defaults: [ |
| 250 | "art_test_defaults", |
| 251 | "art_defaults", |
| 252 | ], |
| 253 | header_libs: ["libnativebridge-headers"], |
| 254 | srcs: ["115-native-bridge/nativebridge.cc"], |
| 255 | } |
| 256 | |
| 257 | art_cc_test_library { |
| 258 | name: "libnativebridgetest", |
| 259 | shared_libs: ["libart"], |
| 260 | defaults: [ |
| 261 | "libnativebridgetest-defaults", |
| 262 | ], |
| 263 | } |
| 264 | |
| 265 | art_cc_test_library { |
| 266 | name: "libnativebridgetestd", |
| 267 | shared_libs: ["libartd"], |
| 268 | defaults: [ |
| 269 | "libnativebridgetest-defaults", |
| 270 | "art_debug_defaults", |
| 271 | ], |
| 272 | } |
| 273 | |
| 274 | // ART JVMTI run-tests. |
| 275 | |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 276 | cc_defaults { |
| 277 | name: "libartagent-defaults", |
| 278 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 279 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 280 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 281 | ], |
| 282 | shared_libs: [ |
| 283 | "libbacktrace", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 284 | "libbase", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 285 | "libnativehelper", |
| 286 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 287 | } |
| 288 | |
| 289 | art_cc_test_library { |
| 290 | name: "libartagent", |
| 291 | srcs: ["900-hello-plugin/load_unload.cc"], |
| 292 | defaults: ["libartagent-defaults"], |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 293 | shared_libs: [ |
| 294 | "libart", |
| 295 | "libdexfile", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 296 | "libprofile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 297 | "libartbase", |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 298 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 299 | } |
| 300 | |
| 301 | art_cc_test_library { |
| 302 | name: "libartagentd", |
| 303 | srcs: ["900-hello-plugin/load_unload.cc"], |
| 304 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 305 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 306 | "libartagent-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 307 | ], |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 308 | shared_libs: [ |
| 309 | "libartd", |
| 310 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 311 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 312 | "libartbased", |
Andreas Gampe | 9462a56 | 2018-02-20 09:35:21 -0800 | [diff] [blame] | 313 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 314 | } |
| 315 | |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 316 | art_cc_defaults { |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 317 | name: "libtiagent-base-defaults", |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 318 | defaults: [ |
| 319 | "art_test_defaults", |
| 320 | "art_defaults", |
| 321 | // Not derived from libartagent-defaults for NDK. |
| 322 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 323 | srcs: [ |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 324 | // These are the ART-independent parts. |
Andreas Gampe | 4665167 | 2017-04-07 09:00:04 -0700 | [diff] [blame] | 325 | "ti-agent/agent_common.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 326 | "ti-agent/agent_startup.cc", |
Andreas Gampe | 3f46c96 | 2017-03-30 10:26:59 -0700 | [diff] [blame] | 327 | "ti-agent/jni_binder.cc", |
| 328 | "ti-agent/jvmti_helper.cc", |
| 329 | "ti-agent/test_env.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 330 | "ti-agent/breakpoint_helper.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 331 | "ti-agent/common_helper.cc", |
Alex Light | b7c640d | 2019-03-20 15:52:13 -0700 | [diff] [blame] | 332 | "ti-agent/early_return_helper.cc", |
Alex Light | e814f9d | 2017-07-31 16:14:39 -0700 | [diff] [blame] | 333 | "ti-agent/frame_pop_helper.cc", |
Alex Light | 47d49b8 | 2017-07-25 14:06:34 -0700 | [diff] [blame] | 334 | "ti-agent/locals_helper.cc", |
Alex Light | ce56864 | 2017-09-05 16:54:25 -0700 | [diff] [blame] | 335 | "ti-agent/monitors_helper.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 336 | "ti-agent/redefinition_helper.cc", |
Alex Light | 88fd720 | 2017-06-30 08:31:59 -0700 | [diff] [blame] | 337 | "ti-agent/suspension_helper.cc", |
Alex Light | b4e6507 | 2019-04-25 15:10:32 -0700 | [diff] [blame] | 338 | "ti-agent/suspend_event_helper.cc", |
Alex Light | 47d49b8 | 2017-07-25 14:06:34 -0700 | [diff] [blame] | 339 | "ti-agent/stack_trace_helper.cc", |
Alex Light | 54d39dc | 2017-09-25 17:00:16 -0700 | [diff] [blame] | 340 | "ti-agent/threads_helper.cc", |
Alex Light | d0d6596 | 2017-06-30 11:13:33 -0700 | [diff] [blame] | 341 | "ti-agent/trace_helper.cc", |
Alex Light | 9fb1ab1 | 2017-09-05 09:32:49 -0700 | [diff] [blame] | 342 | "ti-agent/exceptions_helper.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 343 | // This is the list of non-special OnLoad things and excludes BCI and anything that depends |
| 344 | // on ART internals. |
Andreas Gampe | 6dee92e | 2016-09-12 19:58:13 -0700 | [diff] [blame] | 345 | "903-hello-tagging/tagging.cc", |
Andreas Gampe | 27fa96c | 2016-10-07 15:05:24 -0700 | [diff] [blame] | 346 | "904-object-allocation/tracking.cc", |
Andreas Gampe | cc13b22 | 2016-10-10 19:09:09 -0700 | [diff] [blame] | 347 | "905-object-free/tracking_free.cc", |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 348 | "906-iterate-heap/iterate_heap.cc", |
Andreas Gampe | aa8b60c | 2016-10-12 12:51:25 -0700 | [diff] [blame] | 349 | "907-get-loaded-classes/get_loaded_classes.cc", |
Andreas Gampe | 9b8c588 | 2016-10-21 15:27:46 -0700 | [diff] [blame] | 350 | "908-gc-start-finish/gc_callbacks.cc", |
Andreas Gampe | 3c252f0 | 2016-10-27 18:25:17 -0700 | [diff] [blame] | 351 | "910-methods/methods.cc", |
Andreas Gampe | b5eb94a | 2016-10-27 19:23:09 -0700 | [diff] [blame] | 352 | "911-get-stack-trace/stack_trace.cc", |
Andreas Gampe | d5f2ccc | 2017-04-19 13:37:48 -0700 | [diff] [blame] | 353 | "912-classes/classes.cc", |
Andreas Gampe | e0f8ed9 | 2017-04-13 16:52:23 -0700 | [diff] [blame] | 354 | "913-heaps/heaps.cc", |
Andreas Gampe | ab2f0d0 | 2017-01-05 17:23:45 -0800 | [diff] [blame] | 355 | "918-fields/fields.cc", |
Andreas Gampe | 50a4e49 | 2017-01-06 18:00:20 -0800 | [diff] [blame] | 356 | "920-objects/objects.cc", |
Andreas Gampe | 1bdaf73 | 2017-01-09 19:21:06 -0800 | [diff] [blame] | 357 | "922-properties/properties.cc", |
Andreas Gampe | 319dbe8 | 2017-01-09 16:42:21 -0800 | [diff] [blame] | 358 | "923-monitors/monitors.cc", |
Andreas Gampe | af13ab9 | 2017-01-11 20:57:40 -0800 | [diff] [blame] | 359 | "924-threads/threads.cc", |
Andreas Gampe | d18d9e2 | 2017-01-16 16:08:45 +0000 | [diff] [blame] | 360 | "925-threadgroups/threadgroups.cc", |
Andreas Gampe | 35bcf81 | 2017-01-13 16:24:17 -0800 | [diff] [blame] | 361 | "927-timers/timers.cc", |
Andreas Gampe | 6f8e4f0 | 2017-01-16 18:18:14 -0800 | [diff] [blame] | 362 | "928-jni-table/jni_table.cc", |
Andreas Gampe | ce7732b | 2017-01-17 15:50:26 -0800 | [diff] [blame] | 363 | "929-search/search.cc", |
Andreas Gampe | 732b0ac | 2017-01-18 15:23:39 -0800 | [diff] [blame] | 364 | "931-agent-thread/agent_thread.cc", |
Andreas Gampe | eb0cea1 | 2017-01-23 08:50:04 -0800 | [diff] [blame] | 365 | "933-misc-events/misc_events.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 366 | "945-obsolete-native/obsolete_native.cc", |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 367 | "983-source-transform-verify/source_transform.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 368 | "984-obsolete-invoke/obsolete_invoke.cc", |
Alex Light | d78ddec | 2017-04-18 15:20:38 -0700 | [diff] [blame] | 369 | "986-native-method-bind/native_bind.cc", |
Alex Light | 65af20b | 2017-04-20 09:15:08 -0700 | [diff] [blame] | 370 | "987-agent-bind/agent_bind.cc", |
Alex Light | e85595e | 2018-08-17 15:54:34 -0700 | [diff] [blame] | 371 | "988-method-trace/trace_fib.cc", |
Alex Light | b7edcda | 2017-04-27 13:20:31 -0700 | [diff] [blame] | 372 | "989-method-trace-throw/method_trace.cc", |
Alex Light | 7c95849 | 2017-06-16 08:59:19 -0700 | [diff] [blame] | 373 | "991-field-trace-2/field_trace.cc", |
Alex Light | 6fa7b81 | 2017-06-16 09:04:29 -0700 | [diff] [blame] | 374 | "992-source-data/source_file.cc", |
Alex Light | c38c369 | 2017-06-27 15:45:14 -0700 | [diff] [blame] | 375 | "993-breakpoints/breakpoints.cc", |
| 376 | "996-breakpoint-obsolete/obsolete_breakpoints.cc", |
Alex Light | 8ddfd9f | 2017-07-05 16:33:46 -0700 | [diff] [blame] | 377 | "1900-track-alloc/alloc.cc", |
Alex Light | 4c17428 | 2017-07-05 10:18:18 -0700 | [diff] [blame] | 378 | "1901-get-bytecodes/bytecodes.cc", |
Alex Light | 88fd720 | 2017-06-30 08:31:59 -0700 | [diff] [blame] | 379 | "1905-suspend-native/native_suspend.cc", |
| 380 | "1908-suspend-native-resume-self/native_suspend_resume.cc", |
Alex Light | 092a404 | 2017-07-12 08:46:44 -0700 | [diff] [blame] | 381 | "1909-per-agent-tls/agent_tls.cc", |
Alex Light | 47d49b8 | 2017-07-25 14:06:34 -0700 | [diff] [blame] | 382 | "1914-get-local-instance/local_instance.cc", |
Alex Light | 1d8a974 | 2017-08-17 11:12:06 -0700 | [diff] [blame] | 383 | "1919-vminit-thread-start-timing/vminit.cc", |
Alex Light | 23aa748 | 2017-08-16 10:01:13 -0700 | [diff] [blame] | 384 | "1920-suspend-native-monitor/native_suspend_monitor.cc", |
| 385 | "1921-suspend-native-recursive-monitor/native_suspend_recursive_monitor.cc", |
Alex Light | 88e1ddd | 2017-08-21 13:09:55 -0700 | [diff] [blame] | 386 | "1922-owned-monitors-info/owned_monitors.cc", |
Alex Light | e814f9d | 2017-07-31 16:14:39 -0700 | [diff] [blame] | 387 | "1924-frame-pop-toggle/frame_pop_toggle.cc", |
| 388 | "1926-missed-frame-pop/frame_pop_missed.cc", |
Alex Light | ce56864 | 2017-09-05 16:54:25 -0700 | [diff] [blame] | 389 | "1927-exception-event/exception_event.cc", |
| 390 | "1930-monitor-info/monitor.cc", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 391 | "1932-monitor-events-misc/monitor_misc.cc", |
Alex Light | 54d39dc | 2017-09-25 17:00:16 -0700 | [diff] [blame] | 392 | "1934-jvmti-signal-thread/signal_threads.cc", |
Alex Light | 3dea212 | 2017-10-11 15:56:48 +0000 | [diff] [blame] | 393 | "1939-proxy-frames/local_instance.cc", |
Alex Light | b284f8d | 2017-11-21 00:00:48 +0000 | [diff] [blame] | 394 | "1941-dispose-stress/dispose_stress.cc", |
Alex Light | 4d77daf | 2018-01-04 11:51:14 -0800 | [diff] [blame] | 395 | "1942-suspend-raw-monitor-exit/native_suspend_monitor.cc", |
| 396 | "1943-suspend-raw-monitor-wait/native_suspend_monitor.cc", |
Alex Light | c758875 | 2018-02-20 11:15:54 -0800 | [diff] [blame] | 397 | "1946-list-descriptors/descriptors.cc", |
Alex Light | 9e7859c | 2018-04-05 13:49:43 -0700 | [diff] [blame] | 398 | "1950-unprepared-transform/unprepared_transform.cc", |
Alex Light | c98f83e | 2018-07-26 08:28:36 -0700 | [diff] [blame] | 399 | "1951-monitor-enter-no-suspend/raw_monitor.cc", |
Alex Light | 0aa7a5a | 2018-10-10 15:58:14 +0000 | [diff] [blame] | 400 | "1953-pop-frame/pop_frame.cc", |
Alex Light | ae45cbb | 2018-10-18 15:49:56 -0700 | [diff] [blame] | 401 | "1957-error-ext/lasterror.cc", |
Alex Light | b7c640d | 2019-03-20 15:52:13 -0700 | [diff] [blame] | 402 | // TODO Renumber |
Alex Light | 4060786 | 2019-05-06 18:16:24 +0000 | [diff] [blame] | 403 | "1962-multi-thread-events/multi_thread_events.cc", |
Alex Light | 639e73b | 2019-05-17 21:44:36 +0000 | [diff] [blame] | 404 | "1963-add-to-dex-classloader-in-memory/add_to_loader.cc", |
Alex Light | b7c640d | 2019-03-20 15:52:13 -0700 | [diff] [blame] | 405 | "1968-force-early-return/force_early_return.cc", |
| 406 | "1969-force-early-return-void/force_early_return_void.cc", |
| 407 | "1970-force-early-return-long/force_early_return_long.cc", |
Alex Light | c14ec8f | 2019-07-18 16:08:41 -0700 | [diff] [blame] | 408 | "1974-resize-array/resize_array.cc", |
Nicolas Geoffray | 4ac0e15 | 2019-09-18 06:14:50 +0000 | [diff] [blame] | 409 | "1975-hello-structural-transformation/structural_transform.cc", |
| 410 | "1976-hello-structural-static-methods/structural_transform_methods.cc", |
Alex Light | 80777ed | 2019-12-17 17:07:33 +0000 | [diff] [blame] | 411 | "2005-pause-all-redefine-multithreaded/pause-all.cc", |
Alex Light | 72325b6 | 2020-01-09 17:49:45 -0800 | [diff] [blame] | 412 | "2009-structural-local-ref/local-ref.cc", |
Alex Light | 16527e8 | 2020-06-08 09:21:12 -0700 | [diff] [blame] | 413 | "2035-structural-native-method/structural-native.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 414 | ], |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 415 | // Use NDK-compatible headers for ctstiagent. |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 416 | header_libs: [ |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 417 | "libopenjdkjvmti_headers", |
| 418 | ], |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 419 | local_include_dirs: ["ti-agent"], |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 420 | } |
| 421 | |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 422 | art_cc_defaults { |
| 423 | name: "libtiagent-defaults", |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 424 | defaults: [ |
| 425 | "libtiagent-base-defaults", |
| 426 | "libartagent-defaults", |
| 427 | ], |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 428 | srcs: [ |
| 429 | // This is to get the IsInterpreted native method. |
| 430 | "common/stack_inspect.cc", |
| 431 | "common/runtime_state.cc", |
Alex Light | 78d6341 | 2017-04-14 16:20:53 -0700 | [diff] [blame] | 432 | "ti-agent/common_load.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 433 | // This includes the remaining test functions. We should try to refactor things to |
| 434 | // make this list smaller. |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 435 | "901-hello-ti-agent/basics.cc", |
| 436 | "909-attach-agent/attach.cc", |
Andreas Gampe | d5f2ccc | 2017-04-19 13:37:48 -0700 | [diff] [blame] | 437 | "912-classes/classes_art.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 438 | "936-search-onload/search_onload.cc", |
Alex Light | fbee398 | 2018-05-24 10:28:46 -0700 | [diff] [blame] | 439 | "980-redefine-object/redef_object.cc", |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 440 | "983-source-transform-verify/source_transform_art.cc", |
Alex Light | 8c2b929 | 2017-11-09 13:21:01 -0800 | [diff] [blame] | 441 | "1940-ddms-ext/ddm_ext.cc", |
Alex Light | 0aa7a5a | 2018-10-10 15:58:14 +0000 | [diff] [blame] | 442 | // "1952-pop-frame-jit/pop_frame.cc", |
Alex Light | fc81d80 | 2018-12-07 13:39:05 -0800 | [diff] [blame] | 443 | "1959-redefine-object-instrument/fake_redef_object.cc", |
Alex Light | e7a3354 | 2019-04-10 14:22:49 -0700 | [diff] [blame] | 444 | "1960-obsolete-jit-multithread-native/native_say_hi.cc", |
Alex Light | 639e73b | 2019-05-17 21:44:36 +0000 | [diff] [blame] | 445 | "1964-add-to-dex-classloader-file/add_to_loader.cc", |
Alex Light | 098e7a6 | 2019-05-21 16:57:10 -0700 | [diff] [blame] | 446 | "1963-add-to-dex-classloader-in-memory/check_memfd_create.cc", |
Alex Light | 3f0dca1 | 2020-01-27 17:20:28 -0800 | [diff] [blame] | 447 | "2012-structural-redefinition-failures-jni-id/set-jni-id-used.cc", |
Alex Light | 280e6c3 | 2020-03-03 13:52:07 -0800 | [diff] [blame] | 448 | "2031-zygote-compiled-frame-deopt/native-wait.cc", |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 449 | ], |
Alex Light | fbee398 | 2018-05-24 10:28:46 -0700 | [diff] [blame] | 450 | static_libs: [ |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 451 | "libz", |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 452 | "slicer_no_rtti", |
Alex Light | fbee398 | 2018-05-24 10:28:46 -0700 | [diff] [blame] | 453 | ], |
Andreas Gampe | 027444b | 2017-03-31 12:49:07 -0700 | [diff] [blame] | 454 | } |
| 455 | |
Andreas Gampe | e54d992 | 2016-10-11 19:55:37 -0700 | [diff] [blame] | 456 | art_cc_test_library { |
| 457 | name: "libtiagent", |
| 458 | defaults: ["libtiagent-defaults"], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 459 | shared_libs: [ |
| 460 | "libart", |
| 461 | "libdexfile", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 462 | "libprofile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 463 | "libartbase", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 464 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 465 | } |
| 466 | |
| 467 | art_cc_test_library { |
| 468 | name: "libtiagentd", |
| 469 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 470 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 471 | "libtiagent-defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 472 | ], |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 473 | shared_libs: [ |
| 474 | "libartd", |
| 475 | "libdexfiled", |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 476 | "libprofiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 477 | "libartbased", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 478 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 479 | } |
| 480 | |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 481 | cc_library_static { |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 482 | name: "libctstiagent", |
| 483 | defaults: ["libtiagent-base-defaults"], |
Martin Stjernholm | b4abe0a | 2019-05-17 19:22:55 +0100 | [diff] [blame] | 484 | visibility: [ |
| 485 | "//cts/hostsidetests/jvmti:__subpackages__", |
| 486 | ], |
Andreas Gampe | 59484b9 | 2018-02-14 14:00:46 -0800 | [diff] [blame] | 487 | host_supported: false, |
| 488 | srcs: [ |
| 489 | "983-source-transform-verify/source_transform_slicer.cc", |
| 490 | ], |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 491 | whole_static_libs: [ |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 492 | "slicer_ndk_no_rtti", |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 493 | ], |
| 494 | static_libs: [ |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 495 | "libbase_ndk", |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 496 | ], |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 497 | shared_libs: [ |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 498 | "libz", // for slicer (using adler32). |
Nicolas Geoffray | 65ed42a | 2018-10-30 12:33:04 +0000 | [diff] [blame] | 499 | ], |
Andreas Gampe | cb5125d | 2018-02-20 09:36:54 -0800 | [diff] [blame] | 500 | sdk_version: "current", |
| 501 | stl: "c++_static", |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 502 | header_libs: [ |
| 503 | "jni_headers", |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 504 | // This is needed to resolve the base/ header file in libdexfile. Unfortunately there are |
| 505 | // many problems with how we export headers that are making doing this the 'right' way |
| 506 | // difficult. |
| 507 | // TODO: move those headers to art/ rather than under runtime. |
Paul Duffin | 4345aac | 2019-07-17 15:51:54 +0100 | [diff] [blame] | 508 | "libart_runtime_headers_ndk", |
Alex Light | 8fd0856 | 2018-02-13 10:09:03 -0800 | [diff] [blame] | 509 | ], |
Andreas Gampe | d0ed0d9 | 2018-02-12 15:03:36 -0800 | [diff] [blame] | 510 | export_include_dirs: ["ti-agent"], |
| 511 | } |
| 512 | |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 513 | art_cc_defaults { |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 514 | name: "libtistress-srcs", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 515 | defaults: ["libartagent-defaults"], |
| 516 | srcs: [ |
| 517 | "ti-stress/stress.cc", |
| 518 | ], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 519 | header_libs: ["libopenjdkjvmti_headers"], |
| 520 | } |
| 521 | |
| 522 | art_cc_defaults { |
| 523 | name: "libtistress-defaults", |
| 524 | defaults: ["libtistress-srcs"], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 525 | shared_libs: [ |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 526 | "slicer_no_rtti", |
Vladimir Marko | e8a83af | 2020-01-29 10:14:44 +0000 | [diff] [blame] | 527 | "libz", // for slicer (using adler32). |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 528 | ], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 529 | } |
| 530 | |
| 531 | art_cc_test_library { |
| 532 | name: "libtistress", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 533 | defaults: ["libtistress-defaults"], |
Vladimir Marko | e8a83af | 2020-01-29 10:14:44 +0000 | [diff] [blame] | 534 | shared_libs: [ |
| 535 | "libartbase", |
| 536 | "libz", |
| 537 | ], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 538 | } |
| 539 | |
| 540 | art_cc_test_library { |
| 541 | name: "libtistressd", |
| 542 | defaults: [ |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 543 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 544 | "libtistress-defaults", |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 545 | ], |
Vladimir Marko | e8a83af | 2020-01-29 10:14:44 +0000 | [diff] [blame] | 546 | shared_libs: [ |
| 547 | "libartbased", |
| 548 | "libz", |
| 549 | ], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 550 | } |
| 551 | |
| 552 | art_cc_defaults { |
Vladimir Marko | e8a83af | 2020-01-29 10:14:44 +0000 | [diff] [blame] | 553 | name: "libtistress-shared-defaults", |
Andreas Gampe | ec5ed06 | 2018-01-26 16:20:02 -0800 | [diff] [blame] | 554 | defaults: [ |
| 555 | "libtistress-srcs", |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 556 | ], |
Andreas Gampe | 7e057ec | 2019-03-04 13:11:22 -0800 | [diff] [blame] | 557 | static_libs: ["slicer_no_rtti"], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 558 | } |
| 559 | |
| 560 | art_cc_test_library { |
| 561 | name: "libtistresss", |
Vladimir Marko | e8a83af | 2020-01-29 10:14:44 +0000 | [diff] [blame] | 562 | defaults: ["libtistress-shared-defaults"], |
| 563 | shared_libs: [ |
| 564 | "libartbase", |
| 565 | "libz", |
| 566 | ], |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 567 | } |
| 568 | |
| 569 | art_cc_test_library { |
| 570 | name: "libtistressds", |
| 571 | defaults: [ |
Vladimir Marko | e8a83af | 2020-01-29 10:14:44 +0000 | [diff] [blame] | 572 | "libtistress-shared-defaults", |
Alex Light | 8865914 | 2018-05-15 10:53:06 -0700 | [diff] [blame] | 573 | ], |
Vladimir Marko | e8a83af | 2020-01-29 10:14:44 +0000 | [diff] [blame] | 574 | shared_libs: [ |
| 575 | "libartbased", |
| 576 | "libz", |
| 577 | ], |
Alex Light | 8f2c6d4 | 2017-04-10 16:27:35 -0700 | [diff] [blame] | 578 | } |
| 579 | |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 580 | cc_defaults { |
| 581 | name: "libarttest-defaults", |
| 582 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 583 | "art_test_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 584 | "art_defaults", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 585 | ], |
| 586 | srcs: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 587 | "004-JniTest/jni_test.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 588 | "004-ReferenceMap/stack_walk_refmap_jni.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 589 | "004-SignalTest/signaltest.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 590 | "004-StackWalk/stack_walk_jni.cc", |
| 591 | "004-ThreadStress/thread_stress.cc", |
| 592 | "004-UnsafeTest/unsafe_test.cc", |
| 593 | "044-proxy/native_proxy.cc", |
| 594 | "051-thread/thread_test.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 595 | "1337-gc-coverage/gc_coverage.cc", |
| 596 | "136-daemon-jni-shutdown/daemon_jni_shutdown.cc", |
| 597 | "137-cfi/cfi.cc", |
| 598 | "139-register-natives/regnative.cc", |
| 599 | "141-class-unload/jni_unload.cc", |
| 600 | "148-multithread-gc-annotations/gc_coverage.cc", |
| 601 | "149-suspend-all-stress/suspend_all.cc", |
Mathieu Chartier | 72a3289 | 2017-01-24 09:40:56 -0800 | [diff] [blame] | 602 | "154-gc-loop/heap_interface.cc", |
Andreas Gampe | aaf0d38 | 2017-11-27 14:10:21 -0800 | [diff] [blame] | 603 | "167-visit-locks/visit_locks.cc", |
Andreas Gampe | 5677601 | 2018-01-26 17:40:55 -0800 | [diff] [blame] | 604 | "169-threadgroup-jni/jni_daemon_thread.cc", |
Mathieu Chartier | adc9086 | 2018-05-11 13:03:06 -0700 | [diff] [blame] | 605 | "172-app-image-twice/debug_print_class.cc", |
Vladimir Marko | 422a9eb | 2019-08-01 12:54:07 +0100 | [diff] [blame] | 606 | "177-visibly-initialized-deadlock/visibly_initialized.cc", |
Vladimir Marko | 7dac864 | 2019-11-06 17:09:30 +0000 | [diff] [blame] | 607 | "178-app-image-native-method/native_methods.cc", |
Alex Light | a2efd2a | 2020-05-19 09:44:49 -0700 | [diff] [blame] | 608 | "179-nonvirtual-jni/nonvirtual-call.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 609 | "1945-proxy-method-arguments/get_args.cc", |
Andreas Gampe | aaf0d38 | 2017-11-27 14:10:21 -0800 | [diff] [blame] | 610 | "203-multi-checkpoint/multi_checkpoint.cc", |
Alex Light | f4ed7e8 | 2018-01-17 11:52:36 -0800 | [diff] [blame] | 611 | "305-other-fault-handler/fault_handler.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 612 | "454-get-vreg/get_vreg_jni.cc", |
| 613 | "457-regs/regs_jni.cc", |
| 614 | "461-get-reference-vreg/get_reference_vreg_jni.cc", |
| 615 | "466-get-live-vreg/get_live_vreg_jni.cc", |
| 616 | "497-inlining-and-class-loader/clear_dex_cache.cc", |
| 617 | "543-env-long-ref/env_long_ref.cc", |
| 618 | "566-polymorphic-inlining/polymorphic_inline.cc", |
| 619 | "570-checker-osr/osr.cc", |
| 620 | "595-profile-saving/profile-saving.cc", |
| 621 | "596-app-images/app_images.cc", |
Hans Boehm | 6fe97e0 | 2016-05-04 18:35:57 -0700 | [diff] [blame] | 622 | "596-monitor-inflation/monitor_inflation.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 623 | "597-deopt-new-string/deopt.cc", |
Alexey Grebenkin | be4c2bd | 2018-02-01 19:09:59 +0300 | [diff] [blame] | 624 | "616-cha-unloading/cha_unload.cc", |
Vladimir Marko | c5798bf | 2016-12-09 10:20:54 +0000 | [diff] [blame] | 625 | "626-const-class-linking/clear_dex_cache_types.cc", |
Nicolas Geoffray | 13a797b | 2017-03-15 16:41:31 +0000 | [diff] [blame] | 626 | "642-fp-callees/fp_callees.cc", |
Vladimir Marko | 5fdd778 | 2017-04-20 11:26:03 +0100 | [diff] [blame] | 627 | "647-jni-get-field-id/get_field_id.cc", |
Roland Levillain | 0d2323e | 2017-06-26 18:14:39 +0100 | [diff] [blame] | 628 | "656-annotation-lookup-generic-jni/test.cc", |
Igor Murashkin | 545412b | 2017-08-17 15:26:54 -0700 | [diff] [blame] | 629 | "661-oat-writer-layout/oat_writer_layout.cc", |
| 630 | "664-aget-verifier/aget-verifier.cc", |
Vladimir Marko | 2196c65 | 2017-11-30 16:16:07 +0000 | [diff] [blame] | 631 | "667-jit-jni-stub/jit_jni_stub_test.cc", |
David Brazdil | 11b67b2 | 2018-01-18 16:41:40 +0000 | [diff] [blame] | 632 | "674-hiddenapi/hiddenapi.cc", |
David Brazdil | 331a5e1 | 2019-04-01 22:46:16 +0000 | [diff] [blame] | 633 | "692-vdex-inmem-loader/vdex_inmem_loader.cc", |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 634 | "708-jit-cache-churn/jit.cc", |
Nicolas Geoffray | fa59588 | 2019-08-06 17:40:09 +0100 | [diff] [blame] | 635 | "720-thread-priority/thread_priority.cc", |
Alexey Grebenkin | ce75049 | 2018-05-31 23:42:20 +0300 | [diff] [blame] | 636 | "800-smali/jni.cc", |
Alex Light | f889c70 | 2018-02-23 15:25:45 -0800 | [diff] [blame] | 637 | "909-attach-agent/disallow_debugging.cc", |
Mathieu Chartier | 00fbe4f | 2019-01-02 16:52:38 -0800 | [diff] [blame] | 638 | "1001-app-image-regions/app_image_regions.cc", |
Mathieu Chartier | 175ce3d | 2019-03-06 16:54:24 -0800 | [diff] [blame] | 639 | "1002-notify-startup/startup_interface.cc", |
Alex Light | e34fe44 | 2018-02-21 17:35:55 -0800 | [diff] [blame] | 640 | "1947-breakpoint-redefine-deopt/check_deopt.cc", |
Alex Light | f367747 | 2019-06-26 16:31:53 -0700 | [diff] [blame] | 641 | "1972-jni-id-swap-indices/jni_id.cc", |
Alex Light | 55eccdf | 2019-10-07 13:51:13 +0000 | [diff] [blame] | 642 | "1985-structural-redefine-stack-scope/stack_scope.cc", |
Nicolas Geoffray | e91e795 | 2020-01-23 10:15:56 +0000 | [diff] [blame] | 643 | "2011-stack-walk-concurrent-instrument/stack_walk_concurrent.cc", |
Alex Light | 280e6c3 | 2020-03-03 13:52:07 -0800 | [diff] [blame] | 644 | "2031-zygote-compiled-frame-deopt/native-wait.cc", |
Hans Boehm | 672295a | 2020-04-16 21:31:17 -0700 | [diff] [blame] | 645 | "2033-shutdown-mechanics/native_shutdown.cc", |
Orion Hodson | 7285a4b | 2020-07-10 13:31:35 +0100 | [diff] [blame] | 646 | "2036-jni-filechannel/jni_filechannel.cc", |
Roland Levillain | ad0777d | 2018-02-12 20:00:18 +0000 | [diff] [blame] | 647 | "common/runtime_state.cc", |
| 648 | "common/stack_inspect.cc", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 649 | ], |
| 650 | shared_libs: [ |
| 651 | "libbacktrace", |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 652 | "libbase", |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 653 | "libnativehelper", |
| 654 | ], |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 655 | } |
| 656 | |
Paul Duffin | 2506eff | 2020-04-07 11:32:24 +0100 | [diff] [blame] | 657 | java_library { |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 658 | name: "art_cts_jvmti_test_library", |
Martin Stjernholm | b4abe0a | 2019-05-17 19:22:55 +0100 | [diff] [blame] | 659 | visibility: [ |
| 660 | "//cts/hostsidetests/jvmti:__subpackages__", |
| 661 | ], |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 662 | srcs: [ |
| 663 | // shim classes. We use one that exposes the common functionality. |
Alex Light | 23ca8fb | 2019-05-10 11:27:02 -0700 | [diff] [blame] | 664 | "jvmti-common/Redefinition.java", |
| 665 | "jvmti-common/Main.java", |
| 666 | "jvmti-common/Trace.java", |
| 667 | "jvmti-common/Breakpoint.java", |
| 668 | "jvmti-common/Suspension.java", |
| 669 | "jvmti-common/Locals.java", |
| 670 | "jvmti-common/StackTrace.java", |
| 671 | "jvmti-common/FramePop.java", |
| 672 | "jvmti-common/Exceptions.java", |
| 673 | "jvmti-common/Monitors.java", |
Alex Light | fe0ce64 | 2020-01-07 13:14:18 -0800 | [diff] [blame] | 674 | "jvmti-common/NonStandardExit.java", |
Alex Light | 23ca8fb | 2019-05-10 11:27:02 -0700 | [diff] [blame] | 675 | "jvmti-common/Threads.java", |
| 676 | "jvmti-common/SuspendEvents.java", |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 677 | |
| 678 | // Actual test classes. |
| 679 | "901-hello-ti-agent/src/art/Test901.java", |
| 680 | "902-hello-transformation/src/art/Test902.java", |
| 681 | "903-hello-tagging/src/art/Test903.java", |
| 682 | "904-object-allocation/src/art/Test904.java", |
| 683 | "905-object-free/src/art/Test905.java", |
| 684 | "906-iterate-heap/src/art/Test906.java", |
| 685 | "907-get-loaded-classes/src/art/Test907.java", |
| 686 | "907-get-loaded-classes/src/art/Cerr.java", |
| 687 | "908-gc-start-finish/src/art/Test908.java", |
| 688 | "910-methods/src/art/Test910.java", |
| 689 | "911-get-stack-trace/src/art/Test911.java", |
| 690 | "911-get-stack-trace/src/art/AllTraces.java", |
| 691 | "911-get-stack-trace/src/art/ControlData.java", |
| 692 | "911-get-stack-trace/src/art/Frames.java", |
| 693 | "911-get-stack-trace/src/art/OtherThread.java", |
| 694 | "911-get-stack-trace/src/art/PrintThread.java", |
| 695 | "911-get-stack-trace/src/art/Recurse.java", |
| 696 | "911-get-stack-trace/src/art/SameThread.java", |
| 697 | "911-get-stack-trace/src/art/ThreadListTraces.java", |
| 698 | "912-classes/src-art/art/Test912.java", |
| 699 | "912-classes/src-art/art/DexData.java", |
| 700 | "913-heaps/src/art/Test913.java", |
| 701 | "914-hello-obsolescence/src/art/Test914.java", |
| 702 | "915-obsolete-2/src/art/Test915.java", |
| 703 | "917-fields-transformation/src/art/Test917.java", |
| 704 | "918-fields/src/art/Test918.java", |
| 705 | "919-obsolete-fields/src/art/Test919.java", |
| 706 | "920-objects/src/art/Test920.java", |
| 707 | "922-properties/src/art/Test922.java", |
| 708 | "923-monitors/src/art/Test923.java", |
| 709 | "924-threads/src/art/Test924.java", |
| 710 | "925-threadgroups/src/art/Test925.java", |
| 711 | "926-multi-obsolescence/src/art/Test926.java", |
| 712 | "927-timers/src/art/Test927.java", |
| 713 | "928-jni-table/src/art/Test928.java", |
| 714 | "930-hello-retransform/src/art/Test930.java", |
| 715 | "931-agent-thread/src/art/Test931.java", |
| 716 | "932-transform-saves/src/art/Test932.java", |
| 717 | "933-misc-events/src/art/Test933.java", |
| 718 | "940-recursive-obsolete/src/art/Test940.java", |
| 719 | "942-private-recursive/src/art/Test942.java", |
| 720 | "944-transform-classloaders/src/art/Test944.java", |
| 721 | "945-obsolete-native/src/art/Test945.java", |
| 722 | "947-reflect-method/src/art/Test947.java", |
| 723 | "951-threaded-obsolete/src/art/Test951.java", |
| 724 | "982-ok-no-retransform/src/art/Test982.java", |
| 725 | "983-source-transform-verify/src/art/Test983.java", |
| 726 | "984-obsolete-invoke/src/art/Test984.java", |
| 727 | "985-re-obsolete/src/art/Test985.java", |
| 728 | "986-native-method-bind/src/art/Test986.java", |
| 729 | "988-method-trace/src/art/Test988.java", |
| 730 | "988-method-trace/src/art/Test988Intrinsics.java", |
| 731 | "989-method-trace-throw/src/art/Test989.java", |
| 732 | "990-field-trace/src/art/Test990.java", |
| 733 | "991-field-trace-2/src/art/Test991.java", |
| 734 | "992-source-data/src/art/Test992.java", |
| 735 | "992-source-data/src/art/Target2.java", |
| 736 | "993-breakpoints/src/art/Test993.java", |
| 737 | "994-breakpoint-line/src/art/Test994.java", |
| 738 | "995-breakpoints-throw/src/art/Test995.java", |
| 739 | "996-breakpoint-obsolete/src/art/Test996.java", |
| 740 | "997-single-step/src/art/Test997.java", |
| 741 | "1900-track-alloc/src/art/Test1900.java", |
| 742 | "1901-get-bytecodes/src/art/Test1901.java", |
| 743 | "1902-suspend/src/art/Test1902.java", |
| 744 | "1903-suspend-self/src/art/Test1903.java", |
| 745 | "1904-double-suspend/src/art/Test1904.java", |
| 746 | "1906-suspend-list-me-first/src/art/Test1906.java", |
| 747 | "1907-suspend-list-self-twice/src/art/Test1907.java", |
| 748 | "1908-suspend-native-resume-self/src/art/Test1908.java", |
| 749 | "1909-per-agent-tls/src/art/Test1909.java", |
| 750 | "1910-transform-with-default/src/art/Test1910.java", |
| 751 | "1911-get-local-var-table/src/art/Test1911.java", |
| 752 | "1912-get-set-local-primitive/src/art/Test1912.java", |
| 753 | "1913-get-set-local-objects/src/art/Test1913.java", |
| 754 | "1914-get-local-instance/src/art/Test1914.java", |
| 755 | "1915-get-set-local-current-thread/src/art/Test1915.java", |
| 756 | "1916-get-set-current-frame/src/art/Test1916.java", |
| 757 | "1917-get-stack-frame/src/art/Test1917.java", |
| 758 | "1920-suspend-native-monitor/src/art/Test1920.java", |
| 759 | "1921-suspend-native-recursive-monitor/src/art/Test1921.java", |
| 760 | "1922-owned-monitors-info/src/art/Test1922.java", |
| 761 | "1923-frame-pop/src/art/Test1923.java", |
| 762 | "1924-frame-pop-toggle/src/art/Test1924.java", |
| 763 | "1925-self-frame-pop/src/art/Test1925.java", |
| 764 | "1926-missed-frame-pop/src/art/Test1926.java", |
| 765 | "1927-exception-event/src/art/Test1927.java", |
| 766 | "1928-exception-event-exception/src/art/Test1928.java", |
| 767 | "1930-monitor-info/src/art/Test1930.java", |
| 768 | "1931-monitor-events/src/art/Test1931.java", |
| 769 | "1932-monitor-events-misc/src/art/Test1932.java", |
| 770 | "1933-monitor-current-contended/src/art/Test1933.java", |
| 771 | "1934-jvmti-signal-thread/src/art/Test1934.java", |
| 772 | "1936-thread-end-events/src/art/Test1936.java", |
| 773 | "1937-transform-soft-fail/src/art/Test1937.java", |
| 774 | "1939-proxy-frames/src/art/Test1939.java", |
| 775 | "1941-dispose-stress/src/art/Test1941.java", |
| 776 | "1942-suspend-raw-monitor-exit/src/art/Test1942.java", |
| 777 | "1943-suspend-raw-monitor-wait/src/art/Test1943.java", |
| 778 | "1953-pop-frame/src/art/Test1953.java", |
| 779 | "1958-transform-try-jit/src/art/Test1958.java", |
Alex Light | 4060786 | 2019-05-06 18:16:24 +0000 | [diff] [blame] | 780 | "1962-multi-thread-events/src/art/Test1962.java", |
Alex Light | fe0ce64 | 2020-01-07 13:14:18 -0800 | [diff] [blame] | 781 | "1963-add-to-dex-classloader-in-memory/src/art/Test1963.java", |
| 782 | "1967-get-set-local-bad-slot/src/art/Test1967.java", |
| 783 | "1968-force-early-return/src/art/Test1968.java", |
| 784 | "1969-force-early-return-void/src/art/Test1969.java", |
| 785 | "1970-force-early-return-long/src/art/Test1970.java", |
| 786 | "1971-multi-force-early-return/src/art/Test1971.java", |
| 787 | "1974-resize-array/src/art/Test1974.java", |
| 788 | "1975-hello-structural-transformation/src/art/Test1975.java", |
| 789 | "1975-hello-structural-transformation/src/art/Transform1975.java", |
| 790 | "1976-hello-structural-static-methods/src/art/Test1976.java", |
| 791 | "1976-hello-structural-static-methods/src/art/Transform1976.java", |
| 792 | "1977-hello-structural-obsolescence/src/art/Test1977.java", |
| 793 | "1978-regular-obsolete-then-structural-obsolescence/src/art/Test1978.java", |
| 794 | "1979-threaded-structural-transformation/src/art/Test1979.java", |
| 795 | "1981-structural-redef-private-method-handles/src/art/Test1981.java", |
| 796 | // TODO Requires VarHandles to be un-@hide. See b/64382372 |
| 797 | // "1981-structural-redef-private-method-handles/src/art/Test1981_Varhandles.java", |
| 798 | "1982-no-virtuals-structural-redefinition/src/art/Test1982.java", |
| 799 | "1983-structural-redefinition-failures/src/art/Test1983.java", |
| 800 | "1984-structural-redefine-field-trace/src/art/Test1984.java", |
| 801 | "1988-multi-structural-redefine/src/art/Test1988.java", |
| 802 | "1989-transform-bad-monitor/src/art/Test1989.java", |
| 803 | "1990-structural-bad-verify/src/art/Test1990.java", |
| 804 | "1991-hello-structural-retransform/src/art/Test1991.java", |
| 805 | "1992-retransform-no-such-field/src/art/Test1992.java", |
| 806 | "1994-final-virtual-structural/src/art/Test1994.java", |
| 807 | "1995-final-virtual-structural-multithread/src/art/Test1995.java", |
| 808 | "1996-final-override-virtual-structural/src/art/Test1996.java", |
| 809 | "1997-structural-shadow-method/src/art/Test1997.java", |
| 810 | "1998-structural-shadow-field/src/art/Test1998.java", |
| 811 | "1999-virtual-structural/src/art/Test1999.java", |
| 812 | "2001-virtual-structural-multithread/src-art/art/Test2001.java", |
| 813 | "2002-virtual-structural-initializing/src-art/art/Test2002.java", |
| 814 | "2003-double-virtual-structural/src/art/Test2003.java", |
| 815 | "2004-double-virtual-structural-abstract/src/art/Test2004.java", |
| 816 | "2005-pause-all-redefine-multithreaded/src/art/Test2005.java", |
| 817 | "2006-virtual-structural-finalizing/src-art/art/Test2006.java", |
| 818 | "2007-virtual-structural-finalizable/src-art/art/Test2007.java", |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 819 | ], |
| 820 | } |
| 821 | |
| 822 | // CTS test runner in cts/hostsidetests/jvmti looks for an expected test |
| 823 | // result for the test NN in the file results.NN.expected.txt while in the |
| 824 | // source tree each expected test result is in the NN-xxxx/expected.txt. |
| 825 | // Copy+rename them them to a temporary directory and them zip them. |
| 826 | java_genrule { |
Paul Duffin | e5621f5 | 2020-03-25 10:51:14 +0000 | [diff] [blame] | 827 | name: "expected_cts_outputs_gen", |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 828 | srcs: [ |
| 829 | "901-hello-ti-agent/expected.txt", |
| 830 | "902-hello-transformation/expected.txt", |
| 831 | "903-hello-tagging/expected.txt", |
| 832 | "904-object-allocation/expected.txt", |
| 833 | "905-object-free/expected.txt", |
| 834 | "906-iterate-heap/expected.txt", |
| 835 | "907-get-loaded-classes/expected.txt", |
| 836 | "908-gc-start-finish/expected.txt", |
| 837 | "910-methods/expected.txt", |
Alex Light | 4681f20 | 2020-01-10 09:27:57 -0800 | [diff] [blame] | 838 | "911-get-stack-trace/expected-cts-version.txt", |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 839 | "912-classes/expected.txt", |
| 840 | "913-heaps/expected.txt", |
| 841 | "914-hello-obsolescence/expected.txt", |
| 842 | "915-obsolete-2/expected.txt", |
| 843 | "917-fields-transformation/expected.txt", |
| 844 | "918-fields/expected.txt", |
| 845 | "919-obsolete-fields/expected.txt", |
| 846 | "920-objects/expected.txt", |
| 847 | "922-properties/expected.txt", |
| 848 | "923-monitors/expected.txt", |
| 849 | "924-threads/expected.txt", |
| 850 | "925-threadgroups/expected.txt", |
| 851 | "926-multi-obsolescence/expected.txt", |
| 852 | "927-timers/expected.txt", |
| 853 | "928-jni-table/expected.txt", |
| 854 | "930-hello-retransform/expected.txt", |
| 855 | "931-agent-thread/expected.txt", |
| 856 | "932-transform-saves/expected.txt", |
| 857 | "933-misc-events/expected.txt", |
| 858 | "940-recursive-obsolete/expected.txt", |
| 859 | "942-private-recursive/expected.txt", |
| 860 | "944-transform-classloaders/expected.txt", |
| 861 | "945-obsolete-native/expected.txt", |
| 862 | "947-reflect-method/expected.txt", |
| 863 | "951-threaded-obsolete/expected.txt", |
| 864 | "982-ok-no-retransform/expected.txt", |
| 865 | "983-source-transform-verify/expected.txt", |
| 866 | "984-obsolete-invoke/expected.txt", |
| 867 | "985-re-obsolete/expected.txt", |
| 868 | "986-native-method-bind/expected.txt", |
| 869 | "988-method-trace/expected.txt", |
| 870 | "989-method-trace-throw/expected.txt", |
| 871 | "990-field-trace/expected.txt", |
| 872 | "991-field-trace-2/expected.txt", |
| 873 | "992-source-data/expected.txt", |
| 874 | "993-breakpoints/expected.txt", |
| 875 | "994-breakpoint-line/expected.txt", |
| 876 | "995-breakpoints-throw/expected.txt", |
| 877 | "996-breakpoint-obsolete/expected.txt", |
| 878 | "997-single-step/expected.txt", |
| 879 | "1900-track-alloc/expected.txt", |
| 880 | "1901-get-bytecodes/expected.txt", |
| 881 | "1902-suspend/expected.txt", |
| 882 | "1903-suspend-self/expected.txt", |
| 883 | "1904-double-suspend/expected.txt", |
| 884 | "1906-suspend-list-me-first/expected.txt", |
| 885 | "1907-suspend-list-self-twice/expected.txt", |
| 886 | "1908-suspend-native-resume-self/expected.txt", |
| 887 | "1909-per-agent-tls/expected.txt", |
| 888 | "1910-transform-with-default/expected.txt", |
| 889 | "1911-get-local-var-table/expected.txt", |
| 890 | "1912-get-set-local-primitive/expected.txt", |
| 891 | "1913-get-set-local-objects/expected.txt", |
| 892 | "1914-get-local-instance/expected.txt", |
| 893 | "1915-get-set-local-current-thread/expected.txt", |
| 894 | "1916-get-set-current-frame/expected.txt", |
| 895 | "1917-get-stack-frame/expected.txt", |
| 896 | "1920-suspend-native-monitor/expected.txt", |
| 897 | "1921-suspend-native-recursive-monitor/expected.txt", |
| 898 | "1922-owned-monitors-info/expected.txt", |
| 899 | "1923-frame-pop/expected.txt", |
| 900 | "1924-frame-pop-toggle/expected.txt", |
| 901 | "1925-self-frame-pop/expected.txt", |
| 902 | "1926-missed-frame-pop/expected.txt", |
| 903 | "1927-exception-event/expected.txt", |
| 904 | "1928-exception-event-exception/expected.txt", |
| 905 | "1930-monitor-info/expected.txt", |
| 906 | "1931-monitor-events/expected.txt", |
| 907 | "1932-monitor-events-misc/expected.txt", |
| 908 | "1933-monitor-current-contended/expected.txt", |
| 909 | "1934-jvmti-signal-thread/expected.txt", |
| 910 | "1936-thread-end-events/expected.txt", |
| 911 | "1937-transform-soft-fail/expected.txt", |
| 912 | "1939-proxy-frames/expected.txt", |
| 913 | "1941-dispose-stress/expected.txt", |
| 914 | "1942-suspend-raw-monitor-exit/expected.txt", |
| 915 | "1943-suspend-raw-monitor-wait/expected.txt", |
| 916 | "1953-pop-frame/expected.txt", |
| 917 | "1958-transform-try-jit/expected.txt", |
Alex Light | fe0ce64 | 2020-01-07 13:14:18 -0800 | [diff] [blame] | 918 | "1962-multi-thread-events/expected.txt", |
| 919 | "1963-add-to-dex-classloader-in-memory/expected.txt", |
| 920 | "1967-get-set-local-bad-slot/expected.txt", |
| 921 | "1968-force-early-return/expected.txt", |
| 922 | "1969-force-early-return-void/expected.txt", |
| 923 | "1970-force-early-return-long/expected.txt", |
| 924 | "1971-multi-force-early-return/expected.txt", |
| 925 | "1974-resize-array/expected.txt", |
| 926 | "1975-hello-structural-transformation/expected.txt", |
| 927 | "1976-hello-structural-static-methods/expected.txt", |
| 928 | "1977-hello-structural-obsolescence/expected.txt", |
| 929 | "1978-regular-obsolete-then-structural-obsolescence/expected.txt", |
| 930 | "1979-threaded-structural-transformation/expected.txt", |
| 931 | // TODO Requires VarHandles to be un-@hide. See b/64382372 |
| 932 | // "test/1981-structural-redef-private-method-handles/expected.txt", |
| 933 | "1981-structural-redef-private-method-handles/expected_no_mh.txt", |
| 934 | "1982-no-virtuals-structural-redefinition/expected.txt", |
Alex Light | 5c7f367 | 2020-01-27 15:23:30 -0800 | [diff] [blame] | 935 | // JNI-id use can change the outcome of this test on device. |
| 936 | "1983-structural-redefinition-failures/expected-cts.txt", |
Alex Light | fe0ce64 | 2020-01-07 13:14:18 -0800 | [diff] [blame] | 937 | "1984-structural-redefine-field-trace/expected.txt", |
| 938 | "1988-multi-structural-redefine/expected.txt", |
| 939 | "1989-transform-bad-monitor/expected.txt", |
| 940 | "1990-structural-bad-verify/expected.txt", |
| 941 | "1991-hello-structural-retransform/expected.txt", |
| 942 | "1992-retransform-no-such-field/expected.txt", |
| 943 | "1994-final-virtual-structural/expected.txt", |
| 944 | "1995-final-virtual-structural-multithread/expected.txt", |
| 945 | "1996-final-override-virtual-structural/expected.txt", |
| 946 | "1997-structural-shadow-method/expected.txt", |
| 947 | "1998-structural-shadow-field/expected.txt", |
| 948 | "1999-virtual-structural/expected.txt", |
| 949 | "2001-virtual-structural-multithread/expected.txt", |
| 950 | "2002-virtual-structural-initializing/expected.txt", |
| 951 | "2003-double-virtual-structural/expected.txt", |
| 952 | "2004-double-virtual-structural-abstract/expected.txt", |
| 953 | "2005-pause-all-redefine-multithreaded/expected.txt", |
| 954 | "2006-virtual-structural-finalizing/expected.txt", |
| 955 | "2007-virtual-structural-finalizable/expected.txt", |
Sasha Smundak | c7c5d53 | 2019-02-27 15:03:37 -0800 | [diff] [blame] | 956 | ], |
| 957 | out: ["expected_cts_outputs.jar"], |
| 958 | tools: ["soong_zip"], |
| 959 | cmd: "rm -rf $(genDir)/res && mkdir -p $(genDir)/res && " + |
| 960 | "for f in $(in); do x=$${f#art/test/}; " + |
| 961 | "cp $$f $(genDir)/res/results.$${x%%-*}.expected.txt; done && " + |
| 962 | "$(location soong_zip) -o $(out) -C $(genDir)/res -D $(genDir)/res", |
| 963 | } |
David Srbecky | 8c8f148 | 2020-02-05 20:17:10 +0000 | [diff] [blame] | 964 | |
Paul Duffin | e5621f5 | 2020-03-25 10:51:14 +0000 | [diff] [blame] | 965 | // Wrap the expected_cts_outputs_gen inside a java library to make it easy |
| 966 | // to export as a member of a module_exports. |
| 967 | java_library { |
| 968 | name: "expected_cts_outputs", |
| 969 | visibility: [ |
| 970 | "//art/build/sdk", |
| 971 | "//cts/hostsidetests/jvmti:__subpackages__", |
| 972 | ], |
| 973 | static_libs: [ |
| 974 | "expected_cts_outputs_gen", |
| 975 | ], |
| 976 | sdk_version: "core_current", |
| 977 | } |
| 978 | |
David Srbecky | ee25716 | 2020-02-28 15:50:13 +0000 | [diff] [blame] | 979 | art_cc_test { |
| 980 | name: "ArtGtestsTarget", |
| 981 | data: [ |
| 982 | // We need the ART testing apex, which contains all gtest binaries. |
| 983 | // Note that due to linker constraints the gtests must be in the apex. |
| 984 | ":com.android.art.testing", |
| 985 | ":art-gtest-jars", |
| 986 | ], |
David Srbecky | 72cf0a8 | 2020-06-11 19:26:49 +0000 | [diff] [blame] | 987 | test_suites: ["device-tests"], |
David Srbecky | ee25716 | 2020-02-28 15:50:13 +0000 | [diff] [blame] | 988 | test_config: "gtests-target.xml", |
| 989 | } |
| 990 | |
David Srbecky | 8c8f148 | 2020-02-05 20:17:10 +0000 | [diff] [blame] | 991 | filegroup { |
| 992 | name: "art-gtest-jars", |
| 993 | srcs: [ |
| 994 | ":art-gtest-jars-AbstractMethod", |
| 995 | ":art-gtest-jars-AllFields", |
| 996 | ":art-gtest-jars-DefaultMethods", |
| 997 | ":art-gtest-jars-DexToDexDecompiler", |
| 998 | ":art-gtest-jars-ErroneousA", |
| 999 | ":art-gtest-jars-ErroneousB", |
| 1000 | ":art-gtest-jars-ErroneousInit", |
Vladimir Marko | fdd4684 | 2020-03-25 14:57:17 +0000 | [diff] [blame] | 1001 | ":art-gtest-jars-Extension1", |
| 1002 | ":art-gtest-jars-Extension2", |
David Srbecky | 8c8f148 | 2020-02-05 20:17:10 +0000 | [diff] [blame] | 1003 | ":art-gtest-jars-ForClassLoaderA", |
| 1004 | ":art-gtest-jars-ForClassLoaderB", |
| 1005 | ":art-gtest-jars-ForClassLoaderC", |
| 1006 | ":art-gtest-jars-ForClassLoaderD", |
| 1007 | ":art-gtest-jars-ExceptionHandle", |
| 1008 | ":art-gtest-jars-GetMethodSignature", |
| 1009 | ":art-gtest-jars-HiddenApi", |
| 1010 | ":art-gtest-jars-HiddenApiSignatures", |
| 1011 | ":art-gtest-jars-HiddenApiStubs", |
| 1012 | ":art-gtest-jars-ImageLayoutA", |
| 1013 | ":art-gtest-jars-ImageLayoutB", |
| 1014 | ":art-gtest-jars-IMTA", |
| 1015 | ":art-gtest-jars-IMTB", |
| 1016 | ":art-gtest-jars-Instrumentation", |
| 1017 | ":art-gtest-jars-Interfaces", |
| 1018 | ":art-gtest-jars-Lookup", |
| 1019 | ":art-gtest-jars-Main", |
| 1020 | ":art-gtest-jars-ManyMethods", |
| 1021 | ":art-gtest-jars-MethodTypes", |
| 1022 | ":art-gtest-jars-MultiDex", |
| 1023 | ":art-gtest-jars-MultiDexModifiedSecondary", |
| 1024 | ":art-gtest-jars-MyClass", |
| 1025 | ":art-gtest-jars-MyClassNatives", |
| 1026 | ":art-gtest-jars-Nested", |
| 1027 | ":art-gtest-jars-NonStaticLeafMethods", |
| 1028 | ":art-gtest-jars-Packages", |
| 1029 | ":art-gtest-jars-ProtoCompare", |
| 1030 | ":art-gtest-jars-ProtoCompare2", |
| 1031 | ":art-gtest-jars-ProfileTestMultiDex", |
| 1032 | ":art-gtest-jars-StaticLeafMethods", |
| 1033 | ":art-gtest-jars-Statics", |
| 1034 | ":art-gtest-jars-StaticsFromCode", |
| 1035 | ":art-gtest-jars-StringLiterals", |
| 1036 | ":art-gtest-jars-Transaction", |
| 1037 | ":art-gtest-jars-XandY", |
| 1038 | ":art-gtest-jars-MainEmptyUncompressed", |
| 1039 | ":art-gtest-jars-MainEmptyUncompressedAligned", |
| 1040 | ":art-gtest-jars-MainStripped", |
| 1041 | ":art-gtest-jars-MainUncompressedAligned", |
| 1042 | ":art-gtest-jars-MultiDexUncompressedAligned", |
| 1043 | ":art-gtest-jars-VerifierDeps", |
| 1044 | ":art-gtest-jars-VerifierDepsMulti", |
| 1045 | ":art-gtest-jars-VerifySoftFailDuringClinit", |
| 1046 | ], |
| 1047 | } |
| 1048 | |
| 1049 | java_defaults { |
| 1050 | name: "art-gtest-jars-defaults", |
| 1051 | installable: true, |
| 1052 | dex_preopt: { |
| 1053 | enabled: false, |
| 1054 | }, |
| 1055 | sdk_version: "core_platform", |
David Srbecky | 4a88a5a | 2020-05-05 16:21:57 +0100 | [diff] [blame] | 1056 | uncompress_dex: false, |
David Srbecky | 8c8f148 | 2020-02-05 20:17:10 +0000 | [diff] [blame] | 1057 | } |
| 1058 | |
| 1059 | // The following modules are just trivial compilations (non-trivial cases are the end). |
| 1060 | |
| 1061 | java_library { |
| 1062 | name: "art-gtest-jars-AbstractMethod", |
| 1063 | srcs: ["AbstractMethod/**/*.java"], |
| 1064 | defaults: ["art-gtest-jars-defaults"], |
| 1065 | } |
| 1066 | |
| 1067 | java_library { |
| 1068 | name: "art-gtest-jars-AllFields", |
| 1069 | srcs: ["AllFields/**/*.java"], |
| 1070 | defaults: ["art-gtest-jars-defaults"], |
| 1071 | } |
| 1072 | |
| 1073 | java_library { |
| 1074 | name: "art-gtest-jars-DefaultMethods", |
| 1075 | srcs: ["DefaultMethods/**/*.java"], |
| 1076 | defaults: ["art-gtest-jars-defaults"], |
| 1077 | } |
| 1078 | |
| 1079 | java_library { |
| 1080 | name: "art-gtest-jars-DexToDexDecompiler", |
| 1081 | srcs: ["DexToDexDecompiler/**/*.java"], |
| 1082 | defaults: ["art-gtest-jars-defaults"], |
| 1083 | } |
| 1084 | |
| 1085 | java_library { |
| 1086 | name: "art-gtest-jars-ErroneousA", |
| 1087 | srcs: ["ErroneousA/**/*.java"], |
| 1088 | defaults: ["art-gtest-jars-defaults"], |
| 1089 | } |
| 1090 | |
| 1091 | java_library { |
| 1092 | name: "art-gtest-jars-ErroneousB", |
| 1093 | srcs: ["ErroneousB/**/*.java"], |
| 1094 | defaults: ["art-gtest-jars-defaults"], |
| 1095 | } |
| 1096 | |
| 1097 | java_library { |
| 1098 | name: "art-gtest-jars-ErroneousInit", |
| 1099 | srcs: ["ErroneousInit/**/*.java"], |
| 1100 | defaults: ["art-gtest-jars-defaults"], |
| 1101 | } |
| 1102 | |
| 1103 | java_library { |
Vladimir Marko | fdd4684 | 2020-03-25 14:57:17 +0000 | [diff] [blame] | 1104 | name: "art-gtest-jars-Extension1", |
| 1105 | srcs: ["Extension1/**/*.java"], |
| 1106 | defaults: ["art-gtest-jars-defaults"], |
| 1107 | } |
| 1108 | |
| 1109 | java_library { |
| 1110 | name: "art-gtest-jars-Extension2", |
| 1111 | srcs: ["Extension2/**/*.java"], |
| 1112 | defaults: ["art-gtest-jars-defaults"], |
| 1113 | } |
| 1114 | |
| 1115 | java_library { |
David Srbecky | 8c8f148 | 2020-02-05 20:17:10 +0000 | [diff] [blame] | 1116 | name: "art-gtest-jars-ForClassLoaderA", |
| 1117 | srcs: ["ForClassLoaderA/**/*.java"], |
| 1118 | defaults: ["art-gtest-jars-defaults"], |
| 1119 | } |
| 1120 | |
| 1121 | java_library { |
| 1122 | name: "art-gtest-jars-ForClassLoaderB", |
| 1123 | srcs: ["ForClassLoaderB/**/*.java"], |
| 1124 | defaults: ["art-gtest-jars-defaults"], |
| 1125 | } |
| 1126 | |
| 1127 | java_library { |
| 1128 | name: "art-gtest-jars-ForClassLoaderC", |
| 1129 | srcs: ["ForClassLoaderC/**/*.java"], |
| 1130 | defaults: ["art-gtest-jars-defaults"], |
| 1131 | } |
| 1132 | |
| 1133 | java_library { |
| 1134 | name: "art-gtest-jars-ForClassLoaderD", |
| 1135 | srcs: ["ForClassLoaderD/**/*.java"], |
| 1136 | defaults: ["art-gtest-jars-defaults"], |
| 1137 | } |
| 1138 | |
| 1139 | java_library { |
| 1140 | name: "art-gtest-jars-ExceptionHandle", |
| 1141 | srcs: ["ExceptionHandle/**/*.java"], |
| 1142 | defaults: ["art-gtest-jars-defaults"], |
| 1143 | } |
| 1144 | |
| 1145 | java_library { |
| 1146 | name: "art-gtest-jars-GetMethodSignature", |
| 1147 | srcs: ["GetMethodSignature/**/*.java"], |
| 1148 | defaults: ["art-gtest-jars-defaults"], |
| 1149 | } |
| 1150 | |
| 1151 | java_library { |
| 1152 | name: "art-gtest-jars-HiddenApi", |
| 1153 | srcs: ["HiddenApi/**/*.java"], |
| 1154 | defaults: ["art-gtest-jars-defaults"], |
| 1155 | } |
| 1156 | |
| 1157 | java_library { |
| 1158 | name: "art-gtest-jars-HiddenApiSignatures", |
| 1159 | srcs: ["HiddenApiSignatures/**/*.java"], |
| 1160 | defaults: ["art-gtest-jars-defaults"], |
| 1161 | } |
| 1162 | |
| 1163 | java_library { |
| 1164 | name: "art-gtest-jars-HiddenApiStubs", |
| 1165 | srcs: ["HiddenApiStubs/**/*.java"], |
| 1166 | defaults: ["art-gtest-jars-defaults"], |
| 1167 | } |
| 1168 | |
| 1169 | java_library { |
| 1170 | name: "art-gtest-jars-ImageLayoutA", |
| 1171 | srcs: ["ImageLayoutA/**/*.java"], |
| 1172 | defaults: ["art-gtest-jars-defaults"], |
| 1173 | } |
| 1174 | |
| 1175 | java_library { |
| 1176 | name: "art-gtest-jars-ImageLayoutB", |
| 1177 | srcs: ["ImageLayoutB/**/*.java"], |
| 1178 | defaults: ["art-gtest-jars-defaults"], |
| 1179 | } |
| 1180 | |
| 1181 | java_library { |
| 1182 | name: "art-gtest-jars-IMTA", |
| 1183 | srcs: ["IMTA/**/*.java"], |
| 1184 | defaults: ["art-gtest-jars-defaults"], |
| 1185 | } |
| 1186 | |
| 1187 | java_library { |
| 1188 | name: "art-gtest-jars-IMTB", |
| 1189 | srcs: ["IMTB/**/*.java"], |
| 1190 | defaults: ["art-gtest-jars-defaults"], |
| 1191 | } |
| 1192 | |
| 1193 | java_library { |
| 1194 | name: "art-gtest-jars-Instrumentation", |
| 1195 | srcs: ["Instrumentation/**/*.java"], |
| 1196 | defaults: ["art-gtest-jars-defaults"], |
| 1197 | } |
| 1198 | |
| 1199 | java_library { |
| 1200 | name: "art-gtest-jars-Interfaces", |
| 1201 | srcs: ["Interfaces/**/*.java"], |
| 1202 | defaults: ["art-gtest-jars-defaults"], |
| 1203 | } |
| 1204 | |
| 1205 | java_library { |
| 1206 | name: "art-gtest-jars-Lookup", |
| 1207 | srcs: ["Lookup/**/*.java"], |
| 1208 | defaults: ["art-gtest-jars-defaults"], |
| 1209 | } |
| 1210 | |
| 1211 | java_library { |
| 1212 | name: "art-gtest-jars-Main", |
| 1213 | srcs: ["Main/**/*.java"], |
| 1214 | defaults: ["art-gtest-jars-defaults"], |
| 1215 | } |
| 1216 | |
| 1217 | java_library { |
| 1218 | name: "art-gtest-jars-ManyMethods", |
| 1219 | srcs: ["ManyMethods/**/*.java"], |
| 1220 | defaults: ["art-gtest-jars-defaults"], |
| 1221 | } |
| 1222 | |
| 1223 | java_library { |
| 1224 | name: "art-gtest-jars-MethodTypes", |
| 1225 | srcs: ["MethodTypes/**/*.java"], |
| 1226 | defaults: ["art-gtest-jars-defaults"], |
| 1227 | } |
| 1228 | |
| 1229 | java_library { |
| 1230 | name: "art-gtest-jars-MyClass", |
| 1231 | srcs: ["MyClass/**/*.java"], |
| 1232 | defaults: ["art-gtest-jars-defaults"], |
| 1233 | } |
| 1234 | |
| 1235 | java_library { |
| 1236 | name: "art-gtest-jars-MyClassNatives", |
| 1237 | srcs: ["MyClassNatives/**/*.java"], |
| 1238 | defaults: ["art-gtest-jars-defaults"], |
| 1239 | } |
| 1240 | |
| 1241 | java_library { |
| 1242 | name: "art-gtest-jars-Nested", |
| 1243 | srcs: ["Nested/**/*.java"], |
| 1244 | defaults: ["art-gtest-jars-defaults"], |
| 1245 | } |
| 1246 | |
| 1247 | java_library { |
| 1248 | name: "art-gtest-jars-NonStaticLeafMethods", |
| 1249 | srcs: ["NonStaticLeafMethods/**/*.java"], |
| 1250 | defaults: ["art-gtest-jars-defaults"], |
| 1251 | } |
| 1252 | |
| 1253 | java_library { |
| 1254 | name: "art-gtest-jars-Packages", |
| 1255 | srcs: ["Packages/**/*.java"], |
| 1256 | defaults: ["art-gtest-jars-defaults"], |
| 1257 | } |
| 1258 | |
| 1259 | java_library { |
| 1260 | name: "art-gtest-jars-ProtoCompare", |
| 1261 | srcs: ["ProtoCompare/**/*.java"], |
| 1262 | defaults: ["art-gtest-jars-defaults"], |
| 1263 | } |
| 1264 | |
| 1265 | java_library { |
| 1266 | name: "art-gtest-jars-ProtoCompare2", |
| 1267 | srcs: ["ProtoCompare2/**/*.java"], |
| 1268 | defaults: ["art-gtest-jars-defaults"], |
| 1269 | } |
| 1270 | |
| 1271 | java_library { |
| 1272 | name: "art-gtest-jars-StaticLeafMethods", |
| 1273 | srcs: ["StaticLeafMethods/**/*.java"], |
| 1274 | defaults: ["art-gtest-jars-defaults"], |
| 1275 | } |
| 1276 | |
| 1277 | java_library { |
| 1278 | name: "art-gtest-jars-Statics", |
| 1279 | srcs: ["Statics/**/*.java"], |
| 1280 | defaults: ["art-gtest-jars-defaults"], |
| 1281 | } |
| 1282 | |
| 1283 | java_library { |
| 1284 | name: "art-gtest-jars-StaticsFromCode", |
| 1285 | srcs: ["StaticsFromCode/**/*.java"], |
| 1286 | defaults: ["art-gtest-jars-defaults"], |
| 1287 | } |
| 1288 | |
| 1289 | java_library { |
| 1290 | name: "art-gtest-jars-StringLiterals", |
| 1291 | srcs: ["StringLiterals/**/*.java"], |
| 1292 | defaults: ["art-gtest-jars-defaults"], |
| 1293 | } |
| 1294 | |
| 1295 | java_library { |
| 1296 | name: "art-gtest-jars-Transaction", |
| 1297 | srcs: ["Transaction/**/*.java"], |
| 1298 | defaults: ["art-gtest-jars-defaults"], |
| 1299 | } |
| 1300 | |
| 1301 | java_library { |
| 1302 | name: "art-gtest-jars-XandY", |
| 1303 | srcs: ["XandY/**/*.java"], |
| 1304 | defaults: ["art-gtest-jars-defaults"], |
| 1305 | } |
| 1306 | |
| 1307 | // The following cases are non-trivial. |
| 1308 | |
| 1309 | // Uncompress classes.dex files in the jar file. |
| 1310 | genrule_defaults { |
| 1311 | name: "art-gtest-jars-uncompress-defaults", |
| 1312 | cmd: "$(location zip2zip) -i $(in) -o $(out) -0 'classes*.dex'", |
| 1313 | tools: ["zip2zip"], |
| 1314 | } |
| 1315 | |
| 1316 | // Ensure the files are at least 4 byte aligned. |
| 1317 | genrule_defaults { |
| 1318 | name: "art-gtest-jars-align-defaults", |
| 1319 | cmd: "$(location zipalign) 4 $(in) $(out)", |
| 1320 | tools: ["zipalign"], |
| 1321 | } |
| 1322 | |
| 1323 | // Assemble jar file from smali source. |
| 1324 | genrule_defaults { |
| 1325 | name: "art-gtest-jars-smali-defaults", |
| 1326 | cmd: "$(location smali) assemble --output $(out) $(in)", |
| 1327 | tools: ["smali"], |
| 1328 | } |
| 1329 | |
| 1330 | // A copy of Main with the classes.dex stripped for the oat file assistant tests. |
| 1331 | genrule { |
| 1332 | name: "art-gtest-jars-MainStripped", |
| 1333 | srcs: [":art-gtest-jars-Main"], |
| 1334 | cmd: "$(location zip2zip) -i $(in) -o $(out) -x 'classes*.dex'", |
| 1335 | out: ["art-gtest-jars-MainStripped.jar"], |
| 1336 | tools: ["zip2zip"], |
| 1337 | } |
| 1338 | |
| 1339 | // An empty.dex that is empty and uncompressed for the dex2oat tests. |
| 1340 | genrule { |
| 1341 | name: "art-gtest-jars-MainEmptyUncompressed", |
| 1342 | srcs: ["Main/empty.dex"], |
| 1343 | cmd: "$(location soong_zip) -j -L 0 -o $(out) -f $(in)", |
| 1344 | out: ["art-gtest-jars-MainEmptyUncompressed.jar"], |
| 1345 | tools: ["soong_zip"], |
| 1346 | } |
| 1347 | |
| 1348 | // An empty.dex that is empty and uncompressed and aligned for the dex2oat tests. |
| 1349 | genrule { |
| 1350 | name: "art-gtest-jars-MainEmptyUncompressedAligned", |
| 1351 | defaults: ["art-gtest-jars-align-defaults"], |
| 1352 | srcs: [":art-gtest-jars-MainEmptyUncompressed"], |
| 1353 | out: ["art-gtest-jars-MainEmptyUncompressedAligned.jar"], |
| 1354 | } |
| 1355 | |
| 1356 | // A copy of Main with the classes.dex uncompressed for the dex2oat tests. |
| 1357 | genrule { |
| 1358 | name: "art-gtest-jars-MainUncompressed", |
| 1359 | defaults: ["art-gtest-jars-uncompress-defaults"], |
| 1360 | srcs: [":art-gtest-jars-Main"], |
| 1361 | out: ["art-gtest-jars-MainUncompressed.jar"], |
| 1362 | } |
| 1363 | |
| 1364 | // A copy of Main with the classes.dex uncompressed and aligned for the dex2oat tests. |
| 1365 | genrule { |
| 1366 | name: "art-gtest-jars-MainUncompressedAligned", |
| 1367 | defaults: ["art-gtest-jars-align-defaults"], |
| 1368 | srcs: [":art-gtest-jars-MainUncompressed"], |
| 1369 | out: ["art-gtest-jars-MainUncompressedAligned.jar"], |
| 1370 | } |
| 1371 | |
| 1372 | java_library { |
| 1373 | name: "art-gtest-jars-MultiDex", |
| 1374 | srcs: ["MultiDex/**/*.java"], |
| 1375 | defaults: ["art-gtest-jars-defaults"], |
| 1376 | min_sdk_version: "19", |
| 1377 | dxflags: [ |
| 1378 | "--main-dex-list", |
| 1379 | "art/test/MultiDex/main.list", |
| 1380 | ], |
| 1381 | } |
| 1382 | |
| 1383 | // A copy of MultiDex with the classes.dex uncompressed for the OatFile tests. |
| 1384 | genrule { |
| 1385 | name: "art-gtest-jars-MultiDexUncompressed", |
| 1386 | defaults: ["art-gtest-jars-uncompress-defaults"], |
| 1387 | srcs: [":art-gtest-jars-MultiDex"], |
| 1388 | out: ["art-gtest-jars-MultiDexUncompressed.jar"], |
| 1389 | } |
| 1390 | |
| 1391 | // A copy of MultiDex with the classes.dex uncompressed and aligned for the OatFile tests. |
| 1392 | genrule { |
| 1393 | name: "art-gtest-jars-MultiDexUncompressedAligned", |
| 1394 | defaults: ["art-gtest-jars-align-defaults"], |
| 1395 | srcs: [":art-gtest-jars-MultiDexUncompressed"], |
| 1396 | out: ["art-gtest-jars-MultiDexUncompressedAligned.jar"], |
| 1397 | } |
| 1398 | |
| 1399 | java_library { |
| 1400 | name: "art-gtest-jars-MultiDexModifiedSecondary", |
| 1401 | srcs: ["MultiDexModifiedSecondary/**/*.java"], |
| 1402 | defaults: ["art-gtest-jars-defaults"], |
| 1403 | min_sdk_version: "19", |
| 1404 | dxflags: [ |
| 1405 | "--main-dex-list", |
| 1406 | "art/test/MultiDexModifiedSecondary/main.list", |
| 1407 | ], |
| 1408 | } |
| 1409 | |
| 1410 | java_library { |
| 1411 | name: "art-gtest-jars-ProfileTestMultiDex", |
| 1412 | srcs: ["ProfileTestMultiDex/**/*.java"], |
| 1413 | defaults: ["art-gtest-jars-defaults"], |
| 1414 | min_sdk_version: "19", |
| 1415 | dxflags: [ |
| 1416 | "--main-dex-list", |
| 1417 | "art/test/ProfileTestMultiDex/main.list", |
| 1418 | ], |
| 1419 | } |
| 1420 | |
David Srbecky | edda3ca | 2020-07-08 00:41:08 +0100 | [diff] [blame] | 1421 | // Smali compiled files. |
| 1422 | // Since they are not compiled by javac, we use different extension for them. |
| 1423 | // The .jar extension for them would cause subtle failures in the test infra, |
| 1424 | // which finds and opens all jar files and expects them to be valid zip files. |
| 1425 | |
David Srbecky | 8c8f148 | 2020-02-05 20:17:10 +0000 | [diff] [blame] | 1426 | genrule { |
| 1427 | name: "art-gtest-jars-VerifierDeps", |
| 1428 | defaults: ["art-gtest-jars-smali-defaults"], |
| 1429 | srcs: ["VerifierDeps/**/*.smali"], |
David Srbecky | edda3ca | 2020-07-08 00:41:08 +0100 | [diff] [blame] | 1430 | out: ["art-gtest-jars-VerifierDeps.dex"], |
David Srbecky | 8c8f148 | 2020-02-05 20:17:10 +0000 | [diff] [blame] | 1431 | } |
| 1432 | |
| 1433 | genrule { |
| 1434 | name: "art-gtest-jars-VerifierDepsMulti", |
| 1435 | defaults: ["art-gtest-jars-smali-defaults"], |
| 1436 | srcs: ["VerifierDepsMulti/**/*.smali"], |
David Srbecky | edda3ca | 2020-07-08 00:41:08 +0100 | [diff] [blame] | 1437 | out: ["art-gtest-jars-VerifierDepsMulti.dex"], |
David Srbecky | 8c8f148 | 2020-02-05 20:17:10 +0000 | [diff] [blame] | 1438 | } |
| 1439 | |
| 1440 | genrule { |
| 1441 | name: "art-gtest-jars-VerifySoftFailDuringClinit", |
| 1442 | defaults: ["art-gtest-jars-smali-defaults"], |
| 1443 | srcs: ["VerifySoftFailDuringClinit/**/*.smali"], |
David Srbecky | edda3ca | 2020-07-08 00:41:08 +0100 | [diff] [blame] | 1444 | out: ["art-gtest-jars-VerifySoftFailDuringClinit.dex"], |
David Srbecky | 8c8f148 | 2020-02-05 20:17:10 +0000 | [diff] [blame] | 1445 | } |
David Srbecky | 4a88a5a | 2020-05-05 16:21:57 +0100 | [diff] [blame] | 1446 | |
| 1447 | genrule { |
| 1448 | name: "art-gtest-jars-LinkageTest", |
| 1449 | defaults: ["art-gtest-jars-smali-defaults"], |
| 1450 | srcs: ["LinkageTest/*.smali"], |
David Srbecky | edda3ca | 2020-07-08 00:41:08 +0100 | [diff] [blame] | 1451 | out: ["art-gtest-jars-LinkageTest.dex"], |
David Srbecky | 4a88a5a | 2020-05-05 16:21:57 +0100 | [diff] [blame] | 1452 | } |