blob: fe66bbb99035524f60c8b7fc56a66c9d0cdea21d [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 \
Vladimir Markofdd46842020-03-25 14:57:17 +000033 Extension1 \
34 Extension2 \
Calin Juravlecdd49122017-07-05 20:09:53 -070035 ForClassLoaderA \
36 ForClassLoaderB \
37 ForClassLoaderC \
38 ForClassLoaderD \
Ian Rogersafd9acc2014-06-17 08:21:54 -070039 ExceptionHandle \
40 GetMethodSignature \
David Brazdil2b9c35b2018-01-12 15:44:43 +000041 HiddenApi \
Mathew Inwood7d74ef52018-03-16 14:18:33 +000042 HiddenApiSignatures \
David Brazdil2da3cbb2019-01-30 16:17:50 +000043 HiddenApiStubs \
Mathieu Chartier496577f2016-09-20 15:33:31 -070044 ImageLayoutA \
45 ImageLayoutB \
Andreas Gampea1ff30f2016-09-27 12:19:45 -070046 IMTA \
47 IMTB \
Sebastien Hertz0462c4c2015-04-01 16:34:17 +020048 Instrumentation \
Ian Rogersafd9acc2014-06-17 08:21:54 -070049 Interfaces \
Artem Udovichenkod9786b02015-10-14 16:36:55 +030050 Lookup \
Ian Rogersafd9acc2014-06-17 08:21:54 -070051 Main \
Mathieu Chartierd00e02b2017-05-24 12:04:13 -070052 ManyMethods \
Narayan Kamath25352fc2016-08-03 12:46:58 +010053 MethodTypes \
Richard Uhler66d874d2015-01-15 09:37:19 -080054 MultiDex \
Richard Uhler67ff7d12015-05-14 13:21:13 -070055 MultiDexModifiedSecondary \
Ian Rogersafd9acc2014-06-17 08:21:54 -070056 MyClass \
57 MyClassNatives \
58 Nested \
59 NonStaticLeafMethods \
Mathieu Chartier279ac5c2016-09-08 17:34:25 -070060 Packages \
Ian Rogersafd9acc2014-06-17 08:21:54 -070061 ProtoCompare \
62 ProtoCompare2 \
Calin Juravle877fd962016-01-05 14:29:29 +000063 ProfileTestMultiDex \
Ian Rogersafd9acc2014-06-17 08:21:54 -070064 StaticLeafMethods \
65 Statics \
66 StaticsFromCode \
Mathieu Chartiercd0f38f2018-10-15 09:44:35 -070067 StringLiterals \
Ian Rogersafd9acc2014-06-17 08:21:54 -070068 Transaction \
69 XandY
70
71# Create build rules for each dex file recording the dependency.
72$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval $(call build-art-test-dex,art-gtest,$(dir), \
Ian Rogers1a2f84e2014-07-07 16:05:18 -070073 $(ART_TARGET_NATIVETEST_OUT),art/build/Android.gtest.mk,ART_TEST_TARGET_GTEST_$(dir)_DEX, \
74 ART_TEST_HOST_GTEST_$(dir)_DEX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -070075
Richard Uhler66d874d2015-01-15 09:37:19 -080076# Create rules for MainStripped, a copy of Main with the classes.dex stripped
77# for the oat file assistant tests.
78ART_TEST_HOST_GTEST_MainStripped_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
79ART_TEST_TARGET_GTEST_MainStripped_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
80
David Srbecky8c8f1482020-02-05 20:17:10 +000081# Create rules for MainUncompressedAligned, a copy of Main with the classes.dex uncompressed
Nicolas Geoffrayf3075272018-01-08 12:41:19 +000082# for the dex2oat tests.
David Srbecky8c8f1482020-02-05 20:17:10 +000083ART_TEST_HOST_GTEST_MainUncompressedAligned_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))UncompressedAligned$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
84ART_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 +000085
Mathieu Chartier700a9852018-02-06 18:27:38 -080086# Create rules for UncompressedEmpty, a classes.dex that is empty and uncompressed
87# for the dex2oat tests.
88ART_TEST_HOST_GTEST_EmptyUncompressed_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))EmptyUncompressed$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
89ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))EmptyUncompressed$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
90
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +010091# Create rules for UncompressedEmptyAligned, a classes.dex that is empty, uncompressed,
92# and 4 byte aligned for the dex2oat tests.
93ART_TEST_HOST_GTEST_EmptyUncompressedAligned_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))EmptyUncompressedAligned$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
94ART_TEST_TARGET_GTEST_EmptyUncompressedAligned_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))EmptyUncompressedAligned$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
95
David Srbecky8c8f1482020-02-05 20:17:10 +000096# Create rules for MultiDexUncompressedAligned, a copy of MultiDex with the classes.dex uncompressed
Andreas Gampefc604a72018-02-08 15:43:37 -080097# for the OatFile tests.
David Srbecky8c8f1482020-02-05 20:17:10 +000098ART_TEST_HOST_GTEST_MultiDexUncompressedAligned_DEX := $(basename $(ART_TEST_HOST_GTEST_MultiDex_DEX))UncompressedAligned$(suffix $(ART_TEST_HOST_GTEST_MultiDex_DEX))
99ART_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 -0800100
Dan Willemsen17769622018-04-06 13:26:36 -0700101ifdef ART_TEST_HOST_GTEST_Main_DEX
Richard Uhler66d874d2015-01-15 09:37:19 -0800102$(ART_TEST_HOST_GTEST_MainStripped_DEX): $(ART_TEST_HOST_GTEST_Main_DEX)
103 cp $< $@
104 $(call dexpreopt-remove-classes.dex,$@)
Dan Willemsen17769622018-04-06 13:26:36 -0700105endif
Richard Uhler66d874d2015-01-15 09:37:19 -0800106
Dan Willemsen17769622018-04-06 13:26:36 -0700107ifdef ART_TEST_TARGET_GTEST_Main_DEX
Richard Uhler66d874d2015-01-15 09:37:19 -0800108$(ART_TEST_TARGET_GTEST_MainStripped_DEX): $(ART_TEST_TARGET_GTEST_Main_DEX)
109 cp $< $@
110 $(call dexpreopt-remove-classes.dex,$@)
Dan Willemsen17769622018-04-06 13:26:36 -0700111endif
Richard Uhler66d874d2015-01-15 09:37:19 -0800112
Dan Willemsen17769622018-04-06 13:26:36 -0700113ifdef ART_TEST_HOST_GTEST_Main_DEX
David Srbecky8c8f1482020-02-05 20:17:10 +0000114$(ART_TEST_HOST_GTEST_MainUncompressedAligned_DEX): $(ART_TEST_HOST_GTEST_Main_DEX) $(ZIPALIGN)
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000115 cp $< $@
116 $(call uncompress-dexs, $@)
117 $(call align-package, $@)
Dan Willemsen17769622018-04-06 13:26:36 -0700118endif
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000119
Dan Willemsen17769622018-04-06 13:26:36 -0700120ifdef ART_TEST_TARGET_GTEST_Main_DEX
David Srbecky8c8f1482020-02-05 20:17:10 +0000121$(ART_TEST_TARGET_GTEST_MainUncompressedAligned_DEX): $(ART_TEST_TARGET_GTEST_Main_DEX) $(ZIPALIGN)
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000122 cp $< $@
123 $(call uncompress-dexs, $@)
124 $(call align-package, $@)
Dan Willemsen17769622018-04-06 13:26:36 -0700125endif
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000126
Dan Willemsen17769622018-04-06 13:26:36 -0700127ifdef ART_TEST_HOST_GTEST_Main_DEX
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +0100128$(ART_TEST_HOST_GTEST_EmptyUncompressed_DEX):
Nicolas Geoffray917cfdb2019-05-02 10:53:22 +0100129 touch $@_classes.dex
130 zip -j -qD -X -0 $@ $@_classes.dex
131 rm $@_classes.dex
Dan Willemsen17769622018-04-06 13:26:36 -0700132endif
Mathieu Chartier700a9852018-02-06 18:27:38 -0800133
Dan Willemsen17769622018-04-06 13:26:36 -0700134ifdef ART_TEST_TARGET_GTEST_Main_DEX
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +0100135$(ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX):
Nicolas Geoffray917cfdb2019-05-02 10:53:22 +0100136 touch $@_classes.dex
137 zip -j -qD -X -0 $@ $@_classes.dex
138 rm $@_classes.dex
Dan Willemsen17769622018-04-06 13:26:36 -0700139endif
Mathieu Chartier700a9852018-02-06 18:27:38 -0800140
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +0100141ifdef ART_TEST_HOST_GTEST_Main_DEX
142$(ART_TEST_HOST_GTEST_EmptyUncompressedAligned_DEX): $(ZIPALIGN)
Nicolas Geoffray917cfdb2019-05-02 10:53:22 +0100143 touch $@_classes.dex
144 zip -j -0 $@_temp.zip $@_classes.dex
145 $(ZIPALIGN) -f 4 $@_temp.zip $@
146 rm $@_classes.dex
147 rm $@_temp.zip
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +0100148endif
149
150ifdef ART_TEST_TARGET_GTEST_Main_DEX
151$(ART_TEST_TARGET_GTEST_EmptyUncompressedAligned_DEX): $(ZIPALIGN)
Nicolas Geoffray917cfdb2019-05-02 10:53:22 +0100152 touch $@_classes.dex
153 zip -j -0 $@_temp.zip $@_classes.dex
154 $(ZIPALIGN) -f 4 $@_temp.zip $@
155 rm $@_classes.dex
156 rm $@_temp.zip
Nicolas Geoffrayc36a8cc2019-04-29 13:37:42 +0100157endif
158
Dan Willemsen17769622018-04-06 13:26:36 -0700159ifdef ART_TEST_HOST_GTEST_MultiDex_DEX
David Srbecky8c8f1482020-02-05 20:17:10 +0000160$(ART_TEST_HOST_GTEST_MultiDexUncompressedAligned_DEX): $(ART_TEST_HOST_GTEST_MultiDex_DEX) $(ZIPALIGN)
Andreas Gampefc604a72018-02-08 15:43:37 -0800161 cp $< $@
162 $(call uncompress-dexs, $@)
163 $(call align-package, $@)
Dan Willemsen17769622018-04-06 13:26:36 -0700164endif
Andreas Gampefc604a72018-02-08 15:43:37 -0800165
Dan Willemsen17769622018-04-06 13:26:36 -0700166ifdef ART_TEST_TARGET_GTEST_MultiDex_DEX
David Srbecky8c8f1482020-02-05 20:17:10 +0000167$(ART_TEST_TARGET_GTEST_MultiDexUncompressedAligned_DEX): $(ART_TEST_TARGET_GTEST_MultiDex_DEX) $(ZIPALIGN)
Andreas Gampefc604a72018-02-08 15:43:37 -0800168 cp $< $@
169 $(call uncompress-dexs, $@)
170 $(call align-package, $@)
Dan Willemsen17769622018-04-06 13:26:36 -0700171endif
Andreas Gampefc604a72018-02-08 15:43:37 -0800172
David Brazdilca3c8c32016-09-06 14:04:48 +0100173ART_TEST_GTEST_VerifierDeps_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifierDeps/*.smali))
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000174ART_TEST_GTEST_VerifierDepsMulti_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifierDepsMulti/*.smali))
David Brazdilca3c8c32016-09-06 14:04:48 +0100175ART_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 +0100176ART_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 +0000177ART_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))
178ART_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 +0100179
180$(ART_TEST_HOST_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700181 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
David Brazdilca3c8c32016-09-06 14:04:48 +0100182
David Brazdilf906f122016-09-16 16:33:31 +0100183$(ART_TEST_TARGET_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700184 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
David Brazdilf906f122016-09-16 16:33:31 +0100185
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000186$(ART_TEST_HOST_GTEST_VerifierDepsMulti_DEX): $(ART_TEST_GTEST_VerifierDepsMulti_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700187 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000188
189$(ART_TEST_TARGET_GTEST_VerifierDepsMulti_DEX): $(ART_TEST_GTEST_VerifierDepsMulti_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700190 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000191
Vladimir Markod79b37b2018-11-02 13:06:22 +0000192ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifySoftFailDuringClinit/*.smali))
193ART_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))
194ART_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))
195
196$(ART_TEST_HOST_GTEST_VerifySoftFailDuringClinit_DEX): $(ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC) $(HOST_OUT_EXECUTABLES)/smali
197 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
198
199$(ART_TEST_TARGET_GTEST_VerifySoftFailDuringClinit_DEX): $(ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC) $(HOST_OUT_EXECUTABLES)/smali
200 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
201
David Sehrfe57c2b2020-03-27 14:58:54 +0000202# Linkage test artifacts.
203ART_TEST_GTEST_LinkageTest_SRC := $(abspath $(wildcard $(LOCAL_PATH)/LinkageTest/*.smali))
204ART_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))
205$(ART_TEST_HOST_GTEST_LinkageTest_DEX): $(ART_TEST_GTEST_LinkageTest_SRC) $(HOST_OUT_EXECUTABLES)/smali
206 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
207
Ian Rogersafd9acc2014-06-17 08:21:54 -0700208# Dex file dependencies for each gtest.
David Sehr139512d2018-02-08 15:44:50 -0800209ART_GTEST_art_dex_file_loader_test_DEX_DEPS := GetMethodSignature Main Nested MultiDex
David Sehrfe57c2b2020-03-27 14:58:54 +0000210ART_GTEST_dex2oat_environment_tests_DEX_DEPS := Main MainStripped MultiDex MultiDexModifiedSecondary MyClassNatives Nested VerifierDeps VerifierDepsMulti LinkageTest
Andreas Gampee1459ae2016-06-29 09:36:30 -0700211
Mathieu Chartier93764b82017-07-17 14:51:53 -0700212ART_GTEST_atomic_dex_ref_map_test_DEX_DEPS := Interfaces
Calin Juravlecdd49122017-07-05 20:09:53 -0700213ART_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 -0700214ART_GTEST_class_loader_context_test_DEX_DEPS := Main MultiDex MyClass ForClassLoaderA ForClassLoaderB ForClassLoaderC ForClassLoaderD
Mathieu Chartierdb70ce52016-12-12 11:06:59 -0800215ART_GTEST_class_table_test_DEX_DEPS := XandY
Calin Juravle877fd962016-01-05 14:29:29 +0000216ART_GTEST_compiler_driver_test_DEX_DEPS := AbstractMethod StaticLeafMethods ProfileTestMultiDex
Narayan Kamath25352fc2016-08-03 12:46:58 +0100217ART_GTEST_dex_cache_test_DEX_DEPS := Main Packages MethodTypes
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700218ART_GTEST_dexanalyze_test_DEX_DEPS := MultiDex
Mathieu Chartierd00e02b2017-05-24 12:04:13 -0700219ART_GTEST_dexlayout_test_DEX_DEPS := ManyMethods
David Srbecky8c8f1482020-02-05 20:17:10 +0000220ART_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 -0700221ART_GTEST_dex2oat_image_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) Statics VerifierDeps
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700222ART_GTEST_exception_test_DEX_DEPS := ExceptionHandle
David Brazdil2da3cbb2019-01-30 16:17:50 +0000223ART_GTEST_hiddenapi_test_DEX_DEPS := HiddenApi HiddenApiStubs
David Brazdila5c3a802019-03-08 14:59:41 +0000224ART_GTEST_hidden_api_test_DEX_DEPS := HiddenApiSignatures Main MultiDex
Vladimir Markod79b37b2018-11-02 13:06:22 +0000225ART_GTEST_image_test_DEX_DEPS := ImageLayoutA ImageLayoutB DefaultMethods VerifySoftFailDuringClinit
Andreas Gampea1ff30f2016-09-27 12:19:45 -0700226ART_GTEST_imtable_test_DEX_DEPS := IMTA IMTB
Sebastien Hertz0462c4c2015-04-01 16:34:17 +0200227ART_GTEST_instrumentation_test_DEX_DEPS := Instrumentation
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700228ART_GTEST_jni_compiler_test_DEX_DEPS := MyClassNatives
Nicolas Geoffray928567b2018-08-01 10:21:12 +0100229ART_GTEST_jni_internal_test_DEX_DEPS := AllFields StaticLeafMethods MyClassNatives
Andreas Gampee1459ae2016-06-29 09:36:30 -0700230ART_GTEST_oat_file_assistant_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Calin Juravle36eb3132017-01-13 16:32:38 -0800231ART_GTEST_dexoptanalyzer_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Vladimir Markofdd46842020-03-25 14:57:17 +0000232ART_GTEST_image_space_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) Extension1 Extension2
David Srbecky8c8f1482020-02-05 20:17:10 +0000233ART_GTEST_oat_file_test_DEX_DEPS := Main MultiDex MainUncompressedAligned MultiDexUncompressedAligned MainStripped Nested MultiDexModifiedSecondary
Mathieu Chartier07ddb6f2015-11-05 11:16:34 -0800234ART_GTEST_oat_test_DEX_DEPS := Main
Roland Levillain1f130f12018-03-12 18:39:19 +0000235ART_GTEST_oat_writer_test_DEX_DEPS := Main
Nicolas Geoffray975b7742019-03-21 17:37:38 +0000236# two_runtimes_test build off dex2oat_environment_test, which does sanity checks on the following dex files.
237ART_GTEST_two_runtimes_test_DEX_DEPS := Main MainStripped Nested MultiDex MultiDexModifiedSecondary
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700238ART_GTEST_object_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY
239ART_GTEST_proxy_test_DEX_DEPS := Interfaces
240ART_GTEST_reflection_test_DEX_DEPS := Main NonStaticLeafMethods StaticLeafMethods
Calin Juravle877fd962016-01-05 14:29:29 +0000241ART_GTEST_profile_assistant_test_DEX_DEPS := ProfileTestMultiDex
Mathieu Chartierdb40eac2017-06-09 18:34:11 -0700242ART_GTEST_profile_compilation_info_test_DEX_DEPS := ManyMethods ProfileTestMultiDex
Nicolas Geoffraycaf8f4c2019-10-08 18:47:48 +0100243ART_GTEST_profile_boot_info_test_DEX_DEPS := ManyMethods ProfileTestMultiDex MultiDex
Nicolas Geoffray44078f92018-10-01 12:57:55 +0100244ART_GTEST_profiling_info_test_DEX_DEPS := ProfileTestMultiDex
Andreas Gampe0f01b582017-01-18 15:22:37 -0800245ART_GTEST_runtime_callbacks_test_DEX_DEPS := XandY
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700246ART_GTEST_stub_test_DEX_DEPS := AllFields
247ART_GTEST_transaction_test_DEX_DEPS := Transaction
Artem Udovichenkod9786b02015-10-14 16:36:55 +0300248ART_GTEST_type_lookup_table_test_DEX_DEPS := Lookup
Andreas Gampeae78c262017-02-01 20:40:44 -0800249ART_GTEST_unstarted_runtime_test_DEX_DEPS := Nested
Mathieu Chartier1ca68902017-04-18 11:26:22 -0700250ART_GTEST_heap_verification_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000251ART_GTEST_verifier_deps_test_DEX_DEPS := VerifierDeps VerifierDepsMulti MultiDex
Nicolas Geoffray01b70e82016-11-17 10:58:36 +0000252ART_GTEST_dex_to_dex_decompiler_test_DEX_DEPS := VerifierDeps DexToDexDecompiler
Vladimir Marko421087b2018-02-27 11:00:17 +0000253ART_GTEST_oatdump_app_test_DEX_DEPS := ProfileTestMultiDex
Nicolas Geoffray3ad2c2b2019-01-26 00:19:38 +0000254ART_GTEST_oatdump_test_DEX_DEPS := ProfileTestMultiDex
Andreas Gampeb5204f42019-06-25 12:39:15 -0700255ART_GTEST_reg_type_test_DEX_DEPS := Interfaces
Ian Rogersafd9acc2014-06-17 08:21:54 -0700256
David Srbecky928d28e2020-04-01 17:50:51 +0100257# Deprecated core.art dependencies.
258HOST_CORE_IMAGE_DEFAULT_32 :=
259HOST_CORE_IMAGE_DEFAULT_64 :=
260TARGET_CORE_IMAGE_DEFAULT_32 :=
261TARGET_CORE_IMAGE_DEFAULT_64 :=
262
Ian Rogersafd9acc2014-06-17 08:21:54 -0700263# The elf writer test has dependencies on core.oat.
Richard Uhler67e1dc52017-02-06 16:50:17 +0000264ART_GTEST_elf_writer_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
265ART_GTEST_elf_writer_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32)
Brian Carlstrom53463ea2014-11-09 14:11:51 -0800266
Nicolas Geoffray975b7742019-03-21 17:37:38 +0000267# The two_runtimes_test test has dependencies on core.oat.
268ART_GTEST_two_runtimes_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
269ART_GTEST_two_runtimes_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32)
270
Vladimir Marko672c0802019-07-26 13:03:13 +0100271# The transaction test has dependencies on core.oat.
272ART_GTEST_transaction_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
273ART_GTEST_transaction_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32)
274
Andreas Gampee1459ae2016-06-29 09:36:30 -0700275ART_GTEST_dex2oat_environment_tests_HOST_DEPS := \
Richard Uhlerbb00f812017-02-16 14:21:10 +0000276 $(HOST_CORE_IMAGE_optimizing_64) \
277 $(HOST_CORE_IMAGE_optimizing_32) \
278 $(HOST_CORE_IMAGE_interpreter_64) \
Vladimir Markoa497a392018-09-26 10:52:50 +0100279 $(HOST_CORE_IMAGE_interpreter_32)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700280ART_GTEST_dex2oat_environment_tests_TARGET_DEPS := \
Richard Uhlerbb00f812017-02-16 14:21:10 +0000281 $(TARGET_CORE_IMAGE_optimizing_64) \
282 $(TARGET_CORE_IMAGE_optimizing_32) \
283 $(TARGET_CORE_IMAGE_interpreter_64) \
Vladimir Markoa497a392018-09-26 10:52:50 +0100284 $(TARGET_CORE_IMAGE_interpreter_32)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700285
David Srbeckyec2cdf42017-12-08 16:21:25 +0000286ART_GTEST_oat_file_test_HOST_DEPS := \
David Brazdil3e8aae02019-03-26 18:48:02 +0000287 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
288 $(HOST_OUT_EXECUTABLES)/dex2oatd
David Srbeckyec2cdf42017-12-08 16:21:25 +0000289ART_GTEST_oat_file_test_TARGET_DEPS := \
David Brazdil3e8aae02019-03-26 18:48:02 +0000290 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Nicolas Geoffrayec64f202020-04-20 15:05:54 +0100291 dex2oatd.com.android.art.testing
David Srbeckyec2cdf42017-12-08 16:21:25 +0000292
Andreas Gampee1459ae2016-06-29 09:36:30 -0700293ART_GTEST_oat_file_assistant_test_HOST_DEPS := \
Richard Uhlerf51ac422016-07-08 09:22:33 -0700294 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700295ART_GTEST_oat_file_assistant_test_TARGET_DEPS := \
Richard Uhlerf51ac422016-07-08 09:22:33 -0700296 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700297
Calin Juravle36eb3132017-01-13 16:32:38 -0800298ART_GTEST_dexoptanalyzer_test_HOST_DEPS := \
299 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700300 $(HOST_OUT_EXECUTABLES)/dexoptanalyzerd
Calin Juravle36eb3132017-01-13 16:32:38 -0800301ART_GTEST_dexoptanalyzer_test_TARGET_DEPS := \
302 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100303 $(TESTING_ART_APEX) # For dexoptanalyzerd.
Andreas Gampee1459ae2016-06-29 09:36:30 -0700304
Richard Uhler84f50ae2017-02-06 15:12:45 +0000305ART_GTEST_image_space_test_HOST_DEPS := \
306 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
307ART_GTEST_image_space_test_TARGET_DEPS := \
308 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
309
Andreas Gampee1459ae2016-06-29 09:36:30 -0700310ART_GTEST_dex2oat_test_HOST_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800311 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700312 $(HOST_OUT_EXECUTABLES)/dex2oatd
Andreas Gampee1459ae2016-06-29 09:36:30 -0700313ART_GTEST_dex2oat_test_TARGET_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800314 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100315 $(TESTING_ART_APEX) # For dex2oatd.
Richard Uhler66d874d2015-01-15 09:37:19 -0800316
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700317ART_GTEST_dex2oat_image_test_HOST_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800318 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700319 $(HOST_OUT_EXECUTABLES)/dex2oatd
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700320ART_GTEST_dex2oat_image_test_TARGET_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800321 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100322 $(TESTING_ART_APEX) # For dex2oatd.
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700323
Vladimir Markod1f73512020-04-02 10:50:35 +0100324ART_GTEST_module_exclusion_test_HOST_DEPS := \
325 $(ART_GTEST_dex2oat_image_test_HOST_DEPS)
326ART_GTEST_module_exclusion_test_TARGET_DEPS := \
327 $(ART_GTEST_dex2oat_image_test_TARGET_DEPS)
328
Brian Carlstrom53463ea2014-11-09 14:11:51 -0800329# TODO: document why this is needed.
Richard Uhler67e1dc52017-02-06 16:50:17 +0000330ART_GTEST_proxy_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700331
David Sehr55232f12017-04-19 14:06:49 -0700332# The dexdiag test requires the dexdiag utility.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700333ART_GTEST_dexdiag_test_HOST_DEPS := $(HOST_OUT_EXECUTABLES)/dexdiag
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100334ART_GTEST_dexdiag_test_TARGET_DEPS := $(TESTING_ART_APEX) # For dexdiag.
David Sehr55232f12017-04-19 14:06:49 -0700335
Aart Bikcfbe53c2015-07-06 14:27:27 -0700336# The dexdump test requires an image and the dexdump utility.
Aart Bik22c26f52015-07-08 21:20:13 +0000337# TODO: rename into dexdump when migration completes
Aart Bikcfbe53c2015-07-06 14:27:27 -0700338ART_GTEST_dexdump_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000339 $(HOST_CORE_IMAGE_DEFAULT_64) \
340 $(HOST_CORE_IMAGE_DEFAULT_32) \
David Sehr4f215d12019-04-03 09:28:21 -0700341 $(HOST_OUT_EXECUTABLES)/dexdump
Aart Bikcfbe53c2015-07-06 14:27:27 -0700342ART_GTEST_dexdump_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000343 $(TARGET_CORE_IMAGE_DEFAULT_64) \
344 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffrayec64f202020-04-20 15:05:54 +0100345 dexdump.com.android.art.testing
Aart Bikcfbe53c2015-07-06 14:27:27 -0700346
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700347# The dexanalyze test requires an image and the dexanalyze utility.
348ART_GTEST_dexanalyze_test_HOST_DEPS := \
349 $(HOST_CORE_IMAGE_DEFAULT_64) \
350 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700351 $(HOST_OUT_EXECUTABLES)/dexanalyze
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700352ART_GTEST_dexanalyze_test_TARGET_DEPS := \
353 $(TARGET_CORE_IMAGE_DEFAULT_64) \
354 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffrayec64f202020-04-20 15:05:54 +0100355 dexanalyze.com.android.art.testing
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700356
Jeff Haoc3acfc52016-08-29 14:18:26 -0700357# The dexlayout test requires an image and the dexlayout utility.
358# TODO: rename into dexdump when migration completes
359ART_GTEST_dexlayout_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000360 $(HOST_CORE_IMAGE_DEFAULT_64) \
361 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700362 $(HOST_OUT_EXECUTABLES)/dexlayoutd \
David Sehr4f215d12019-04-03 09:28:21 -0700363 $(HOST_OUT_EXECUTABLES)/dexdump
Jeff Haoc3acfc52016-08-29 14:18:26 -0700364ART_GTEST_dexlayout_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000365 $(TARGET_CORE_IMAGE_DEFAULT_64) \
366 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffrayec64f202020-04-20 15:05:54 +0100367 dexlayoutd.com.android.art.testing \
368 dexdump.com.android.art.testing
Jeff Haoc3acfc52016-08-29 14:18:26 -0700369
Aart Bik3e40f4a2015-07-07 17:09:41 -0700370# The dexlist test requires an image and the dexlist utility.
Aart Bik3e40f4a2015-07-07 17:09:41 -0700371ART_GTEST_dexlist_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000372 $(HOST_CORE_IMAGE_DEFAULT_64) \
373 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700374 $(HOST_OUT_EXECUTABLES)/dexlist
Aart Bik3e40f4a2015-07-07 17:09:41 -0700375ART_GTEST_dexlist_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000376 $(TARGET_CORE_IMAGE_DEFAULT_64) \
377 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100378 $(TESTING_ART_APEX) # For dexlist.
Aart Bik3e40f4a2015-07-07 17:09:41 -0700379
Igor Murashkin37743352014-11-13 14:38:00 -0800380# The imgdiag test has dependencies on core.oat since it needs to load it during the test.
Andreas Gampec93b8b52014-12-19 23:12:25 -0800381# For the host, also add the installed tool (in the base size, that should suffice). For the
382# target, just the module is fine, the sync will happen late enough.
383ART_GTEST_imgdiag_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000384 $(HOST_CORE_IMAGE_DEFAULT_64) \
385 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700386 $(HOST_OUT_EXECUTABLES)/imgdiagd
Andreas Gampec93b8b52014-12-19 23:12:25 -0800387ART_GTEST_imgdiag_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000388 $(TARGET_CORE_IMAGE_DEFAULT_64) \
389 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Nicolas Geoffrayec64f202020-04-20 15:05:54 +0100390 imgdiagd.com.android.art.testing
Igor Murashkin37743352014-11-13 14:38:00 -0800391
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700392# Dex analyze test requires dexanalyze.
393ART_GTEST_dexanalyze_test_HOST_DEPS := \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700394 $(HOST_OUT_EXECUTABLES)/dexanalyze
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700395ART_GTEST_dexanalyze_test_TARGET_DEPS := \
Nicolas Geoffrayec64f202020-04-20 15:05:54 +0100396 dexanalyze.com.android.art.testing
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700397
Mathieu Chartierea216b32015-05-26 19:48:16 -0700398# Oatdump test requires an image and oatfile to dump.
399ART_GTEST_oatdump_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000400 $(HOST_CORE_IMAGE_DEFAULT_64) \
401 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700402 $(HOST_OUT_EXECUTABLES)/oatdumpd \
403 $(HOST_OUT_EXECUTABLES)/oatdumpds \
David Srbecky3b19de22019-04-12 16:07:51 +0100404 $(HOST_OUT_EXECUTABLES)/dexdump \
405 $(HOST_OUT_EXECUTABLES)/dex2oatd \
406 $(HOST_OUT_EXECUTABLES)/dex2oatds
Mathieu Chartierea216b32015-05-26 19:48:16 -0700407ART_GTEST_oatdump_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000408 $(TARGET_CORE_IMAGE_DEFAULT_64) \
409 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100410 $(TESTING_ART_APEX) # For oatdumpd, dexdump, dex2oatd.
Vladimir Marko1352f132017-04-28 15:28:29 +0100411ART_GTEST_oatdump_image_test_HOST_DEPS := $(ART_GTEST_oatdump_test_HOST_DEPS)
412ART_GTEST_oatdump_image_test_TARGET_DEPS := $(ART_GTEST_oatdump_test_TARGET_DEPS)
David Srbecky3b19de22019-04-12 16:07:51 +0100413ART_GTEST_oatdump_app_test_HOST_DEPS := $(ART_GTEST_oatdump_test_HOST_DEPS)
414ART_GTEST_oatdump_app_test_TARGET_DEPS := $(ART_GTEST_oatdump_test_TARGET_DEPS)
Mathieu Chartierea216b32015-05-26 19:48:16 -0700415
Calin Juravle2e2db782016-02-23 12:00:03 +0000416# Profile assistant tests requires profman utility.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700417ART_GTEST_profile_assistant_test_HOST_DEPS := $(HOST_OUT_EXECUTABLES)/profmand
Martin Stjernholm84e5bb92019-09-05 19:56:46 +0100418ART_GTEST_profile_assistant_test_TARGET_DEPS := $(TESTING_ART_APEX) # For profmand.
Calin Juravle2e2db782016-02-23 12:00:03 +0000419
David Brazdil2b9c35b2018-01-12 15:44:43 +0000420ART_GTEST_hiddenapi_test_HOST_DEPS := \
421 $(HOST_CORE_IMAGE_DEFAULT_64) \
422 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700423 $(HOST_OUT_EXECUTABLES)/hiddenapid
David Brazdil2b9c35b2018-01-12 15:44:43 +0000424
Ian Rogersafd9acc2014-06-17 08:21:54 -0700425# The path for which all the source files are relative, not actually the current directory.
Brian Carlstrom7940e442013-07-12 13:46:57 -0700426LOCAL_PATH := art
427
Colin Cross6e95dd52016-09-12 15:37:10 -0700428ART_TEST_MODULES := \
429 art_cmdline_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700430 art_compiler_host_tests \
Martin Stjernholm750bf042019-01-09 22:51:12 +0000431 art_compiler_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700432 art_dex2oat_tests \
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700433 art_dexanalyze_tests \
David Sehr55232f12017-04-19 14:06:49 -0700434 art_dexdiag_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700435 art_dexdump_tests \
436 art_dexlayout_tests \
437 art_dexlist_tests \
Calin Juravle36eb3132017-01-13 16:32:38 -0800438 art_dexoptanalyzer_tests \
David Brazdil2b9c35b2018-01-12 15:44:43 +0000439 art_hiddenapi_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700440 art_imgdiag_tests \
David Sehr67bf42e2018-02-26 16:43:04 -0800441 art_libartbase_tests \
Orion Hodson119733d2019-01-30 15:14:41 +0000442 art_libartpalette_tests \
Martin Stjernholmfdb2f602019-01-09 14:47:00 +0000443 art_libdexfile_external_tests \
Martin Stjernholm70ae00d2019-02-15 22:41:14 +0000444 art_libdexfile_support_static_tests \
Martin Stjernholm750bf042019-01-09 22:51:12 +0000445 art_libdexfile_support_tests \
David Sehr334b9d72018-02-12 18:27:56 -0800446 art_libdexfile_tests \
David Sehrd5f8de82018-04-27 14:12:03 -0700447 art_libprofile_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700448 art_oatdump_tests \
449 art_profman_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700450 art_runtime_compiler_tests \
Martin Stjernholm750bf042019-01-09 22:51:12 +0000451 art_runtime_tests \
Josh Gao1eac77e2018-02-26 15:54:41 -0800452 art_sigchain_tests \
Brian Carlstroma1ce1fe2014-02-24 23:23:58 -0800453
Jiyong Parka5992522020-01-07 16:55:09 +0900454ART_TARGET_GTEST_NAMES := $(foreach tm,$(ART_TEST_MODULES),\
455 $(foreach path,$(ART_TEST_LIST_device_$(TARGET_ARCH)_$(tm)),\
456 $(notdir $(path))\
457 )\
458)
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000459
Colin Cross6e95dd52016-09-12 15:37:10 -0700460ART_HOST_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\
Colin Cross124f8812016-09-15 20:57:47 -0700461 $(ART_TEST_LIST_host_$(ART_HOST_ARCH)_$(m)))
Alex Light50fa9932015-08-10 15:30:07 -0700462
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100463ifneq ($(HOST_PREFER_32_BIT),true)
4642ND_ART_HOST_GTEST_FILES += $(foreach m,$(ART_TEST_MODULES),\
465 $(ART_TEST_LIST_host_$(2ND_ART_HOST_ARCH)_$(m)))
466endif
467
Ian Rogersafd9acc2014-06-17 08:21:54 -0700468# Variables holding collections of gtest pre-requisits used to run a number of gtests.
469ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
470ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
471ART_TEST_HOST_GTEST_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700472ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
473ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
474ART_TEST_TARGET_GTEST_RULES :=
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100475ART_TEST_HOST_GTEST_DEPENDENCIES :=
Nicolas Geoffray17b1dcb2018-10-12 15:09:42 +0100476ART_TEST_TARGET_GTEST_DEPENDENCIES :=
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700477
Nicolas Geoffray96a37c82014-10-29 23:50:40 +0000478ART_GTEST_TARGET_ANDROID_ROOT := '/system'
479ifneq ($(ART_TEST_ANDROID_ROOT),)
480 ART_GTEST_TARGET_ANDROID_ROOT := $(ART_TEST_ANDROID_ROOT)
481endif
482
Victor Chang64611242019-07-05 16:32:41 +0100483ART_GTEST_TARGET_ANDROID_I18N_ROOT := '/apex/com.android.i18n'
484ifneq ($(ART_TEST_ANDROID_I18N_ROOT),)
485 ART_GTEST_TARGET_ANDROID_I18N_ROOT := $(ART_TEST_ANDROID_I18N_ROOT)
486endif
487
Martin Stjernholme58624f2019-09-20 15:53:40 +0100488ART_GTEST_TARGET_ANDROID_ART_ROOT := '/apex/com.android.art'
489ifneq ($(ART_TEST_ANDROID_ART_ROOT),)
490 ART_GTEST_TARGET_ANDROID_ART_ROOT := $(ART_TEST_ANDROID_ART_ROOT)
Roland Levillain7c777f82019-01-10 18:00:37 +0000491endif
Neil Fuller26c43772018-11-23 17:56:43 +0000492
Neil Fuller26a5dd62019-03-13 15:16:35 +0000493ART_GTEST_TARGET_ANDROID_TZDATA_ROOT := '/apex/com.android.tzdata'
494ifneq ($(ART_TEST_ANDROID_TZDATA_ROOT),)
495 ART_GTEST_TARGET_ANDROID_TZDATA_ROOT := $(ART_TEST_ANDROID_TZDATA_ROOT)
496endif
497
Ian Rogersafd9acc2014-06-17 08:21:54 -0700498# Define make rules for a host gtests.
499# $(1): gtest name - the name of the test we're building such as leb128_test.
Colin Cross6e95dd52016-09-12 15:37:10 -0700500# $(2): path relative to $OUT to the test binary
501# $(3): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
Ian Rogersafd9acc2014-06-17 08:21:54 -0700502define define-art-gtest-rule-host
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700503 gtest_suffix := $(1)$$($(3)ART_PHONY_TEST_HOST_SUFFIX)
504 gtest_rule := test-art-host-gtest-$$(gtest_suffix)
505 gtest_output := $(call intermediates-dir-for,PACKAGING,art-host-gtest,HOST)/$$(gtest_suffix).xml
Dan Willemsen0ef94572018-10-21 19:00:56 +0000506 $$(call dist-for-goals,$$(gtest_rule),$$(gtest_output):gtest/$$(gtest_suffix))
Colin Cross83072062019-10-02 16:06:58 -0700507 gtest_exe := $(2)
Ian Rogers665de8a2014-06-24 21:34:09 -0700508 # Dependencies for all host gtests.
Nicolas Geoffrayd31cff12020-03-27 14:29:45 +0000509 gtest_deps := $$(ART_HOST_DEX_DEPENDENCIES) \
David Srbecky0c0f3022020-02-13 15:53:01 +0000510 $$(HOST_BOOT_IMAGE_JARS) \
Victor Chang65ae6692019-10-11 14:17:21 +0100511 $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libicu_jni$$(ART_HOST_SHLIB_EXTENSION) \
Colin Cross6e95dd52016-09-12 15:37:10 -0700512 $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libjavacore$$(ART_HOST_SHLIB_EXTENSION) \
513 $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libopenjdkd$$(ART_HOST_SHLIB_EXTENSION) \
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100514 $$(gtest_exe) \
515 $$(ART_GTEST_$(1)_HOST_DEPS) \
Andreas Gampe28fd62a2018-12-12 15:15:22 -0800516 $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_HOST_GTEST_$(file)_DEX)) \
Andreas Gampe148c1602019-06-10 16:47:46 -0700517 $(HOST_OUT_EXECUTABLES)/signal_dumper
Ian Rogers665de8a2014-06-24 21:34:09 -0700518
David Srbecky403384e2020-03-27 12:24:36 +0000519 # Note: The "host arch" Make variables defined in build/make/core/envsetup.mk
520 # and art/build/Android.common.mk have different meanings:
521 #
522 # * In build/make/core/envsetup.mk:
523 # * HOST_ARCH := x86_64
524 # * HOST_2ND_ARCH := x86
525 #
526 # * In art/build/Android.common.mk:
527 # * When `HOST_PREFER_32_BIT` is `true`:
528 # * ART_HOST_ARCH := x86
529 # * 2ND_ART_HOST_ARCH :=
530 # * 2ND_HOST_ARCH :=
531 # * Otherwise:
532 # * ART_HOST_ARCH := x86_64
533 # * 2ND_ART_HOST_ARCH := x86
534 # * 2ND_HOST_ARCH := x86
535 ifeq ($(HOST_PREFER_32_BIT),true)
536 gtest_deps += $$(2ND_HOST_BOOT_IMAGE) # Depend on the 32-bit boot image.
537 else
538 gtest_deps += $$($(3)HOST_BOOT_IMAGE)
539 endif
540
Christopher Ferrisfc5e2ef2020-05-08 00:08:42 +0000541 ART_TEST_HOST_GTEST_DEPENDENCIES += $$(gtest_deps)
542
Andreas Gampe6acebf42018-01-22 22:15:43 -0800543.PHONY: $$(gtest_rule)
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700544$$(gtest_rule): $$(gtest_output)
545
546# Re-run the tests, even if nothing changed. Until the build system has a dedicated "no cache"
547# option, claim to write a file that is never produced.
548$$(gtest_output): .KATI_IMPLICIT_OUTPUTS := $$(gtest_output)-nocache
549$$(gtest_output): NAME := $$(gtest_rule)
Andreas Gampe6acebf42018-01-22 22:15:43 -0800550ifeq (,$(SANITIZE_HOST))
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700551$$(gtest_output): $$(gtest_exe) $$(gtest_deps)
Andreas Gampe28fd62a2018-12-12 15:15:22 -0800552 $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && \
Andreas Gampe0df2aba2019-06-10 16:53:55 -0700553 timeout --foreground -k 120s 2400s $(HOST_OUT_EXECUTABLES)/signal_dumper -s 15 \
Christopher Ferrisfc5e2ef2020-05-08 00:08:42 +0000554 $$< --gtest_output=xml:$$@ && \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700555 $$(call ART_TEST_PASSED,$$(NAME))) || $$(call ART_TEST_FAILED,$$(NAME))
Andreas Gampe6acebf42018-01-22 22:15:43 -0800556else
Andreas Gampe03858052017-05-01 08:17:24 -0700557# Note: envsetup currently exports ASAN_OPTIONS=detect_leaks=0 to suppress leak detection, as some
558# build tools (e.g., ninja) intentionally leak. We want leak checks when we run our tests, so
559# override ASAN_OPTIONS. b/37751350
Andreas Gampe6acebf42018-01-22 22:15:43 -0800560# Note 2: Under sanitization, also capture the output, and run it through the stack tool on failure
561# (with the x86-64 ABI, as this allows symbolization of both x86 and x86-64). We don't do this in
562# general as it loses all the color output, and we have our own symbolization step when not running
563# under ASAN.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700564$$(gtest_output): $$(gtest_exe) $$(gtest_deps)
565 $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && set -o pipefail && \
Andreas Gampe0df2aba2019-06-10 16:53:55 -0700566 ASAN_OPTIONS=detect_leaks=1 timeout --foreground -k 120s 3600s \
567 $(HOST_OUT_EXECUTABLES)/signal_dumper -s 15 \
Andreas Gampe28fd62a2018-12-12 15:15:22 -0800568 $$< --gtest_output=xml:$$@ 2>&1 | tee $$<.tmp.out >&2 && \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700569 { $$(call ART_TEST_PASSED,$$(NAME)) ; rm $$<.tmp.out ; }) || \
Andreas Gampec05fd3f2018-01-23 14:22:07 -0800570 ( grep -q AddressSanitizer $$<.tmp.out && export ANDROID_BUILD_TOP=`pwd` && \
Andreas Gampe6acebf42018-01-22 22:15:43 -0800571 { echo "ABI: 'x86_64'" | cat - $$<.tmp.out | development/scripts/stack | tail -n 3000 ; } ; \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700572 rm $$<.tmp.out ; $$(call ART_TEST_FAILED,$$(NAME)))
Andreas Gampe6acebf42018-01-22 22:15:43 -0800573endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700574
Colin Cross6e95dd52016-09-12 15:37:10 -0700575 ART_TEST_HOST_GTEST$$($(3)ART_PHONY_TEST_HOST_SUFFIX)_RULES += $$(gtest_rule)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700576 ART_TEST_HOST_GTEST_RULES += $$(gtest_rule)
577 ART_TEST_HOST_GTEST_$(1)_RULES += $$(gtest_rule)
578
Andreas Gampe3c0bb312015-02-19 10:02:19 -0800579
Ian Rogersafd9acc2014-06-17 08:21:54 -0700580 # Clear locally defined variables.
Ian Rogers665de8a2014-06-24 21:34:09 -0700581 gtest_deps :=
Roland Levillain76cfe612017-10-30 13:14:28 +0000582 gtest_exe :=
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700583 gtest_output :=
Roland Levillain76cfe612017-10-30 13:14:28 +0000584 gtest_rule :=
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700585 gtest_suffix :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700586endef # define-art-gtest-rule-host
587
Jiyong Parkeac38a12020-01-03 17:56:33 +0900588# Add the additional dependencies for the specified test
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000589# $(1): test name
Jiyong Parkeac38a12020-01-03 17:56:33 +0900590define add-art-gtest-dependencies
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000591 # Note that, both the primary and the secondary arches of the libs are built by depending
592 # on the module name.
593 gtest_deps := \
594 $$(ART_GTEST_$(1)_TARGET_DEPS) \
595 $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_TARGET_GTEST_$(file)_DEX)) \
Brian Carlstrom0796af02011-10-12 14:31:45 -0700596
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000597 ART_TEST_TARGET_GTEST_DEPENDENCIES += $$(gtest_deps)
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100598
599 # Clear locally defined variables.
Nicolas Geoffray340fb0b2019-12-30 10:36:22 +0000600 gtest_deps :=
Jiyong Parkeac38a12020-01-03 17:56:33 +0900601endef # add-art-gtest-dependencies
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100602
603# $(1): file name
604# $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
605define define-art-gtest-host
606 art_gtest_filename := $(1)
607
608 include $$(CLEAR_VARS)
609 art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename)))
610 ifndef ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES
611 ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100612 endif
613 $$(eval $$(call define-art-gtest-rule-host,$$(art_gtest_name),$$(art_gtest_filename),$(2)))
614
615 # Clear locally defined variables.
616 art_gtest_filename :=
617 art_gtest_name :=
618endef # define-art-gtest-host
619
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100620# Define the rules to build and run gtests for both archs on host.
621# $(1): test name
622define define-art-gtest-host-both
623 art_gtest_name := $(1)
624
Ian Rogersafd9acc2014-06-17 08:21:54 -0700625.PHONY: test-art-host-gtest-$$(art_gtest_name)
626test-art-host-gtest-$$(art_gtest_name): $$(ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES)
627 $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
Ian Rogersd912e5c2013-11-13 12:40:11 -0800628
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100629 # Clear now unused variables.
630 ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700631 art_gtest_name :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100632endef # define-art-gtest-host-both
Alex Light50fa9932015-08-10 15:30:07 -0700633
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700634ifeq ($(ART_BUILD_TARGET),true)
Jiyong Parkeac38a12020-01-03 17:56:33 +0900635 $(foreach name,$(ART_TARGET_GTEST_NAMES), $(eval $(call add-art-gtest-dependencies,$(name),)))
636 ART_TEST_TARGET_GTEST_DEPENDENCIES += \
Victor Changd20e51d2020-05-05 16:01:19 +0100637 libicu_jni.com.android.i18n \
Nicolas Geoffrayec64f202020-04-20 15:05:54 +0100638 libjavacore.com.android.art.testing \
639 libopenjdkd.com.android.art.testing \
Nicolas Geoffray31e0dc22020-03-20 15:48:09 +0000640 com.android.art.testing \
641 com.android.conscrypt
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700642endif
Ian Rogersc5f17732014-06-05 20:48:42 -0700643ifeq ($(ART_BUILD_HOST),true)
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100644 $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),)))
645 ifneq ($(HOST_PREFER_32_BIT),true)
646 $(foreach file,$(2ND_ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),2ND_)))
647 endif
648 # Rules to run the different architecture versions of the gtest.
649 $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host-both,$$(notdir $$(basename $$(file))))))
Brian Carlstrom07d579f2011-07-27 13:31:51 -0700650endif
Tsu Chiang Chuangec245a42014-05-15 21:16:21 -0700651
652# Used outside the art project to get a list of the current tests
653RUNTIME_TARGET_GTEST_MAKE_TARGETS :=
Jiyong Parkeac38a12020-01-03 17:56:33 +0900654art_target_gtest_files := $(foreach m,$(ART_TEST_MODULES),$(ART_TEST_LIST_device_$(TARGET_ARCH)_$(m)))
Dan Willemsen7955f5e2020-01-28 12:18:49 -0800655# If testdir == testfile, assume this is not a test_per_src module
Jiyong Parkeac38a12020-01-03 17:56:33 +0900656$(foreach file,$(art_target_gtest_files),\
Dan Willemsen7955f5e2020-01-28 12:18:49 -0800657 $(eval testdir := $$(notdir $$(patsubst %/,%,$$(dir $$(file)))))\
658 $(eval testfile := $$(notdir $$(basename $$(file))))\
659 $(if $(call streq,$(testdir),$(testfile)),,\
660 $(eval testfile := $(testdir)_$(testfile)))\
661 $(eval RUNTIME_TARGET_GTEST_MAKE_TARGETS += $(testfile))\
Jiyong Parkeac38a12020-01-03 17:56:33 +0900662)
Dan Willemsen7955f5e2020-01-28 12:18:49 -0800663testdir :=
664testfile :=
Jiyong Parkeac38a12020-01-03 17:56:33 +0900665art_target_gtest_files :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700666
Roland Levillain05e34f42018-05-24 13:19:05 +0000667# Define all the combinations of host/target and suffix such as:
668# test-art-host-gtest or test-art-host-gtest64
Ian Rogersafd9acc2014-06-17 08:21:54 -0700669# $(1): host or target
670# $(2): HOST or TARGET
Roland Levillain05e34f42018-05-24 13:19:05 +0000671# $(3): undefined, 32 or 64
Ian Rogersafd9acc2014-06-17 08:21:54 -0700672define define-test-art-gtest-combination
673 ifeq ($(1),host)
674 ifneq ($(2),HOST)
675 $$(error argument mismatch $(1) and ($2))
676 endif
677 else
678 ifneq ($(1),target)
679 $$(error found $(1) expected host or target)
680 endif
681 ifneq ($(2),TARGET)
682 $$(error argument mismatch $(1) and ($2))
683 endif
684 endif
685
Roland Levillain05e34f42018-05-24 13:19:05 +0000686 rule_name := test-art-$(1)-gtest$(3)
687 dependencies := $$(ART_TEST_$(2)_GTEST$(3)_RULES)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700688
689.PHONY: $$(rule_name)
Søren Gjesse46845f62019-12-10 09:14:16 +0100690$$(rule_name): $$(dependencies) d8
Ian Rogersafd9acc2014-06-17 08:21:54 -0700691 $(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
692
693 # Clear locally defined variables.
694 rule_name :=
695 dependencies :=
696endef # define-test-art-gtest-combination
697
Roland Levillain05e34f42018-05-24 13:19:05 +0000698$(eval $(call define-test-art-gtest-combination,target,TARGET,))
699$(eval $(call define-test-art-gtest-combination,target,TARGET,$(ART_PHONY_TEST_TARGET_SUFFIX)))
Dan Willemsen5d2dbf82018-04-11 12:31:11 -0700700ifdef 2ND_ART_PHONY_TEST_TARGET_SUFFIX
Roland Levillain05e34f42018-05-24 13:19:05 +0000701$(eval $(call define-test-art-gtest-combination,target,TARGET,$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700702endif
Roland Levillain05e34f42018-05-24 13:19:05 +0000703$(eval $(call define-test-art-gtest-combination,host,HOST,))
704$(eval $(call define-test-art-gtest-combination,host,HOST,$(ART_PHONY_TEST_HOST_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700705ifneq ($(HOST_PREFER_32_BIT),true)
Roland Levillain05e34f42018-05-24 13:19:05 +0000706$(eval $(call define-test-art-gtest-combination,host,HOST,$(2ND_ART_PHONY_TEST_HOST_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700707endif
708
709# Clear locally defined variables.
710define-art-gtest-rule-target :=
711define-art-gtest-rule-host :=
712define-art-gtest :=
713define-test-art-gtest-combination :=
714RUNTIME_GTEST_COMMON_SRC_FILES :=
715COMPILER_GTEST_COMMON_SRC_FILES :=
716RUNTIME_GTEST_TARGET_SRC_FILES :=
717RUNTIME_GTEST_HOST_SRC_FILES :=
718COMPILER_GTEST_TARGET_SRC_FILES :=
719COMPILER_GTEST_HOST_SRC_FILES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700720ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
721ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
722ART_TEST_HOST_GTEST_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700723ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
724ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
725ART_TEST_TARGET_GTEST_RULES :=
Nicolas Geoffray96a37c82014-10-29 23:50:40 +0000726ART_GTEST_TARGET_ANDROID_ROOT :=
Victor Chang64611242019-07-05 16:32:41 +0100727ART_GTEST_TARGET_ANDROID_I18N_ROOT :=
Martin Stjernholme58624f2019-09-20 15:53:40 +0100728ART_GTEST_TARGET_ANDROID_ART_ROOT :=
Neil Fuller26a5dd62019-03-13 15:16:35 +0000729ART_GTEST_TARGET_ANDROID_TZDATA_ROOT :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700730ART_GTEST_class_linker_test_DEX_DEPS :=
Mathieu Chartierdb70ce52016-12-12 11:06:59 -0800731ART_GTEST_class_table_test_DEX_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700732ART_GTEST_compiler_driver_test_DEX_DEPS :=
733ART_GTEST_dex_file_test_DEX_DEPS :=
734ART_GTEST_exception_test_DEX_DEPS :=
735ART_GTEST_elf_writer_test_HOST_DEPS :=
736ART_GTEST_elf_writer_test_TARGET_DEPS :=
Andreas Gampea1ff30f2016-09-27 12:19:45 -0700737ART_GTEST_imtable_test_DEX_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700738ART_GTEST_jni_compiler_test_DEX_DEPS :=
739ART_GTEST_jni_internal_test_DEX_DEPS :=
Richard Uhler66d874d2015-01-15 09:37:19 -0800740ART_GTEST_oat_file_assistant_test_DEX_DEPS :=
741ART_GTEST_oat_file_assistant_test_HOST_DEPS :=
742ART_GTEST_oat_file_assistant_test_TARGET_DEPS :=
Mathieu Chartier0be7fa72018-04-12 10:13:29 -0700743ART_GTEST_dexanalyze_test_DEX_DEPS :=
Calin Juravle36eb3132017-01-13 16:32:38 -0800744ART_GTEST_dexoptanalyzer_test_DEX_DEPS :=
745ART_GTEST_dexoptanalyzer_test_HOST_DEPS :=
746ART_GTEST_dexoptanalyzer_test_TARGET_DEPS :=
Richard Uhler84f50ae2017-02-06 15:12:45 +0000747ART_GTEST_image_space_test_DEX_DEPS :=
748ART_GTEST_image_space_test_HOST_DEPS :=
749ART_GTEST_image_space_test_TARGET_DEPS :=
Andreas Gampee1459ae2016-06-29 09:36:30 -0700750ART_GTEST_dex2oat_test_DEX_DEPS :=
751ART_GTEST_dex2oat_test_HOST_DEPS :=
752ART_GTEST_dex2oat_test_TARGET_DEPS :=
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700753ART_GTEST_dex2oat_image_test_DEX_DEPS :=
754ART_GTEST_dex2oat_image_test_HOST_DEPS :=
755ART_GTEST_dex2oat_image_test_TARGET_DEPS :=
Vladimir Markod1f73512020-04-02 10:50:35 +0100756ART_GTEST_module_exclusion_test_HOST_DEPS :=
757ART_GTEST_module_exclusion_test_TARGET_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700758ART_GTEST_object_test_DEX_DEPS :=
759ART_GTEST_proxy_test_DEX_DEPS :=
760ART_GTEST_reflection_test_DEX_DEPS :=
761ART_GTEST_stub_test_DEX_DEPS :=
762ART_GTEST_transaction_test_DEX_DEPS :=
Andreas Gampee1459ae2016-06-29 09:36:30 -0700763ART_GTEST_dex2oat_environment_tests_DEX_DEPS :=
Mathieu Chartier1ca68902017-04-18 11:26:22 -0700764ART_GTEST_heap_verification_test_DEX_DEPS :=
David Brazdilca3c8c32016-09-06 14:04:48 +0100765ART_GTEST_verifier_deps_test_DEX_DEPS :=
Ian Rogers1a2f84e2014-07-07 16:05:18 -0700766$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_TARGET_GTEST_$(dir)_DEX :=))
767$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_HOST_GTEST_$(dir)_DEX :=))
Richard Uhler66d874d2015-01-15 09:37:19 -0800768ART_TEST_HOST_GTEST_MainStripped_DEX :=
769ART_TEST_TARGET_GTEST_MainStripped_DEX :=
David Srbecky8c8f1482020-02-05 20:17:10 +0000770ART_TEST_HOST_GTEST_MainUncompressedAligned_DEX :=
771ART_TEST_TARGET_GTEST_MainUncompressedAligned_DEX :=
Mathieu Chartier700a9852018-02-06 18:27:38 -0800772ART_TEST_HOST_GTEST_EmptyUncompressed_DEX :=
773ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX :=
David Brazdilca3c8c32016-09-06 14:04:48 +0100774ART_TEST_GTEST_VerifierDeps_SRC :=
775ART_TEST_HOST_GTEST_VerifierDeps_DEX :=
David Brazdilf906f122016-09-16 16:33:31 +0100776ART_TEST_TARGET_GTEST_VerifierDeps_DEX :=
Vladimir Markod79b37b2018-11-02 13:06:22 +0000777ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC :=
778ART_TEST_HOST_GTEST_VerifySoftFailDuringClinit_DEX :=
779ART_TEST_TARGET_GTEST_VerifySoftFailDuringClinit_DEX :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700780GTEST_DEX_DIRECTORIES :=
Brian Carlstrom532714a2014-06-25 02:15:31 -0700781LOCAL_PATH :=