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