blob: 86e949457e6d1534c029a38e3f80bf3edbc2bbf9 [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 \
Mathew Inwood7d74ef52018-03-16 14:18:33 +000040 HiddenApiSignatures \
David Brazdil2da3cbb2019-01-30 16:17:50 +000041 HiddenApiStubs \
Mathieu Chartier496577f2016-09-20 15:33:31 -070042 ImageLayoutA \
43 ImageLayoutB \
Andreas Gampea1ff30f2016-09-27 12:19:45 -070044 IMTA \
45 IMTB \
Sebastien Hertz0462c4c2015-04-01 16:34:17 +020046 Instrumentation \
Ian Rogersafd9acc2014-06-17 08:21:54 -070047 Interfaces \
Artem Udovichenkod9786b02015-10-14 16:36:55 +030048 Lookup \
Ian Rogersafd9acc2014-06-17 08:21:54 -070049 Main \
Mathieu Chartierd00e02b2017-05-24 12:04:13 -070050 ManyMethods \
Narayan Kamath25352fc2016-08-03 12:46:58 +010051 MethodTypes \
Richard Uhler66d874d2015-01-15 09:37:19 -080052 MultiDex \
Richard Uhler67ff7d12015-05-14 13:21:13 -070053 MultiDexModifiedSecondary \
Ian Rogersafd9acc2014-06-17 08:21:54 -070054 MyClass \
55 MyClassNatives \
56 Nested \
57 NonStaticLeafMethods \
Mathieu Chartier279ac5c2016-09-08 17:34:25 -070058 Packages \
Ian Rogersafd9acc2014-06-17 08:21:54 -070059 ProtoCompare \
60 ProtoCompare2 \
Calin Juravle877fd962016-01-05 14:29:29 +000061 ProfileTestMultiDex \
Ian Rogersafd9acc2014-06-17 08:21:54 -070062 StaticLeafMethods \
63 Statics \
64 StaticsFromCode \
Mathieu Chartiercd0f38f2018-10-15 09:44:35 -070065 StringLiterals \
Ian Rogersafd9acc2014-06-17 08:21:54 -070066 Transaction \
67 XandY
68
69# Create build rules for each dex file recording the dependency.
70$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval $(call build-art-test-dex,art-gtest,$(dir), \
Ian Rogers1a2f84e2014-07-07 16:05:18 -070071 $(ART_TARGET_NATIVETEST_OUT),art/build/Android.gtest.mk,ART_TEST_TARGET_GTEST_$(dir)_DEX, \
72 ART_TEST_HOST_GTEST_$(dir)_DEX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -070073
Richard Uhler66d874d2015-01-15 09:37:19 -080074# Create rules for MainStripped, a copy of Main with the classes.dex stripped
75# for the oat file assistant tests.
76ART_TEST_HOST_GTEST_MainStripped_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
77ART_TEST_TARGET_GTEST_MainStripped_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
78
David Srbecky8c8f1482020-02-05 20:17:10 +000079# Create rules for MainUncompressedAligned, a copy of Main with the classes.dex uncompressed
Nicolas Geoffrayf3075272018-01-08 12:41:19 +000080# for the dex2oat tests.
David Srbecky8c8f1482020-02-05 20:17:10 +000081ART_TEST_HOST_GTEST_MainUncompressedAligned_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))UncompressedAligned$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
82ART_TEST_TARGET_GTEST_MainUncompressedAligned_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))UncompressedAligned$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
Nicolas Geoffrayf3075272018-01-08 12:41:19 +000083
Mathieu Chartier700a9852018-02-06 18:27:38 -080084# Create rules for UncompressedEmpty, a classes.dex that is empty and uncompressed
85# for the dex2oat tests.
86ART_TEST_HOST_GTEST_EmptyUncompressed_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))EmptyUncompressed$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
87ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))EmptyUncompressed$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
88
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +010089# Create rules for UncompressedEmptyAligned, a classes.dex that is empty, uncompressed,
90# and 4 byte aligned for the dex2oat tests.
91ART_TEST_HOST_GTEST_EmptyUncompressedAligned_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))EmptyUncompressedAligned$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
92ART_TEST_TARGET_GTEST_EmptyUncompressedAligned_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))EmptyUncompressedAligned$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
93
David Srbecky8c8f1482020-02-05 20:17:10 +000094# Create rules for MultiDexUncompressedAligned, a copy of MultiDex with the classes.dex uncompressed
Andreas Gampefc604a72018-02-08 15:43:37 -080095# for the OatFile tests.
David Srbecky8c8f1482020-02-05 20:17:10 +000096ART_TEST_HOST_GTEST_MultiDexUncompressedAligned_DEX := $(basename $(ART_TEST_HOST_GTEST_MultiDex_DEX))UncompressedAligned$(suffix $(ART_TEST_HOST_GTEST_MultiDex_DEX))
97ART_TEST_TARGET_GTEST_MultiDexUncompressedAligned_DEX := $(basename $(ART_TEST_TARGET_GTEST_MultiDex_DEX))UncompressedAligned$(suffix $(ART_TEST_TARGET_GTEST_MultiDex_DEX))
Andreas Gampefc604a72018-02-08 15:43:37 -080098
Dan Willemsen17769622018-04-06 13:26:36 -070099ifdef ART_TEST_HOST_GTEST_Main_DEX
Richard Uhler66d874d2015-01-15 09:37:19 -0800100$(ART_TEST_HOST_GTEST_MainStripped_DEX): $(ART_TEST_HOST_GTEST_Main_DEX)
101 cp $< $@
102 $(call dexpreopt-remove-classes.dex,$@)
Dan Willemsen17769622018-04-06 13:26:36 -0700103endif
Richard Uhler66d874d2015-01-15 09:37:19 -0800104
Dan Willemsen17769622018-04-06 13:26:36 -0700105ifdef ART_TEST_TARGET_GTEST_Main_DEX
Richard Uhler66d874d2015-01-15 09:37:19 -0800106$(ART_TEST_TARGET_GTEST_MainStripped_DEX): $(ART_TEST_TARGET_GTEST_Main_DEX)
107 cp $< $@
108 $(call dexpreopt-remove-classes.dex,$@)
Dan Willemsen17769622018-04-06 13:26:36 -0700109endif
Richard Uhler66d874d2015-01-15 09:37:19 -0800110
Dan Willemsen17769622018-04-06 13:26:36 -0700111ifdef ART_TEST_HOST_GTEST_Main_DEX
David Srbecky8c8f1482020-02-05 20:17:10 +0000112$(ART_TEST_HOST_GTEST_MainUncompressedAligned_DEX): $(ART_TEST_HOST_GTEST_Main_DEX) $(ZIPALIGN)
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000113 cp $< $@
114 $(call uncompress-dexs, $@)
115 $(call align-package, $@)
Dan Willemsen17769622018-04-06 13:26:36 -0700116endif
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000117
Dan Willemsen17769622018-04-06 13:26:36 -0700118ifdef ART_TEST_TARGET_GTEST_Main_DEX
David Srbecky8c8f1482020-02-05 20:17:10 +0000119$(ART_TEST_TARGET_GTEST_MainUncompressedAligned_DEX): $(ART_TEST_TARGET_GTEST_Main_DEX) $(ZIPALIGN)
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000120 cp $< $@
121 $(call uncompress-dexs, $@)
122 $(call align-package, $@)
Dan Willemsen17769622018-04-06 13:26:36 -0700123endif
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000124
Dan Willemsen17769622018-04-06 13:26:36 -0700125ifdef ART_TEST_HOST_GTEST_Main_DEX
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +0100126$(ART_TEST_HOST_GTEST_EmptyUncompressed_DEX):
Nicolas Geoffray917cfdb2019-05-02 10:53:22 +0100127 touch $@_classes.dex
128 zip -j -qD -X -0 $@ $@_classes.dex
129 rm $@_classes.dex
Dan Willemsen17769622018-04-06 13:26:36 -0700130endif
Mathieu Chartier700a9852018-02-06 18:27:38 -0800131
Dan Willemsen17769622018-04-06 13:26:36 -0700132ifdef ART_TEST_TARGET_GTEST_Main_DEX
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +0100133$(ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX):
Nicolas Geoffray917cfdb2019-05-02 10:53:22 +0100134 touch $@_classes.dex
135 zip -j -qD -X -0 $@ $@_classes.dex
136 rm $@_classes.dex
Dan Willemsen17769622018-04-06 13:26:36 -0700137endif
Mathieu Chartier700a9852018-02-06 18:27:38 -0800138
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +0100139ifdef ART_TEST_HOST_GTEST_Main_DEX
140$(ART_TEST_HOST_GTEST_EmptyUncompressedAligned_DEX): $(ZIPALIGN)
Nicolas Geoffray917cfdb2019-05-02 10:53:22 +0100141 touch $@_classes.dex
142 zip -j -0 $@_temp.zip $@_classes.dex
143 $(ZIPALIGN) -f 4 $@_temp.zip $@
144 rm $@_classes.dex
145 rm $@_temp.zip
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +0100146endif
147
148ifdef ART_TEST_TARGET_GTEST_Main_DEX
149$(ART_TEST_TARGET_GTEST_EmptyUncompressedAligned_DEX): $(ZIPALIGN)
Nicolas Geoffray917cfdb2019-05-02 10:53:22 +0100150 touch $@_classes.dex
151 zip -j -0 $@_temp.zip $@_classes.dex
152 $(ZIPALIGN) -f 4 $@_temp.zip $@
153 rm $@_classes.dex
154 rm $@_temp.zip
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +0100155endif
156
Dan Willemsen17769622018-04-06 13:26:36 -0700157ifdef ART_TEST_HOST_GTEST_MultiDex_DEX
David Srbecky8c8f1482020-02-05 20:17:10 +0000158$(ART_TEST_HOST_GTEST_MultiDexUncompressedAligned_DEX): $(ART_TEST_HOST_GTEST_MultiDex_DEX) $(ZIPALIGN)
Andreas Gampefc604a72018-02-08 15:43:37 -0800159 cp $< $@
160 $(call uncompress-dexs, $@)
161 $(call align-package, $@)
Dan Willemsen17769622018-04-06 13:26:36 -0700162endif
Andreas Gampefc604a72018-02-08 15:43:37 -0800163
Dan Willemsen17769622018-04-06 13:26:36 -0700164ifdef ART_TEST_TARGET_GTEST_MultiDex_DEX
David Srbecky8c8f1482020-02-05 20:17:10 +0000165$(ART_TEST_TARGET_GTEST_MultiDexUncompressedAligned_DEX): $(ART_TEST_TARGET_GTEST_MultiDex_DEX) $(ZIPALIGN)
Andreas Gampefc604a72018-02-08 15:43:37 -0800166 cp $< $@
167 $(call uncompress-dexs, $@)
168 $(call align-package, $@)
Dan Willemsen17769622018-04-06 13:26:36 -0700169endif
Andreas Gampefc604a72018-02-08 15:43:37 -0800170
David Brazdilca3c8c32016-09-06 14:04:48 +0100171ART_TEST_GTEST_VerifierDeps_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifierDeps/*.smali))
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000172ART_TEST_GTEST_VerifierDepsMulti_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifierDepsMulti/*.smali))
David Brazdilca3c8c32016-09-06 14:04:48 +0100173ART_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 +0100174ART_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 +0000175ART_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))
176ART_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 +0100177
178$(ART_TEST_HOST_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700179 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
David Brazdilca3c8c32016-09-06 14:04:48 +0100180
David Brazdilf906f122016-09-16 16:33:31 +0100181$(ART_TEST_TARGET_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700182 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
David Brazdilf906f122016-09-16 16:33:31 +0100183
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000184$(ART_TEST_HOST_GTEST_VerifierDepsMulti_DEX): $(ART_TEST_GTEST_VerifierDepsMulti_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700185 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000186
187$(ART_TEST_TARGET_GTEST_VerifierDepsMulti_DEX): $(ART_TEST_GTEST_VerifierDepsMulti_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700188 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000189
Vladimir Markod79b37b2018-11-02 13:06:22 +0000190ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifySoftFailDuringClinit/*.smali))
191ART_TEST_HOST_GTEST_VerifySoftFailDuringClinit_DEX := $(dir $(ART_TEST_HOST_GTEST_Main_DEX))$(subst Main,VerifySoftFailDuringClinit,$(basename $(notdir $(ART_TEST_HOST_GTEST_Main_DEX))))$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
192ART_TEST_TARGET_GTEST_VerifySoftFailDuringClinit_DEX := $(dir $(ART_TEST_TARGET_GTEST_Main_DEX))$(subst Main,VerifySoftFailDuringClinit,$(basename $(notdir $(ART_TEST_TARGET_GTEST_Main_DEX))))$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
193
194$(ART_TEST_HOST_GTEST_VerifySoftFailDuringClinit_DEX): $(ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC) $(HOST_OUT_EXECUTABLES)/smali
195 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
196
197$(ART_TEST_TARGET_GTEST_VerifySoftFailDuringClinit_DEX): $(ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC) $(HOST_OUT_EXECUTABLES)/smali
198 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
199
David Sehrfe57c2b2020-03-27 14:58:54 +0000200# Linkage test artifacts.
201ART_TEST_GTEST_LinkageTest_SRC := $(abspath $(wildcard $(LOCAL_PATH)/LinkageTest/*.smali))
202ART_TEST_HOST_GTEST_LinkageTest_DEX := $(dir $(ART_TEST_HOST_GTEST_Main_DEX))$(subst Main,LinkageTest,$(basename $(notdir $(ART_TEST_HOST_GTEST_Main_DEX))))$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
203$(ART_TEST_HOST_GTEST_LinkageTest_DEX): $(ART_TEST_GTEST_LinkageTest_SRC) $(HOST_OUT_EXECUTABLES)/smali
204 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
205
Ian Rogersafd9acc2014-06-17 08:21:54 -0700206# Dex file dependencies for each gtest.
David Sehr139512d2018-02-08 15:44:50 -0800207ART_GTEST_art_dex_file_loader_test_DEX_DEPS := GetMethodSignature Main Nested MultiDex
David Sehrfe57c2b2020-03-27 14:58:54 +0000208ART_GTEST_dex2oat_environment_tests_DEX_DEPS := Main MainStripped MultiDex MultiDexModifiedSecondary MyClassNatives Nested VerifierDeps VerifierDepsMulti LinkageTest
Andreas Gampee1459ae2016-06-29 09:36:30 -0700209
Mathieu Chartier93764b82017-07-17 14:51:53 -0700210ART_GTEST_atomic_dex_ref_map_test_DEX_DEPS := Interfaces
Calin Juravlecdd49122017-07-05 20:09:53 -0700211ART_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 -0700212ART_GTEST_class_loader_context_test_DEX_DEPS := Main MultiDex MyClass ForClassLoaderA ForClassLoaderB ForClassLoaderC ForClassLoaderD
Mathieu Chartierdb70ce52016-12-12 11:06:59 -0800213ART_GTEST_class_table_test_DEX_DEPS := XandY
Calin Juravle877fd962016-01-05 14:29:29 +0000214ART_GTEST_compiler_driver_test_DEX_DEPS := AbstractMethod StaticLeafMethods ProfileTestMultiDex
Narayan Kamath25352fc2016-08-03 12:46:58 +0100215ART_GTEST_dex_cache_test_DEX_DEPS := Main Packages MethodTypes
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700216ART_GTEST_dexanalyze_test_DEX_DEPS := MultiDex
Mathieu Chartierd00e02b2017-05-24 12:04:13 -0700217ART_GTEST_dexlayout_test_DEX_DEPS := ManyMethods
David Srbecky8c8f1482020-02-05 20:17:10 +0000218ART_GTEST_dex2oat_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) ManyMethods Statics VerifierDeps MainUncompressedAligned EmptyUncompressed EmptyUncompressedAligned StringLiterals
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700219ART_GTEST_dex2oat_image_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) Statics VerifierDeps
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700220ART_GTEST_exception_test_DEX_DEPS := ExceptionHandle
David Brazdil2da3cbb2019-01-30 16:17:50 +0000221ART_GTEST_hiddenapi_test_DEX_DEPS := HiddenApi HiddenApiStubs
David Brazdila5c3a802019-03-08 14:59:41 +0000222ART_GTEST_hidden_api_test_DEX_DEPS := HiddenApiSignatures Main MultiDex
Vladimir Markod79b37b2018-11-02 13:06:22 +0000223ART_GTEST_image_test_DEX_DEPS := ImageLayoutA ImageLayoutB DefaultMethods VerifySoftFailDuringClinit
Andreas Gampea1ff30f2016-09-27 12:19:45 -0700224ART_GTEST_imtable_test_DEX_DEPS := IMTA IMTB
Sebastien Hertz0462c4c2015-04-01 16:34:17 +0200225ART_GTEST_instrumentation_test_DEX_DEPS := Instrumentation
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700226ART_GTEST_jni_compiler_test_DEX_DEPS := MyClassNatives
Nicolas Geoffray928567b2018-08-01 10:21:12 +0100227ART_GTEST_jni_internal_test_DEX_DEPS := AllFields StaticLeafMethods MyClassNatives
Andreas Gampee1459ae2016-06-29 09:36:30 -0700228ART_GTEST_oat_file_assistant_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Calin Juravle36eb3132017-01-13 16:32:38 -0800229ART_GTEST_dexoptanalyzer_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Richard Uhler84f50ae2017-02-06 15:12:45 +0000230ART_GTEST_image_space_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
David Srbecky8c8f1482020-02-05 20:17:10 +0000231ART_GTEST_oat_file_test_DEX_DEPS := Main MultiDex MainUncompressedAligned MultiDexUncompressedAligned MainStripped Nested MultiDexModifiedSecondary
Mathieu Chartier07ddb6f2015-11-05 11:16:34 -0800232ART_GTEST_oat_test_DEX_DEPS := Main
Roland Levillain1f130f12018-03-12 18:39:19 +0000233ART_GTEST_oat_writer_test_DEX_DEPS := Main
Nicolas Geoffray975b7742019-03-21 17:37:38 +0000234# two_runtimes_test build off dex2oat_environment_test, which does sanity checks on the following dex files.
235ART_GTEST_two_runtimes_test_DEX_DEPS := Main MainStripped Nested MultiDex MultiDexModifiedSecondary
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700236ART_GTEST_object_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY
237ART_GTEST_proxy_test_DEX_DEPS := Interfaces
238ART_GTEST_reflection_test_DEX_DEPS := Main NonStaticLeafMethods StaticLeafMethods
Calin Juravle877fd962016-01-05 14:29:29 +0000239ART_GTEST_profile_assistant_test_DEX_DEPS := ProfileTestMultiDex
Mathieu Chartierdb40eac2017-06-09 18:34:11 -0700240ART_GTEST_profile_compilation_info_test_DEX_DEPS := ManyMethods ProfileTestMultiDex
Nicolas Geoffraycaf8f4c2019-10-08 18:47:48 +0100241ART_GTEST_profile_boot_info_test_DEX_DEPS := ManyMethods ProfileTestMultiDex MultiDex
Nicolas Geoffray44078f92018-10-01 12:57:55 +0100242ART_GTEST_profiling_info_test_DEX_DEPS := ProfileTestMultiDex
Andreas Gampe0f01b582017-01-18 15:22:37 -0800243ART_GTEST_runtime_callbacks_test_DEX_DEPS := XandY
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700244ART_GTEST_stub_test_DEX_DEPS := AllFields
245ART_GTEST_transaction_test_DEX_DEPS := Transaction
Artem Udovichenkod9786b02015-10-14 16:36:55 +0300246ART_GTEST_type_lookup_table_test_DEX_DEPS := Lookup
Andreas Gampeae78c262017-02-01 20:40:44 -0800247ART_GTEST_unstarted_runtime_test_DEX_DEPS := Nested
Mathieu Chartier1ca68902017-04-18 11:26:22 -0700248ART_GTEST_heap_verification_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000249ART_GTEST_verifier_deps_test_DEX_DEPS := VerifierDeps VerifierDepsMulti MultiDex
Nicolas Geoffray01b70e82016-11-17 10:58:36 +0000250ART_GTEST_dex_to_dex_decompiler_test_DEX_DEPS := VerifierDeps DexToDexDecompiler
Vladimir Marko421087b2018-02-27 11:00:17 +0000251ART_GTEST_oatdump_app_test_DEX_DEPS := ProfileTestMultiDex
Nicolas Geoffray3ad2c2b2019-01-26 00:19:38 +0000252ART_GTEST_oatdump_test_DEX_DEPS := ProfileTestMultiDex
Andreas Gampeb5204f42019-06-25 12:39:15 -0700253ART_GTEST_reg_type_test_DEX_DEPS := Interfaces
Ian Rogersafd9acc2014-06-17 08:21:54 -0700254
255# The elf writer test has dependencies on core.oat.
Richard Uhler67e1dc52017-02-06 16:50:17 +0000256ART_GTEST_elf_writer_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
257ART_GTEST_elf_writer_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32)
Brian Carlstrom53463ea2014-11-09 14:11:51 -0800258
Nicolas Geoffray975b7742019-03-21 17:37:38 +0000259# The two_runtimes_test test has dependencies on core.oat.
260ART_GTEST_two_runtimes_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
261ART_GTEST_two_runtimes_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32)
262
Vladimir Marko672c0802019-07-26 13:03:13 +0100263# The transaction test has dependencies on core.oat.
264ART_GTEST_transaction_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
265ART_GTEST_transaction_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32)
266
Andreas Gampee1459ae2016-06-29 09:36:30 -0700267ART_GTEST_dex2oat_environment_tests_HOST_DEPS := \
Richard Uhlerbb00f812017-02-16 14:21:10 +0000268 $(HOST_CORE_IMAGE_optimizing_64) \
269 $(HOST_CORE_IMAGE_optimizing_32) \
270 $(HOST_CORE_IMAGE_interpreter_64) \
Vladimir Markoa497a392018-09-26 10:52:50 +0100271 $(HOST_CORE_IMAGE_interpreter_32)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700272ART_GTEST_dex2oat_environment_tests_TARGET_DEPS := \
Richard Uhlerbb00f812017-02-16 14:21:10 +0000273 $(TARGET_CORE_IMAGE_optimizing_64) \
274 $(TARGET_CORE_IMAGE_optimizing_32) \
275 $(TARGET_CORE_IMAGE_interpreter_64) \
Vladimir Markoa497a392018-09-26 10:52:50 +0100276 $(TARGET_CORE_IMAGE_interpreter_32)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700277
David Srbeckyec2cdf42017-12-08 16:21:25 +0000278ART_GTEST_oat_file_test_HOST_DEPS := \
David Brazdil3e8aae02019-03-26 18:48:02 +0000279 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
280 $(HOST_OUT_EXECUTABLES)/dex2oatd
David Srbeckyec2cdf42017-12-08 16:21:25 +0000281ART_GTEST_oat_file_test_TARGET_DEPS := \
David Brazdil3e8aae02019-03-26 18:48:02 +0000282 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000283 dex2oatd.com.android.art.debug
David Srbeckyec2cdf42017-12-08 16:21:25 +0000284
Andreas Gampee1459ae2016-06-29 09:36:30 -0700285ART_GTEST_oat_file_assistant_test_HOST_DEPS := \
Richard Uhlerf51ac422016-07-08 09:22:33 -0700286 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700287ART_GTEST_oat_file_assistant_test_TARGET_DEPS := \
Richard Uhlerf51ac422016-07-08 09:22:33 -0700288 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700289
Calin Juravle36eb3132017-01-13 16:32:38 -0800290ART_GTEST_dexoptanalyzer_test_HOST_DEPS := \
291 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700292 $(HOST_OUT_EXECUTABLES)/dexoptanalyzerd
Calin Juravle36eb3132017-01-13 16:32:38 -0800293ART_GTEST_dexoptanalyzer_test_TARGET_DEPS := \
294 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100295 $(TESTING_ART_APEX) # For dexoptanalyzerd.
Andreas Gampee1459ae2016-06-29 09:36:30 -0700296
Richard Uhler84f50ae2017-02-06 15:12:45 +0000297ART_GTEST_image_space_test_HOST_DEPS := \
298 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
299ART_GTEST_image_space_test_TARGET_DEPS := \
300 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
301
Andreas Gampee1459ae2016-06-29 09:36:30 -0700302ART_GTEST_dex2oat_test_HOST_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800303 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700304 $(HOST_OUT_EXECUTABLES)/dex2oatd
Andreas Gampee1459ae2016-06-29 09:36:30 -0700305ART_GTEST_dex2oat_test_TARGET_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800306 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100307 $(TESTING_ART_APEX) # For dex2oatd.
Richard Uhler66d874d2015-01-15 09:37:19 -0800308
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700309ART_GTEST_dex2oat_image_test_HOST_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800310 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700311 $(HOST_OUT_EXECUTABLES)/dex2oatd
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700312ART_GTEST_dex2oat_image_test_TARGET_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800313 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100314 $(TESTING_ART_APEX) # For dex2oatd.
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700315
Brian Carlstrom53463ea2014-11-09 14:11:51 -0800316# TODO: document why this is needed.
Richard Uhler67e1dc52017-02-06 16:50:17 +0000317ART_GTEST_proxy_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700318
David Sehr55232f12017-04-19 14:06:49 -0700319# The dexdiag test requires the dexdiag utility.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700320ART_GTEST_dexdiag_test_HOST_DEPS := $(HOST_OUT_EXECUTABLES)/dexdiag
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100321ART_GTEST_dexdiag_test_TARGET_DEPS := $(TESTING_ART_APEX) # For dexdiag.
David Sehr55232f12017-04-19 14:06:49 -0700322
Aart Bikcfbe53c2015-07-06 14:27:27 -0700323# The dexdump test requires an image and the dexdump utility.
Aart Bik22c26f52015-07-08 21:20:13 +0000324# TODO: rename into dexdump when migration completes
Aart Bikcfbe53c2015-07-06 14:27:27 -0700325ART_GTEST_dexdump_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000326 $(HOST_CORE_IMAGE_DEFAULT_64) \
327 $(HOST_CORE_IMAGE_DEFAULT_32) \
David Sehr4f215d12019-04-03 09:28:21 -0700328 $(HOST_OUT_EXECUTABLES)/dexdump
Aart Bikcfbe53c2015-07-06 14:27:27 -0700329ART_GTEST_dexdump_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000330 $(TARGET_CORE_IMAGE_DEFAULT_64) \
331 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000332 dexdump.com.android.art.debug
Aart Bikcfbe53c2015-07-06 14:27:27 -0700333
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700334# The dexanalyze test requires an image and the dexanalyze utility.
335ART_GTEST_dexanalyze_test_HOST_DEPS := \
336 $(HOST_CORE_IMAGE_DEFAULT_64) \
337 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700338 $(HOST_OUT_EXECUTABLES)/dexanalyze
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700339ART_GTEST_dexanalyze_test_TARGET_DEPS := \
340 $(TARGET_CORE_IMAGE_DEFAULT_64) \
341 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000342 dexanalyze.com.android.art.debug
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700343
Jeff Haoc3acfc52016-08-29 14:18:26 -0700344# The dexlayout test requires an image and the dexlayout utility.
345# TODO: rename into dexdump when migration completes
346ART_GTEST_dexlayout_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000347 $(HOST_CORE_IMAGE_DEFAULT_64) \
348 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700349 $(HOST_OUT_EXECUTABLES)/dexlayoutd \
David Sehr4f215d12019-04-03 09:28:21 -0700350 $(HOST_OUT_EXECUTABLES)/dexdump
Jeff Haoc3acfc52016-08-29 14:18:26 -0700351ART_GTEST_dexlayout_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000352 $(TARGET_CORE_IMAGE_DEFAULT_64) \
353 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000354 dexlayoutd.com.android.art.debug \
355 dexdump.com.android.art.debug
Jeff Haoc3acfc52016-08-29 14:18:26 -0700356
Aart Bik3e40f4a2015-07-07 17:09:41 -0700357# The dexlist test requires an image and the dexlist utility.
Aart Bik3e40f4a2015-07-07 17:09:41 -0700358ART_GTEST_dexlist_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000359 $(HOST_CORE_IMAGE_DEFAULT_64) \
360 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700361 $(HOST_OUT_EXECUTABLES)/dexlist
Aart Bik3e40f4a2015-07-07 17:09:41 -0700362ART_GTEST_dexlist_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000363 $(TARGET_CORE_IMAGE_DEFAULT_64) \
364 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100365 $(TESTING_ART_APEX) # For dexlist.
Aart Bik3e40f4a2015-07-07 17:09:41 -0700366
Igor Murashkin37743352014-11-13 14:38:00 -0800367# The imgdiag test has dependencies on core.oat since it needs to load it during the test.
Andreas Gampec93b8b52014-12-19 23:12:25 -0800368# For the host, also add the installed tool (in the base size, that should suffice). For the
369# target, just the module is fine, the sync will happen late enough.
370ART_GTEST_imgdiag_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000371 $(HOST_CORE_IMAGE_DEFAULT_64) \
372 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700373 $(HOST_OUT_EXECUTABLES)/imgdiagd
Andreas Gampec93b8b52014-12-19 23:12:25 -0800374ART_GTEST_imgdiag_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000375 $(TARGET_CORE_IMAGE_DEFAULT_64) \
376 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000377 imgdiagd.com.android.art.debug
Igor Murashkin37743352014-11-13 14:38:00 -0800378
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700379# Dex analyze test requires dexanalyze.
380ART_GTEST_dexanalyze_test_HOST_DEPS := \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700381 $(HOST_OUT_EXECUTABLES)/dexanalyze
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700382ART_GTEST_dexanalyze_test_TARGET_DEPS := \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000383 dexanalyze.com.android.art.debug
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700384
Mathieu Chartierea216b32015-05-26 19:48:16 -0700385# Oatdump test requires an image and oatfile to dump.
386ART_GTEST_oatdump_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000387 $(HOST_CORE_IMAGE_DEFAULT_64) \
388 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700389 $(HOST_OUT_EXECUTABLES)/oatdumpd \
390 $(HOST_OUT_EXECUTABLES)/oatdumpds \
David Srbecky3b19de22019-04-12 16:07:51 +0100391 $(HOST_OUT_EXECUTABLES)/dexdump \
392 $(HOST_OUT_EXECUTABLES)/dex2oatd \
393 $(HOST_OUT_EXECUTABLES)/dex2oatds
Mathieu Chartierea216b32015-05-26 19:48:16 -0700394ART_GTEST_oatdump_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000395 $(TARGET_CORE_IMAGE_DEFAULT_64) \
396 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100397 $(TESTING_ART_APEX) # For oatdumpd, dexdump, dex2oatd.
Vladimir Marko1352f132017-04-28 15:28:29 +0100398ART_GTEST_oatdump_image_test_HOST_DEPS := $(ART_GTEST_oatdump_test_HOST_DEPS)
399ART_GTEST_oatdump_image_test_TARGET_DEPS := $(ART_GTEST_oatdump_test_TARGET_DEPS)
David Srbecky3b19de22019-04-12 16:07:51 +0100400ART_GTEST_oatdump_app_test_HOST_DEPS := $(ART_GTEST_oatdump_test_HOST_DEPS)
401ART_GTEST_oatdump_app_test_TARGET_DEPS := $(ART_GTEST_oatdump_test_TARGET_DEPS)
Mathieu Chartierea216b32015-05-26 19:48:16 -0700402
Calin Juravle2e2db782016-02-23 12:00:03 +0000403# Profile assistant tests requires profman utility.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700404ART_GTEST_profile_assistant_test_HOST_DEPS := $(HOST_OUT_EXECUTABLES)/profmand
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100405ART_GTEST_profile_assistant_test_TARGET_DEPS := $(TESTING_ART_APEX) # For profmand.
Calin Juravle2e2db782016-02-23 12:00:03 +0000406
David Brazdil2b9c35b2018-01-12 15:44:43 +0000407ART_GTEST_hiddenapi_test_HOST_DEPS := \
408 $(HOST_CORE_IMAGE_DEFAULT_64) \
409 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700410 $(HOST_OUT_EXECUTABLES)/hiddenapid
David Brazdil2b9c35b2018-01-12 15:44:43 +0000411
Ian Rogersafd9acc2014-06-17 08:21:54 -0700412# The path for which all the source files are relative, not actually the current directory.
Brian Carlstrom7940e442013-07-12 13:46:57 -0700413LOCAL_PATH := art
414
Colin Cross6e95dd52016-09-12 15:37:10 -0700415ART_TEST_MODULES := \
416 art_cmdline_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700417 art_compiler_host_tests \
Martin Stjernholm750bf042019-01-09 22:51:12 +0000418 art_compiler_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700419 art_dex2oat_tests \
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700420 art_dexanalyze_tests \
David Sehr55232f12017-04-19 14:06:49 -0700421 art_dexdiag_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700422 art_dexdump_tests \
423 art_dexlayout_tests \
424 art_dexlist_tests \
Calin Juravle36eb3132017-01-13 16:32:38 -0800425 art_dexoptanalyzer_tests \
David Brazdil2b9c35b2018-01-12 15:44:43 +0000426 art_hiddenapi_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700427 art_imgdiag_tests \
David Sehr67bf42e2018-02-26 16:43:04 -0800428 art_libartbase_tests \
Orion Hodson119733d2019-01-30 15:14:41 +0000429 art_libartpalette_tests \
Martin Stjernholmfdb2f602019-01-09 14:47:00 +0000430 art_libdexfile_external_tests \
Martin Stjernholm70ae00d2019-02-15 22:41:14 +0000431 art_libdexfile_support_static_tests \
Martin Stjernholm750bf042019-01-09 22:51:12 +0000432 art_libdexfile_support_tests \
David Sehr334b9d72018-02-12 18:27:56 -0800433 art_libdexfile_tests \
David Sehrd5f8de82018-04-27 14:12:03 -0700434 art_libprofile_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700435 art_oatdump_tests \
436 art_profman_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700437 art_runtime_compiler_tests \
Martin Stjernholm750bf042019-01-09 22:51:12 +0000438 art_runtime_tests \
Josh Gao1eac77e2018-02-26 15:54:41 -0800439 art_sigchain_tests \
Brian Carlstroma1ce1fe2014-02-24 23:23:58 -0800440
Jiyong Parka5992522020-01-07 16:55:09 +0900441ART_TARGET_GTEST_NAMES := $(foreach tm,$(ART_TEST_MODULES),\
442 $(foreach path,$(ART_TEST_LIST_device_$(TARGET_ARCH)_$(tm)),\
443 $(notdir $(path))\
444 )\
445)
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000446
Colin Cross6e95dd52016-09-12 15:37:10 -0700447ART_HOST_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\
Colin Cross124f8812016-09-15 20:57:47 -0700448 $(ART_TEST_LIST_host_$(ART_HOST_ARCH)_$(m)))
Alex Light50fa9932015-08-10 15:30:07 -0700449
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100450ifneq ($(HOST_PREFER_32_BIT),true)
4512ND_ART_HOST_GTEST_FILES += $(foreach m,$(ART_TEST_MODULES),\
452 $(ART_TEST_LIST_host_$(2ND_ART_HOST_ARCH)_$(m)))
453endif
454
Ian Rogersafd9acc2014-06-17 08:21:54 -0700455# Variables holding collections of gtest pre-requisits used to run a number of gtests.
456ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
457ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
458ART_TEST_HOST_GTEST_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700459ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
460ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
461ART_TEST_TARGET_GTEST_RULES :=
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100462ART_TEST_HOST_GTEST_DEPENDENCIES :=
Nicolas Geoffray17b1dcb2018-10-12 15:09:42 +0100463ART_TEST_TARGET_GTEST_DEPENDENCIES :=
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700464
Nicolas Geoffray96a37c82014-10-29 23:50:40 +0000465ART_GTEST_TARGET_ANDROID_ROOT := '/system'
466ifneq ($(ART_TEST_ANDROID_ROOT),)
467 ART_GTEST_TARGET_ANDROID_ROOT := $(ART_TEST_ANDROID_ROOT)
468endif
469
Victor Chang64611242019-07-05 16:32:41 +0100470ART_GTEST_TARGET_ANDROID_I18N_ROOT := '/apex/com.android.i18n'
471ifneq ($(ART_TEST_ANDROID_I18N_ROOT),)
472 ART_GTEST_TARGET_ANDROID_I18N_ROOT := $(ART_TEST_ANDROID_I18N_ROOT)
473endif
474
Martin Stjernholme58624f2019-09-20 15:53:40 +0100475ART_GTEST_TARGET_ANDROID_ART_ROOT := '/apex/com.android.art'
476ifneq ($(ART_TEST_ANDROID_ART_ROOT),)
477 ART_GTEST_TARGET_ANDROID_ART_ROOT := $(ART_TEST_ANDROID_ART_ROOT)
Roland Levillain7c777f82019-01-10 18:00:37 +0000478endif
Neil Fuller26c43772018-11-23 17:56:43 +0000479
Neil Fuller26a5dd62019-03-13 15:16:35 +0000480ART_GTEST_TARGET_ANDROID_TZDATA_ROOT := '/apex/com.android.tzdata'
481ifneq ($(ART_TEST_ANDROID_TZDATA_ROOT),)
482 ART_GTEST_TARGET_ANDROID_TZDATA_ROOT := $(ART_TEST_ANDROID_TZDATA_ROOT)
483endif
484
Ian Rogersafd9acc2014-06-17 08:21:54 -0700485# Define make rules for a host gtests.
486# $(1): gtest name - the name of the test we're building such as leb128_test.
Colin Cross6e95dd52016-09-12 15:37:10 -0700487# $(2): path relative to $OUT to the test binary
488# $(3): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
Ian Rogersafd9acc2014-06-17 08:21:54 -0700489define define-art-gtest-rule-host
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700490 gtest_suffix := $(1)$$($(3)ART_PHONY_TEST_HOST_SUFFIX)
491 gtest_rule := test-art-host-gtest-$$(gtest_suffix)
492 gtest_output := $(call intermediates-dir-for,PACKAGING,art-host-gtest,HOST)/$$(gtest_suffix).xml
Dan Willemsen0ef94572018-10-21 19:00:56 +0000493 $$(call dist-for-goals,$$(gtest_rule),$$(gtest_output):gtest/$$(gtest_suffix))
Colin Cross83072062019-10-02 16:06:58 -0700494 gtest_exe := $(2)
Ian Rogers665de8a2014-06-24 21:34:09 -0700495 # Dependencies for all host gtests.
Nicolas Geoffrayd31cff12020-03-27 14:29:45 +0000496 gtest_deps := $$(ART_HOST_DEX_DEPENDENCIES) \
David Srbecky0c0f3022020-02-13 15:53:01 +0000497 $$(HOST_BOOT_IMAGE_JARS) \
Victor Chang65ae6692019-10-11 14:17:21 +0100498 $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libicu_jni$$(ART_HOST_SHLIB_EXTENSION) \
Colin Cross6e95dd52016-09-12 15:37:10 -0700499 $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libjavacore$$(ART_HOST_SHLIB_EXTENSION) \
500 $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libopenjdkd$$(ART_HOST_SHLIB_EXTENSION) \
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100501 $$(gtest_exe) \
502 $$(ART_GTEST_$(1)_HOST_DEPS) \
Andreas Gampe28fd62a2018-12-12 15:15:22 -0800503 $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_HOST_GTEST_$(file)_DEX)) \
Andreas Gampe148c1602019-06-10 16:47:46 -0700504 $(HOST_OUT_EXECUTABLES)/signal_dumper
Ian Rogers665de8a2014-06-24 21:34:09 -0700505
David Srbecky403384e2020-03-27 12:24:36 +0000506 # Note: The "host arch" Make variables defined in build/make/core/envsetup.mk
507 # and art/build/Android.common.mk have different meanings:
508 #
509 # * In build/make/core/envsetup.mk:
510 # * HOST_ARCH := x86_64
511 # * HOST_2ND_ARCH := x86
512 #
513 # * In art/build/Android.common.mk:
514 # * When `HOST_PREFER_32_BIT` is `true`:
515 # * ART_HOST_ARCH := x86
516 # * 2ND_ART_HOST_ARCH :=
517 # * 2ND_HOST_ARCH :=
518 # * Otherwise:
519 # * ART_HOST_ARCH := x86_64
520 # * 2ND_ART_HOST_ARCH := x86
521 # * 2ND_HOST_ARCH := x86
522 ifeq ($(HOST_PREFER_32_BIT),true)
523 gtest_deps += $$(2ND_HOST_BOOT_IMAGE) # Depend on the 32-bit boot image.
524 else
525 gtest_deps += $$($(3)HOST_BOOT_IMAGE)
526 endif
527
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100528 ART_TEST_HOST_GTEST_DEPENDENCIES += $$(gtest_deps)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700529
Andreas Gampe6acebf42018-01-22 22:15:43 -0800530.PHONY: $$(gtest_rule)
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700531$$(gtest_rule): $$(gtest_output)
532
533# Re-run the tests, even if nothing changed. Until the build system has a dedicated "no cache"
534# option, claim to write a file that is never produced.
535$$(gtest_output): .KATI_IMPLICIT_OUTPUTS := $$(gtest_output)-nocache
536$$(gtest_output): NAME := $$(gtest_rule)
Andreas Gampe6acebf42018-01-22 22:15:43 -0800537ifeq (,$(SANITIZE_HOST))
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700538$$(gtest_output): $$(gtest_exe) $$(gtest_deps)
Andreas Gampe28fd62a2018-12-12 15:15:22 -0800539 $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && \
Andreas Gampe0df2aba2019-06-10 16:53:55 -0700540 timeout --foreground -k 120s 2400s $(HOST_OUT_EXECUTABLES)/signal_dumper -s 15 \
Andreas Gampe28fd62a2018-12-12 15:15:22 -0800541 $$< --gtest_output=xml:$$@ && \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700542 $$(call ART_TEST_PASSED,$$(NAME))) || $$(call ART_TEST_FAILED,$$(NAME))
Andreas Gampe6acebf42018-01-22 22:15:43 -0800543else
Andreas Gampe03858052017-05-01 08:17:24 -0700544# Note: envsetup currently exports ASAN_OPTIONS=detect_leaks=0 to suppress leak detection, as some
545# build tools (e.g., ninja) intentionally leak. We want leak checks when we run our tests, so
546# override ASAN_OPTIONS. b/37751350
Andreas Gampe6acebf42018-01-22 22:15:43 -0800547# Note 2: Under sanitization, also capture the output, and run it through the stack tool on failure
548# (with the x86-64 ABI, as this allows symbolization of both x86 and x86-64). We don't do this in
549# general as it loses all the color output, and we have our own symbolization step when not running
550# under ASAN.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700551$$(gtest_output): $$(gtest_exe) $$(gtest_deps)
552 $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && set -o pipefail && \
Andreas Gampe0df2aba2019-06-10 16:53:55 -0700553 ASAN_OPTIONS=detect_leaks=1 timeout --foreground -k 120s 3600s \
554 $(HOST_OUT_EXECUTABLES)/signal_dumper -s 15 \
Andreas Gampe28fd62a2018-12-12 15:15:22 -0800555 $$< --gtest_output=xml:$$@ 2>&1 | tee $$<.tmp.out >&2 && \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700556 { $$(call ART_TEST_PASSED,$$(NAME)) ; rm $$<.tmp.out ; }) || \
Andreas Gampec05fd3f2018-01-23 14:22:07 -0800557 ( grep -q AddressSanitizer $$<.tmp.out && export ANDROID_BUILD_TOP=`pwd` && \
Andreas Gampe6acebf42018-01-22 22:15:43 -0800558 { echo "ABI: 'x86_64'" | cat - $$<.tmp.out | development/scripts/stack | tail -n 3000 ; } ; \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700559 rm $$<.tmp.out ; $$(call ART_TEST_FAILED,$$(NAME)))
Andreas Gampe6acebf42018-01-22 22:15:43 -0800560endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700561
Colin Cross6e95dd52016-09-12 15:37:10 -0700562 ART_TEST_HOST_GTEST$$($(3)ART_PHONY_TEST_HOST_SUFFIX)_RULES += $$(gtest_rule)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700563 ART_TEST_HOST_GTEST_RULES += $$(gtest_rule)
564 ART_TEST_HOST_GTEST_$(1)_RULES += $$(gtest_rule)
565
Andreas Gampe3c0bb312015-02-19 10:02:19 -0800566
Ian Rogersafd9acc2014-06-17 08:21:54 -0700567 # Clear locally defined variables.
Ian Rogers665de8a2014-06-24 21:34:09 -0700568 gtest_deps :=
Roland Levillain76cfe612017-10-30 13:14:28 +0000569 gtest_exe :=
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700570 gtest_output :=
Roland Levillain76cfe612017-10-30 13:14:28 +0000571 gtest_rule :=
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700572 gtest_suffix :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700573endef # define-art-gtest-rule-host
574
Jiyong Parkeac38a12020-01-03 17:56:33 +0900575# Add the additional dependencies for the specified test
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000576# $(1): test name
Jiyong Parkeac38a12020-01-03 17:56:33 +0900577define add-art-gtest-dependencies
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000578 # Note that, both the primary and the secondary arches of the libs are built by depending
579 # on the module name.
580 gtest_deps := \
581 $$(ART_GTEST_$(1)_TARGET_DEPS) \
582 $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_TARGET_GTEST_$(file)_DEX)) \
Brian Carlstrom0796af02011-10-12 14:31:45 -0700583
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000584 ART_TEST_TARGET_GTEST_DEPENDENCIES += $$(gtest_deps)
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100585
586 # Clear locally defined variables.
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000587 gtest_deps :=
Jiyong Parkeac38a12020-01-03 17:56:33 +0900588endef # add-art-gtest-dependencies
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100589
590# $(1): file name
591# $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
592define define-art-gtest-host
593 art_gtest_filename := $(1)
594
595 include $$(CLEAR_VARS)
596 art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename)))
597 ifndef ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES
598 ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100599 endif
600 $$(eval $$(call define-art-gtest-rule-host,$$(art_gtest_name),$$(art_gtest_filename),$(2)))
601
602 # Clear locally defined variables.
603 art_gtest_filename :=
604 art_gtest_name :=
605endef # define-art-gtest-host
606
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100607# Define the rules to build and run gtests for both archs on host.
608# $(1): test name
609define define-art-gtest-host-both
610 art_gtest_name := $(1)
611
Ian Rogersafd9acc2014-06-17 08:21:54 -0700612.PHONY: test-art-host-gtest-$$(art_gtest_name)
613test-art-host-gtest-$$(art_gtest_name): $$(ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES)
614 $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
Ian Rogersd912e5c2013-11-13 12:40:11 -0800615
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100616 # Clear now unused variables.
617 ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700618 art_gtest_name :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100619endef # define-art-gtest-host-both
Alex Light50fa9932015-08-10 15:30:07 -0700620
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700621ifeq ($(ART_BUILD_TARGET),true)
Jiyong Parkeac38a12020-01-03 17:56:33 +0900622 $(foreach name,$(ART_TARGET_GTEST_NAMES), $(eval $(call add-art-gtest-dependencies,$(name),)))
623 ART_TEST_TARGET_GTEST_DEPENDENCIES += \
624 libicu_jni.com.android.art.debug \
625 libjavacore.com.android.art.debug \
626 libopenjdkd.com.android.art.debug \
Nicolas Geoffray31e0dc22020-03-20 15:48:09 +0000627 com.android.art.testing \
628 com.android.conscrypt
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700629endif
Ian Rogersc5f17732014-06-05 20:48:42 -0700630ifeq ($(ART_BUILD_HOST),true)
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100631 $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),)))
632 ifneq ($(HOST_PREFER_32_BIT),true)
633 $(foreach file,$(2ND_ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),2ND_)))
634 endif
635 # Rules to run the different architecture versions of the gtest.
636 $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host-both,$$(notdir $$(basename $$(file))))))
Brian Carlstrom07d579f2011-07-27 13:31:51 -0700637endif
Tsu Chiang Chuangec245a42014-05-15 21:16:21 -0700638
639# Used outside the art project to get a list of the current tests
640RUNTIME_TARGET_GTEST_MAKE_TARGETS :=
Jiyong Parkeac38a12020-01-03 17:56:33 +0900641art_target_gtest_files := $(foreach m,$(ART_TEST_MODULES),$(ART_TEST_LIST_device_$(TARGET_ARCH)_$(m)))
Dan Willemsen7955f5e2020-01-28 12:18:49 -0800642# If testdir == testfile, assume this is not a test_per_src module
Jiyong Parkeac38a12020-01-03 17:56:33 +0900643$(foreach file,$(art_target_gtest_files),\
Dan Willemsen7955f5e2020-01-28 12:18:49 -0800644 $(eval testdir := $$(notdir $$(patsubst %/,%,$$(dir $$(file)))))\
645 $(eval testfile := $$(notdir $$(basename $$(file))))\
646 $(if $(call streq,$(testdir),$(testfile)),,\
647 $(eval testfile := $(testdir)_$(testfile)))\
648 $(eval RUNTIME_TARGET_GTEST_MAKE_TARGETS += $(testfile))\
Jiyong Parkeac38a12020-01-03 17:56:33 +0900649)
Dan Willemsen7955f5e2020-01-28 12:18:49 -0800650testdir :=
651testfile :=
Jiyong Parkeac38a12020-01-03 17:56:33 +0900652art_target_gtest_files :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700653
Roland Levillain05e34f42018-05-24 13:19:05 +0000654# Define all the combinations of host/target and suffix such as:
655# test-art-host-gtest or test-art-host-gtest64
Ian Rogersafd9acc2014-06-17 08:21:54 -0700656# $(1): host or target
657# $(2): HOST or TARGET
Roland Levillain05e34f42018-05-24 13:19:05 +0000658# $(3): undefined, 32 or 64
Ian Rogersafd9acc2014-06-17 08:21:54 -0700659define define-test-art-gtest-combination
660 ifeq ($(1),host)
661 ifneq ($(2),HOST)
662 $$(error argument mismatch $(1) and ($2))
663 endif
664 else
665 ifneq ($(1),target)
666 $$(error found $(1) expected host or target)
667 endif
668 ifneq ($(2),TARGET)
669 $$(error argument mismatch $(1) and ($2))
670 endif
671 endif
672
Roland Levillain05e34f42018-05-24 13:19:05 +0000673 rule_name := test-art-$(1)-gtest$(3)
674 dependencies := $$(ART_TEST_$(2)_GTEST$(3)_RULES)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700675
676.PHONY: $$(rule_name)
Søren Gjesse46845f62019-12-10 09:14:16 +0100677$$(rule_name): $$(dependencies) d8
Ian Rogersafd9acc2014-06-17 08:21:54 -0700678 $(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
679
680 # Clear locally defined variables.
681 rule_name :=
682 dependencies :=
683endef # define-test-art-gtest-combination
684
Roland Levillain05e34f42018-05-24 13:19:05 +0000685$(eval $(call define-test-art-gtest-combination,target,TARGET,))
686$(eval $(call define-test-art-gtest-combination,target,TARGET,$(ART_PHONY_TEST_TARGET_SUFFIX)))
Dan Willemsen5d2dbf82018-04-11 12:31:11 -0700687ifdef 2ND_ART_PHONY_TEST_TARGET_SUFFIX
Roland Levillain05e34f42018-05-24 13:19:05 +0000688$(eval $(call define-test-art-gtest-combination,target,TARGET,$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700689endif
Roland Levillain05e34f42018-05-24 13:19:05 +0000690$(eval $(call define-test-art-gtest-combination,host,HOST,))
691$(eval $(call define-test-art-gtest-combination,host,HOST,$(ART_PHONY_TEST_HOST_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700692ifneq ($(HOST_PREFER_32_BIT),true)
Roland Levillain05e34f42018-05-24 13:19:05 +0000693$(eval $(call define-test-art-gtest-combination,host,HOST,$(2ND_ART_PHONY_TEST_HOST_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700694endif
695
696# Clear locally defined variables.
697define-art-gtest-rule-target :=
698define-art-gtest-rule-host :=
699define-art-gtest :=
700define-test-art-gtest-combination :=
701RUNTIME_GTEST_COMMON_SRC_FILES :=
702COMPILER_GTEST_COMMON_SRC_FILES :=
703RUNTIME_GTEST_TARGET_SRC_FILES :=
704RUNTIME_GTEST_HOST_SRC_FILES :=
705COMPILER_GTEST_TARGET_SRC_FILES :=
706COMPILER_GTEST_HOST_SRC_FILES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700707ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
708ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
709ART_TEST_HOST_GTEST_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700710ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
711ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
712ART_TEST_TARGET_GTEST_RULES :=
Nicolas Geoffray96a37c82014-10-29 23:50:40 +0000713ART_GTEST_TARGET_ANDROID_ROOT :=
Victor Chang64611242019-07-05 16:32:41 +0100714ART_GTEST_TARGET_ANDROID_I18N_ROOT :=
Martin Stjernholme58624f2019-09-20 15:53:40 +0100715ART_GTEST_TARGET_ANDROID_ART_ROOT :=
Neil Fuller26a5dd62019-03-13 15:16:35 +0000716ART_GTEST_TARGET_ANDROID_TZDATA_ROOT :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700717ART_GTEST_class_linker_test_DEX_DEPS :=
Mathieu Chartierdb70ce52016-12-12 11:06:59 -0800718ART_GTEST_class_table_test_DEX_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700719ART_GTEST_compiler_driver_test_DEX_DEPS :=
720ART_GTEST_dex_file_test_DEX_DEPS :=
721ART_GTEST_exception_test_DEX_DEPS :=
722ART_GTEST_elf_writer_test_HOST_DEPS :=
723ART_GTEST_elf_writer_test_TARGET_DEPS :=
Andreas Gampea1ff30f2016-09-27 12:19:45 -0700724ART_GTEST_imtable_test_DEX_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700725ART_GTEST_jni_compiler_test_DEX_DEPS :=
726ART_GTEST_jni_internal_test_DEX_DEPS :=
Richard Uhler66d874d2015-01-15 09:37:19 -0800727ART_GTEST_oat_file_assistant_test_DEX_DEPS :=
728ART_GTEST_oat_file_assistant_test_HOST_DEPS :=
729ART_GTEST_oat_file_assistant_test_TARGET_DEPS :=
Mathieu Chartier0be7fa72018-04-12 10:13:29 -0700730ART_GTEST_dexanalyze_test_DEX_DEPS :=
Calin Juravle36eb3132017-01-13 16:32:38 -0800731ART_GTEST_dexoptanalyzer_test_DEX_DEPS :=
732ART_GTEST_dexoptanalyzer_test_HOST_DEPS :=
733ART_GTEST_dexoptanalyzer_test_TARGET_DEPS :=
Richard Uhler84f50ae2017-02-06 15:12:45 +0000734ART_GTEST_image_space_test_DEX_DEPS :=
735ART_GTEST_image_space_test_HOST_DEPS :=
736ART_GTEST_image_space_test_TARGET_DEPS :=
Andreas Gampee1459ae2016-06-29 09:36:30 -0700737ART_GTEST_dex2oat_test_DEX_DEPS :=
738ART_GTEST_dex2oat_test_HOST_DEPS :=
739ART_GTEST_dex2oat_test_TARGET_DEPS :=
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700740ART_GTEST_dex2oat_image_test_DEX_DEPS :=
741ART_GTEST_dex2oat_image_test_HOST_DEPS :=
742ART_GTEST_dex2oat_image_test_TARGET_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700743ART_GTEST_object_test_DEX_DEPS :=
744ART_GTEST_proxy_test_DEX_DEPS :=
745ART_GTEST_reflection_test_DEX_DEPS :=
746ART_GTEST_stub_test_DEX_DEPS :=
747ART_GTEST_transaction_test_DEX_DEPS :=
Andreas Gampee1459ae2016-06-29 09:36:30 -0700748ART_GTEST_dex2oat_environment_tests_DEX_DEPS :=
Mathieu Chartier1ca68902017-04-18 11:26:22 -0700749ART_GTEST_heap_verification_test_DEX_DEPS :=
David Brazdilca3c8c32016-09-06 14:04:48 +0100750ART_GTEST_verifier_deps_test_DEX_DEPS :=
Ian Rogers1a2f84e2014-07-07 16:05:18 -0700751$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_TARGET_GTEST_$(dir)_DEX :=))
752$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_HOST_GTEST_$(dir)_DEX :=))
Richard Uhler66d874d2015-01-15 09:37:19 -0800753ART_TEST_HOST_GTEST_MainStripped_DEX :=
754ART_TEST_TARGET_GTEST_MainStripped_DEX :=
David Srbecky8c8f1482020-02-05 20:17:10 +0000755ART_TEST_HOST_GTEST_MainUncompressedAligned_DEX :=
756ART_TEST_TARGET_GTEST_MainUncompressedAligned_DEX :=
Mathieu Chartier700a9852018-02-06 18:27:38 -0800757ART_TEST_HOST_GTEST_EmptyUncompressed_DEX :=
758ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX :=
David Brazdilca3c8c32016-09-06 14:04:48 +0100759ART_TEST_GTEST_VerifierDeps_SRC :=
760ART_TEST_HOST_GTEST_VerifierDeps_DEX :=
David Brazdilf906f122016-09-16 16:33:31 +0100761ART_TEST_TARGET_GTEST_VerifierDeps_DEX :=
Vladimir Markod79b37b2018-11-02 13:06:22 +0000762ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC :=
763ART_TEST_HOST_GTEST_VerifySoftFailDuringClinit_DEX :=
764ART_TEST_TARGET_GTEST_VerifySoftFailDuringClinit_DEX :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700765GTEST_DEX_DIRECTORIES :=
Brian Carlstrom532714a2014-06-25 02:15:31 -0700766LOCAL_PATH :=