blob: 67757903a67e0c9de6c68ef932771b81a8b67fbe [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
Ian Rogersafd9acc2014-06-17 08:21:54 -0700200# Dex file dependencies for each gtest.
David Sehr139512d2018-02-08 15:44:50 -0800201ART_GTEST_art_dex_file_loader_test_DEX_DEPS := GetMethodSignature Main Nested MultiDex
Andreas Gampecac31ad2017-11-06 20:01:17 -0800202ART_GTEST_dex2oat_environment_tests_DEX_DEPS := Main MainStripped MultiDex MultiDexModifiedSecondary MyClassNatives Nested VerifierDeps VerifierDepsMulti
Andreas Gampee1459ae2016-06-29 09:36:30 -0700203
Mathieu Chartier93764b82017-07-17 14:51:53 -0700204ART_GTEST_atomic_dex_ref_map_test_DEX_DEPS := Interfaces
Calin Juravlecdd49122017-07-05 20:09:53 -0700205ART_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 -0700206ART_GTEST_class_loader_context_test_DEX_DEPS := Main MultiDex MyClass ForClassLoaderA ForClassLoaderB ForClassLoaderC ForClassLoaderD
Mathieu Chartierdb70ce52016-12-12 11:06:59 -0800207ART_GTEST_class_table_test_DEX_DEPS := XandY
Calin Juravle877fd962016-01-05 14:29:29 +0000208ART_GTEST_compiler_driver_test_DEX_DEPS := AbstractMethod StaticLeafMethods ProfileTestMultiDex
Narayan Kamath25352fc2016-08-03 12:46:58 +0100209ART_GTEST_dex_cache_test_DEX_DEPS := Main Packages MethodTypes
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700210ART_GTEST_dexanalyze_test_DEX_DEPS := MultiDex
Mathieu Chartierd00e02b2017-05-24 12:04:13 -0700211ART_GTEST_dexlayout_test_DEX_DEPS := ManyMethods
David Srbecky8c8f1482020-02-05 20:17:10 +0000212ART_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 -0700213ART_GTEST_dex2oat_image_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) Statics VerifierDeps
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700214ART_GTEST_exception_test_DEX_DEPS := ExceptionHandle
David Brazdil2da3cbb2019-01-30 16:17:50 +0000215ART_GTEST_hiddenapi_test_DEX_DEPS := HiddenApi HiddenApiStubs
David Brazdila5c3a802019-03-08 14:59:41 +0000216ART_GTEST_hidden_api_test_DEX_DEPS := HiddenApiSignatures Main MultiDex
Vladimir Markod79b37b2018-11-02 13:06:22 +0000217ART_GTEST_image_test_DEX_DEPS := ImageLayoutA ImageLayoutB DefaultMethods VerifySoftFailDuringClinit
Andreas Gampea1ff30f2016-09-27 12:19:45 -0700218ART_GTEST_imtable_test_DEX_DEPS := IMTA IMTB
Sebastien Hertz0462c4c2015-04-01 16:34:17 +0200219ART_GTEST_instrumentation_test_DEX_DEPS := Instrumentation
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700220ART_GTEST_jni_compiler_test_DEX_DEPS := MyClassNatives
Nicolas Geoffray928567b2018-08-01 10:21:12 +0100221ART_GTEST_jni_internal_test_DEX_DEPS := AllFields StaticLeafMethods MyClassNatives
Andreas Gampee1459ae2016-06-29 09:36:30 -0700222ART_GTEST_oat_file_assistant_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Calin Juravle36eb3132017-01-13 16:32:38 -0800223ART_GTEST_dexoptanalyzer_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Richard Uhler84f50ae2017-02-06 15:12:45 +0000224ART_GTEST_image_space_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
David Srbecky8c8f1482020-02-05 20:17:10 +0000225ART_GTEST_oat_file_test_DEX_DEPS := Main MultiDex MainUncompressedAligned MultiDexUncompressedAligned MainStripped Nested MultiDexModifiedSecondary
Mathieu Chartier07ddb6f2015-11-05 11:16:34 -0800226ART_GTEST_oat_test_DEX_DEPS := Main
Roland Levillain1f130f12018-03-12 18:39:19 +0000227ART_GTEST_oat_writer_test_DEX_DEPS := Main
Nicolas Geoffray975b7742019-03-21 17:37:38 +0000228# two_runtimes_test build off dex2oat_environment_test, which does sanity checks on the following dex files.
229ART_GTEST_two_runtimes_test_DEX_DEPS := Main MainStripped Nested MultiDex MultiDexModifiedSecondary
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700230ART_GTEST_object_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY
231ART_GTEST_proxy_test_DEX_DEPS := Interfaces
232ART_GTEST_reflection_test_DEX_DEPS := Main NonStaticLeafMethods StaticLeafMethods
Calin Juravle877fd962016-01-05 14:29:29 +0000233ART_GTEST_profile_assistant_test_DEX_DEPS := ProfileTestMultiDex
Mathieu Chartierdb40eac2017-06-09 18:34:11 -0700234ART_GTEST_profile_compilation_info_test_DEX_DEPS := ManyMethods ProfileTestMultiDex
Nicolas Geoffraycaf8f4c2019-10-08 18:47:48 +0100235ART_GTEST_profile_boot_info_test_DEX_DEPS := ManyMethods ProfileTestMultiDex MultiDex
Nicolas Geoffray44078f92018-10-01 12:57:55 +0100236ART_GTEST_profiling_info_test_DEX_DEPS := ProfileTestMultiDex
Andreas Gampe0f01b582017-01-18 15:22:37 -0800237ART_GTEST_runtime_callbacks_test_DEX_DEPS := XandY
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700238ART_GTEST_stub_test_DEX_DEPS := AllFields
239ART_GTEST_transaction_test_DEX_DEPS := Transaction
Artem Udovichenkod9786b02015-10-14 16:36:55 +0300240ART_GTEST_type_lookup_table_test_DEX_DEPS := Lookup
Andreas Gampeae78c262017-02-01 20:40:44 -0800241ART_GTEST_unstarted_runtime_test_DEX_DEPS := Nested
Mathieu Chartier1ca68902017-04-18 11:26:22 -0700242ART_GTEST_heap_verification_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000243ART_GTEST_verifier_deps_test_DEX_DEPS := VerifierDeps VerifierDepsMulti MultiDex
Nicolas Geoffray01b70e82016-11-17 10:58:36 +0000244ART_GTEST_dex_to_dex_decompiler_test_DEX_DEPS := VerifierDeps DexToDexDecompiler
Vladimir Marko421087b2018-02-27 11:00:17 +0000245ART_GTEST_oatdump_app_test_DEX_DEPS := ProfileTestMultiDex
Nicolas Geoffray3ad2c2b2019-01-26 00:19:38 +0000246ART_GTEST_oatdump_test_DEX_DEPS := ProfileTestMultiDex
Andreas Gampeb5204f42019-06-25 12:39:15 -0700247ART_GTEST_reg_type_test_DEX_DEPS := Interfaces
Ian Rogersafd9acc2014-06-17 08:21:54 -0700248
249# The elf writer test has dependencies on core.oat.
Richard Uhler67e1dc52017-02-06 16:50:17 +0000250ART_GTEST_elf_writer_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
251ART_GTEST_elf_writer_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32)
Brian Carlstrom53463ea2014-11-09 14:11:51 -0800252
Nicolas Geoffray975b7742019-03-21 17:37:38 +0000253# The two_runtimes_test test has dependencies on core.oat.
254ART_GTEST_two_runtimes_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
255ART_GTEST_two_runtimes_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32)
256
Vladimir Marko672c0802019-07-26 13:03:13 +0100257# The transaction test has dependencies on core.oat.
258ART_GTEST_transaction_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
259ART_GTEST_transaction_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32)
260
Andreas Gampee1459ae2016-06-29 09:36:30 -0700261ART_GTEST_dex2oat_environment_tests_HOST_DEPS := \
Richard Uhlerbb00f812017-02-16 14:21:10 +0000262 $(HOST_CORE_IMAGE_optimizing_64) \
263 $(HOST_CORE_IMAGE_optimizing_32) \
264 $(HOST_CORE_IMAGE_interpreter_64) \
Vladimir Markoa497a392018-09-26 10:52:50 +0100265 $(HOST_CORE_IMAGE_interpreter_32)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700266ART_GTEST_dex2oat_environment_tests_TARGET_DEPS := \
Richard Uhlerbb00f812017-02-16 14:21:10 +0000267 $(TARGET_CORE_IMAGE_optimizing_64) \
268 $(TARGET_CORE_IMAGE_optimizing_32) \
269 $(TARGET_CORE_IMAGE_interpreter_64) \
Vladimir Markoa497a392018-09-26 10:52:50 +0100270 $(TARGET_CORE_IMAGE_interpreter_32)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700271
David Srbeckyec2cdf42017-12-08 16:21:25 +0000272ART_GTEST_oat_file_test_HOST_DEPS := \
David Brazdil3e8aae02019-03-26 18:48:02 +0000273 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
274 $(HOST_OUT_EXECUTABLES)/dex2oatd
David Srbeckyec2cdf42017-12-08 16:21:25 +0000275ART_GTEST_oat_file_test_TARGET_DEPS := \
David Brazdil3e8aae02019-03-26 18:48:02 +0000276 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000277 dex2oatd.com.android.art.debug
David Srbeckyec2cdf42017-12-08 16:21:25 +0000278
Andreas Gampee1459ae2016-06-29 09:36:30 -0700279ART_GTEST_oat_file_assistant_test_HOST_DEPS := \
Richard Uhlerf51ac422016-07-08 09:22:33 -0700280 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700281ART_GTEST_oat_file_assistant_test_TARGET_DEPS := \
Richard Uhlerf51ac422016-07-08 09:22:33 -0700282 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700283
Calin Juravle36eb3132017-01-13 16:32:38 -0800284ART_GTEST_dexoptanalyzer_test_HOST_DEPS := \
285 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700286 $(HOST_OUT_EXECUTABLES)/dexoptanalyzerd
Calin Juravle36eb3132017-01-13 16:32:38 -0800287ART_GTEST_dexoptanalyzer_test_TARGET_DEPS := \
288 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100289 $(TESTING_ART_APEX) # For dexoptanalyzerd.
Andreas Gampee1459ae2016-06-29 09:36:30 -0700290
Richard Uhler84f50ae2017-02-06 15:12:45 +0000291ART_GTEST_image_space_test_HOST_DEPS := \
292 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
293ART_GTEST_image_space_test_TARGET_DEPS := \
294 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
295
Andreas Gampee1459ae2016-06-29 09:36:30 -0700296ART_GTEST_dex2oat_test_HOST_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800297 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700298 $(HOST_OUT_EXECUTABLES)/dex2oatd
Andreas Gampee1459ae2016-06-29 09:36:30 -0700299ART_GTEST_dex2oat_test_TARGET_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800300 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100301 $(TESTING_ART_APEX) # For dex2oatd.
Richard Uhler66d874d2015-01-15 09:37:19 -0800302
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700303ART_GTEST_dex2oat_image_test_HOST_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800304 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700305 $(HOST_OUT_EXECUTABLES)/dex2oatd
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700306ART_GTEST_dex2oat_image_test_TARGET_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800307 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100308 $(TESTING_ART_APEX) # For dex2oatd.
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700309
Brian Carlstrom53463ea2014-11-09 14:11:51 -0800310# TODO: document why this is needed.
Richard Uhler67e1dc52017-02-06 16:50:17 +0000311ART_GTEST_proxy_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700312
David Sehr55232f12017-04-19 14:06:49 -0700313# The dexdiag test requires the dexdiag utility.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700314ART_GTEST_dexdiag_test_HOST_DEPS := $(HOST_OUT_EXECUTABLES)/dexdiag
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100315ART_GTEST_dexdiag_test_TARGET_DEPS := $(TESTING_ART_APEX) # For dexdiag.
David Sehr55232f12017-04-19 14:06:49 -0700316
Aart Bikcfbe53c2015-07-06 14:27:27 -0700317# The dexdump test requires an image and the dexdump utility.
Aart Bik22c26f52015-07-08 21:20:13 +0000318# TODO: rename into dexdump when migration completes
Aart Bikcfbe53c2015-07-06 14:27:27 -0700319ART_GTEST_dexdump_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000320 $(HOST_CORE_IMAGE_DEFAULT_64) \
321 $(HOST_CORE_IMAGE_DEFAULT_32) \
David Sehr4f215d12019-04-03 09:28:21 -0700322 $(HOST_OUT_EXECUTABLES)/dexdump
Aart Bikcfbe53c2015-07-06 14:27:27 -0700323ART_GTEST_dexdump_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000324 $(TARGET_CORE_IMAGE_DEFAULT_64) \
325 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000326 dexdump.com.android.art.debug
Aart Bikcfbe53c2015-07-06 14:27:27 -0700327
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700328# The dexanalyze test requires an image and the dexanalyze utility.
329ART_GTEST_dexanalyze_test_HOST_DEPS := \
330 $(HOST_CORE_IMAGE_DEFAULT_64) \
331 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700332 $(HOST_OUT_EXECUTABLES)/dexanalyze
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700333ART_GTEST_dexanalyze_test_TARGET_DEPS := \
334 $(TARGET_CORE_IMAGE_DEFAULT_64) \
335 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000336 dexanalyze.com.android.art.debug
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700337
Jeff Haoc3acfc52016-08-29 14:18:26 -0700338# The dexlayout test requires an image and the dexlayout utility.
339# TODO: rename into dexdump when migration completes
340ART_GTEST_dexlayout_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000341 $(HOST_CORE_IMAGE_DEFAULT_64) \
342 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700343 $(HOST_OUT_EXECUTABLES)/dexlayoutd \
David Sehr4f215d12019-04-03 09:28:21 -0700344 $(HOST_OUT_EXECUTABLES)/dexdump
Jeff Haoc3acfc52016-08-29 14:18:26 -0700345ART_GTEST_dexlayout_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000346 $(TARGET_CORE_IMAGE_DEFAULT_64) \
347 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000348 dexlayoutd.com.android.art.debug \
349 dexdump.com.android.art.debug
Jeff Haoc3acfc52016-08-29 14:18:26 -0700350
Aart Bik3e40f4a2015-07-07 17:09:41 -0700351# The dexlist test requires an image and the dexlist utility.
Aart Bik3e40f4a2015-07-07 17:09:41 -0700352ART_GTEST_dexlist_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000353 $(HOST_CORE_IMAGE_DEFAULT_64) \
354 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700355 $(HOST_OUT_EXECUTABLES)/dexlist
Aart Bik3e40f4a2015-07-07 17:09:41 -0700356ART_GTEST_dexlist_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000357 $(TARGET_CORE_IMAGE_DEFAULT_64) \
358 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100359 $(TESTING_ART_APEX) # For dexlist.
Aart Bik3e40f4a2015-07-07 17:09:41 -0700360
Igor Murashkin37743352014-11-13 14:38:00 -0800361# The imgdiag test has dependencies on core.oat since it needs to load it during the test.
Andreas Gampec93b8b52014-12-19 23:12:25 -0800362# For the host, also add the installed tool (in the base size, that should suffice). For the
363# target, just the module is fine, the sync will happen late enough.
364ART_GTEST_imgdiag_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000365 $(HOST_CORE_IMAGE_DEFAULT_64) \
366 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700367 $(HOST_OUT_EXECUTABLES)/imgdiagd
Andreas Gampec93b8b52014-12-19 23:12:25 -0800368ART_GTEST_imgdiag_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000369 $(TARGET_CORE_IMAGE_DEFAULT_64) \
370 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000371 imgdiagd.com.android.art.debug
Igor Murashkin37743352014-11-13 14:38:00 -0800372
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700373# Dex analyze test requires dexanalyze.
374ART_GTEST_dexanalyze_test_HOST_DEPS := \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700375 $(HOST_OUT_EXECUTABLES)/dexanalyze
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700376ART_GTEST_dexanalyze_test_TARGET_DEPS := \
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000377 dexanalyze.com.android.art.debug
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700378
Mathieu Chartierea216b32015-05-26 19:48:16 -0700379# Oatdump test requires an image and oatfile to dump.
380ART_GTEST_oatdump_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000381 $(HOST_CORE_IMAGE_DEFAULT_64) \
382 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700383 $(HOST_OUT_EXECUTABLES)/oatdumpd \
384 $(HOST_OUT_EXECUTABLES)/oatdumpds \
David Srbecky3b19de22019-04-12 16:07:51 +0100385 $(HOST_OUT_EXECUTABLES)/dexdump \
386 $(HOST_OUT_EXECUTABLES)/dex2oatd \
387 $(HOST_OUT_EXECUTABLES)/dex2oatds
Mathieu Chartierea216b32015-05-26 19:48:16 -0700388ART_GTEST_oatdump_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000389 $(TARGET_CORE_IMAGE_DEFAULT_64) \
390 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100391 $(TESTING_ART_APEX) # For oatdumpd, dexdump, dex2oatd.
Vladimir Marko1352f132017-04-28 15:28:29 +0100392ART_GTEST_oatdump_image_test_HOST_DEPS := $(ART_GTEST_oatdump_test_HOST_DEPS)
393ART_GTEST_oatdump_image_test_TARGET_DEPS := $(ART_GTEST_oatdump_test_TARGET_DEPS)
David Srbecky3b19de22019-04-12 16:07:51 +0100394ART_GTEST_oatdump_app_test_HOST_DEPS := $(ART_GTEST_oatdump_test_HOST_DEPS)
395ART_GTEST_oatdump_app_test_TARGET_DEPS := $(ART_GTEST_oatdump_test_TARGET_DEPS)
Mathieu Chartierea216b32015-05-26 19:48:16 -0700396
Calin Juravle2e2db782016-02-23 12:00:03 +0000397# Profile assistant tests requires profman utility.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700398ART_GTEST_profile_assistant_test_HOST_DEPS := $(HOST_OUT_EXECUTABLES)/profmand
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100399ART_GTEST_profile_assistant_test_TARGET_DEPS := $(TESTING_ART_APEX) # For profmand.
Calin Juravle2e2db782016-02-23 12:00:03 +0000400
David Brazdil2b9c35b2018-01-12 15:44:43 +0000401ART_GTEST_hiddenapi_test_HOST_DEPS := \
402 $(HOST_CORE_IMAGE_DEFAULT_64) \
403 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700404 $(HOST_OUT_EXECUTABLES)/hiddenapid
David Brazdil2b9c35b2018-01-12 15:44:43 +0000405
Ian Rogersafd9acc2014-06-17 08:21:54 -0700406# The path for which all the source files are relative, not actually the current directory.
Brian Carlstrom7940e442013-07-12 13:46:57 -0700407LOCAL_PATH := art
408
Colin Cross6e95dd52016-09-12 15:37:10 -0700409ART_TEST_MODULES := \
410 art_cmdline_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700411 art_compiler_host_tests \
Martin Stjernholm750bf042019-01-09 22:51:12 +0000412 art_compiler_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700413 art_dex2oat_tests \
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700414 art_dexanalyze_tests \
David Sehr55232f12017-04-19 14:06:49 -0700415 art_dexdiag_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700416 art_dexdump_tests \
417 art_dexlayout_tests \
418 art_dexlist_tests \
Calin Juravle36eb3132017-01-13 16:32:38 -0800419 art_dexoptanalyzer_tests \
David Brazdil2b9c35b2018-01-12 15:44:43 +0000420 art_hiddenapi_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700421 art_imgdiag_tests \
David Sehr67bf42e2018-02-26 16:43:04 -0800422 art_libartbase_tests \
Orion Hodson119733d2019-01-30 15:14:41 +0000423 art_libartpalette_tests \
Martin Stjernholmfdb2f602019-01-09 14:47:00 +0000424 art_libdexfile_external_tests \
Martin Stjernholm70ae00d2019-02-15 22:41:14 +0000425 art_libdexfile_support_static_tests \
Martin Stjernholm750bf042019-01-09 22:51:12 +0000426 art_libdexfile_support_tests \
David Sehr334b9d72018-02-12 18:27:56 -0800427 art_libdexfile_tests \
David Sehrd5f8de82018-04-27 14:12:03 -0700428 art_libprofile_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700429 art_oatdump_tests \
430 art_profman_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700431 art_runtime_compiler_tests \
Martin Stjernholm750bf042019-01-09 22:51:12 +0000432 art_runtime_tests \
Josh Gao1eac77e2018-02-26 15:54:41 -0800433 art_sigchain_tests \
Brian Carlstroma1ce1fe2014-02-24 23:23:58 -0800434
Jiyong Parka5992522020-01-07 16:55:09 +0900435ART_TARGET_GTEST_NAMES := $(foreach tm,$(ART_TEST_MODULES),\
436 $(foreach path,$(ART_TEST_LIST_device_$(TARGET_ARCH)_$(tm)),\
437 $(notdir $(path))\
438 )\
439)
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000440
Colin Cross6e95dd52016-09-12 15:37:10 -0700441ART_HOST_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\
Colin Cross124f8812016-09-15 20:57:47 -0700442 $(ART_TEST_LIST_host_$(ART_HOST_ARCH)_$(m)))
Alex Light50fa9932015-08-10 15:30:07 -0700443
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100444ifneq ($(HOST_PREFER_32_BIT),true)
4452ND_ART_HOST_GTEST_FILES += $(foreach m,$(ART_TEST_MODULES),\
446 $(ART_TEST_LIST_host_$(2ND_ART_HOST_ARCH)_$(m)))
447endif
448
Ian Rogersafd9acc2014-06-17 08:21:54 -0700449# Variables holding collections of gtest pre-requisits used to run a number of gtests.
450ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
451ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
452ART_TEST_HOST_GTEST_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700453ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
454ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
455ART_TEST_TARGET_GTEST_RULES :=
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100456ART_TEST_HOST_GTEST_DEPENDENCIES :=
Nicolas Geoffray17b1dcb2018-10-12 15:09:42 +0100457ART_TEST_TARGET_GTEST_DEPENDENCIES :=
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700458
Nicolas Geoffray96a37c82014-10-29 23:50:40 +0000459ART_GTEST_TARGET_ANDROID_ROOT := '/system'
460ifneq ($(ART_TEST_ANDROID_ROOT),)
461 ART_GTEST_TARGET_ANDROID_ROOT := $(ART_TEST_ANDROID_ROOT)
462endif
463
Victor Chang64611242019-07-05 16:32:41 +0100464ART_GTEST_TARGET_ANDROID_I18N_ROOT := '/apex/com.android.i18n'
465ifneq ($(ART_TEST_ANDROID_I18N_ROOT),)
466 ART_GTEST_TARGET_ANDROID_I18N_ROOT := $(ART_TEST_ANDROID_I18N_ROOT)
467endif
468
Martin Stjernholme58624f2019-09-20 15:53:40 +0100469ART_GTEST_TARGET_ANDROID_ART_ROOT := '/apex/com.android.art'
470ifneq ($(ART_TEST_ANDROID_ART_ROOT),)
471 ART_GTEST_TARGET_ANDROID_ART_ROOT := $(ART_TEST_ANDROID_ART_ROOT)
Roland Levillain7c777f82019-01-10 18:00:37 +0000472endif
Neil Fuller26c43772018-11-23 17:56:43 +0000473
Neil Fuller26a5dd62019-03-13 15:16:35 +0000474ART_GTEST_TARGET_ANDROID_TZDATA_ROOT := '/apex/com.android.tzdata'
475ifneq ($(ART_TEST_ANDROID_TZDATA_ROOT),)
476 ART_GTEST_TARGET_ANDROID_TZDATA_ROOT := $(ART_TEST_ANDROID_TZDATA_ROOT)
477endif
478
Ian Rogersafd9acc2014-06-17 08:21:54 -0700479# Define make rules for a host gtests.
480# $(1): gtest name - the name of the test we're building such as leb128_test.
Colin Cross6e95dd52016-09-12 15:37:10 -0700481# $(2): path relative to $OUT to the test binary
482# $(3): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
Ian Rogersafd9acc2014-06-17 08:21:54 -0700483define define-art-gtest-rule-host
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700484 gtest_suffix := $(1)$$($(3)ART_PHONY_TEST_HOST_SUFFIX)
485 gtest_rule := test-art-host-gtest-$$(gtest_suffix)
486 gtest_output := $(call intermediates-dir-for,PACKAGING,art-host-gtest,HOST)/$$(gtest_suffix).xml
Dan Willemsen0ef94572018-10-21 19:00:56 +0000487 $$(call dist-for-goals,$$(gtest_rule),$$(gtest_output):gtest/$$(gtest_suffix))
Colin Cross83072062019-10-02 16:06:58 -0700488 gtest_exe := $(2)
Ian Rogers665de8a2014-06-24 21:34:09 -0700489 # Dependencies for all host gtests.
490 gtest_deps := $$(HOST_CORE_DEX_LOCATIONS) \
Victor Chang65ae6692019-10-11 14:17:21 +0100491 $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libicu_jni$$(ART_HOST_SHLIB_EXTENSION) \
Colin Cross6e95dd52016-09-12 15:37:10 -0700492 $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libjavacore$$(ART_HOST_SHLIB_EXTENSION) \
493 $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libopenjdkd$$(ART_HOST_SHLIB_EXTENSION) \
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100494 $$(gtest_exe) \
495 $$(ART_GTEST_$(1)_HOST_DEPS) \
Andreas Gampe28fd62a2018-12-12 15:15:22 -0800496 $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_HOST_GTEST_$(file)_DEX)) \
Andreas Gampe148c1602019-06-10 16:47:46 -0700497 $(HOST_OUT_EXECUTABLES)/signal_dumper
Ian Rogers665de8a2014-06-24 21:34:09 -0700498
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100499 ART_TEST_HOST_GTEST_DEPENDENCIES += $$(gtest_deps)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700500
Andreas Gampe6acebf42018-01-22 22:15:43 -0800501.PHONY: $$(gtest_rule)
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700502$$(gtest_rule): $$(gtest_output)
503
504# Re-run the tests, even if nothing changed. Until the build system has a dedicated "no cache"
505# option, claim to write a file that is never produced.
506$$(gtest_output): .KATI_IMPLICIT_OUTPUTS := $$(gtest_output)-nocache
507$$(gtest_output): NAME := $$(gtest_rule)
Andreas Gampe6acebf42018-01-22 22:15:43 -0800508ifeq (,$(SANITIZE_HOST))
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700509$$(gtest_output): $$(gtest_exe) $$(gtest_deps)
Andreas Gampe28fd62a2018-12-12 15:15:22 -0800510 $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && \
Andreas Gampe0df2aba2019-06-10 16:53:55 -0700511 timeout --foreground -k 120s 2400s $(HOST_OUT_EXECUTABLES)/signal_dumper -s 15 \
Andreas Gampe28fd62a2018-12-12 15:15:22 -0800512 $$< --gtest_output=xml:$$@ && \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700513 $$(call ART_TEST_PASSED,$$(NAME))) || $$(call ART_TEST_FAILED,$$(NAME))
Andreas Gampe6acebf42018-01-22 22:15:43 -0800514else
Andreas Gampe03858052017-05-01 08:17:24 -0700515# Note: envsetup currently exports ASAN_OPTIONS=detect_leaks=0 to suppress leak detection, as some
516# build tools (e.g., ninja) intentionally leak. We want leak checks when we run our tests, so
517# override ASAN_OPTIONS. b/37751350
Andreas Gampe6acebf42018-01-22 22:15:43 -0800518# Note 2: Under sanitization, also capture the output, and run it through the stack tool on failure
519# (with the x86-64 ABI, as this allows symbolization of both x86 and x86-64). We don't do this in
520# general as it loses all the color output, and we have our own symbolization step when not running
521# under ASAN.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700522$$(gtest_output): $$(gtest_exe) $$(gtest_deps)
523 $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && set -o pipefail && \
Andreas Gampe0df2aba2019-06-10 16:53:55 -0700524 ASAN_OPTIONS=detect_leaks=1 timeout --foreground -k 120s 3600s \
525 $(HOST_OUT_EXECUTABLES)/signal_dumper -s 15 \
Andreas Gampe28fd62a2018-12-12 15:15:22 -0800526 $$< --gtest_output=xml:$$@ 2>&1 | tee $$<.tmp.out >&2 && \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700527 { $$(call ART_TEST_PASSED,$$(NAME)) ; rm $$<.tmp.out ; }) || \
Andreas Gampec05fd3f2018-01-23 14:22:07 -0800528 ( grep -q AddressSanitizer $$<.tmp.out && export ANDROID_BUILD_TOP=`pwd` && \
Andreas Gampe6acebf42018-01-22 22:15:43 -0800529 { echo "ABI: 'x86_64'" | cat - $$<.tmp.out | development/scripts/stack | tail -n 3000 ; } ; \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700530 rm $$<.tmp.out ; $$(call ART_TEST_FAILED,$$(NAME)))
Andreas Gampe6acebf42018-01-22 22:15:43 -0800531endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700532
Colin Cross6e95dd52016-09-12 15:37:10 -0700533 ART_TEST_HOST_GTEST$$($(3)ART_PHONY_TEST_HOST_SUFFIX)_RULES += $$(gtest_rule)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700534 ART_TEST_HOST_GTEST_RULES += $$(gtest_rule)
535 ART_TEST_HOST_GTEST_$(1)_RULES += $$(gtest_rule)
536
Andreas Gampe3c0bb312015-02-19 10:02:19 -0800537
Ian Rogersafd9acc2014-06-17 08:21:54 -0700538 # Clear locally defined variables.
Ian Rogers665de8a2014-06-24 21:34:09 -0700539 gtest_deps :=
Roland Levillain76cfe612017-10-30 13:14:28 +0000540 gtest_exe :=
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700541 gtest_output :=
Roland Levillain76cfe612017-10-30 13:14:28 +0000542 gtest_rule :=
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700543 gtest_suffix :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700544endef # define-art-gtest-rule-host
545
Jiyong Parkeac38a12020-01-03 17:56:33 +0900546# Add the additional dependencies for the specified test
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000547# $(1): test name
Jiyong Parkeac38a12020-01-03 17:56:33 +0900548define add-art-gtest-dependencies
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000549 # Note that, both the primary and the secondary arches of the libs are built by depending
550 # on the module name.
551 gtest_deps := \
552 $$(ART_GTEST_$(1)_TARGET_DEPS) \
553 $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_TARGET_GTEST_$(file)_DEX)) \
Brian Carlstrom0796af02011-10-12 14:31:45 -0700554
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000555 ART_TEST_TARGET_GTEST_DEPENDENCIES += $$(gtest_deps)
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100556
557 # Clear locally defined variables.
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000558 gtest_deps :=
Jiyong Parkeac38a12020-01-03 17:56:33 +0900559endef # add-art-gtest-dependencies
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100560
561# $(1): file name
562# $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
563define define-art-gtest-host
564 art_gtest_filename := $(1)
565
566 include $$(CLEAR_VARS)
567 art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename)))
568 ifndef ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES
569 ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100570 endif
571 $$(eval $$(call define-art-gtest-rule-host,$$(art_gtest_name),$$(art_gtest_filename),$(2)))
572
573 # Clear locally defined variables.
574 art_gtest_filename :=
575 art_gtest_name :=
576endef # define-art-gtest-host
577
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100578# Define the rules to build and run gtests for both archs on host.
579# $(1): test name
580define define-art-gtest-host-both
581 art_gtest_name := $(1)
582
Ian Rogersafd9acc2014-06-17 08:21:54 -0700583.PHONY: test-art-host-gtest-$$(art_gtest_name)
584test-art-host-gtest-$$(art_gtest_name): $$(ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES)
585 $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
Ian Rogersd912e5c2013-11-13 12:40:11 -0800586
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100587 # Clear now unused variables.
588 ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700589 art_gtest_name :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100590endef # define-art-gtest-host-both
Alex Light50fa9932015-08-10 15:30:07 -0700591
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700592ifeq ($(ART_BUILD_TARGET),true)
Jiyong Parkeac38a12020-01-03 17:56:33 +0900593 $(foreach name,$(ART_TARGET_GTEST_NAMES), $(eval $(call add-art-gtest-dependencies,$(name),)))
594 ART_TEST_TARGET_GTEST_DEPENDENCIES += \
595 libicu_jni.com.android.art.debug \
596 libjavacore.com.android.art.debug \
597 libopenjdkd.com.android.art.debug \
598 $(foreach jar,$(TARGET_TEST_CORE_JARS),$(TARGET_OUT_JAVA_LIBRARIES)/$(jar).jar)
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700599endif
Ian Rogersc5f17732014-06-05 20:48:42 -0700600ifeq ($(ART_BUILD_HOST),true)
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100601 $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),)))
602 ifneq ($(HOST_PREFER_32_BIT),true)
603 $(foreach file,$(2ND_ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),2ND_)))
604 endif
605 # Rules to run the different architecture versions of the gtest.
606 $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host-both,$$(notdir $$(basename $$(file))))))
Brian Carlstrom07d579f2011-07-27 13:31:51 -0700607endif
Tsu Chiang Chuangec245a42014-05-15 21:16:21 -0700608
609# Used outside the art project to get a list of the current tests
610RUNTIME_TARGET_GTEST_MAKE_TARGETS :=
Jiyong Parkeac38a12020-01-03 17:56:33 +0900611art_target_gtest_files := $(foreach m,$(ART_TEST_MODULES),$(ART_TEST_LIST_device_$(TARGET_ARCH)_$(m)))
Dan Willemsen7955f5e2020-01-28 12:18:49 -0800612# If testdir == testfile, assume this is not a test_per_src module
Jiyong Parkeac38a12020-01-03 17:56:33 +0900613$(foreach file,$(art_target_gtest_files),\
Dan Willemsen7955f5e2020-01-28 12:18:49 -0800614 $(eval testdir := $$(notdir $$(patsubst %/,%,$$(dir $$(file)))))\
615 $(eval testfile := $$(notdir $$(basename $$(file))))\
616 $(if $(call streq,$(testdir),$(testfile)),,\
617 $(eval testfile := $(testdir)_$(testfile)))\
618 $(eval RUNTIME_TARGET_GTEST_MAKE_TARGETS += $(testfile))\
Jiyong Parkeac38a12020-01-03 17:56:33 +0900619)
Dan Willemsen7955f5e2020-01-28 12:18:49 -0800620testdir :=
621testfile :=
Jiyong Parkeac38a12020-01-03 17:56:33 +0900622art_target_gtest_files :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700623
Roland Levillain05e34f42018-05-24 13:19:05 +0000624# Define all the combinations of host/target and suffix such as:
625# test-art-host-gtest or test-art-host-gtest64
Ian Rogersafd9acc2014-06-17 08:21:54 -0700626# $(1): host or target
627# $(2): HOST or TARGET
Roland Levillain05e34f42018-05-24 13:19:05 +0000628# $(3): undefined, 32 or 64
Ian Rogersafd9acc2014-06-17 08:21:54 -0700629define define-test-art-gtest-combination
630 ifeq ($(1),host)
631 ifneq ($(2),HOST)
632 $$(error argument mismatch $(1) and ($2))
633 endif
634 else
635 ifneq ($(1),target)
636 $$(error found $(1) expected host or target)
637 endif
638 ifneq ($(2),TARGET)
639 $$(error argument mismatch $(1) and ($2))
640 endif
641 endif
642
Roland Levillain05e34f42018-05-24 13:19:05 +0000643 rule_name := test-art-$(1)-gtest$(3)
644 dependencies := $$(ART_TEST_$(2)_GTEST$(3)_RULES)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700645
646.PHONY: $$(rule_name)
Søren Gjesse46845f62019-12-10 09:14:16 +0100647$$(rule_name): $$(dependencies) d8
Ian Rogersafd9acc2014-06-17 08:21:54 -0700648 $(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
649
650 # Clear locally defined variables.
651 rule_name :=
652 dependencies :=
653endef # define-test-art-gtest-combination
654
Roland Levillain05e34f42018-05-24 13:19:05 +0000655$(eval $(call define-test-art-gtest-combination,target,TARGET,))
656$(eval $(call define-test-art-gtest-combination,target,TARGET,$(ART_PHONY_TEST_TARGET_SUFFIX)))
Dan Willemsen5d2dbf82018-04-11 12:31:11 -0700657ifdef 2ND_ART_PHONY_TEST_TARGET_SUFFIX
Roland Levillain05e34f42018-05-24 13:19:05 +0000658$(eval $(call define-test-art-gtest-combination,target,TARGET,$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700659endif
Roland Levillain05e34f42018-05-24 13:19:05 +0000660$(eval $(call define-test-art-gtest-combination,host,HOST,))
661$(eval $(call define-test-art-gtest-combination,host,HOST,$(ART_PHONY_TEST_HOST_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700662ifneq ($(HOST_PREFER_32_BIT),true)
Roland Levillain05e34f42018-05-24 13:19:05 +0000663$(eval $(call define-test-art-gtest-combination,host,HOST,$(2ND_ART_PHONY_TEST_HOST_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700664endif
665
666# Clear locally defined variables.
667define-art-gtest-rule-target :=
668define-art-gtest-rule-host :=
669define-art-gtest :=
670define-test-art-gtest-combination :=
671RUNTIME_GTEST_COMMON_SRC_FILES :=
672COMPILER_GTEST_COMMON_SRC_FILES :=
673RUNTIME_GTEST_TARGET_SRC_FILES :=
674RUNTIME_GTEST_HOST_SRC_FILES :=
675COMPILER_GTEST_TARGET_SRC_FILES :=
676COMPILER_GTEST_HOST_SRC_FILES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700677ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
678ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
679ART_TEST_HOST_GTEST_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700680ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
681ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
682ART_TEST_TARGET_GTEST_RULES :=
Nicolas Geoffray96a37c82014-10-29 23:50:40 +0000683ART_GTEST_TARGET_ANDROID_ROOT :=
Victor Chang64611242019-07-05 16:32:41 +0100684ART_GTEST_TARGET_ANDROID_I18N_ROOT :=
Martin Stjernholme58624f2019-09-20 15:53:40 +0100685ART_GTEST_TARGET_ANDROID_ART_ROOT :=
Neil Fuller26a5dd62019-03-13 15:16:35 +0000686ART_GTEST_TARGET_ANDROID_TZDATA_ROOT :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700687ART_GTEST_class_linker_test_DEX_DEPS :=
Mathieu Chartierdb70ce52016-12-12 11:06:59 -0800688ART_GTEST_class_table_test_DEX_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700689ART_GTEST_compiler_driver_test_DEX_DEPS :=
690ART_GTEST_dex_file_test_DEX_DEPS :=
691ART_GTEST_exception_test_DEX_DEPS :=
692ART_GTEST_elf_writer_test_HOST_DEPS :=
693ART_GTEST_elf_writer_test_TARGET_DEPS :=
Andreas Gampea1ff30f2016-09-27 12:19:45 -0700694ART_GTEST_imtable_test_DEX_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700695ART_GTEST_jni_compiler_test_DEX_DEPS :=
696ART_GTEST_jni_internal_test_DEX_DEPS :=
Richard Uhler66d874d2015-01-15 09:37:19 -0800697ART_GTEST_oat_file_assistant_test_DEX_DEPS :=
698ART_GTEST_oat_file_assistant_test_HOST_DEPS :=
699ART_GTEST_oat_file_assistant_test_TARGET_DEPS :=
Mathieu Chartier0be7fa72018-04-12 10:13:29 -0700700ART_GTEST_dexanalyze_test_DEX_DEPS :=
Calin Juravle36eb3132017-01-13 16:32:38 -0800701ART_GTEST_dexoptanalyzer_test_DEX_DEPS :=
702ART_GTEST_dexoptanalyzer_test_HOST_DEPS :=
703ART_GTEST_dexoptanalyzer_test_TARGET_DEPS :=
Richard Uhler84f50ae2017-02-06 15:12:45 +0000704ART_GTEST_image_space_test_DEX_DEPS :=
705ART_GTEST_image_space_test_HOST_DEPS :=
706ART_GTEST_image_space_test_TARGET_DEPS :=
Andreas Gampee1459ae2016-06-29 09:36:30 -0700707ART_GTEST_dex2oat_test_DEX_DEPS :=
708ART_GTEST_dex2oat_test_HOST_DEPS :=
709ART_GTEST_dex2oat_test_TARGET_DEPS :=
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700710ART_GTEST_dex2oat_image_test_DEX_DEPS :=
711ART_GTEST_dex2oat_image_test_HOST_DEPS :=
712ART_GTEST_dex2oat_image_test_TARGET_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700713ART_GTEST_object_test_DEX_DEPS :=
714ART_GTEST_proxy_test_DEX_DEPS :=
715ART_GTEST_reflection_test_DEX_DEPS :=
716ART_GTEST_stub_test_DEX_DEPS :=
717ART_GTEST_transaction_test_DEX_DEPS :=
Andreas Gampee1459ae2016-06-29 09:36:30 -0700718ART_GTEST_dex2oat_environment_tests_DEX_DEPS :=
Mathieu Chartier1ca68902017-04-18 11:26:22 -0700719ART_GTEST_heap_verification_test_DEX_DEPS :=
David Brazdilca3c8c32016-09-06 14:04:48 +0100720ART_GTEST_verifier_deps_test_DEX_DEPS :=
Ian Rogers1a2f84e2014-07-07 16:05:18 -0700721$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_TARGET_GTEST_$(dir)_DEX :=))
722$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_HOST_GTEST_$(dir)_DEX :=))
Richard Uhler66d874d2015-01-15 09:37:19 -0800723ART_TEST_HOST_GTEST_MainStripped_DEX :=
724ART_TEST_TARGET_GTEST_MainStripped_DEX :=
David Srbecky8c8f1482020-02-05 20:17:10 +0000725ART_TEST_HOST_GTEST_MainUncompressedAligned_DEX :=
726ART_TEST_TARGET_GTEST_MainUncompressedAligned_DEX :=
Mathieu Chartier700a9852018-02-06 18:27:38 -0800727ART_TEST_HOST_GTEST_EmptyUncompressed_DEX :=
728ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX :=
David Brazdilca3c8c32016-09-06 14:04:48 +0100729ART_TEST_GTEST_VerifierDeps_SRC :=
730ART_TEST_HOST_GTEST_VerifierDeps_DEX :=
David Brazdilf906f122016-09-16 16:33:31 +0100731ART_TEST_TARGET_GTEST_VerifierDeps_DEX :=
Vladimir Markod79b37b2018-11-02 13:06:22 +0000732ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC :=
733ART_TEST_HOST_GTEST_VerifySoftFailDuringClinit_DEX :=
734ART_TEST_TARGET_GTEST_VerifySoftFailDuringClinit_DEX :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700735GTEST_DEX_DIRECTORIES :=
Brian Carlstrom532714a2014-06-25 02:15:31 -0700736LOCAL_PATH :=