blob: 894b33b00a2da0f0270126d81bf5fc53824f0e73 [file] [log] [blame]
Carl Shapiro008e4122011-06-23 17:27:46 -07001#
2# Copyright (C) 2011 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
Ian Rogersafd9acc2014-06-17 08:21:54 -070017# The path for which all the dex files are relative, not actually the current directory.
18LOCAL_PATH := art/test
19
20include art/build/Android.common_test.mk
21include art/build/Android.common_path.mk
Alex Light50fa9932015-08-10 15:30:07 -070022include art/build/Android.common_build.mk
Ian Rogersafd9acc2014-06-17 08:21:54 -070023
24# Subdirectories in art/test which contain dex files used as inputs for gtests.
25GTEST_DEX_DIRECTORIES := \
26 AbstractMethod \
27 AllFields \
Artem Udovichenkob3f2b5c2017-01-31 11:49:33 +030028 DefaultMethods \
Nicolas Geoffray01b70e82016-11-17 10:58:36 +000029 DexToDexDecompiler \
Mathieu Chartier1e4841e2016-12-15 14:21:04 -080030 ErroneousA \
31 ErroneousB \
Vladimir Marko72ab6842017-01-20 19:32:50 +000032 ErroneousInit \
Calin Juravlecdd49122017-07-05 20:09:53 -070033 ForClassLoaderA \
34 ForClassLoaderB \
35 ForClassLoaderC \
36 ForClassLoaderD \
Ian Rogersafd9acc2014-06-17 08:21:54 -070037 ExceptionHandle \
38 GetMethodSignature \
David Brazdil2b9c35b2018-01-12 15:44:43 +000039 HiddenApi \
Mathieu Chartier496577f2016-09-20 15:33:31 -070040 ImageLayoutA \
41 ImageLayoutB \
Andreas Gampea1ff30f2016-09-27 12:19:45 -070042 IMTA \
43 IMTB \
Sebastien Hertz0462c4c2015-04-01 16:34:17 +020044 Instrumentation \
Ian Rogersafd9acc2014-06-17 08:21:54 -070045 Interfaces \
Artem Udovichenkod9786b02015-10-14 16:36:55 +030046 Lookup \
Ian Rogersafd9acc2014-06-17 08:21:54 -070047 Main \
Mathieu Chartierd00e02b2017-05-24 12:04:13 -070048 ManyMethods \
Narayan Kamath25352fc2016-08-03 12:46:58 +010049 MethodTypes \
Richard Uhler66d874d2015-01-15 09:37:19 -080050 MultiDex \
Richard Uhler67ff7d12015-05-14 13:21:13 -070051 MultiDexModifiedSecondary \
Ian Rogersafd9acc2014-06-17 08:21:54 -070052 MyClass \
53 MyClassNatives \
54 Nested \
55 NonStaticLeafMethods \
Mathieu Chartier279ac5c2016-09-08 17:34:25 -070056 Packages \
Ian Rogersafd9acc2014-06-17 08:21:54 -070057 ProtoCompare \
58 ProtoCompare2 \
Calin Juravle877fd962016-01-05 14:29:29 +000059 ProfileTestMultiDex \
Ian Rogersafd9acc2014-06-17 08:21:54 -070060 StaticLeafMethods \
61 Statics \
62 StaticsFromCode \
63 Transaction \
64 XandY
65
66# Create build rules for each dex file recording the dependency.
67$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval $(call build-art-test-dex,art-gtest,$(dir), \
Ian Rogers1a2f84e2014-07-07 16:05:18 -070068 $(ART_TARGET_NATIVETEST_OUT),art/build/Android.gtest.mk,ART_TEST_TARGET_GTEST_$(dir)_DEX, \
69 ART_TEST_HOST_GTEST_$(dir)_DEX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -070070
Richard Uhler66d874d2015-01-15 09:37:19 -080071# Create rules for MainStripped, a copy of Main with the classes.dex stripped
72# for the oat file assistant tests.
73ART_TEST_HOST_GTEST_MainStripped_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
74ART_TEST_TARGET_GTEST_MainStripped_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
75
Nicolas Geoffrayf3075272018-01-08 12:41:19 +000076# Create rules for MainUncompressed, a copy of Main with the classes.dex uncompressed
77# for the dex2oat tests.
78ART_TEST_HOST_GTEST_MainUncompressed_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))Uncompressed$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
79ART_TEST_TARGET_GTEST_MainUncompressed_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))Uncompressed$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
80
Mathieu Chartier700a9852018-02-06 18:27:38 -080081# Create rules for UncompressedEmpty, a classes.dex that is empty and uncompressed
82# for the dex2oat tests.
83ART_TEST_HOST_GTEST_EmptyUncompressed_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))EmptyUncompressed$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
84ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))EmptyUncompressed$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
85
Richard Uhler66d874d2015-01-15 09:37:19 -080086$(ART_TEST_HOST_GTEST_MainStripped_DEX): $(ART_TEST_HOST_GTEST_Main_DEX)
87 cp $< $@
88 $(call dexpreopt-remove-classes.dex,$@)
89
90$(ART_TEST_TARGET_GTEST_MainStripped_DEX): $(ART_TEST_TARGET_GTEST_Main_DEX)
91 cp $< $@
92 $(call dexpreopt-remove-classes.dex,$@)
93
Nicolas Geoffrayf3075272018-01-08 12:41:19 +000094$(ART_TEST_HOST_GTEST_MainUncompressed_DEX): $(ART_TEST_HOST_GTEST_Main_DEX) $(ZIPALIGN)
95 cp $< $@
96 $(call uncompress-dexs, $@)
97 $(call align-package, $@)
98
99$(ART_TEST_TARGET_GTEST_MainUncompressed_DEX): $(ART_TEST_TARGET_GTEST_Main_DEX) $(ZIPALIGN)
100 cp $< $@
101 $(call uncompress-dexs, $@)
102 $(call align-package, $@)
103
Mathieu Chartier700a9852018-02-06 18:27:38 -0800104$(ART_TEST_HOST_GTEST_EmptyUncompressed_DEX): $(ZIPALIGN)
105 touch $(dir $@)classes.dex
106 zip -j -qD -X -0 $@ $(dir $@)classes.dex
107 rm $(dir $@)classes.dex
108
109$(ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX): $(ZIPALIGN)
110 touch $(dir $@)classes.dex
111 zip -j -qD -X -0 $@ $(dir $@)classes.dex
112 rm $(dir $@)classes.dex
113
David Brazdilca3c8c32016-09-06 14:04:48 +0100114ART_TEST_GTEST_VerifierDeps_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifierDeps/*.smali))
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000115ART_TEST_GTEST_VerifierDepsMulti_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifierDepsMulti/*.smali))
David Brazdilca3c8c32016-09-06 14:04:48 +0100116ART_TEST_HOST_GTEST_VerifierDeps_DEX := $(dir $(ART_TEST_HOST_GTEST_Main_DEX))$(subst Main,VerifierDeps,$(basename $(notdir $(ART_TEST_HOST_GTEST_Main_DEX))))$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
David Brazdilf906f122016-09-16 16:33:31 +0100117ART_TEST_TARGET_GTEST_VerifierDeps_DEX := $(dir $(ART_TEST_TARGET_GTEST_Main_DEX))$(subst Main,VerifierDeps,$(basename $(notdir $(ART_TEST_TARGET_GTEST_Main_DEX))))$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000118ART_TEST_HOST_GTEST_VerifierDepsMulti_DEX := $(dir $(ART_TEST_HOST_GTEST_Main_DEX))$(subst Main,VerifierDepsMulti,$(basename $(notdir $(ART_TEST_HOST_GTEST_Main_DEX))))$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
119ART_TEST_TARGET_GTEST_VerifierDepsMulti_DEX := $(dir $(ART_TEST_TARGET_GTEST_Main_DEX))$(subst Main,VerifierDepsMulti,$(basename $(notdir $(ART_TEST_TARGET_GTEST_Main_DEX))))$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
David Brazdilca3c8c32016-09-06 14:04:48 +0100120
121$(ART_TEST_HOST_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700122 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
David Brazdilca3c8c32016-09-06 14:04:48 +0100123
David Brazdilf906f122016-09-16 16:33:31 +0100124$(ART_TEST_TARGET_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700125 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
David Brazdilf906f122016-09-16 16:33:31 +0100126
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000127$(ART_TEST_HOST_GTEST_VerifierDepsMulti_DEX): $(ART_TEST_GTEST_VerifierDepsMulti_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700128 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000129
130$(ART_TEST_TARGET_GTEST_VerifierDepsMulti_DEX): $(ART_TEST_GTEST_VerifierDepsMulti_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700131 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000132
Ian Rogersafd9acc2014-06-17 08:21:54 -0700133# Dex file dependencies for each gtest.
Andreas Gampecac31ad2017-11-06 20:01:17 -0800134ART_GTEST_dex2oat_environment_tests_DEX_DEPS := Main MainStripped MultiDex MultiDexModifiedSecondary MyClassNatives Nested VerifierDeps VerifierDepsMulti
Andreas Gampee1459ae2016-06-29 09:36:30 -0700135
Mathieu Chartier93764b82017-07-17 14:51:53 -0700136ART_GTEST_atomic_dex_ref_map_test_DEX_DEPS := Interfaces
Calin Juravlecdd49122017-07-05 20:09:53 -0700137ART_GTEST_class_linker_test_DEX_DEPS := AllFields ErroneousA ErroneousB ErroneousInit ForClassLoaderA ForClassLoaderB ForClassLoaderC ForClassLoaderD Interfaces MethodTypes MultiDex MyClass Nested Statics StaticsFromCode
Calin Juravle57d0acc2017-07-11 17:41:30 -0700138ART_GTEST_class_loader_context_test_DEX_DEPS := Main MultiDex MyClass ForClassLoaderA ForClassLoaderB ForClassLoaderC ForClassLoaderD
Mathieu Chartierdb70ce52016-12-12 11:06:59 -0800139ART_GTEST_class_table_test_DEX_DEPS := XandY
Calin Juravle877fd962016-01-05 14:29:29 +0000140ART_GTEST_compiler_driver_test_DEX_DEPS := AbstractMethod StaticLeafMethods ProfileTestMultiDex
Narayan Kamath25352fc2016-08-03 12:46:58 +0100141ART_GTEST_dex_cache_test_DEX_DEPS := Main Packages MethodTypes
Richard Uhler69bcf2c2017-01-24 10:25:21 +0000142ART_GTEST_dex_file_test_DEX_DEPS := GetMethodSignature Main Nested MultiDex
Mathieu Chartierd00e02b2017-05-24 12:04:13 -0700143ART_GTEST_dexlayout_test_DEX_DEPS := ManyMethods
Mathieu Chartier700a9852018-02-06 18:27:38 -0800144ART_GTEST_dex2oat_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) ManyMethods Statics VerifierDeps MainUncompressed EmptyUncompressed
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700145ART_GTEST_dex2oat_image_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) Statics VerifierDeps
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700146ART_GTEST_exception_test_DEX_DEPS := ExceptionHandle
David Brazdil2b9c35b2018-01-12 15:44:43 +0000147ART_GTEST_hiddenapi_test_DEX_DEPS := HiddenApi
Artem Udovichenkob3f2b5c2017-01-31 11:49:33 +0300148ART_GTEST_image_test_DEX_DEPS := ImageLayoutA ImageLayoutB DefaultMethods
Andreas Gampea1ff30f2016-09-27 12:19:45 -0700149ART_GTEST_imtable_test_DEX_DEPS := IMTA IMTB
Sebastien Hertz0462c4c2015-04-01 16:34:17 +0200150ART_GTEST_instrumentation_test_DEX_DEPS := Instrumentation
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700151ART_GTEST_jni_compiler_test_DEX_DEPS := MyClassNatives
152ART_GTEST_jni_internal_test_DEX_DEPS := AllFields StaticLeafMethods
Andreas Gampee1459ae2016-06-29 09:36:30 -0700153ART_GTEST_oat_file_assistant_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Calin Juravle36eb3132017-01-13 16:32:38 -0800154ART_GTEST_dexoptanalyzer_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Richard Uhler84f50ae2017-02-06 15:12:45 +0000155ART_GTEST_image_space_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Andreas Gampe7848da42015-04-09 11:15:04 -0700156ART_GTEST_oat_file_test_DEX_DEPS := Main MultiDex
Mathieu Chartier07ddb6f2015-11-05 11:16:34 -0800157ART_GTEST_oat_test_DEX_DEPS := Main
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700158ART_GTEST_object_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY
Alex Klyubind1d5c952017-12-15 12:57:33 -0800159ART_GTEST_patchoat_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700160ART_GTEST_proxy_test_DEX_DEPS := Interfaces
161ART_GTEST_reflection_test_DEX_DEPS := Main NonStaticLeafMethods StaticLeafMethods
Calin Juravle877fd962016-01-05 14:29:29 +0000162ART_GTEST_profile_assistant_test_DEX_DEPS := ProfileTestMultiDex
Mathieu Chartierdb40eac2017-06-09 18:34:11 -0700163ART_GTEST_profile_compilation_info_test_DEX_DEPS := ManyMethods ProfileTestMultiDex
Andreas Gampe0f01b582017-01-18 15:22:37 -0800164ART_GTEST_runtime_callbacks_test_DEX_DEPS := XandY
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700165ART_GTEST_stub_test_DEX_DEPS := AllFields
166ART_GTEST_transaction_test_DEX_DEPS := Transaction
Artem Udovichenkod9786b02015-10-14 16:36:55 +0300167ART_GTEST_type_lookup_table_test_DEX_DEPS := Lookup
Andreas Gampeae78c262017-02-01 20:40:44 -0800168ART_GTEST_unstarted_runtime_test_DEX_DEPS := Nested
Mathieu Chartier1ca68902017-04-18 11:26:22 -0700169ART_GTEST_heap_verification_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000170ART_GTEST_verifier_deps_test_DEX_DEPS := VerifierDeps VerifierDepsMulti MultiDex
Nicolas Geoffray01b70e82016-11-17 10:58:36 +0000171ART_GTEST_dex_to_dex_decompiler_test_DEX_DEPS := VerifierDeps DexToDexDecompiler
Ian Rogersafd9acc2014-06-17 08:21:54 -0700172
173# The elf writer test has dependencies on core.oat.
Richard Uhler67e1dc52017-02-06 16:50:17 +0000174ART_GTEST_elf_writer_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
175ART_GTEST_elf_writer_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32)
Brian Carlstrom53463ea2014-11-09 14:11:51 -0800176
Andreas Gampee1459ae2016-06-29 09:36:30 -0700177ART_GTEST_dex2oat_environment_tests_HOST_DEPS := \
Richard Uhlerbb00f812017-02-16 14:21:10 +0000178 $(HOST_CORE_IMAGE_optimizing_64) \
179 $(HOST_CORE_IMAGE_optimizing_32) \
180 $(HOST_CORE_IMAGE_interpreter_64) \
181 $(HOST_CORE_IMAGE_interpreter_32) \
Andreas Gampe47200462017-11-09 11:40:03 -0800182 patchoatd-host
Andreas Gampee1459ae2016-06-29 09:36:30 -0700183ART_GTEST_dex2oat_environment_tests_TARGET_DEPS := \
Richard Uhlerbb00f812017-02-16 14:21:10 +0000184 $(TARGET_CORE_IMAGE_optimizing_64) \
185 $(TARGET_CORE_IMAGE_optimizing_32) \
186 $(TARGET_CORE_IMAGE_interpreter_64) \
187 $(TARGET_CORE_IMAGE_interpreter_32) \
Andreas Gampe47200462017-11-09 11:40:03 -0800188 patchoatd-target
Andreas Gampee1459ae2016-06-29 09:36:30 -0700189
David Srbeckyec2cdf42017-12-08 16:21:25 +0000190ART_GTEST_oat_file_test_HOST_DEPS := \
191 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
192ART_GTEST_oat_file_test_TARGET_DEPS := \
193 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
194
Andreas Gampee1459ae2016-06-29 09:36:30 -0700195ART_GTEST_oat_file_assistant_test_HOST_DEPS := \
Richard Uhlerf51ac422016-07-08 09:22:33 -0700196 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700197ART_GTEST_oat_file_assistant_test_TARGET_DEPS := \
Richard Uhlerf51ac422016-07-08 09:22:33 -0700198 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700199
Calin Juravle36eb3132017-01-13 16:32:38 -0800200ART_GTEST_dexoptanalyzer_test_HOST_DEPS := \
201 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Andreas Gampe47200462017-11-09 11:40:03 -0800202 dexoptanalyzerd-host
Calin Juravle36eb3132017-01-13 16:32:38 -0800203ART_GTEST_dexoptanalyzer_test_TARGET_DEPS := \
204 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Andreas Gampe47200462017-11-09 11:40:03 -0800205 dexoptanalyzerd-target
Andreas Gampee1459ae2016-06-29 09:36:30 -0700206
Richard Uhler84f50ae2017-02-06 15:12:45 +0000207ART_GTEST_image_space_test_HOST_DEPS := \
208 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
209ART_GTEST_image_space_test_TARGET_DEPS := \
210 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
211
Andreas Gampee1459ae2016-06-29 09:36:30 -0700212ART_GTEST_dex2oat_test_HOST_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800213 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
214 dex2oatd-host
Andreas Gampee1459ae2016-06-29 09:36:30 -0700215ART_GTEST_dex2oat_test_TARGET_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800216 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
217 dex2oatd-target
Richard Uhler66d874d2015-01-15 09:37:19 -0800218
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700219ART_GTEST_dex2oat_image_test_HOST_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800220 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
221 dex2oatd-host
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700222ART_GTEST_dex2oat_image_test_TARGET_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800223 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
224 dex2oatd-target
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700225
Brian Carlstrom53463ea2014-11-09 14:11:51 -0800226# TODO: document why this is needed.
Richard Uhler67e1dc52017-02-06 16:50:17 +0000227ART_GTEST_proxy_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700228
David Sehr55232f12017-04-19 14:06:49 -0700229# The dexdiag test requires the dexdiag utility.
Andreas Gampe47200462017-11-09 11:40:03 -0800230ART_GTEST_dexdiag_test_HOST_DEPS := dexdiag-host
231ART_GTEST_dexdiag_test_TARGET_DEPS := dexdiag-target
David Sehr55232f12017-04-19 14:06:49 -0700232
Aart Bikcfbe53c2015-07-06 14:27:27 -0700233# The dexdump test requires an image and the dexdump utility.
Aart Bik22c26f52015-07-08 21:20:13 +0000234# TODO: rename into dexdump when migration completes
Aart Bikcfbe53c2015-07-06 14:27:27 -0700235ART_GTEST_dexdump_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000236 $(HOST_CORE_IMAGE_DEFAULT_64) \
237 $(HOST_CORE_IMAGE_DEFAULT_32) \
Andreas Gampe47200462017-11-09 11:40:03 -0800238 dexdump2-host
Aart Bikcfbe53c2015-07-06 14:27:27 -0700239ART_GTEST_dexdump_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000240 $(TARGET_CORE_IMAGE_DEFAULT_64) \
241 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Andreas Gampe47200462017-11-09 11:40:03 -0800242 dexdump2-target
Aart Bikcfbe53c2015-07-06 14:27:27 -0700243
Jeff Haoc3acfc52016-08-29 14:18:26 -0700244# The dexlayout test requires an image and the dexlayout utility.
245# TODO: rename into dexdump when migration completes
246ART_GTEST_dexlayout_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000247 $(HOST_CORE_IMAGE_DEFAULT_64) \
248 $(HOST_CORE_IMAGE_DEFAULT_32) \
Andreas Gampe693bfbf2017-11-10 12:23:31 -0800249 dexlayoutd-host \
Andreas Gampe47200462017-11-09 11:40:03 -0800250 dexdump2-host
Jeff Haoc3acfc52016-08-29 14:18:26 -0700251ART_GTEST_dexlayout_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000252 $(TARGET_CORE_IMAGE_DEFAULT_64) \
253 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Andreas Gampe693bfbf2017-11-10 12:23:31 -0800254 dexlayoutd-target \
Andreas Gampe47200462017-11-09 11:40:03 -0800255 dexdump2-target
Jeff Haoc3acfc52016-08-29 14:18:26 -0700256
Aart Bik3e40f4a2015-07-07 17:09:41 -0700257# The dexlist test requires an image and the dexlist utility.
Aart Bik3e40f4a2015-07-07 17:09:41 -0700258ART_GTEST_dexlist_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000259 $(HOST_CORE_IMAGE_DEFAULT_64) \
260 $(HOST_CORE_IMAGE_DEFAULT_32) \
Andreas Gampe47200462017-11-09 11:40:03 -0800261 dexlist-host
Aart Bik3e40f4a2015-07-07 17:09:41 -0700262ART_GTEST_dexlist_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000263 $(TARGET_CORE_IMAGE_DEFAULT_64) \
264 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Andreas Gampe47200462017-11-09 11:40:03 -0800265 dexlist-target
Aart Bik3e40f4a2015-07-07 17:09:41 -0700266
Igor Murashkin37743352014-11-13 14:38:00 -0800267# The imgdiag test has dependencies on core.oat since it needs to load it during the test.
Andreas Gampec93b8b52014-12-19 23:12:25 -0800268# For the host, also add the installed tool (in the base size, that should suffice). For the
269# target, just the module is fine, the sync will happen late enough.
270ART_GTEST_imgdiag_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000271 $(HOST_CORE_IMAGE_DEFAULT_64) \
272 $(HOST_CORE_IMAGE_DEFAULT_32) \
Andreas Gampe47200462017-11-09 11:40:03 -0800273 imgdiagd-host
Andreas Gampec93b8b52014-12-19 23:12:25 -0800274ART_GTEST_imgdiag_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000275 $(TARGET_CORE_IMAGE_DEFAULT_64) \
276 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Andreas Gampe47200462017-11-09 11:40:03 -0800277 imgdiagd-target
Igor Murashkin37743352014-11-13 14:38:00 -0800278
Mathieu Chartierea216b32015-05-26 19:48:16 -0700279# Oatdump test requires an image and oatfile to dump.
280ART_GTEST_oatdump_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000281 $(HOST_CORE_IMAGE_DEFAULT_64) \
282 $(HOST_CORE_IMAGE_DEFAULT_32) \
Andreas Gampe47200462017-11-09 11:40:03 -0800283 oatdumpd-host \
284 oatdumpds-host
Mathieu Chartierea216b32015-05-26 19:48:16 -0700285ART_GTEST_oatdump_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000286 $(TARGET_CORE_IMAGE_DEFAULT_64) \
287 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Andreas Gampe47200462017-11-09 11:40:03 -0800288 oatdumpd-target
Vladimir Marko1352f132017-04-28 15:28:29 +0100289ART_GTEST_oatdump_image_test_HOST_DEPS := $(ART_GTEST_oatdump_test_HOST_DEPS)
290ART_GTEST_oatdump_image_test_TARGET_DEPS := $(ART_GTEST_oatdump_test_TARGET_DEPS)
Mathieu Chartierea216b32015-05-26 19:48:16 -0700291
Alex Klyubind1d5c952017-12-15 12:57:33 -0800292ART_GTEST_patchoat_test_HOST_DEPS := \
293 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
294ART_GTEST_patchoat_test_TARGET_DEPS := \
295 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
296
Calin Juravle2e2db782016-02-23 12:00:03 +0000297# Profile assistant tests requires profman utility.
Andreas Gampe47200462017-11-09 11:40:03 -0800298ART_GTEST_profile_assistant_test_HOST_DEPS := profmand-host
Andreas Gampe693bfbf2017-11-10 12:23:31 -0800299ART_GTEST_profile_assistant_test_TARGET_DEPS := profmand-target
Calin Juravle2e2db782016-02-23 12:00:03 +0000300
David Brazdil2b9c35b2018-01-12 15:44:43 +0000301ART_GTEST_hiddenapi_test_HOST_DEPS := \
302 $(HOST_CORE_IMAGE_DEFAULT_64) \
303 $(HOST_CORE_IMAGE_DEFAULT_32) \
304 hiddenapid-host
305
Ian Rogersafd9acc2014-06-17 08:21:54 -0700306# The path for which all the source files are relative, not actually the current directory.
Brian Carlstrom7940e442013-07-12 13:46:57 -0700307LOCAL_PATH := art
308
Colin Cross6e95dd52016-09-12 15:37:10 -0700309ART_TEST_MODULES := \
310 art_cmdline_tests \
311 art_compiler_tests \
312 art_compiler_host_tests \
313 art_dex2oat_tests \
David Sehr55232f12017-04-19 14:06:49 -0700314 art_dexdiag_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700315 art_dexdump_tests \
316 art_dexlayout_tests \
317 art_dexlist_tests \
Calin Juravle36eb3132017-01-13 16:32:38 -0800318 art_dexoptanalyzer_tests \
David Brazdil2b9c35b2018-01-12 15:44:43 +0000319 art_hiddenapi_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700320 art_imgdiag_tests \
321 art_oatdump_tests \
Alex Klyubind1d5c952017-12-15 12:57:33 -0800322 art_patchoat_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700323 art_profman_tests \
324 art_runtime_tests \
325 art_runtime_compiler_tests \
Brian Carlstroma1ce1fe2014-02-24 23:23:58 -0800326
Colin Cross6e95dd52016-09-12 15:37:10 -0700327ART_TARGET_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\
328 $(ART_TEST_LIST_device_$(TARGET_ARCH)_$(m)))
Alex Light50fa9932015-08-10 15:30:07 -0700329
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100330ifdef TARGET_2ND_ARCH
3312ND_ART_TARGET_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\
332 $(ART_TEST_LIST_device_$(2ND_TARGET_ARCH)_$(m)))
333endif
334
Colin Cross6e95dd52016-09-12 15:37:10 -0700335ART_HOST_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\
Colin Cross124f8812016-09-15 20:57:47 -0700336 $(ART_TEST_LIST_host_$(ART_HOST_ARCH)_$(m)))
Alex Light50fa9932015-08-10 15:30:07 -0700337
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100338ifneq ($(HOST_PREFER_32_BIT),true)
3392ND_ART_HOST_GTEST_FILES += $(foreach m,$(ART_TEST_MODULES),\
340 $(ART_TEST_LIST_host_$(2ND_ART_HOST_ARCH)_$(m)))
341endif
342
Ian Rogersafd9acc2014-06-17 08:21:54 -0700343# Variables holding collections of gtest pre-requisits used to run a number of gtests.
344ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
345ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
346ART_TEST_HOST_GTEST_RULES :=
347ART_TEST_HOST_VALGRIND_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
348ART_TEST_HOST_VALGRIND_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
349ART_TEST_HOST_VALGRIND_GTEST_RULES :=
350ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
351ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
352ART_TEST_TARGET_GTEST_RULES :=
Anton Kirilove5e76f42016-05-03 16:15:36 +0100353ART_TEST_TARGET_VALGRIND_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
354ART_TEST_TARGET_VALGRIND_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
355ART_TEST_TARGET_VALGRIND_GTEST_RULES :=
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100356ART_TEST_HOST_GTEST_DEPENDENCIES :=
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700357
Nicolas Geoffray96a37c82014-10-29 23:50:40 +0000358ART_GTEST_TARGET_ANDROID_ROOT := '/system'
359ifneq ($(ART_TEST_ANDROID_ROOT),)
360 ART_GTEST_TARGET_ANDROID_ROOT := $(ART_TEST_ANDROID_ROOT)
361endif
362
Anton Kirilove5e76f42016-05-03 16:15:36 +0100363ART_VALGRIND_TARGET_DEPENDENCIES := \
364 $(TARGET_OUT_EXECUTABLES)/valgrind \
365 $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/memcheck-$(TARGET_ARCH)-linux \
366 $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/vgpreload_core-$(TARGET_ARCH)-linux.so \
367 $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/vgpreload_memcheck-$(TARGET_ARCH)-linux.so \
368 $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/default.supp
369
370ifdef TARGET_2ND_ARCH
371ART_VALGRIND_TARGET_DEPENDENCIES += \
372 $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/memcheck-$(TARGET_2ND_ARCH)-linux \
373 $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/vgpreload_core-$(TARGET_2ND_ARCH)-linux.so \
374 $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/vgpreload_memcheck-$(TARGET_2ND_ARCH)-linux.so
375endif
376
377include $(CLEAR_VARS)
378LOCAL_MODULE := valgrind-target-suppressions.txt
379LOCAL_MODULE_CLASS := ETC
380LOCAL_MODULE_TAGS := optional
381LOCAL_SRC_FILES := test/valgrind-target-suppressions.txt
382LOCAL_MODULE_PATH := $(ART_TARGET_TEST_OUT)
383include $(BUILD_PREBUILT)
384
Ian Rogersafd9acc2014-06-17 08:21:54 -0700385# Define a make rule for a target device gtest.
386# $(1): gtest name - the name of the test we're building such as leb128_test.
Colin Cross6e95dd52016-09-12 15:37:10 -0700387# $(2): path relative to $OUT to the test binary
388# $(3): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
389# $(4): LD_LIBRARY_PATH or undefined - used in case libartd.so is not in /system/lib/
Ian Rogersafd9acc2014-06-17 08:21:54 -0700390define define-art-gtest-rule-target
Colin Cross6e95dd52016-09-12 15:37:10 -0700391 gtest_rule := test-art-target-gtest-$(1)$$($(3)ART_PHONY_TEST_TARGET_SUFFIX)
392 gtest_exe := $(OUT_DIR)/$(2)
393 gtest_target_exe := $$(patsubst $(PRODUCT_OUT)/%,/%,$$(gtest_exe))
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700394
Brian Carlstrom532714a2014-06-25 02:15:31 -0700395 # Add the test dependencies to test-art-target-sync, which will be a prerequisite for the test
Ian Rogersafd9acc2014-06-17 08:21:54 -0700396 # to ensure files are pushed to the device.
397 TEST_ART_TARGET_SYNC_DEPS += \
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700398 $$(ART_GTEST_$(1)_TARGET_DEPS) \
Ian Rogers1a2f84e2014-07-07 16:05:18 -0700399 $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_TARGET_GTEST_$(file)_DEX)) \
Colin Cross6e95dd52016-09-12 15:37:10 -0700400 $$(gtest_exe) \
401 $$($(3)TARGET_OUT_SHARED_LIBRARIES)/libjavacore.so \
402 $$($(3)TARGET_OUT_SHARED_LIBRARIES)/libopenjdkd.so \
Andreas Gampec7d4a582015-09-30 11:52:02 -0700403 $$(TARGET_OUT_JAVA_LIBRARIES)/core-libart-testdex.jar \
Anton Kirilove5e76f42016-05-03 16:15:36 +0100404 $$(TARGET_OUT_JAVA_LIBRARIES)/core-oj-testdex.jar \
405 $$(ART_TARGET_TEST_OUT)/valgrind-target-suppressions.txt
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700406
Colin Cross6e95dd52016-09-12 15:37:10 -0700407$$(gtest_rule) valgrind-$$(gtest_rule): PRIVATE_TARGET_EXE := $$(gtest_target_exe)
408
Ian Rogersafd9acc2014-06-17 08:21:54 -0700409.PHONY: $$(gtest_rule)
410$$(gtest_rule): test-art-target-sync
Colin Cross6e95dd52016-09-12 15:37:10 -0700411 $(hide) adb shell touch $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID
412 $(hide) adb shell rm $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID
413 $(hide) adb shell chmod 755 $$(PRIVATE_TARGET_EXE)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700414 $(hide) $$(call ART_TEST_SKIP,$$@) && \
Roland Levillaina42e7042017-10-30 17:24:43 +0000415 (adb shell "env $(GCOV_ENV) LD_LIBRARY_PATH=$(4) \
416 ANDROID_ROOT=$(ART_GTEST_TARGET_ANDROID_ROOT) $$(PRIVATE_TARGET_EXE) \
417 && touch $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID" \
418 && (adb pull $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID /tmp/ \
419 && $$(call ART_TEST_PASSED,$$@)) \
420 || $$(call ART_TEST_FAILED,$$@))
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700421 $(hide) rm -f /tmp/$$@-$$$$PPID
Ian Rogersafd9acc2014-06-17 08:21:54 -0700422
Colin Cross6e95dd52016-09-12 15:37:10 -0700423 ART_TEST_TARGET_GTEST$($(3)ART_PHONY_TEST_TARGET_SUFFIX)_RULES += $$(gtest_rule)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700424 ART_TEST_TARGET_GTEST_RULES += $$(gtest_rule)
425 ART_TEST_TARGET_GTEST_$(1)_RULES += $$(gtest_rule)
426
Anton Kirilove5e76f42016-05-03 16:15:36 +0100427.PHONY: valgrind-$$(gtest_rule)
428valgrind-$$(gtest_rule): $(ART_VALGRIND_TARGET_DEPENDENCIES) test-art-target-sync
Colin Cross6e95dd52016-09-12 15:37:10 -0700429 $(hide) adb shell touch $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID
430 $(hide) adb shell rm $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID
431 $(hide) adb shell chmod 755 $$(PRIVATE_TARGET_EXE)
Anton Kirilove5e76f42016-05-03 16:15:36 +0100432 $(hide) $$(call ART_TEST_SKIP,$$@) && \
Roland Levillaina42e7042017-10-30 17:24:43 +0000433 (adb shell "env $(GCOV_ENV) LD_LIBRARY_PATH=$(4) \
434 ANDROID_ROOT=$(ART_GTEST_TARGET_ANDROID_ROOT) \
435 $$$$ANDROID_ROOT/bin/valgrind \
436 --leak-check=full --error-exitcode=1 --workaround-gcc296-bugs=yes \
437 --suppressions=$(ART_TARGET_TEST_DIR)/valgrind-target-suppressions.txt \
438 --num-callers=50 --show-mismatched-frees=no $$(PRIVATE_TARGET_EXE) \
439 && touch $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID" \
440 && (adb pull $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID /tmp/ \
441 && $$(call ART_TEST_PASSED,$$@)) \
442 || $$(call ART_TEST_FAILED,$$@))
Anton Kirilove5e76f42016-05-03 16:15:36 +0100443 $(hide) rm -f /tmp/$$@-$$$$PPID
444
Roland Levillaina42e7042017-10-30 17:24:43 +0000445 ART_TEST_TARGET_VALGRIND_GTEST$$($(3)ART_PHONY_TEST_TARGET_SUFFIX)_RULES += \
446 valgrind-$$(gtest_rule)
Anton Kirilove5e76f42016-05-03 16:15:36 +0100447 ART_TEST_TARGET_VALGRIND_GTEST_RULES += valgrind-$$(gtest_rule)
448 ART_TEST_TARGET_VALGRIND_GTEST_$(1)_RULES += valgrind-$$(gtest_rule)
449
Ian Rogersafd9acc2014-06-17 08:21:54 -0700450 # Clear locally defined variables.
Anton Kirilove5e76f42016-05-03 16:15:36 +0100451 valgrind_gtest_rule :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700452 gtest_rule :=
Colin Cross6e95dd52016-09-12 15:37:10 -0700453 gtest_exe :=
454 gtest_target_exe :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700455endef # define-art-gtest-rule-target
456
Andreas Gampe3c0bb312015-02-19 10:02:19 -0800457ART_VALGRIND_DEPENDENCIES := \
458 $(HOST_OUT_EXECUTABLES)/valgrind \
459 $(HOST_OUT)/lib64/valgrind/memcheck-amd64-linux \
460 $(HOST_OUT)/lib64/valgrind/memcheck-x86-linux \
461 $(HOST_OUT)/lib64/valgrind/default.supp \
462 $(HOST_OUT)/lib64/valgrind/vgpreload_core-amd64-linux.so \
463 $(HOST_OUT)/lib64/valgrind/vgpreload_core-x86-linux.so \
464 $(HOST_OUT)/lib64/valgrind/vgpreload_memcheck-amd64-linux.so \
465 $(HOST_OUT)/lib64/valgrind/vgpreload_memcheck-x86-linux.so
466
Ian Rogersafd9acc2014-06-17 08:21:54 -0700467# Define make rules for a host gtests.
468# $(1): gtest name - the name of the test we're building such as leb128_test.
Colin Cross6e95dd52016-09-12 15:37:10 -0700469# $(2): path relative to $OUT to the test binary
470# $(3): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
Ian Rogersafd9acc2014-06-17 08:21:54 -0700471define define-art-gtest-rule-host
Colin Cross6e95dd52016-09-12 15:37:10 -0700472 gtest_rule := test-art-host-gtest-$(1)$$($(3)ART_PHONY_TEST_HOST_SUFFIX)
473 gtest_exe := $(OUT_DIR)/$(2)
Ian Rogers665de8a2014-06-24 21:34:09 -0700474 # Dependencies for all host gtests.
475 gtest_deps := $$(HOST_CORE_DEX_LOCATIONS) \
Colin Cross6e95dd52016-09-12 15:37:10 -0700476 $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libjavacore$$(ART_HOST_SHLIB_EXTENSION) \
477 $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libopenjdkd$$(ART_HOST_SHLIB_EXTENSION) \
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100478 $$(gtest_exe) \
479 $$(ART_GTEST_$(1)_HOST_DEPS) \
480 $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_HOST_GTEST_$(file)_DEX))
Ian Rogers665de8a2014-06-24 21:34:09 -0700481
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100482 ART_TEST_HOST_GTEST_DEPENDENCIES += $$(gtest_deps)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700483
Andreas Gampe6acebf42018-01-22 22:15:43 -0800484.PHONY: $$(gtest_rule)
485ifeq (,$(SANITIZE_HOST))
486$$(gtest_rule): $$(gtest_exe) $$(gtest_deps)
487 $(hide) ($$(call ART_TEST_SKIP,$$@) && $$< && \
488 $$(call ART_TEST_PASSED,$$@)) || $$(call ART_TEST_FAILED,$$@)
489else
Andreas Gampe03858052017-05-01 08:17:24 -0700490# Note: envsetup currently exports ASAN_OPTIONS=detect_leaks=0 to suppress leak detection, as some
491# build tools (e.g., ninja) intentionally leak. We want leak checks when we run our tests, so
492# override ASAN_OPTIONS. b/37751350
Andreas Gampe6acebf42018-01-22 22:15:43 -0800493# Note 2: Under sanitization, also capture the output, and run it through the stack tool on failure
494# (with the x86-64 ABI, as this allows symbolization of both x86 and x86-64). We don't do this in
495# general as it loses all the color output, and we have our own symbolization step when not running
496# under ASAN.
Nicolas Geoffray0f7c06d2015-05-28 10:21:03 +0100497$$(gtest_rule): $$(gtest_exe) $$(gtest_deps)
Andreas Gampe6acebf42018-01-22 22:15:43 -0800498 $(hide) ($$(call ART_TEST_SKIP,$$@) && set -o pipefail && \
499 ASAN_OPTIONS=detect_leaks=1 $$< 2>&1 | tee $$<.tmp.out >&2 && \
500 { $$(call ART_TEST_PASSED,$$@) ; rm $$<.tmp.out ; }) || \
Andreas Gampec05fd3f2018-01-23 14:22:07 -0800501 ( grep -q AddressSanitizer $$<.tmp.out && export ANDROID_BUILD_TOP=`pwd` && \
Andreas Gampe6acebf42018-01-22 22:15:43 -0800502 { echo "ABI: 'x86_64'" | cat - $$<.tmp.out | development/scripts/stack | tail -n 3000 ; } ; \
503 rm $$<.tmp.out ; $$(call ART_TEST_FAILED,$$@))
504endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700505
Colin Cross6e95dd52016-09-12 15:37:10 -0700506 ART_TEST_HOST_GTEST$$($(3)ART_PHONY_TEST_HOST_SUFFIX)_RULES += $$(gtest_rule)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700507 ART_TEST_HOST_GTEST_RULES += $$(gtest_rule)
508 ART_TEST_HOST_GTEST_$(1)_RULES += $$(gtest_rule)
509
Andreas Gampe3c0bb312015-02-19 10:02:19 -0800510
Ian Rogersafd9acc2014-06-17 08:21:54 -0700511.PHONY: valgrind-$$(gtest_rule)
Andreas Gampe3db36002015-05-28 20:17:09 -0700512valgrind-$$(gtest_rule): $$(gtest_exe) $$(gtest_deps) $(ART_VALGRIND_DEPENDENCIES)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700513 $(hide) $$(call ART_TEST_SKIP,$$@) && \
Andreas Gampe8df91ac2015-02-20 13:15:15 -0800514 VALGRIND_LIB=$(HOST_OUT)/lib64/valgrind \
Hiroshi Yamauchidc15e892016-03-10 13:49:14 -0800515 $(HOST_OUT_EXECUTABLES)/valgrind --leak-check=full --error-exitcode=1 \
Andreas Gampebf13e802016-09-02 19:43:09 -0700516 --suppressions=art/test/valgrind-suppressions.txt --num-callers=50 \
517 $$< && \
Andreas Gampe3c0bb312015-02-19 10:02:19 -0800518 $$(call ART_TEST_PASSED,$$@) || $$(call ART_TEST_FAILED,$$@)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700519
Colin Cross6e95dd52016-09-12 15:37:10 -0700520 ART_TEST_HOST_VALGRIND_GTEST$$($(3)ART_PHONY_TEST_HOST_SUFFIX)_RULES += valgrind-$$(gtest_rule)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700521 ART_TEST_HOST_VALGRIND_GTEST_RULES += valgrind-$$(gtest_rule)
522 ART_TEST_HOST_VALGRIND_GTEST_$(1)_RULES += valgrind-$$(gtest_rule)
523
524 # Clear locally defined variables.
525 valgrind_gtest_rule :=
526 gtest_rule :=
527 gtest_exe :=
Ian Rogers665de8a2014-06-24 21:34:09 -0700528 gtest_deps :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700529endef # define-art-gtest-rule-host
530
531# Define the rules to build and run host and target gtests.
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100532# $(1): file name
533# $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
534define define-art-gtest-target
535 art_gtest_filename := $(1)
Brian Carlstrom0796af02011-10-12 14:31:45 -0700536
Ian Rogersafd9acc2014-06-17 08:21:54 -0700537 include $$(CLEAR_VARS)
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -0700538 art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename)))
Colin Cross6e95dd52016-09-12 15:37:10 -0700539
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100540 library_path :=
541 2ND_library_path :=
542 ifneq ($$(ART_TEST_ANDROID_ROOT),)
543 ifdef TARGET_2ND_ARCH
544 2ND_library_path := $$(ART_TEST_ANDROID_ROOT)/lib
545 library_path := $$(ART_TEST_ANDROID_ROOT)/lib64
546 else
547 ifneq ($(filter %64,$(TARGET_ARCH)),)
Nicolas Geoffray9eb40742014-10-29 22:38:53 +0000548 library_path := $$(ART_TEST_ANDROID_ROOT)/lib64
549 else
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100550 library_path := $$(ART_TEST_ANDROID_ROOT)/lib
Nicolas Geoffray9eb40742014-10-29 22:38:53 +0000551 endif
552 endif
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100553 endif
Andreas Gampe5ca4eaa2014-05-29 02:09:33 -0700554
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100555 ifndef ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES
Ian Rogersafd9acc2014-06-17 08:21:54 -0700556 ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES :=
Anton Kirilove5e76f42016-05-03 16:15:36 +0100557 ART_TEST_TARGET_VALGRIND_GTEST_$$(art_gtest_name)_RULES :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100558 endif
559 $$(eval $$(call define-art-gtest-rule-target,$$(art_gtest_name),$$(art_gtest_filename),$(2),$$($(2)library_path)))
560
561 # Clear locally defined variables.
562 art_gtest_filename :=
563 art_gtest_name :=
564 library_path :=
565 2ND_library_path :=
566endef # define-art-gtest-target
567
568# $(1): file name
569# $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
570define define-art-gtest-host
571 art_gtest_filename := $(1)
572
573 include $$(CLEAR_VARS)
574 art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename)))
575 ifndef ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES
576 ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES :=
577 ART_TEST_HOST_VALGRIND_GTEST_$$(art_gtest_name)_RULES :=
578 endif
579 $$(eval $$(call define-art-gtest-rule-host,$$(art_gtest_name),$$(art_gtest_filename),$(2)))
580
581 # Clear locally defined variables.
582 art_gtest_filename :=
583 art_gtest_name :=
584endef # define-art-gtest-host
585
586# Define the rules to build and run gtests for both archs on target.
587# $(1): test name
588define define-art-gtest-target-both
589 art_gtest_name := $(1)
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700590
Ian Rogersafd9acc2014-06-17 08:21:54 -0700591 # A rule to run the different architecture versions of the gtest.
592.PHONY: test-art-target-gtest-$$(art_gtest_name)
593test-art-target-gtest-$$(art_gtest_name): $$(ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES)
594 $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
595
Anton Kirilove5e76f42016-05-03 16:15:36 +0100596.PHONY: valgrind-test-art-target-gtest-$$(art_gtest_name)
597valgrind-test-art-target-gtest-$$(art_gtest_name): $$(ART_TEST_TARGET_VALGRIND_GTEST_$$(art_gtest_name)_RULES)
598 $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
599
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100600 # Clear now unused variables.
601 ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES :=
602 ART_TEST_TARGET_VALGRIND_GTEST_$$(art_gtest_name)_RULES :=
603 art_gtest_name :=
604endef # define-art-gtest-target-both
Ian Rogersd912e5c2013-11-13 12:40:11 -0800605
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100606# Define the rules to build and run gtests for both archs on host.
607# $(1): test name
608define define-art-gtest-host-both
609 art_gtest_name := $(1)
610
Ian Rogersafd9acc2014-06-17 08:21:54 -0700611.PHONY: test-art-host-gtest-$$(art_gtest_name)
612test-art-host-gtest-$$(art_gtest_name): $$(ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES)
613 $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
Ian Rogersd912e5c2013-11-13 12:40:11 -0800614
Ian Rogersafd9acc2014-06-17 08:21:54 -0700615.PHONY: valgrind-test-art-host-gtest-$$(art_gtest_name)
616valgrind-test-art-host-gtest-$$(art_gtest_name): $$(ART_TEST_HOST_VALGRIND_GTEST_$$(art_gtest_name)_RULES)
617 $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
618
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100619 # Clear now unused variables.
620 ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES :=
621 ART_TEST_HOST_VALGRIND_GTEST_$$(art_gtest_name)_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700622 art_gtest_name :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100623endef # define-art-gtest-host-both
Alex Light50fa9932015-08-10 15:30:07 -0700624
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700625ifeq ($(ART_BUILD_TARGET),true)
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100626 $(foreach file,$(ART_TARGET_GTEST_FILES), $(eval $(call define-art-gtest-target,$(file),)))
627 ifdef TARGET_2ND_ARCH
628 $(foreach file,$(2ND_ART_TARGET_GTEST_FILES), $(eval $(call define-art-gtest-target,$(file),2ND_)))
629 endif
630 # Rules to run the different architecture versions of the gtest.
631 $(foreach file,$(ART_TARGET_GTEST_FILES), $(eval $(call define-art-gtest-target-both,$$(notdir $$(basename $$(file))))))
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700632endif
Ian Rogersc5f17732014-06-05 20:48:42 -0700633ifeq ($(ART_BUILD_HOST),true)
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100634 $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),)))
635 ifneq ($(HOST_PREFER_32_BIT),true)
636 $(foreach file,$(2ND_ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),2ND_)))
637 endif
638 # Rules to run the different architecture versions of the gtest.
639 $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host-both,$$(notdir $$(basename $$(file))))))
Brian Carlstrom07d579f2011-07-27 13:31:51 -0700640endif
Tsu Chiang Chuangec245a42014-05-15 21:16:21 -0700641
642# Used outside the art project to get a list of the current tests
643RUNTIME_TARGET_GTEST_MAKE_TARGETS :=
Colin Cross6e95dd52016-09-12 15:37:10 -0700644$(foreach file, $(ART_TARGET_GTEST_FILES), $(eval RUNTIME_TARGET_GTEST_MAKE_TARGETS += $$(notdir $$(basename $$(file)))))
Tsu Chiang Chuangec245a42014-05-15 21:16:21 -0700645COMPILER_TARGET_GTEST_MAKE_TARGETS :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700646
647# Define all the combinations of host/target, valgrind and suffix such as:
648# test-art-host-gtest or valgrind-test-art-host-gtest64
649# $(1): host or target
650# $(2): HOST or TARGET
651# $(3): valgrind- or undefined
652# $(4): undefined, 32 or 64
653define define-test-art-gtest-combination
654 ifeq ($(1),host)
655 ifneq ($(2),HOST)
656 $$(error argument mismatch $(1) and ($2))
657 endif
658 else
659 ifneq ($(1),target)
660 $$(error found $(1) expected host or target)
661 endif
662 ifneq ($(2),TARGET)
663 $$(error argument mismatch $(1) and ($2))
664 endif
665 endif
666
667 rule_name := $(3)test-art-$(1)-gtest$(4)
Andreas Gampe928f72b2014-09-09 19:53:48 -0700668 ifeq ($(3),valgrind-)
Andreas Gampe928f72b2014-09-09 19:53:48 -0700669 dependencies := $$(ART_TEST_$(2)_VALGRIND_GTEST$(4)_RULES)
670 else
671 dependencies := $$(ART_TEST_$(2)_GTEST$(4)_RULES)
672 endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700673
674.PHONY: $$(rule_name)
Alan Leung50173eb2017-12-20 13:33:21 -0800675$$(rule_name): $$(dependencies) dx d8-compat-dx desugar
Ian Rogersafd9acc2014-06-17 08:21:54 -0700676 $(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
677
678 # Clear locally defined variables.
679 rule_name :=
680 dependencies :=
681endef # define-test-art-gtest-combination
682
683$(eval $(call define-test-art-gtest-combination,target,TARGET,,))
Anton Kirilove5e76f42016-05-03 16:15:36 +0100684$(eval $(call define-test-art-gtest-combination,target,TARGET,valgrind-,))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700685$(eval $(call define-test-art-gtest-combination,target,TARGET,,$(ART_PHONY_TEST_TARGET_SUFFIX)))
Anton Kirilove5e76f42016-05-03 16:15:36 +0100686$(eval $(call define-test-art-gtest-combination,target,TARGET,valgrind-,$(ART_PHONY_TEST_TARGET_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700687ifdef TARGET_2ND_ARCH
688$(eval $(call define-test-art-gtest-combination,target,TARGET,,$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)))
Anton Kirilove5e76f42016-05-03 16:15:36 +0100689$(eval $(call define-test-art-gtest-combination,target,TARGET,valgrind-,$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700690endif
691$(eval $(call define-test-art-gtest-combination,host,HOST,,))
692$(eval $(call define-test-art-gtest-combination,host,HOST,valgrind-,))
693$(eval $(call define-test-art-gtest-combination,host,HOST,,$(ART_PHONY_TEST_HOST_SUFFIX)))
694$(eval $(call define-test-art-gtest-combination,host,HOST,valgrind-,$(ART_PHONY_TEST_HOST_SUFFIX)))
695ifneq ($(HOST_PREFER_32_BIT),true)
696$(eval $(call define-test-art-gtest-combination,host,HOST,,$(2ND_ART_PHONY_TEST_HOST_SUFFIX)))
697$(eval $(call define-test-art-gtest-combination,host,HOST,valgrind-,$(2ND_ART_PHONY_TEST_HOST_SUFFIX)))
698endif
699
700# Clear locally defined variables.
701define-art-gtest-rule-target :=
702define-art-gtest-rule-host :=
703define-art-gtest :=
704define-test-art-gtest-combination :=
705RUNTIME_GTEST_COMMON_SRC_FILES :=
706COMPILER_GTEST_COMMON_SRC_FILES :=
707RUNTIME_GTEST_TARGET_SRC_FILES :=
708RUNTIME_GTEST_HOST_SRC_FILES :=
709COMPILER_GTEST_TARGET_SRC_FILES :=
710COMPILER_GTEST_HOST_SRC_FILES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700711ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
712ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
713ART_TEST_HOST_GTEST_RULES :=
714ART_TEST_HOST_VALGRIND_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
715ART_TEST_HOST_VALGRIND_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
716ART_TEST_HOST_VALGRIND_GTEST_RULES :=
717ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
718ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
719ART_TEST_TARGET_GTEST_RULES :=
Anton Kirilove5e76f42016-05-03 16:15:36 +0100720ART_TEST_TARGET_VALGRIND_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
721ART_TEST_TARGET_VALGRIND_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
722ART_TEST_TARGET_VALGRIND_GTEST_RULES :=
Nicolas Geoffray96a37c82014-10-29 23:50:40 +0000723ART_GTEST_TARGET_ANDROID_ROOT :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700724ART_GTEST_class_linker_test_DEX_DEPS :=
Mathieu Chartierdb70ce52016-12-12 11:06:59 -0800725ART_GTEST_class_table_test_DEX_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700726ART_GTEST_compiler_driver_test_DEX_DEPS :=
727ART_GTEST_dex_file_test_DEX_DEPS :=
728ART_GTEST_exception_test_DEX_DEPS :=
729ART_GTEST_elf_writer_test_HOST_DEPS :=
730ART_GTEST_elf_writer_test_TARGET_DEPS :=
Andreas Gampea1ff30f2016-09-27 12:19:45 -0700731ART_GTEST_imtable_test_DEX_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700732ART_GTEST_jni_compiler_test_DEX_DEPS :=
733ART_GTEST_jni_internal_test_DEX_DEPS :=
Richard Uhler66d874d2015-01-15 09:37:19 -0800734ART_GTEST_oat_file_assistant_test_DEX_DEPS :=
735ART_GTEST_oat_file_assistant_test_HOST_DEPS :=
736ART_GTEST_oat_file_assistant_test_TARGET_DEPS :=
Calin Juravle36eb3132017-01-13 16:32:38 -0800737ART_GTEST_dexoptanalyzer_test_DEX_DEPS :=
738ART_GTEST_dexoptanalyzer_test_HOST_DEPS :=
739ART_GTEST_dexoptanalyzer_test_TARGET_DEPS :=
Richard Uhler84f50ae2017-02-06 15:12:45 +0000740ART_GTEST_image_space_test_DEX_DEPS :=
741ART_GTEST_image_space_test_HOST_DEPS :=
742ART_GTEST_image_space_test_TARGET_DEPS :=
Andreas Gampee1459ae2016-06-29 09:36:30 -0700743ART_GTEST_dex2oat_test_DEX_DEPS :=
744ART_GTEST_dex2oat_test_HOST_DEPS :=
745ART_GTEST_dex2oat_test_TARGET_DEPS :=
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700746ART_GTEST_dex2oat_image_test_DEX_DEPS :=
747ART_GTEST_dex2oat_image_test_HOST_DEPS :=
748ART_GTEST_dex2oat_image_test_TARGET_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700749ART_GTEST_object_test_DEX_DEPS :=
Alex Klyubind1d5c952017-12-15 12:57:33 -0800750ART_GTEST_patchoat_test_DEX_DEPS :=
751ART_GTEST_patchoat_test_HOST_DEPS :=
752ART_GTEST_patchoat_test_TARGET_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700753ART_GTEST_proxy_test_DEX_DEPS :=
754ART_GTEST_reflection_test_DEX_DEPS :=
755ART_GTEST_stub_test_DEX_DEPS :=
756ART_GTEST_transaction_test_DEX_DEPS :=
Andreas Gampee1459ae2016-06-29 09:36:30 -0700757ART_GTEST_dex2oat_environment_tests_DEX_DEPS :=
Mathieu Chartier1ca68902017-04-18 11:26:22 -0700758ART_GTEST_heap_verification_test_DEX_DEPS :=
David Brazdilca3c8c32016-09-06 14:04:48 +0100759ART_GTEST_verifier_deps_test_DEX_DEPS :=
Andreas Gampe3c0bb312015-02-19 10:02:19 -0800760ART_VALGRIND_DEPENDENCIES :=
Anton Kirilove5e76f42016-05-03 16:15:36 +0100761ART_VALGRIND_TARGET_DEPENDENCIES :=
Ian Rogers1a2f84e2014-07-07 16:05:18 -0700762$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_TARGET_GTEST_$(dir)_DEX :=))
763$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_HOST_GTEST_$(dir)_DEX :=))
Richard Uhler66d874d2015-01-15 09:37:19 -0800764ART_TEST_HOST_GTEST_MainStripped_DEX :=
765ART_TEST_TARGET_GTEST_MainStripped_DEX :=
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000766ART_TEST_HOST_GTEST_MainUncompressed_DEX :=
767ART_TEST_TARGET_GTEST_MainUncompressed_DEX :=
Mathieu Chartier700a9852018-02-06 18:27:38 -0800768ART_TEST_HOST_GTEST_EmptyUncompressed_DEX :=
769ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX :=
David Brazdilca3c8c32016-09-06 14:04:48 +0100770ART_TEST_GTEST_VerifierDeps_SRC :=
771ART_TEST_HOST_GTEST_VerifierDeps_DEX :=
David Brazdilf906f122016-09-16 16:33:31 +0100772ART_TEST_TARGET_GTEST_VerifierDeps_DEX :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700773GTEST_DEX_DIRECTORIES :=
Brian Carlstrom532714a2014-06-25 02:15:31 -0700774LOCAL_PATH :=