2 // Copyright (C) 2016 The Android Open Source Project
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 name: "art_test_defaults",
22 relative_install_path: "art/arm",
25 relative_install_path: "art/arm64",
28 relative_install_path: "art/mips",
31 relative_install_path: "art/mips64",
34 relative_install_path: "art/x86",
37 relative_install_path: "art/x86_64",
44 "-Wno-frame-larger-than=",
49 name: "art_gtest_defaults",
51 // These really are gtests, but the gtest library comes from libart-gtest.so
61 "libartd-disassembler",
82 // Allow jni_compiler_test to find Java_MyClassNatives_bar
83 // within itself using dlopen(NULL, ...).
84 // Mac OS linker doesn't understand --export-dynamic.
85 "-Wl,--export-dynamic",
86 "-Wl,-u,Java_MyClassNatives_bar",
87 "-Wl,-u,Java_MyClassNatives_sbar",
99 "-Wno-used-but-marked-unused",
101 "-Wno-missing-noreturn",
106 // Allow jni_compiler_test to find Java_MyClassNatives_bar
107 // within itself using dlopen(NULL, ...).
108 "-Wl,--export-dynamic",
109 "-Wl,-u,Java_MyClassNatives_bar",
110 "-Wl,-u,Java_MyClassNatives_sbar",
119 "-Wno-used-but-marked-unused",
121 "-Wno-missing-noreturn",
128 name: "libart-gtest-defaults",
129 host_supported: true,
132 "art_debug_defaults",
143 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest/art"],
146 cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest64/art"],
151 "-Wno-used-but-marked-unused",
153 "-Wno-missing-noreturn",
159 "-Wno-used-but-marked-unused",
161 "-Wno-missing-noreturn",
171 name: "libart-gtest",
172 host_supported: true,
174 "libart-compiler-gtest",
175 "libart-runtime-gtest",
203 name: "libartagent-defaults",
215 shared_libs: ["libdl"],
226 art_cc_test_library {
228 srcs: ["900-hello-plugin/load_unload.cc"],
229 defaults: ["libartagent-defaults"],
230 shared_libs: ["libart"],
233 art_cc_test_library {
234 name: "libartagentd",
235 srcs: ["900-hello-plugin/load_unload.cc"],
237 "libartagent-defaults",
238 "art_debug_defaults",
240 shared_libs: ["libartd"],
244 name: "libtiagent-base-defaults",
245 defaults: ["libartagent-defaults"],
247 // These are the ART-independent parts.
248 "ti-agent/agent_common.cc",
249 "ti-agent/agent_startup.cc",
250 "ti-agent/jni_binder.cc",
251 "ti-agent/jvmti_helper.cc",
252 "ti-agent/test_env.cc",
253 "ti-agent/common_helper.cc",
254 // This is the list of non-special OnLoad things and excludes BCI and anything that depends
256 "903-hello-tagging/tagging.cc",
257 "904-object-allocation/tracking.cc",
258 "905-object-free/tracking_free.cc",
259 "906-iterate-heap/iterate_heap.cc",
260 "907-get-loaded-classes/get_loaded_classes.cc",
261 "908-gc-start-finish/gc_callbacks.cc",
262 "910-methods/methods.cc",
263 "911-get-stack-trace/stack_trace.cc",
264 "913-heaps/heaps.cc",
265 "918-fields/fields.cc",
266 "920-objects/objects.cc",
267 "922-properties/properties.cc",
268 "923-monitors/monitors.cc",
269 "924-threads/threads.cc",
270 "925-threadgroups/threadgroups.cc",
271 "927-timers/timers.cc",
272 "928-jni-table/jni_table.cc",
273 "929-search/search.cc",
274 "931-agent-thread/agent_thread.cc",
275 "933-misc-events/misc_events.cc",
276 "945-obsolete-native/obsolete_native.cc",
277 "984-obsolete-invoke/obsolete_invoke.cc",
282 header_libs: ["libopenjdkjvmti_headers"],
283 include_dirs: ["art/test/ti-agent"],
287 name: "libtiagent-defaults",
288 defaults: ["libtiagent-base-defaults"],
290 // This is to get the IsInterpreted native method.
291 "common/stack_inspect.cc",
292 "common/runtime_state.cc",
293 "ti-agent/common_load.cc",
294 // This includes the remaining test functions. We should try to refactor things to
295 // make this list smaller.
296 "901-hello-ti-agent/basics.cc",
297 "909-attach-agent/attach.cc",
298 "912-classes/classes.cc",
299 "936-search-onload/search_onload.cc",
300 "983-source-transform-verify/source_transform.cc",
304 art_cc_test_library {
306 defaults: ["libtiagent-defaults"],
307 shared_libs: ["libart"],
310 art_cc_test_library {
313 "libtiagent-defaults",
314 "art_debug_defaults",
316 shared_libs: ["libartd"],
320 name: "libtistress-defaults",
321 defaults: ["libartagent-defaults"],
323 "ti-stress/stress.cc",
328 header_libs: ["libopenjdkjvmti_headers"],
331 art_cc_test_library {
333 defaults: [ "libtistress-defaults"],
334 shared_libs: ["libart"],
337 art_cc_test_library {
338 name: "libtistressd",
340 "libtistress-defaults",
341 "art_debug_defaults",
343 shared_libs: ["libartd"],
346 art_cc_test_library {
347 name: "libctstiagent",
348 defaults: ["libtiagent-base-defaults"],
349 export_include_dirs: ["ti-agent"],
353 name: "libarttest-defaults",
359 "common/runtime_state.cc",
360 "common/stack_inspect.cc",
361 "004-JniTest/jni_test.cc",
362 "004-SignalTest/signaltest.cc",
363 "004-ReferenceMap/stack_walk_refmap_jni.cc",
364 "004-StackWalk/stack_walk_jni.cc",
365 "004-ThreadStress/thread_stress.cc",
366 "004-UnsafeTest/unsafe_test.cc",
367 "044-proxy/native_proxy.cc",
368 "051-thread/thread_test.cc",
369 "117-nopatchoat/nopatchoat.cc",
370 "1337-gc-coverage/gc_coverage.cc",
371 "136-daemon-jni-shutdown/daemon_jni_shutdown.cc",
373 "139-register-natives/regnative.cc",
374 "141-class-unload/jni_unload.cc",
375 "148-multithread-gc-annotations/gc_coverage.cc",
376 "149-suspend-all-stress/suspend_all.cc",
377 "154-gc-loop/heap_interface.cc",
378 "454-get-vreg/get_vreg_jni.cc",
379 "457-regs/regs_jni.cc",
380 "461-get-reference-vreg/get_reference_vreg_jni.cc",
381 "466-get-live-vreg/get_live_vreg_jni.cc",
382 "497-inlining-and-class-loader/clear_dex_cache.cc",
383 "543-env-long-ref/env_long_ref.cc",
384 "566-polymorphic-inlining/polymorphic_inline.cc",
385 "570-checker-osr/osr.cc",
386 "595-profile-saving/profile-saving.cc",
387 "596-app-images/app_images.cc",
388 "596-monitor-inflation/monitor_inflation.cc",
389 "597-deopt-new-string/deopt.cc",
390 "626-const-class-linking/clear_dex_cache_types.cc",
391 "642-fp-callees/fp_callees.cc",
400 shared_libs: ["libdl"],
411 art_cc_test_library {
413 defaults: ["libarttest-defaults"],
414 shared_libs: ["libart"],
417 art_cc_test_library {
420 "libarttest-defaults",
421 "art_debug_defaults",
423 shared_libs: ["libartd"],
426 art_cc_test_library {
427 name: "libnativebridgetest",
428 shared_libs: ["libart"],
431 "art_debug_defaults",
434 srcs: ["115-native-bridge/nativebridge.cc"],
437 shared_libs: ["libdl"],
446 host_ldlibs: ["-lrt"],