blob: c6fdf27525c841c1fb6529ef3e21f377b67dfb73 [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 \
Mathieu Chartier496577f2016-09-20 15:33:31 -070041 ImageLayoutA \
42 ImageLayoutB \
Andreas Gampea1ff30f2016-09-27 12:19:45 -070043 IMTA \
44 IMTB \
Sebastien Hertz0462c4c2015-04-01 16:34:17 +020045 Instrumentation \
Ian Rogersafd9acc2014-06-17 08:21:54 -070046 Interfaces \
Artem Udovichenkod9786b02015-10-14 16:36:55 +030047 Lookup \
Ian Rogersafd9acc2014-06-17 08:21:54 -070048 Main \
Mathieu Chartierd00e02b2017-05-24 12:04:13 -070049 ManyMethods \
Narayan Kamath25352fc2016-08-03 12:46:58 +010050 MethodTypes \
Richard Uhler66d874d2015-01-15 09:37:19 -080051 MultiDex \
Richard Uhler67ff7d12015-05-14 13:21:13 -070052 MultiDexModifiedSecondary \
Ian Rogersafd9acc2014-06-17 08:21:54 -070053 MyClass \
54 MyClassNatives \
55 Nested \
56 NonStaticLeafMethods \
Mathieu Chartier279ac5c2016-09-08 17:34:25 -070057 Packages \
Ian Rogersafd9acc2014-06-17 08:21:54 -070058 ProtoCompare \
59 ProtoCompare2 \
Calin Juravle877fd962016-01-05 14:29:29 +000060 ProfileTestMultiDex \
Ian Rogersafd9acc2014-06-17 08:21:54 -070061 StaticLeafMethods \
62 Statics \
63 StaticsFromCode \
64 Transaction \
65 XandY
66
67# Create build rules for each dex file recording the dependency.
68$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval $(call build-art-test-dex,art-gtest,$(dir), \
Ian Rogers1a2f84e2014-07-07 16:05:18 -070069 $(ART_TARGET_NATIVETEST_OUT),art/build/Android.gtest.mk,ART_TEST_TARGET_GTEST_$(dir)_DEX, \
70 ART_TEST_HOST_GTEST_$(dir)_DEX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -070071
Richard Uhler66d874d2015-01-15 09:37:19 -080072# Create rules for MainStripped, a copy of Main with the classes.dex stripped
73# for the oat file assistant tests.
74ART_TEST_HOST_GTEST_MainStripped_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
75ART_TEST_TARGET_GTEST_MainStripped_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
76
Nicolas Geoffrayf3075272018-01-08 12:41:19 +000077# Create rules for MainUncompressed, a copy of Main with the classes.dex uncompressed
78# for the dex2oat tests.
79ART_TEST_HOST_GTEST_MainUncompressed_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))Uncompressed$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
80ART_TEST_TARGET_GTEST_MainUncompressed_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))Uncompressed$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
81
Mathieu Chartier700a9852018-02-06 18:27:38 -080082# Create rules for UncompressedEmpty, a classes.dex that is empty and uncompressed
83# for the dex2oat tests.
84ART_TEST_HOST_GTEST_EmptyUncompressed_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))EmptyUncompressed$(suffix $(ART_TEST_HOST_GTEST_Main_DEX))
85ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))EmptyUncompressed$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX))
86
Andreas Gampefc604a72018-02-08 15:43:37 -080087# Create rules for MultiDexUncompressed, a copy of MultiDex with the classes.dex uncompressed
88# for the OatFile tests.
89ART_TEST_HOST_GTEST_MultiDexUncompressed_DEX := $(basename $(ART_TEST_HOST_GTEST_MultiDex_DEX))Uncompressed$(suffix $(ART_TEST_HOST_GTEST_MultiDex_DEX))
90ART_TEST_TARGET_GTEST_MultiDexUncompressed_DEX := $(basename $(ART_TEST_TARGET_GTEST_MultiDex_DEX))Uncompressed$(suffix $(ART_TEST_TARGET_GTEST_MultiDex_DEX))
91
Dan Willemsen17769622018-04-06 13:26:36 -070092ifdef ART_TEST_HOST_GTEST_Main_DEX
Richard Uhler66d874d2015-01-15 09:37:19 -080093$(ART_TEST_HOST_GTEST_MainStripped_DEX): $(ART_TEST_HOST_GTEST_Main_DEX)
94 cp $< $@
95 $(call dexpreopt-remove-classes.dex,$@)
Dan Willemsen17769622018-04-06 13:26:36 -070096endif
Richard Uhler66d874d2015-01-15 09:37:19 -080097
Dan Willemsen17769622018-04-06 13:26:36 -070098ifdef ART_TEST_TARGET_GTEST_Main_DEX
Richard Uhler66d874d2015-01-15 09:37:19 -080099$(ART_TEST_TARGET_GTEST_MainStripped_DEX): $(ART_TEST_TARGET_GTEST_Main_DEX)
100 cp $< $@
101 $(call dexpreopt-remove-classes.dex,$@)
Dan Willemsen17769622018-04-06 13:26:36 -0700102endif
Richard Uhler66d874d2015-01-15 09:37:19 -0800103
Dan Willemsen17769622018-04-06 13:26:36 -0700104ifdef ART_TEST_HOST_GTEST_Main_DEX
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000105$(ART_TEST_HOST_GTEST_MainUncompressed_DEX): $(ART_TEST_HOST_GTEST_Main_DEX) $(ZIPALIGN)
106 cp $< $@
107 $(call uncompress-dexs, $@)
108 $(call align-package, $@)
Dan Willemsen17769622018-04-06 13:26:36 -0700109endif
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000110
Dan Willemsen17769622018-04-06 13:26:36 -0700111ifdef ART_TEST_TARGET_GTEST_Main_DEX
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000112$(ART_TEST_TARGET_GTEST_MainUncompressed_DEX): $(ART_TEST_TARGET_GTEST_Main_DEX) $(ZIPALIGN)
113 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_HOST_GTEST_Main_DEX
Mathieu Chartier700a9852018-02-06 18:27:38 -0800119$(ART_TEST_HOST_GTEST_EmptyUncompressed_DEX): $(ZIPALIGN)
120 touch $(dir $@)classes.dex
121 zip -j -qD -X -0 $@ $(dir $@)classes.dex
122 rm $(dir $@)classes.dex
Dan Willemsen17769622018-04-06 13:26:36 -0700123endif
Mathieu Chartier700a9852018-02-06 18:27:38 -0800124
Dan Willemsen17769622018-04-06 13:26:36 -0700125ifdef ART_TEST_TARGET_GTEST_Main_DEX
Mathieu Chartier700a9852018-02-06 18:27:38 -0800126$(ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX): $(ZIPALIGN)
127 touch $(dir $@)classes.dex
128 zip -j -qD -X -0 $@ $(dir $@)classes.dex
129 rm $(dir $@)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_HOST_GTEST_MultiDex_DEX
Andreas Gampefc604a72018-02-08 15:43:37 -0800133$(ART_TEST_HOST_GTEST_MultiDexUncompressed_DEX): $(ART_TEST_HOST_GTEST_MultiDex_DEX) $(ZIPALIGN)
134 cp $< $@
135 $(call uncompress-dexs, $@)
136 $(call align-package, $@)
Dan Willemsen17769622018-04-06 13:26:36 -0700137endif
Andreas Gampefc604a72018-02-08 15:43:37 -0800138
Dan Willemsen17769622018-04-06 13:26:36 -0700139ifdef ART_TEST_TARGET_GTEST_MultiDex_DEX
Andreas Gampefc604a72018-02-08 15:43:37 -0800140$(ART_TEST_TARGET_GTEST_MultiDexUncompressed_DEX): $(ART_TEST_TARGET_GTEST_MultiDex_DEX) $(ZIPALIGN)
141 cp $< $@
142 $(call uncompress-dexs, $@)
143 $(call align-package, $@)
Dan Willemsen17769622018-04-06 13:26:36 -0700144endif
Andreas Gampefc604a72018-02-08 15:43:37 -0800145
David Brazdilca3c8c32016-09-06 14:04:48 +0100146ART_TEST_GTEST_VerifierDeps_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifierDeps/*.smali))
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000147ART_TEST_GTEST_VerifierDepsMulti_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifierDepsMulti/*.smali))
David Brazdilca3c8c32016-09-06 14:04:48 +0100148ART_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 +0100149ART_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 +0000150ART_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))
151ART_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 +0100152
153$(ART_TEST_HOST_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700154 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
David Brazdilca3c8c32016-09-06 14:04:48 +0100155
David Brazdilf906f122016-09-16 16:33:31 +0100156$(ART_TEST_TARGET_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700157 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
David Brazdilf906f122016-09-16 16:33:31 +0100158
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000159$(ART_TEST_HOST_GTEST_VerifierDepsMulti_DEX): $(ART_TEST_GTEST_VerifierDepsMulti_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700160 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000161
162$(ART_TEST_TARGET_GTEST_VerifierDepsMulti_DEX): $(ART_TEST_GTEST_VerifierDepsMulti_SRC) $(HOST_OUT_EXECUTABLES)/smali
Ben Gruver14fc9db2017-04-28 15:30:49 -0700163 $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^)
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000164
Ian Rogersafd9acc2014-06-17 08:21:54 -0700165# Dex file dependencies for each gtest.
David Sehr139512d2018-02-08 15:44:50 -0800166ART_GTEST_art_dex_file_loader_test_DEX_DEPS := GetMethodSignature Main Nested MultiDex
Andreas Gampecac31ad2017-11-06 20:01:17 -0800167ART_GTEST_dex2oat_environment_tests_DEX_DEPS := Main MainStripped MultiDex MultiDexModifiedSecondary MyClassNatives Nested VerifierDeps VerifierDepsMulti
Andreas Gampee1459ae2016-06-29 09:36:30 -0700168
Mathieu Chartier93764b82017-07-17 14:51:53 -0700169ART_GTEST_atomic_dex_ref_map_test_DEX_DEPS := Interfaces
Calin Juravlecdd49122017-07-05 20:09:53 -0700170ART_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 -0700171ART_GTEST_class_loader_context_test_DEX_DEPS := Main MultiDex MyClass ForClassLoaderA ForClassLoaderB ForClassLoaderC ForClassLoaderD
Mathieu Chartierdb70ce52016-12-12 11:06:59 -0800172ART_GTEST_class_table_test_DEX_DEPS := XandY
Calin Juravle877fd962016-01-05 14:29:29 +0000173ART_GTEST_compiler_driver_test_DEX_DEPS := AbstractMethod StaticLeafMethods ProfileTestMultiDex
Narayan Kamath25352fc2016-08-03 12:46:58 +0100174ART_GTEST_dex_cache_test_DEX_DEPS := Main Packages MethodTypes
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700175ART_GTEST_dexanalyze_test_DEX_DEPS := MultiDex
Mathieu Chartierd00e02b2017-05-24 12:04:13 -0700176ART_GTEST_dexlayout_test_DEX_DEPS := ManyMethods
Mathieu Chartier700a9852018-02-06 18:27:38 -0800177ART_GTEST_dex2oat_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) ManyMethods Statics VerifierDeps MainUncompressed EmptyUncompressed
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700178ART_GTEST_dex2oat_image_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) Statics VerifierDeps
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700179ART_GTEST_exception_test_DEX_DEPS := ExceptionHandle
David Brazdil2b9c35b2018-01-12 15:44:43 +0000180ART_GTEST_hiddenapi_test_DEX_DEPS := HiddenApi
Mathew Inwood7d74ef52018-03-16 14:18:33 +0000181ART_GTEST_hidden_api_test_DEX_DEPS := HiddenApiSignatures
Artem Udovichenkob3f2b5c2017-01-31 11:49:33 +0300182ART_GTEST_image_test_DEX_DEPS := ImageLayoutA ImageLayoutB DefaultMethods
Andreas Gampea1ff30f2016-09-27 12:19:45 -0700183ART_GTEST_imtable_test_DEX_DEPS := IMTA IMTB
Sebastien Hertz0462c4c2015-04-01 16:34:17 +0200184ART_GTEST_instrumentation_test_DEX_DEPS := Instrumentation
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700185ART_GTEST_jni_compiler_test_DEX_DEPS := MyClassNatives
Nicolas Geoffray928567b2018-08-01 10:21:12 +0100186ART_GTEST_jni_internal_test_DEX_DEPS := AllFields StaticLeafMethods MyClassNatives
Andreas Gampee1459ae2016-06-29 09:36:30 -0700187ART_GTEST_oat_file_assistant_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Calin Juravle36eb3132017-01-13 16:32:38 -0800188ART_GTEST_dexoptanalyzer_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Richard Uhler84f50ae2017-02-06 15:12:45 +0000189ART_GTEST_image_space_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS)
Andreas Gampefc604a72018-02-08 15:43:37 -0800190ART_GTEST_oat_file_test_DEX_DEPS := Main MultiDex MainUncompressed MultiDexUncompressed
Mathieu Chartier07ddb6f2015-11-05 11:16:34 -0800191ART_GTEST_oat_test_DEX_DEPS := Main
Roland Levillain1f130f12018-03-12 18:39:19 +0000192ART_GTEST_oat_writer_test_DEX_DEPS := Main
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700193ART_GTEST_object_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY
194ART_GTEST_proxy_test_DEX_DEPS := Interfaces
195ART_GTEST_reflection_test_DEX_DEPS := Main NonStaticLeafMethods StaticLeafMethods
Calin Juravle877fd962016-01-05 14:29:29 +0000196ART_GTEST_profile_assistant_test_DEX_DEPS := ProfileTestMultiDex
Mathieu Chartierdb40eac2017-06-09 18:34:11 -0700197ART_GTEST_profile_compilation_info_test_DEX_DEPS := ManyMethods ProfileTestMultiDex
Nicolas Geoffray44078f92018-10-01 12:57:55 +0100198ART_GTEST_profiling_info_test_DEX_DEPS := ProfileTestMultiDex
Andreas Gampe0f01b582017-01-18 15:22:37 -0800199ART_GTEST_runtime_callbacks_test_DEX_DEPS := XandY
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700200ART_GTEST_stub_test_DEX_DEPS := AllFields
201ART_GTEST_transaction_test_DEX_DEPS := Transaction
Artem Udovichenkod9786b02015-10-14 16:36:55 +0300202ART_GTEST_type_lookup_table_test_DEX_DEPS := Lookup
Andreas Gampeae78c262017-02-01 20:40:44 -0800203ART_GTEST_unstarted_runtime_test_DEX_DEPS := Nested
Mathieu Chartier1ca68902017-04-18 11:26:22 -0700204ART_GTEST_heap_verification_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY
Nicolas Geoffray7cc3ae52017-03-07 14:33:37 +0000205ART_GTEST_verifier_deps_test_DEX_DEPS := VerifierDeps VerifierDepsMulti MultiDex
Nicolas Geoffray01b70e82016-11-17 10:58:36 +0000206ART_GTEST_dex_to_dex_decompiler_test_DEX_DEPS := VerifierDeps DexToDexDecompiler
Vladimir Marko421087b2018-02-27 11:00:17 +0000207ART_GTEST_oatdump_app_test_DEX_DEPS := ProfileTestMultiDex
Ian Rogersafd9acc2014-06-17 08:21:54 -0700208
209# The elf writer test has dependencies on core.oat.
Richard Uhler67e1dc52017-02-06 16:50:17 +0000210ART_GTEST_elf_writer_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
211ART_GTEST_elf_writer_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32)
Brian Carlstrom53463ea2014-11-09 14:11:51 -0800212
Andreas Gampee1459ae2016-06-29 09:36:30 -0700213ART_GTEST_dex2oat_environment_tests_HOST_DEPS := \
Richard Uhlerbb00f812017-02-16 14:21:10 +0000214 $(HOST_CORE_IMAGE_optimizing_64) \
215 $(HOST_CORE_IMAGE_optimizing_32) \
216 $(HOST_CORE_IMAGE_interpreter_64) \
Vladimir Markoa497a392018-09-26 10:52:50 +0100217 $(HOST_CORE_IMAGE_interpreter_32)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700218ART_GTEST_dex2oat_environment_tests_TARGET_DEPS := \
Richard Uhlerbb00f812017-02-16 14:21:10 +0000219 $(TARGET_CORE_IMAGE_optimizing_64) \
220 $(TARGET_CORE_IMAGE_optimizing_32) \
221 $(TARGET_CORE_IMAGE_interpreter_64) \
Vladimir Markoa497a392018-09-26 10:52:50 +0100222 $(TARGET_CORE_IMAGE_interpreter_32)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700223
David Srbeckyec2cdf42017-12-08 16:21:25 +0000224ART_GTEST_oat_file_test_HOST_DEPS := \
225 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
226ART_GTEST_oat_file_test_TARGET_DEPS := \
227 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
228
Andreas Gampee1459ae2016-06-29 09:36:30 -0700229ART_GTEST_oat_file_assistant_test_HOST_DEPS := \
Richard Uhlerf51ac422016-07-08 09:22:33 -0700230 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700231ART_GTEST_oat_file_assistant_test_TARGET_DEPS := \
Richard Uhlerf51ac422016-07-08 09:22:33 -0700232 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
Andreas Gampee1459ae2016-06-29 09:36:30 -0700233
Calin Juravle36eb3132017-01-13 16:32:38 -0800234ART_GTEST_dexoptanalyzer_test_HOST_DEPS := \
235 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700236 $(HOST_OUT_EXECUTABLES)/dexoptanalyzerd
Calin Juravle36eb3132017-01-13 16:32:38 -0800237ART_GTEST_dexoptanalyzer_test_TARGET_DEPS := \
238 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700239 $(TARGET_OUT_EXECUTABLES)/dexoptanalyzerd
Andreas Gampee1459ae2016-06-29 09:36:30 -0700240
Richard Uhler84f50ae2017-02-06 15:12:45 +0000241ART_GTEST_image_space_test_HOST_DEPS := \
242 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS)
243ART_GTEST_image_space_test_TARGET_DEPS := \
244 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS)
245
Andreas Gampee1459ae2016-06-29 09:36:30 -0700246ART_GTEST_dex2oat_test_HOST_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800247 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700248 $(HOST_OUT_EXECUTABLES)/dex2oatd
Andreas Gampee1459ae2016-06-29 09:36:30 -0700249ART_GTEST_dex2oat_test_TARGET_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800250 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700251 $(TARGET_OUT_EXECUTABLES)/dex2oatd
Richard Uhler66d874d2015-01-15 09:37:19 -0800252
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700253ART_GTEST_dex2oat_image_test_HOST_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800254 $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700255 $(HOST_OUT_EXECUTABLES)/dex2oatd
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700256ART_GTEST_dex2oat_image_test_TARGET_DEPS := \
Andreas Gampe47200462017-11-09 11:40:03 -0800257 $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700258 $(TARGET_OUT_EXECUTABLES)/dex2oatd
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700259
Brian Carlstrom53463ea2014-11-09 14:11:51 -0800260# TODO: document why this is needed.
Richard Uhler67e1dc52017-02-06 16:50:17 +0000261ART_GTEST_proxy_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700262
David Sehr55232f12017-04-19 14:06:49 -0700263# The dexdiag test requires the dexdiag utility.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700264ART_GTEST_dexdiag_test_HOST_DEPS := $(HOST_OUT_EXECUTABLES)/dexdiag
265ART_GTEST_dexdiag_test_TARGET_DEPS := $(TARGET_OUT_EXECUTABLES)/dexdiag
David Sehr55232f12017-04-19 14:06:49 -0700266
Aart Bikcfbe53c2015-07-06 14:27:27 -0700267# The dexdump test requires an image and the dexdump utility.
Aart Bik22c26f52015-07-08 21:20:13 +0000268# TODO: rename into dexdump when migration completes
Aart Bikcfbe53c2015-07-06 14:27:27 -0700269ART_GTEST_dexdump_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000270 $(HOST_CORE_IMAGE_DEFAULT_64) \
271 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700272 $(HOST_OUT_EXECUTABLES)/dexdump2
Aart Bikcfbe53c2015-07-06 14:27:27 -0700273ART_GTEST_dexdump_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000274 $(TARGET_CORE_IMAGE_DEFAULT_64) \
275 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700276 $(TARGET_OUT_EXECUTABLES)/dexdump2
Aart Bikcfbe53c2015-07-06 14:27:27 -0700277
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700278# The dexanalyze test requires an image and the dexanalyze utility.
279ART_GTEST_dexanalyze_test_HOST_DEPS := \
280 $(HOST_CORE_IMAGE_DEFAULT_64) \
281 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700282 $(HOST_OUT_EXECUTABLES)/dexanalyze
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700283ART_GTEST_dexanalyze_test_TARGET_DEPS := \
284 $(TARGET_CORE_IMAGE_DEFAULT_64) \
285 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700286 $(TARGET_OUT_EXECUTABLES)/dexanalyze
Mathieu Chartier0226c1d2018-05-17 00:19:12 -0700287
Jeff Haoc3acfc52016-08-29 14:18:26 -0700288# The dexlayout test requires an image and the dexlayout utility.
289# TODO: rename into dexdump when migration completes
290ART_GTEST_dexlayout_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000291 $(HOST_CORE_IMAGE_DEFAULT_64) \
292 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700293 $(HOST_OUT_EXECUTABLES)/dexlayoutd \
294 $(HOST_OUT_EXECUTABLES)/dexdump2
Jeff Haoc3acfc52016-08-29 14:18:26 -0700295ART_GTEST_dexlayout_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000296 $(TARGET_CORE_IMAGE_DEFAULT_64) \
297 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700298 $(TARGET_OUT_EXECUTABLES)/dexlayoutd \
299 $(TARGET_OUT_EXECUTABLES)/dexdump2
Jeff Haoc3acfc52016-08-29 14:18:26 -0700300
Aart Bik3e40f4a2015-07-07 17:09:41 -0700301# The dexlist test requires an image and the dexlist utility.
Aart Bik3e40f4a2015-07-07 17:09:41 -0700302ART_GTEST_dexlist_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000303 $(HOST_CORE_IMAGE_DEFAULT_64) \
304 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700305 $(HOST_OUT_EXECUTABLES)/dexlist
Aart Bik3e40f4a2015-07-07 17:09:41 -0700306ART_GTEST_dexlist_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000307 $(TARGET_CORE_IMAGE_DEFAULT_64) \
308 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700309 $(TARGET_OUT_EXECUTABLES)/dexlist
Aart Bik3e40f4a2015-07-07 17:09:41 -0700310
Igor Murashkin37743352014-11-13 14:38:00 -0800311# The imgdiag test has dependencies on core.oat since it needs to load it during the test.
Andreas Gampec93b8b52014-12-19 23:12:25 -0800312# For the host, also add the installed tool (in the base size, that should suffice). For the
313# target, just the module is fine, the sync will happen late enough.
314ART_GTEST_imgdiag_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000315 $(HOST_CORE_IMAGE_DEFAULT_64) \
316 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700317 $(HOST_OUT_EXECUTABLES)/imgdiagd
Andreas Gampec93b8b52014-12-19 23:12:25 -0800318ART_GTEST_imgdiag_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000319 $(TARGET_CORE_IMAGE_DEFAULT_64) \
320 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700321 $(TARGET_OUT_EXECUTABLES)/imgdiagd
Igor Murashkin37743352014-11-13 14:38:00 -0800322
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700323# Dex analyze test requires dexanalyze.
324ART_GTEST_dexanalyze_test_HOST_DEPS := \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700325 $(HOST_OUT_EXECUTABLES)/dexanalyze
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700326ART_GTEST_dexanalyze_test_TARGET_DEPS := \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700327 $(TARGET_OUT_EXECUTABLES)/dexanalyze
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700328
Mathieu Chartierea216b32015-05-26 19:48:16 -0700329# Oatdump test requires an image and oatfile to dump.
330ART_GTEST_oatdump_test_HOST_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000331 $(HOST_CORE_IMAGE_DEFAULT_64) \
332 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700333 $(HOST_OUT_EXECUTABLES)/oatdumpd \
334 $(HOST_OUT_EXECUTABLES)/oatdumpds \
335 $(HOST_OUT_EXECUTABLES)/dexdump2
Mathieu Chartierea216b32015-05-26 19:48:16 -0700336ART_GTEST_oatdump_test_TARGET_DEPS := \
Richard Uhler67e1dc52017-02-06 16:50:17 +0000337 $(TARGET_CORE_IMAGE_DEFAULT_64) \
338 $(TARGET_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700339 $(TARGET_OUT_EXECUTABLES)/oatdumpd \
340 $(TARGET_OUT_EXECUTABLES)/dexdump2
Vladimir Marko1352f132017-04-28 15:28:29 +0100341ART_GTEST_oatdump_image_test_HOST_DEPS := $(ART_GTEST_oatdump_test_HOST_DEPS)
342ART_GTEST_oatdump_image_test_TARGET_DEPS := $(ART_GTEST_oatdump_test_TARGET_DEPS)
Vladimir Marko421087b2018-02-27 11:00:17 +0000343ART_GTEST_oatdump_app_test_HOST_DEPS := $(ART_GTEST_oatdump_test_HOST_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700344 $(HOST_OUT_EXECUTABLES)/dex2oatd \
345 $(HOST_OUT_EXECUTABLES)/dex2oatds
Vladimir Marko421087b2018-02-27 11:00:17 +0000346ART_GTEST_oatdump_app_test_TARGET_DEPS := $(ART_GTEST_oatdump_test_TARGET_DEPS) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700347 $(TARGET_OUT_EXECUTABLES)/dex2oatd
Mathieu Chartierea216b32015-05-26 19:48:16 -0700348
Calin Juravle2e2db782016-02-23 12:00:03 +0000349# Profile assistant tests requires profman utility.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700350ART_GTEST_profile_assistant_test_HOST_DEPS := $(HOST_OUT_EXECUTABLES)/profmand
351ART_GTEST_profile_assistant_test_TARGET_DEPS := $(TARGET_OUT_EXECUTABLES)/profmand
Calin Juravle2e2db782016-02-23 12:00:03 +0000352
David Brazdil2b9c35b2018-01-12 15:44:43 +0000353ART_GTEST_hiddenapi_test_HOST_DEPS := \
354 $(HOST_CORE_IMAGE_DEFAULT_64) \
355 $(HOST_CORE_IMAGE_DEFAULT_32) \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700356 $(HOST_OUT_EXECUTABLES)/hiddenapid
David Brazdil2b9c35b2018-01-12 15:44:43 +0000357
Ian Rogersafd9acc2014-06-17 08:21:54 -0700358# The path for which all the source files are relative, not actually the current directory.
Brian Carlstrom7940e442013-07-12 13:46:57 -0700359LOCAL_PATH := art
360
Colin Cross6e95dd52016-09-12 15:37:10 -0700361ART_TEST_MODULES := \
362 art_cmdline_tests \
363 art_compiler_tests \
364 art_compiler_host_tests \
365 art_dex2oat_tests \
Mathieu Chartier2e0478a2018-04-06 14:33:25 -0700366 art_dexanalyze_tests \
David Sehr55232f12017-04-19 14:06:49 -0700367 art_dexdiag_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700368 art_dexdump_tests \
369 art_dexlayout_tests \
370 art_dexlist_tests \
Calin Juravle36eb3132017-01-13 16:32:38 -0800371 art_dexoptanalyzer_tests \
David Brazdil2b9c35b2018-01-12 15:44:43 +0000372 art_hiddenapi_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700373 art_imgdiag_tests \
David Sehr67bf42e2018-02-26 16:43:04 -0800374 art_libartbase_tests \
David Sehr334b9d72018-02-12 18:27:56 -0800375 art_libdexfile_tests \
David Sehrd5f8de82018-04-27 14:12:03 -0700376 art_libprofile_tests \
Colin Cross6e95dd52016-09-12 15:37:10 -0700377 art_oatdump_tests \
378 art_profman_tests \
379 art_runtime_tests \
380 art_runtime_compiler_tests \
Josh Gao1eac77e2018-02-26 15:54:41 -0800381 art_sigchain_tests \
Brian Carlstroma1ce1fe2014-02-24 23:23:58 -0800382
Colin Cross6e95dd52016-09-12 15:37:10 -0700383ART_TARGET_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\
384 $(ART_TEST_LIST_device_$(TARGET_ARCH)_$(m)))
Alex Light50fa9932015-08-10 15:30:07 -0700385
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100386ifdef TARGET_2ND_ARCH
3872ND_ART_TARGET_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\
388 $(ART_TEST_LIST_device_$(2ND_TARGET_ARCH)_$(m)))
389endif
390
Colin Cross6e95dd52016-09-12 15:37:10 -0700391ART_HOST_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\
Colin Cross124f8812016-09-15 20:57:47 -0700392 $(ART_TEST_LIST_host_$(ART_HOST_ARCH)_$(m)))
Alex Light50fa9932015-08-10 15:30:07 -0700393
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100394ifneq ($(HOST_PREFER_32_BIT),true)
3952ND_ART_HOST_GTEST_FILES += $(foreach m,$(ART_TEST_MODULES),\
396 $(ART_TEST_LIST_host_$(2ND_ART_HOST_ARCH)_$(m)))
397endif
398
Ian Rogersafd9acc2014-06-17 08:21:54 -0700399# Variables holding collections of gtest pre-requisits used to run a number of gtests.
400ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
401ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
402ART_TEST_HOST_GTEST_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700403ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
404ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
405ART_TEST_TARGET_GTEST_RULES :=
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100406ART_TEST_HOST_GTEST_DEPENDENCIES :=
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700407
Nicolas Geoffray96a37c82014-10-29 23:50:40 +0000408ART_GTEST_TARGET_ANDROID_ROOT := '/system'
409ifneq ($(ART_TEST_ANDROID_ROOT),)
410 ART_GTEST_TARGET_ANDROID_ROOT := $(ART_TEST_ANDROID_ROOT)
411endif
412
Ian Rogersafd9acc2014-06-17 08:21:54 -0700413# Define a make rule for a target device gtest.
414# $(1): gtest name - the name of the test we're building such as leb128_test.
Colin Cross6e95dd52016-09-12 15:37:10 -0700415# $(2): path relative to $OUT to the test binary
416# $(3): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
417# $(4): LD_LIBRARY_PATH or undefined - used in case libartd.so is not in /system/lib/
Ian Rogersafd9acc2014-06-17 08:21:54 -0700418define define-art-gtest-rule-target
Roland Levillainc6d02fd2018-05-23 14:31:46 +0100419 ifeq ($(ART_TEST_CHROOT),)
420 # Non-chroot configuration.
421 maybe_art_test_chroot :=
422 maybe_chroot_command :=
423 else
424 # Chroot configuration.
425 maybe_art_test_chroot := $(ART_TEST_CHROOT)
426 maybe_chroot_command := chroot $(ART_TEST_CHROOT)
427 endif
428
Colin Cross6e95dd52016-09-12 15:37:10 -0700429 gtest_rule := test-art-target-gtest-$(1)$$($(3)ART_PHONY_TEST_TARGET_SUFFIX)
430 gtest_exe := $(OUT_DIR)/$(2)
431 gtest_target_exe := $$(patsubst $(PRODUCT_OUT)/%,/%,$$(gtest_exe))
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700432
Brian Carlstrom532714a2014-06-25 02:15:31 -0700433 # Add the test dependencies to test-art-target-sync, which will be a prerequisite for the test
Ian Rogersafd9acc2014-06-17 08:21:54 -0700434 # to ensure files are pushed to the device.
435 TEST_ART_TARGET_SYNC_DEPS += \
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700436 $$(ART_GTEST_$(1)_TARGET_DEPS) \
Ian Rogers1a2f84e2014-07-07 16:05:18 -0700437 $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_TARGET_GTEST_$(file)_DEX)) \
Colin Cross6e95dd52016-09-12 15:37:10 -0700438 $$(gtest_exe) \
439 $$($(3)TARGET_OUT_SHARED_LIBRARIES)/libjavacore.so \
440 $$($(3)TARGET_OUT_SHARED_LIBRARIES)/libopenjdkd.so \
Andreas Gampec7d4a582015-09-30 11:52:02 -0700441 $$(TARGET_OUT_JAVA_LIBRARIES)/core-libart-testdex.jar \
Neil Fuller13913902018-08-24 14:19:06 +0100442 $$(TARGET_OUT_JAVA_LIBRARIES)/core-oj-testdex.jar \
443 $$(TARGET_OUT_JAVA_LIBRARIES)/core-simple-testdex.jar
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700444
Roland Levillain05e34f42018-05-24 13:19:05 +0000445$$(gtest_rule): PRIVATE_TARGET_EXE := $$(gtest_target_exe)
446$$(gtest_rule): PRIVATE_MAYBE_CHROOT_COMMAND := $$(maybe_chroot_command)
Roland Levillain76cfe612017-10-30 13:14:28 +0000447
448# File witnessing the success of the gtest, the presence of which means the gtest's success.
Roland Levillaine1194572018-05-10 17:57:20 +0100449gtest_witness := \
Roland Levillainc6d02fd2018-05-23 14:31:46 +0100450 $$(maybe_art_test_chroot)$(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$(gtest_rule)-$$$$PPID
Roland Levillaine1194572018-05-10 17:57:20 +0100451
Roland Levillainc6d02fd2018-05-23 14:31:46 +0100452$$(gtest_rule): PRIVATE_GTEST_WITNESS := $$(gtest_witness)
Roland Levillain76cfe612017-10-30 13:14:28 +0000453
Ian Rogersafd9acc2014-06-17 08:21:54 -0700454.PHONY: $$(gtest_rule)
455$$(gtest_rule): test-art-target-sync
Nicolas Geoffray64c2d772018-08-31 09:22:44 +0100456 $(hide) $(ADB) shell touch $$(PRIVATE_GTEST_WITNESS)
457 $(hide) $(ADB) shell rm $$(PRIVATE_GTEST_WITNESS)
458 $(hide) $(ADB) shell $$(PRIVATE_MAYBE_CHROOT_COMMAND) chmod 755 $$(PRIVATE_TARGET_EXE)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700459 $(hide) $$(call ART_TEST_SKIP,$$@) && \
Nicolas Geoffray64c2d772018-08-31 09:22:44 +0100460 ($(ADB) shell "$$(PRIVATE_MAYBE_CHROOT_COMMAND) env $(GCOV_ENV) LD_LIBRARY_PATH=$(4) \
Roland Levillaina42e7042017-10-30 17:24:43 +0000461 ANDROID_ROOT=$(ART_GTEST_TARGET_ANDROID_ROOT) $$(PRIVATE_TARGET_EXE) \
Roland Levillainc6d02fd2018-05-23 14:31:46 +0100462 && touch $$(PRIVATE_GTEST_WITNESS)" \
Nicolas Geoffray64c2d772018-08-31 09:22:44 +0100463 && ($(ADB) pull $$(PRIVATE_GTEST_WITNESS) /tmp/ && $$(call ART_TEST_PASSED,$$@)) \
Roland Levillaina42e7042017-10-30 17:24:43 +0000464 || $$(call ART_TEST_FAILED,$$@))
Ian Rogers6f3dbba2014-10-14 17:41:57 -0700465 $(hide) rm -f /tmp/$$@-$$$$PPID
Ian Rogersafd9acc2014-06-17 08:21:54 -0700466
Colin Cross6e95dd52016-09-12 15:37:10 -0700467 ART_TEST_TARGET_GTEST$($(3)ART_PHONY_TEST_TARGET_SUFFIX)_RULES += $$(gtest_rule)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700468 ART_TEST_TARGET_GTEST_RULES += $$(gtest_rule)
469 ART_TEST_TARGET_GTEST_$(1)_RULES += $$(gtest_rule)
470
471 # Clear locally defined variables.
Roland Levillain76cfe612017-10-30 13:14:28 +0000472 gtest_witness :=
473 maybe_chroot_command :=
474 maybe_art_test_chroot :=
Colin Cross6e95dd52016-09-12 15:37:10 -0700475 gtest_target_exe :=
Roland Levillain76cfe612017-10-30 13:14:28 +0000476 gtest_exe :=
477 gtest_rule :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700478endef # define-art-gtest-rule-target
479
480# Define make rules for a host gtests.
481# $(1): gtest name - the name of the test we're building such as leb128_test.
Colin Cross6e95dd52016-09-12 15:37:10 -0700482# $(2): path relative to $OUT to the test binary
483# $(3): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
Ian Rogersafd9acc2014-06-17 08:21:54 -0700484define define-art-gtest-rule-host
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700485 gtest_suffix := $(1)$$($(3)ART_PHONY_TEST_HOST_SUFFIX)
486 gtest_rule := test-art-host-gtest-$$(gtest_suffix)
487 gtest_output := $(call intermediates-dir-for,PACKAGING,art-host-gtest,HOST)/$$(gtest_suffix).xml
488 $$(call dist-for-goals,$$(gtest_rule),$$(gtest_output):gtest/$$(gtest_suffix))
Colin Cross6e95dd52016-09-12 15:37:10 -0700489 gtest_exe := $(OUT_DIR)/$(2)
Ian Rogers665de8a2014-06-24 21:34:09 -0700490 # Dependencies for all host gtests.
491 gtest_deps := $$(HOST_CORE_DEX_LOCATIONS) \
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) \
496 $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_HOST_GTEST_$(file)_DEX))
Ian Rogers665de8a2014-06-24 21:34:09 -0700497
Nicolas Geoffray58035ae2015-05-27 19:10:27 +0100498 ART_TEST_HOST_GTEST_DEPENDENCIES += $$(gtest_deps)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700499
Andreas Gampe6acebf42018-01-22 22:15:43 -0800500.PHONY: $$(gtest_rule)
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700501$$(gtest_rule): $$(gtest_output)
502
503# Re-run the tests, even if nothing changed. Until the build system has a dedicated "no cache"
504# option, claim to write a file that is never produced.
505$$(gtest_output): .KATI_IMPLICIT_OUTPUTS := $$(gtest_output)-nocache
506$$(gtest_output): NAME := $$(gtest_rule)
Andreas Gampe6acebf42018-01-22 22:15:43 -0800507ifeq (,$(SANITIZE_HOST))
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700508$$(gtest_output): $$(gtest_exe) $$(gtest_deps)
509 $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && $$< --gtest_output=xml:$$@ && \
510 $$(call ART_TEST_PASSED,$$(NAME))) || $$(call ART_TEST_FAILED,$$(NAME))
Andreas Gampe6acebf42018-01-22 22:15:43 -0800511else
Andreas Gampe03858052017-05-01 08:17:24 -0700512# Note: envsetup currently exports ASAN_OPTIONS=detect_leaks=0 to suppress leak detection, as some
513# build tools (e.g., ninja) intentionally leak. We want leak checks when we run our tests, so
514# override ASAN_OPTIONS. b/37751350
Andreas Gampe6acebf42018-01-22 22:15:43 -0800515# Note 2: Under sanitization, also capture the output, and run it through the stack tool on failure
516# (with the x86-64 ABI, as this allows symbolization of both x86 and x86-64). We don't do this in
517# general as it loses all the color output, and we have our own symbolization step when not running
518# under ASAN.
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700519$$(gtest_output): $$(gtest_exe) $$(gtest_deps)
520 $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && set -o pipefail && \
521 ASAN_OPTIONS=detect_leaks=1 $$< --gtest_output=xml:$$@ 2>&1 | tee $$<.tmp.out >&2 && \
522 { $$(call ART_TEST_PASSED,$$(NAME)) ; rm $$<.tmp.out ; }) || \
Andreas Gampec05fd3f2018-01-23 14:22:07 -0800523 ( grep -q AddressSanitizer $$<.tmp.out && export ANDROID_BUILD_TOP=`pwd` && \
Andreas Gampe6acebf42018-01-22 22:15:43 -0800524 { echo "ABI: 'x86_64'" | cat - $$<.tmp.out | development/scripts/stack | tail -n 3000 ; } ; \
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700525 rm $$<.tmp.out ; $$(call ART_TEST_FAILED,$$(NAME)))
Andreas Gampe6acebf42018-01-22 22:15:43 -0800526endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700527
Colin Cross6e95dd52016-09-12 15:37:10 -0700528 ART_TEST_HOST_GTEST$$($(3)ART_PHONY_TEST_HOST_SUFFIX)_RULES += $$(gtest_rule)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700529 ART_TEST_HOST_GTEST_RULES += $$(gtest_rule)
530 ART_TEST_HOST_GTEST_$(1)_RULES += $$(gtest_rule)
531
Andreas Gampe3c0bb312015-02-19 10:02:19 -0800532
Ian Rogersafd9acc2014-06-17 08:21:54 -0700533 # Clear locally defined variables.
Ian Rogers665de8a2014-06-24 21:34:09 -0700534 gtest_deps :=
Roland Levillain76cfe612017-10-30 13:14:28 +0000535 gtest_exe :=
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700536 gtest_output :=
Roland Levillain76cfe612017-10-30 13:14:28 +0000537 gtest_rule :=
Dan Willemsendb72e5e2018-10-02 14:09:21 -0700538 gtest_suffix :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700539endef # define-art-gtest-rule-host
540
541# Define the rules to build and run host and target gtests.
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100542# $(1): file name
543# $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
544define define-art-gtest-target
545 art_gtest_filename := $(1)
Brian Carlstrom0796af02011-10-12 14:31:45 -0700546
Ian Rogersafd9acc2014-06-17 08:21:54 -0700547 include $$(CLEAR_VARS)
Brian Carlstrom47a0d5a2011-10-12 21:20:05 -0700548 art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename)))
Colin Cross6e95dd52016-09-12 15:37:10 -0700549
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100550 library_path :=
551 2ND_library_path :=
552 ifneq ($$(ART_TEST_ANDROID_ROOT),)
553 ifdef TARGET_2ND_ARCH
554 2ND_library_path := $$(ART_TEST_ANDROID_ROOT)/lib
555 library_path := $$(ART_TEST_ANDROID_ROOT)/lib64
556 else
557 ifneq ($(filter %64,$(TARGET_ARCH)),)
Nicolas Geoffray9eb40742014-10-29 22:38:53 +0000558 library_path := $$(ART_TEST_ANDROID_ROOT)/lib64
559 else
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100560 library_path := $$(ART_TEST_ANDROID_ROOT)/lib
Nicolas Geoffray9eb40742014-10-29 22:38:53 +0000561 endif
562 endif
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100563 endif
Andreas Gampe5ca4eaa2014-05-29 02:09:33 -0700564
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100565 ifndef ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES
Ian Rogersafd9acc2014-06-17 08:21:54 -0700566 ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100567 endif
568 $$(eval $$(call define-art-gtest-rule-target,$$(art_gtest_name),$$(art_gtest_filename),$(2),$$($(2)library_path)))
569
570 # Clear locally defined variables.
571 art_gtest_filename :=
572 art_gtest_name :=
573 library_path :=
574 2ND_library_path :=
575endef # define-art-gtest-target
576
577# $(1): file name
578# $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture.
579define define-art-gtest-host
580 art_gtest_filename := $(1)
581
582 include $$(CLEAR_VARS)
583 art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename)))
584 ifndef ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES
585 ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100586 endif
587 $$(eval $$(call define-art-gtest-rule-host,$$(art_gtest_name),$$(art_gtest_filename),$(2)))
588
589 # Clear locally defined variables.
590 art_gtest_filename :=
591 art_gtest_name :=
592endef # define-art-gtest-host
593
594# Define the rules to build and run gtests for both archs on target.
595# $(1): test name
596define define-art-gtest-target-both
597 art_gtest_name := $(1)
Andreas Gampeafbaa1a2014-03-25 18:09:32 -0700598
Ian Rogersafd9acc2014-06-17 08:21:54 -0700599 # A rule to run the different architecture versions of the gtest.
600.PHONY: test-art-target-gtest-$$(art_gtest_name)
601test-art-target-gtest-$$(art_gtest_name): $$(ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES)
602 $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
603
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100604 # Clear now unused variables.
605 ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100606 art_gtest_name :=
607endef # define-art-gtest-target-both
Ian Rogersd912e5c2013-11-13 12:40:11 -0800608
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100609# Define the rules to build and run gtests for both archs on host.
610# $(1): test name
611define define-art-gtest-host-both
612 art_gtest_name := $(1)
613
Ian Rogersafd9acc2014-06-17 08:21:54 -0700614.PHONY: test-art-host-gtest-$$(art_gtest_name)
615test-art-host-gtest-$$(art_gtest_name): $$(ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES)
616 $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
Ian Rogersd912e5c2013-11-13 12:40:11 -0800617
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100618 # Clear now unused variables.
619 ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700620 art_gtest_name :=
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100621endef # define-art-gtest-host-both
Alex Light50fa9932015-08-10 15:30:07 -0700622
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700623ifeq ($(ART_BUILD_TARGET),true)
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100624 $(foreach file,$(ART_TARGET_GTEST_FILES), $(eval $(call define-art-gtest-target,$(file),)))
Dan Willemsen5d2dbf82018-04-11 12:31:11 -0700625 ifdef 2ND_ART_PHONY_TEST_TARGET_SUFFIX
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100626 $(foreach file,$(2ND_ART_TARGET_GTEST_FILES), $(eval $(call define-art-gtest-target,$(file),2ND_)))
627 endif
628 # Rules to run the different architecture versions of the gtest.
629 $(foreach file,$(ART_TARGET_GTEST_FILES), $(eval $(call define-art-gtest-target-both,$$(notdir $$(basename $$(file))))))
Brian Carlstrom4b620ff2011-09-11 01:11:01 -0700630endif
Ian Rogersc5f17732014-06-05 20:48:42 -0700631ifeq ($(ART_BUILD_HOST),true)
Nicolas Geoffray6bbea4c2016-09-16 16:41:43 +0100632 $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),)))
633 ifneq ($(HOST_PREFER_32_BIT),true)
634 $(foreach file,$(2ND_ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),2ND_)))
635 endif
636 # Rules to run the different architecture versions of the gtest.
637 $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host-both,$$(notdir $$(basename $$(file))))))
Brian Carlstrom07d579f2011-07-27 13:31:51 -0700638endif
Tsu Chiang Chuangec245a42014-05-15 21:16:21 -0700639
640# Used outside the art project to get a list of the current tests
641RUNTIME_TARGET_GTEST_MAKE_TARGETS :=
Dan Willemsencf767de2018-04-10 16:40:10 -0700642$(foreach file, $(ART_TARGET_GTEST_FILES), $(eval RUNTIME_TARGET_GTEST_MAKE_TARGETS += $$(notdir $$(patsubst %/,%,$$(dir $$(file))))_$$(notdir $$(basename $$(file)))))
Tsu Chiang Chuangec245a42014-05-15 21:16:21 -0700643COMPILER_TARGET_GTEST_MAKE_TARGETS :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700644
Roland Levillain05e34f42018-05-24 13:19:05 +0000645# Define all the combinations of host/target and suffix such as:
646# test-art-host-gtest or test-art-host-gtest64
Ian Rogersafd9acc2014-06-17 08:21:54 -0700647# $(1): host or target
648# $(2): HOST or TARGET
Roland Levillain05e34f42018-05-24 13:19:05 +0000649# $(3): undefined, 32 or 64
Ian Rogersafd9acc2014-06-17 08:21:54 -0700650define define-test-art-gtest-combination
651 ifeq ($(1),host)
652 ifneq ($(2),HOST)
653 $$(error argument mismatch $(1) and ($2))
654 endif
655 else
656 ifneq ($(1),target)
657 $$(error found $(1) expected host or target)
658 endif
659 ifneq ($(2),TARGET)
660 $$(error argument mismatch $(1) and ($2))
661 endif
662 endif
663
Roland Levillain05e34f42018-05-24 13:19:05 +0000664 rule_name := test-art-$(1)-gtest$(3)
665 dependencies := $$(ART_TEST_$(2)_GTEST$(3)_RULES)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700666
667.PHONY: $$(rule_name)
Orion Hodson64fe3be2018-06-15 12:50:22 +0100668$$(rule_name): $$(dependencies) d8 d8-compat-dx
Ian Rogersafd9acc2014-06-17 08:21:54 -0700669 $(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
670
671 # Clear locally defined variables.
672 rule_name :=
673 dependencies :=
674endef # define-test-art-gtest-combination
675
Roland Levillain05e34f42018-05-24 13:19:05 +0000676$(eval $(call define-test-art-gtest-combination,target,TARGET,))
677$(eval $(call define-test-art-gtest-combination,target,TARGET,$(ART_PHONY_TEST_TARGET_SUFFIX)))
Dan Willemsen5d2dbf82018-04-11 12:31:11 -0700678ifdef 2ND_ART_PHONY_TEST_TARGET_SUFFIX
Roland Levillain05e34f42018-05-24 13:19:05 +0000679$(eval $(call define-test-art-gtest-combination,target,TARGET,$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700680endif
Roland Levillain05e34f42018-05-24 13:19:05 +0000681$(eval $(call define-test-art-gtest-combination,host,HOST,))
682$(eval $(call define-test-art-gtest-combination,host,HOST,$(ART_PHONY_TEST_HOST_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700683ifneq ($(HOST_PREFER_32_BIT),true)
Roland Levillain05e34f42018-05-24 13:19:05 +0000684$(eval $(call define-test-art-gtest-combination,host,HOST,$(2ND_ART_PHONY_TEST_HOST_SUFFIX)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700685endif
686
687# Clear locally defined variables.
688define-art-gtest-rule-target :=
689define-art-gtest-rule-host :=
690define-art-gtest :=
691define-test-art-gtest-combination :=
692RUNTIME_GTEST_COMMON_SRC_FILES :=
693COMPILER_GTEST_COMMON_SRC_FILES :=
694RUNTIME_GTEST_TARGET_SRC_FILES :=
695RUNTIME_GTEST_HOST_SRC_FILES :=
696COMPILER_GTEST_TARGET_SRC_FILES :=
697COMPILER_GTEST_HOST_SRC_FILES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700698ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
699ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES :=
700ART_TEST_HOST_GTEST_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700701ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
702ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES :=
703ART_TEST_TARGET_GTEST_RULES :=
Nicolas Geoffray96a37c82014-10-29 23:50:40 +0000704ART_GTEST_TARGET_ANDROID_ROOT :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700705ART_GTEST_class_linker_test_DEX_DEPS :=
Mathieu Chartierdb70ce52016-12-12 11:06:59 -0800706ART_GTEST_class_table_test_DEX_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700707ART_GTEST_compiler_driver_test_DEX_DEPS :=
708ART_GTEST_dex_file_test_DEX_DEPS :=
709ART_GTEST_exception_test_DEX_DEPS :=
710ART_GTEST_elf_writer_test_HOST_DEPS :=
711ART_GTEST_elf_writer_test_TARGET_DEPS :=
Andreas Gampea1ff30f2016-09-27 12:19:45 -0700712ART_GTEST_imtable_test_DEX_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700713ART_GTEST_jni_compiler_test_DEX_DEPS :=
714ART_GTEST_jni_internal_test_DEX_DEPS :=
Richard Uhler66d874d2015-01-15 09:37:19 -0800715ART_GTEST_oat_file_assistant_test_DEX_DEPS :=
716ART_GTEST_oat_file_assistant_test_HOST_DEPS :=
717ART_GTEST_oat_file_assistant_test_TARGET_DEPS :=
Mathieu Chartier0be7fa72018-04-12 10:13:29 -0700718ART_GTEST_dexanalyze_test_DEX_DEPS :=
Calin Juravle36eb3132017-01-13 16:32:38 -0800719ART_GTEST_dexoptanalyzer_test_DEX_DEPS :=
720ART_GTEST_dexoptanalyzer_test_HOST_DEPS :=
721ART_GTEST_dexoptanalyzer_test_TARGET_DEPS :=
Richard Uhler84f50ae2017-02-06 15:12:45 +0000722ART_GTEST_image_space_test_DEX_DEPS :=
723ART_GTEST_image_space_test_HOST_DEPS :=
724ART_GTEST_image_space_test_TARGET_DEPS :=
Andreas Gampee1459ae2016-06-29 09:36:30 -0700725ART_GTEST_dex2oat_test_DEX_DEPS :=
726ART_GTEST_dex2oat_test_HOST_DEPS :=
727ART_GTEST_dex2oat_test_TARGET_DEPS :=
Mathieu Chartierf70fe3d2017-06-21 15:24:02 -0700728ART_GTEST_dex2oat_image_test_DEX_DEPS :=
729ART_GTEST_dex2oat_image_test_HOST_DEPS :=
730ART_GTEST_dex2oat_image_test_TARGET_DEPS :=
Brian Carlstromeb85f2b2014-06-25 13:23:00 -0700731ART_GTEST_object_test_DEX_DEPS :=
732ART_GTEST_proxy_test_DEX_DEPS :=
733ART_GTEST_reflection_test_DEX_DEPS :=
734ART_GTEST_stub_test_DEX_DEPS :=
735ART_GTEST_transaction_test_DEX_DEPS :=
Andreas Gampee1459ae2016-06-29 09:36:30 -0700736ART_GTEST_dex2oat_environment_tests_DEX_DEPS :=
Mathieu Chartier1ca68902017-04-18 11:26:22 -0700737ART_GTEST_heap_verification_test_DEX_DEPS :=
David Brazdilca3c8c32016-09-06 14:04:48 +0100738ART_GTEST_verifier_deps_test_DEX_DEPS :=
Ian Rogers1a2f84e2014-07-07 16:05:18 -0700739$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_TARGET_GTEST_$(dir)_DEX :=))
740$(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_HOST_GTEST_$(dir)_DEX :=))
Richard Uhler66d874d2015-01-15 09:37:19 -0800741ART_TEST_HOST_GTEST_MainStripped_DEX :=
742ART_TEST_TARGET_GTEST_MainStripped_DEX :=
Nicolas Geoffrayf3075272018-01-08 12:41:19 +0000743ART_TEST_HOST_GTEST_MainUncompressed_DEX :=
744ART_TEST_TARGET_GTEST_MainUncompressed_DEX :=
Mathieu Chartier700a9852018-02-06 18:27:38 -0800745ART_TEST_HOST_GTEST_EmptyUncompressed_DEX :=
746ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX :=
David Brazdilca3c8c32016-09-06 14:04:48 +0100747ART_TEST_GTEST_VerifierDeps_SRC :=
748ART_TEST_HOST_GTEST_VerifierDeps_DEX :=
David Brazdilf906f122016-09-16 16:33:31 +0100749ART_TEST_TARGET_GTEST_VerifierDeps_DEX :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700750GTEST_DEX_DIRECTORIES :=
Brian Carlstrom532714a2014-06-25 02:15:31 -0700751LOCAL_PATH :=