Carl Shapiro | 008e412 | 2011-06-23 17:27:46 -0700 | [diff] [blame] | 1 | # |
| 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 Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 17 | # The path for which all the dex files are relative, not actually the current directory. |
| 18 | LOCAL_PATH := art/test |
| 19 | |
| 20 | include art/build/Android.common_test.mk |
| 21 | include art/build/Android.common_path.mk |
Alex Light | 50fa993 | 2015-08-10 15:30:07 -0700 | [diff] [blame] | 22 | include art/build/Android.common_build.mk |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 23 | |
| 24 | # Subdirectories in art/test which contain dex files used as inputs for gtests. |
| 25 | GTEST_DEX_DIRECTORIES := \ |
| 26 | AbstractMethod \ |
| 27 | AllFields \ |
Artem Udovichenko | b3f2b5c | 2017-01-31 11:49:33 +0300 | [diff] [blame] | 28 | DefaultMethods \ |
Nicolas Geoffray | 01b70e8 | 2016-11-17 10:58:36 +0000 | [diff] [blame] | 29 | DexToDexDecompiler \ |
Mathieu Chartier | 1e4841e | 2016-12-15 14:21:04 -0800 | [diff] [blame] | 30 | ErroneousA \ |
| 31 | ErroneousB \ |
Vladimir Marko | 72ab684 | 2017-01-20 19:32:50 +0000 | [diff] [blame] | 32 | ErroneousInit \ |
Calin Juravle | cdd4912 | 2017-07-05 20:09:53 -0700 | [diff] [blame] | 33 | ForClassLoaderA \ |
| 34 | ForClassLoaderB \ |
| 35 | ForClassLoaderC \ |
| 36 | ForClassLoaderD \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 37 | ExceptionHandle \ |
| 38 | GetMethodSignature \ |
David Brazdil | 2b9c35b | 2018-01-12 15:44:43 +0000 | [diff] [blame] | 39 | HiddenApi \ |
Mathew Inwood | 7d74ef5 | 2018-03-16 14:18:33 +0000 | [diff] [blame] | 40 | HiddenApiSignatures \ |
David Brazdil | 2da3cbb | 2019-01-30 16:17:50 +0000 | [diff] [blame^] | 41 | HiddenApiStubs \ |
Mathieu Chartier | 496577f | 2016-09-20 15:33:31 -0700 | [diff] [blame] | 42 | ImageLayoutA \ |
| 43 | ImageLayoutB \ |
Andreas Gampe | a1ff30f | 2016-09-27 12:19:45 -0700 | [diff] [blame] | 44 | IMTA \ |
| 45 | IMTB \ |
Sebastien Hertz | 0462c4c | 2015-04-01 16:34:17 +0200 | [diff] [blame] | 46 | Instrumentation \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 47 | Interfaces \ |
Artem Udovichenko | d9786b0 | 2015-10-14 16:36:55 +0300 | [diff] [blame] | 48 | Lookup \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 49 | Main \ |
Mathieu Chartier | d00e02b | 2017-05-24 12:04:13 -0700 | [diff] [blame] | 50 | ManyMethods \ |
Narayan Kamath | 25352fc | 2016-08-03 12:46:58 +0100 | [diff] [blame] | 51 | MethodTypes \ |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 52 | MultiDex \ |
Richard Uhler | 67ff7d1 | 2015-05-14 13:21:13 -0700 | [diff] [blame] | 53 | MultiDexModifiedSecondary \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 54 | MyClass \ |
| 55 | MyClassNatives \ |
| 56 | Nested \ |
| 57 | NonStaticLeafMethods \ |
Mathieu Chartier | 279ac5c | 2016-09-08 17:34:25 -0700 | [diff] [blame] | 58 | Packages \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 59 | ProtoCompare \ |
| 60 | ProtoCompare2 \ |
Calin Juravle | 877fd96 | 2016-01-05 14:29:29 +0000 | [diff] [blame] | 61 | ProfileTestMultiDex \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 62 | StaticLeafMethods \ |
| 63 | Statics \ |
| 64 | StaticsFromCode \ |
Mathieu Chartier | cd0f38f | 2018-10-15 09:44:35 -0700 | [diff] [blame] | 65 | StringLiterals \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 66 | Transaction \ |
| 67 | XandY |
| 68 | |
| 69 | # Create build rules for each dex file recording the dependency. |
| 70 | $(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval $(call build-art-test-dex,art-gtest,$(dir), \ |
Ian Rogers | 1a2f84e | 2014-07-07 16:05:18 -0700 | [diff] [blame] | 71 | $(ART_TARGET_NATIVETEST_OUT),art/build/Android.gtest.mk,ART_TEST_TARGET_GTEST_$(dir)_DEX, \ |
| 72 | ART_TEST_HOST_GTEST_$(dir)_DEX))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 73 | |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 74 | # Create rules for MainStripped, a copy of Main with the classes.dex stripped |
| 75 | # for the oat file assistant tests. |
| 76 | ART_TEST_HOST_GTEST_MainStripped_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_HOST_GTEST_Main_DEX)) |
| 77 | ART_TEST_TARGET_GTEST_MainStripped_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX)) |
| 78 | |
Nicolas Geoffray | f307527 | 2018-01-08 12:41:19 +0000 | [diff] [blame] | 79 | # Create rules for MainUncompressed, a copy of Main with the classes.dex uncompressed |
| 80 | # for the dex2oat tests. |
| 81 | ART_TEST_HOST_GTEST_MainUncompressed_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))Uncompressed$(suffix $(ART_TEST_HOST_GTEST_Main_DEX)) |
| 82 | ART_TEST_TARGET_GTEST_MainUncompressed_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))Uncompressed$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX)) |
| 83 | |
Mathieu Chartier | 700a985 | 2018-02-06 18:27:38 -0800 | [diff] [blame] | 84 | # Create rules for UncompressedEmpty, a classes.dex that is empty and uncompressed |
| 85 | # for the dex2oat tests. |
| 86 | ART_TEST_HOST_GTEST_EmptyUncompressed_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))EmptyUncompressed$(suffix $(ART_TEST_HOST_GTEST_Main_DEX)) |
| 87 | ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))EmptyUncompressed$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX)) |
| 88 | |
Andreas Gampe | fc604a7 | 2018-02-08 15:43:37 -0800 | [diff] [blame] | 89 | # Create rules for MultiDexUncompressed, a copy of MultiDex with the classes.dex uncompressed |
| 90 | # for the OatFile tests. |
| 91 | ART_TEST_HOST_GTEST_MultiDexUncompressed_DEX := $(basename $(ART_TEST_HOST_GTEST_MultiDex_DEX))Uncompressed$(suffix $(ART_TEST_HOST_GTEST_MultiDex_DEX)) |
| 92 | ART_TEST_TARGET_GTEST_MultiDexUncompressed_DEX := $(basename $(ART_TEST_TARGET_GTEST_MultiDex_DEX))Uncompressed$(suffix $(ART_TEST_TARGET_GTEST_MultiDex_DEX)) |
| 93 | |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 94 | ifdef ART_TEST_HOST_GTEST_Main_DEX |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 95 | $(ART_TEST_HOST_GTEST_MainStripped_DEX): $(ART_TEST_HOST_GTEST_Main_DEX) |
| 96 | cp $< $@ |
| 97 | $(call dexpreopt-remove-classes.dex,$@) |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 98 | endif |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 99 | |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 100 | ifdef ART_TEST_TARGET_GTEST_Main_DEX |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 101 | $(ART_TEST_TARGET_GTEST_MainStripped_DEX): $(ART_TEST_TARGET_GTEST_Main_DEX) |
| 102 | cp $< $@ |
| 103 | $(call dexpreopt-remove-classes.dex,$@) |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 104 | endif |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 105 | |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 106 | ifdef ART_TEST_HOST_GTEST_Main_DEX |
Nicolas Geoffray | f307527 | 2018-01-08 12:41:19 +0000 | [diff] [blame] | 107 | $(ART_TEST_HOST_GTEST_MainUncompressed_DEX): $(ART_TEST_HOST_GTEST_Main_DEX) $(ZIPALIGN) |
| 108 | cp $< $@ |
| 109 | $(call uncompress-dexs, $@) |
| 110 | $(call align-package, $@) |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 111 | endif |
Nicolas Geoffray | f307527 | 2018-01-08 12:41:19 +0000 | [diff] [blame] | 112 | |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 113 | ifdef ART_TEST_TARGET_GTEST_Main_DEX |
Nicolas Geoffray | f307527 | 2018-01-08 12:41:19 +0000 | [diff] [blame] | 114 | $(ART_TEST_TARGET_GTEST_MainUncompressed_DEX): $(ART_TEST_TARGET_GTEST_Main_DEX) $(ZIPALIGN) |
| 115 | cp $< $@ |
| 116 | $(call uncompress-dexs, $@) |
| 117 | $(call align-package, $@) |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 118 | endif |
Nicolas Geoffray | f307527 | 2018-01-08 12:41:19 +0000 | [diff] [blame] | 119 | |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 120 | ifdef ART_TEST_HOST_GTEST_Main_DEX |
Mathieu Chartier | 700a985 | 2018-02-06 18:27:38 -0800 | [diff] [blame] | 121 | $(ART_TEST_HOST_GTEST_EmptyUncompressed_DEX): $(ZIPALIGN) |
| 122 | touch $(dir $@)classes.dex |
| 123 | zip -j -qD -X -0 $@ $(dir $@)classes.dex |
| 124 | rm $(dir $@)classes.dex |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 125 | endif |
Mathieu Chartier | 700a985 | 2018-02-06 18:27:38 -0800 | [diff] [blame] | 126 | |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 127 | ifdef ART_TEST_TARGET_GTEST_Main_DEX |
Mathieu Chartier | 700a985 | 2018-02-06 18:27:38 -0800 | [diff] [blame] | 128 | $(ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX): $(ZIPALIGN) |
| 129 | touch $(dir $@)classes.dex |
| 130 | zip -j -qD -X -0 $@ $(dir $@)classes.dex |
| 131 | rm $(dir $@)classes.dex |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 132 | endif |
Mathieu Chartier | 700a985 | 2018-02-06 18:27:38 -0800 | [diff] [blame] | 133 | |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 134 | ifdef ART_TEST_HOST_GTEST_MultiDex_DEX |
Andreas Gampe | fc604a7 | 2018-02-08 15:43:37 -0800 | [diff] [blame] | 135 | $(ART_TEST_HOST_GTEST_MultiDexUncompressed_DEX): $(ART_TEST_HOST_GTEST_MultiDex_DEX) $(ZIPALIGN) |
| 136 | cp $< $@ |
| 137 | $(call uncompress-dexs, $@) |
| 138 | $(call align-package, $@) |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 139 | endif |
Andreas Gampe | fc604a7 | 2018-02-08 15:43:37 -0800 | [diff] [blame] | 140 | |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 141 | ifdef ART_TEST_TARGET_GTEST_MultiDex_DEX |
Andreas Gampe | fc604a7 | 2018-02-08 15:43:37 -0800 | [diff] [blame] | 142 | $(ART_TEST_TARGET_GTEST_MultiDexUncompressed_DEX): $(ART_TEST_TARGET_GTEST_MultiDex_DEX) $(ZIPALIGN) |
| 143 | cp $< $@ |
| 144 | $(call uncompress-dexs, $@) |
| 145 | $(call align-package, $@) |
Dan Willemsen | 1776962 | 2018-04-06 13:26:36 -0700 | [diff] [blame] | 146 | endif |
Andreas Gampe | fc604a7 | 2018-02-08 15:43:37 -0800 | [diff] [blame] | 147 | |
David Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 148 | ART_TEST_GTEST_VerifierDeps_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifierDeps/*.smali)) |
Nicolas Geoffray | 7cc3ae5 | 2017-03-07 14:33:37 +0000 | [diff] [blame] | 149 | ART_TEST_GTEST_VerifierDepsMulti_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifierDepsMulti/*.smali)) |
David Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 150 | ART_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 Brazdil | f906f12 | 2016-09-16 16:33:31 +0100 | [diff] [blame] | 151 | ART_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 Geoffray | 7cc3ae5 | 2017-03-07 14:33:37 +0000 | [diff] [blame] | 152 | ART_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)) |
| 153 | ART_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 Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 154 | |
| 155 | $(ART_TEST_HOST_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali |
Ben Gruver | 14fc9db | 2017-04-28 15:30:49 -0700 | [diff] [blame] | 156 | $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^) |
David Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 157 | |
David Brazdil | f906f12 | 2016-09-16 16:33:31 +0100 | [diff] [blame] | 158 | $(ART_TEST_TARGET_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali |
Ben Gruver | 14fc9db | 2017-04-28 15:30:49 -0700 | [diff] [blame] | 159 | $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^) |
David Brazdil | f906f12 | 2016-09-16 16:33:31 +0100 | [diff] [blame] | 160 | |
Nicolas Geoffray | 7cc3ae5 | 2017-03-07 14:33:37 +0000 | [diff] [blame] | 161 | $(ART_TEST_HOST_GTEST_VerifierDepsMulti_DEX): $(ART_TEST_GTEST_VerifierDepsMulti_SRC) $(HOST_OUT_EXECUTABLES)/smali |
Ben Gruver | 14fc9db | 2017-04-28 15:30:49 -0700 | [diff] [blame] | 162 | $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^) |
Nicolas Geoffray | 7cc3ae5 | 2017-03-07 14:33:37 +0000 | [diff] [blame] | 163 | |
| 164 | $(ART_TEST_TARGET_GTEST_VerifierDepsMulti_DEX): $(ART_TEST_GTEST_VerifierDepsMulti_SRC) $(HOST_OUT_EXECUTABLES)/smali |
Ben Gruver | 14fc9db | 2017-04-28 15:30:49 -0700 | [diff] [blame] | 165 | $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^) |
Nicolas Geoffray | 7cc3ae5 | 2017-03-07 14:33:37 +0000 | [diff] [blame] | 166 | |
Vladimir Marko | d79b37b | 2018-11-02 13:06:22 +0000 | [diff] [blame] | 167 | ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifySoftFailDuringClinit/*.smali)) |
| 168 | ART_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)) |
| 169 | ART_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)) |
| 170 | |
| 171 | $(ART_TEST_HOST_GTEST_VerifySoftFailDuringClinit_DEX): $(ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC) $(HOST_OUT_EXECUTABLES)/smali |
| 172 | $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^) |
| 173 | |
| 174 | $(ART_TEST_TARGET_GTEST_VerifySoftFailDuringClinit_DEX): $(ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC) $(HOST_OUT_EXECUTABLES)/smali |
| 175 | $(HOST_OUT_EXECUTABLES)/smali assemble --output $@ $(filter %.smali,$^) |
| 176 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 177 | # Dex file dependencies for each gtest. |
David Sehr | 139512d | 2018-02-08 15:44:50 -0800 | [diff] [blame] | 178 | ART_GTEST_art_dex_file_loader_test_DEX_DEPS := GetMethodSignature Main Nested MultiDex |
Andreas Gampe | cac31ad | 2017-11-06 20:01:17 -0800 | [diff] [blame] | 179 | ART_GTEST_dex2oat_environment_tests_DEX_DEPS := Main MainStripped MultiDex MultiDexModifiedSecondary MyClassNatives Nested VerifierDeps VerifierDepsMulti |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 180 | |
Mathieu Chartier | 93764b8 | 2017-07-17 14:51:53 -0700 | [diff] [blame] | 181 | ART_GTEST_atomic_dex_ref_map_test_DEX_DEPS := Interfaces |
Calin Juravle | cdd4912 | 2017-07-05 20:09:53 -0700 | [diff] [blame] | 182 | ART_GTEST_class_linker_test_DEX_DEPS := AllFields ErroneousA ErroneousB ErroneousInit ForClassLoaderA ForClassLoaderB ForClassLoaderC ForClassLoaderD Interfaces MethodTypes MultiDex MyClass Nested Statics StaticsFromCode |
Calin Juravle | 57d0acc | 2017-07-11 17:41:30 -0700 | [diff] [blame] | 183 | ART_GTEST_class_loader_context_test_DEX_DEPS := Main MultiDex MyClass ForClassLoaderA ForClassLoaderB ForClassLoaderC ForClassLoaderD |
Mathieu Chartier | db70ce5 | 2016-12-12 11:06:59 -0800 | [diff] [blame] | 184 | ART_GTEST_class_table_test_DEX_DEPS := XandY |
Calin Juravle | 877fd96 | 2016-01-05 14:29:29 +0000 | [diff] [blame] | 185 | ART_GTEST_compiler_driver_test_DEX_DEPS := AbstractMethod StaticLeafMethods ProfileTestMultiDex |
Narayan Kamath | 25352fc | 2016-08-03 12:46:58 +0100 | [diff] [blame] | 186 | ART_GTEST_dex_cache_test_DEX_DEPS := Main Packages MethodTypes |
Mathieu Chartier | 2e0478a | 2018-04-06 14:33:25 -0700 | [diff] [blame] | 187 | ART_GTEST_dexanalyze_test_DEX_DEPS := MultiDex |
Mathieu Chartier | d00e02b | 2017-05-24 12:04:13 -0700 | [diff] [blame] | 188 | ART_GTEST_dexlayout_test_DEX_DEPS := ManyMethods |
Mathieu Chartier | cd0f38f | 2018-10-15 09:44:35 -0700 | [diff] [blame] | 189 | ART_GTEST_dex2oat_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) ManyMethods Statics VerifierDeps MainUncompressed EmptyUncompressed StringLiterals |
Mathieu Chartier | f70fe3d | 2017-06-21 15:24:02 -0700 | [diff] [blame] | 190 | ART_GTEST_dex2oat_image_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) Statics VerifierDeps |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 191 | ART_GTEST_exception_test_DEX_DEPS := ExceptionHandle |
David Brazdil | 2da3cbb | 2019-01-30 16:17:50 +0000 | [diff] [blame^] | 192 | ART_GTEST_hiddenapi_test_DEX_DEPS := HiddenApi HiddenApiStubs |
Mathew Inwood | 7d74ef5 | 2018-03-16 14:18:33 +0000 | [diff] [blame] | 193 | ART_GTEST_hidden_api_test_DEX_DEPS := HiddenApiSignatures |
Vladimir Marko | d79b37b | 2018-11-02 13:06:22 +0000 | [diff] [blame] | 194 | ART_GTEST_image_test_DEX_DEPS := ImageLayoutA ImageLayoutB DefaultMethods VerifySoftFailDuringClinit |
Andreas Gampe | a1ff30f | 2016-09-27 12:19:45 -0700 | [diff] [blame] | 195 | ART_GTEST_imtable_test_DEX_DEPS := IMTA IMTB |
Sebastien Hertz | 0462c4c | 2015-04-01 16:34:17 +0200 | [diff] [blame] | 196 | ART_GTEST_instrumentation_test_DEX_DEPS := Instrumentation |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 197 | ART_GTEST_jni_compiler_test_DEX_DEPS := MyClassNatives |
Nicolas Geoffray | 928567b | 2018-08-01 10:21:12 +0100 | [diff] [blame] | 198 | ART_GTEST_jni_internal_test_DEX_DEPS := AllFields StaticLeafMethods MyClassNatives |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 199 | ART_GTEST_oat_file_assistant_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 200 | ART_GTEST_dexoptanalyzer_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) |
Richard Uhler | 84f50ae | 2017-02-06 15:12:45 +0000 | [diff] [blame] | 201 | ART_GTEST_image_space_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) |
Nicolas Geoffray | 8baa11a | 2019-01-24 10:30:03 +0000 | [diff] [blame] | 202 | ART_GTEST_oat_file_test_DEX_DEPS := Main MultiDex MainUncompressed MultiDexUncompressed MainStripped Nested MultiDexModifiedSecondary |
Mathieu Chartier | 07ddb6f | 2015-11-05 11:16:34 -0800 | [diff] [blame] | 203 | ART_GTEST_oat_test_DEX_DEPS := Main |
Roland Levillain | 1f130f1 | 2018-03-12 18:39:19 +0000 | [diff] [blame] | 204 | ART_GTEST_oat_writer_test_DEX_DEPS := Main |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 205 | ART_GTEST_object_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY |
| 206 | ART_GTEST_proxy_test_DEX_DEPS := Interfaces |
| 207 | ART_GTEST_reflection_test_DEX_DEPS := Main NonStaticLeafMethods StaticLeafMethods |
Calin Juravle | 877fd96 | 2016-01-05 14:29:29 +0000 | [diff] [blame] | 208 | ART_GTEST_profile_assistant_test_DEX_DEPS := ProfileTestMultiDex |
Mathieu Chartier | db40eac | 2017-06-09 18:34:11 -0700 | [diff] [blame] | 209 | ART_GTEST_profile_compilation_info_test_DEX_DEPS := ManyMethods ProfileTestMultiDex |
Nicolas Geoffray | 44078f9 | 2018-10-01 12:57:55 +0100 | [diff] [blame] | 210 | ART_GTEST_profiling_info_test_DEX_DEPS := ProfileTestMultiDex |
Andreas Gampe | 0f01b58 | 2017-01-18 15:22:37 -0800 | [diff] [blame] | 211 | ART_GTEST_runtime_callbacks_test_DEX_DEPS := XandY |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 212 | ART_GTEST_stub_test_DEX_DEPS := AllFields |
| 213 | ART_GTEST_transaction_test_DEX_DEPS := Transaction |
Artem Udovichenko | d9786b0 | 2015-10-14 16:36:55 +0300 | [diff] [blame] | 214 | ART_GTEST_type_lookup_table_test_DEX_DEPS := Lookup |
Andreas Gampe | ae78c26 | 2017-02-01 20:40:44 -0800 | [diff] [blame] | 215 | ART_GTEST_unstarted_runtime_test_DEX_DEPS := Nested |
Mathieu Chartier | 1ca6890 | 2017-04-18 11:26:22 -0700 | [diff] [blame] | 216 | ART_GTEST_heap_verification_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY |
Nicolas Geoffray | 7cc3ae5 | 2017-03-07 14:33:37 +0000 | [diff] [blame] | 217 | ART_GTEST_verifier_deps_test_DEX_DEPS := VerifierDeps VerifierDepsMulti MultiDex |
Nicolas Geoffray | 01b70e8 | 2016-11-17 10:58:36 +0000 | [diff] [blame] | 218 | ART_GTEST_dex_to_dex_decompiler_test_DEX_DEPS := VerifierDeps DexToDexDecompiler |
Vladimir Marko | 421087b | 2018-02-27 11:00:17 +0000 | [diff] [blame] | 219 | ART_GTEST_oatdump_app_test_DEX_DEPS := ProfileTestMultiDex |
Nicolas Geoffray | 3ad2c2b | 2019-01-26 00:19:38 +0000 | [diff] [blame] | 220 | ART_GTEST_oatdump_test_DEX_DEPS := ProfileTestMultiDex |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 221 | |
| 222 | # The elf writer test has dependencies on core.oat. |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 223 | ART_GTEST_elf_writer_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32) |
| 224 | ART_GTEST_elf_writer_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32) |
Brian Carlstrom | 53463ea | 2014-11-09 14:11:51 -0800 | [diff] [blame] | 225 | |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 226 | ART_GTEST_dex2oat_environment_tests_HOST_DEPS := \ |
Richard Uhler | bb00f81 | 2017-02-16 14:21:10 +0000 | [diff] [blame] | 227 | $(HOST_CORE_IMAGE_optimizing_64) \ |
| 228 | $(HOST_CORE_IMAGE_optimizing_32) \ |
| 229 | $(HOST_CORE_IMAGE_interpreter_64) \ |
Vladimir Marko | a497a39 | 2018-09-26 10:52:50 +0100 | [diff] [blame] | 230 | $(HOST_CORE_IMAGE_interpreter_32) |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 231 | ART_GTEST_dex2oat_environment_tests_TARGET_DEPS := \ |
Richard Uhler | bb00f81 | 2017-02-16 14:21:10 +0000 | [diff] [blame] | 232 | $(TARGET_CORE_IMAGE_optimizing_64) \ |
| 233 | $(TARGET_CORE_IMAGE_optimizing_32) \ |
| 234 | $(TARGET_CORE_IMAGE_interpreter_64) \ |
Vladimir Marko | a497a39 | 2018-09-26 10:52:50 +0100 | [diff] [blame] | 235 | $(TARGET_CORE_IMAGE_interpreter_32) |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 236 | |
David Srbecky | ec2cdf4 | 2017-12-08 16:21:25 +0000 | [diff] [blame] | 237 | ART_GTEST_oat_file_test_HOST_DEPS := \ |
| 238 | $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) |
| 239 | ART_GTEST_oat_file_test_TARGET_DEPS := \ |
| 240 | $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) |
| 241 | |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 242 | ART_GTEST_oat_file_assistant_test_HOST_DEPS := \ |
Richard Uhler | f51ac42 | 2016-07-08 09:22:33 -0700 | [diff] [blame] | 243 | $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 244 | ART_GTEST_oat_file_assistant_test_TARGET_DEPS := \ |
Richard Uhler | f51ac42 | 2016-07-08 09:22:33 -0700 | [diff] [blame] | 245 | $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 246 | |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 247 | ART_GTEST_dexoptanalyzer_test_HOST_DEPS := \ |
| 248 | $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 249 | $(HOST_OUT_EXECUTABLES)/dexoptanalyzerd |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 250 | ART_GTEST_dexoptanalyzer_test_TARGET_DEPS := \ |
| 251 | $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 252 | $(TARGET_OUT_EXECUTABLES)/dexoptanalyzerd |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 253 | |
Richard Uhler | 84f50ae | 2017-02-06 15:12:45 +0000 | [diff] [blame] | 254 | ART_GTEST_image_space_test_HOST_DEPS := \ |
| 255 | $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) |
| 256 | ART_GTEST_image_space_test_TARGET_DEPS := \ |
| 257 | $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) |
| 258 | |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 259 | ART_GTEST_dex2oat_test_HOST_DEPS := \ |
Andreas Gampe | 4720046 | 2017-11-09 11:40:03 -0800 | [diff] [blame] | 260 | $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 261 | $(HOST_OUT_EXECUTABLES)/dex2oatd |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 262 | ART_GTEST_dex2oat_test_TARGET_DEPS := \ |
Andreas Gampe | 4720046 | 2017-11-09 11:40:03 -0800 | [diff] [blame] | 263 | $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 264 | $(TARGET_OUT_EXECUTABLES)/dex2oatd |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 265 | |
Mathieu Chartier | f70fe3d | 2017-06-21 15:24:02 -0700 | [diff] [blame] | 266 | ART_GTEST_dex2oat_image_test_HOST_DEPS := \ |
Andreas Gampe | 4720046 | 2017-11-09 11:40:03 -0800 | [diff] [blame] | 267 | $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 268 | $(HOST_OUT_EXECUTABLES)/dex2oatd |
Mathieu Chartier | f70fe3d | 2017-06-21 15:24:02 -0700 | [diff] [blame] | 269 | ART_GTEST_dex2oat_image_test_TARGET_DEPS := \ |
Andreas Gampe | 4720046 | 2017-11-09 11:40:03 -0800 | [diff] [blame] | 270 | $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 271 | $(TARGET_OUT_EXECUTABLES)/dex2oatd |
Mathieu Chartier | f70fe3d | 2017-06-21 15:24:02 -0700 | [diff] [blame] | 272 | |
Brian Carlstrom | 53463ea | 2014-11-09 14:11:51 -0800 | [diff] [blame] | 273 | # TODO: document why this is needed. |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 274 | ART_GTEST_proxy_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 275 | |
David Sehr | 55232f1 | 2017-04-19 14:06:49 -0700 | [diff] [blame] | 276 | # The dexdiag test requires the dexdiag utility. |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 277 | ART_GTEST_dexdiag_test_HOST_DEPS := $(HOST_OUT_EXECUTABLES)/dexdiag |
| 278 | ART_GTEST_dexdiag_test_TARGET_DEPS := $(TARGET_OUT_EXECUTABLES)/dexdiag |
David Sehr | 55232f1 | 2017-04-19 14:06:49 -0700 | [diff] [blame] | 279 | |
Aart Bik | cfbe53c | 2015-07-06 14:27:27 -0700 | [diff] [blame] | 280 | # The dexdump test requires an image and the dexdump utility. |
Aart Bik | 22c26f5 | 2015-07-08 21:20:13 +0000 | [diff] [blame] | 281 | # TODO: rename into dexdump when migration completes |
Aart Bik | cfbe53c | 2015-07-06 14:27:27 -0700 | [diff] [blame] | 282 | ART_GTEST_dexdump_test_HOST_DEPS := \ |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 283 | $(HOST_CORE_IMAGE_DEFAULT_64) \ |
| 284 | $(HOST_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 285 | $(HOST_OUT_EXECUTABLES)/dexdump2 |
Aart Bik | cfbe53c | 2015-07-06 14:27:27 -0700 | [diff] [blame] | 286 | ART_GTEST_dexdump_test_TARGET_DEPS := \ |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 287 | $(TARGET_CORE_IMAGE_DEFAULT_64) \ |
| 288 | $(TARGET_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 289 | $(TARGET_OUT_EXECUTABLES)/dexdump2 |
Aart Bik | cfbe53c | 2015-07-06 14:27:27 -0700 | [diff] [blame] | 290 | |
Mathieu Chartier | 0226c1d | 2018-05-17 00:19:12 -0700 | [diff] [blame] | 291 | # The dexanalyze test requires an image and the dexanalyze utility. |
| 292 | ART_GTEST_dexanalyze_test_HOST_DEPS := \ |
| 293 | $(HOST_CORE_IMAGE_DEFAULT_64) \ |
| 294 | $(HOST_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 295 | $(HOST_OUT_EXECUTABLES)/dexanalyze |
Mathieu Chartier | 0226c1d | 2018-05-17 00:19:12 -0700 | [diff] [blame] | 296 | ART_GTEST_dexanalyze_test_TARGET_DEPS := \ |
| 297 | $(TARGET_CORE_IMAGE_DEFAULT_64) \ |
| 298 | $(TARGET_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 299 | $(TARGET_OUT_EXECUTABLES)/dexanalyze |
Mathieu Chartier | 0226c1d | 2018-05-17 00:19:12 -0700 | [diff] [blame] | 300 | |
Jeff Hao | c3acfc5 | 2016-08-29 14:18:26 -0700 | [diff] [blame] | 301 | # The dexlayout test requires an image and the dexlayout utility. |
| 302 | # TODO: rename into dexdump when migration completes |
| 303 | ART_GTEST_dexlayout_test_HOST_DEPS := \ |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 304 | $(HOST_CORE_IMAGE_DEFAULT_64) \ |
| 305 | $(HOST_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 306 | $(HOST_OUT_EXECUTABLES)/dexlayoutd \ |
| 307 | $(HOST_OUT_EXECUTABLES)/dexdump2 |
Jeff Hao | c3acfc5 | 2016-08-29 14:18:26 -0700 | [diff] [blame] | 308 | ART_GTEST_dexlayout_test_TARGET_DEPS := \ |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 309 | $(TARGET_CORE_IMAGE_DEFAULT_64) \ |
| 310 | $(TARGET_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 311 | $(TARGET_OUT_EXECUTABLES)/dexlayoutd \ |
| 312 | $(TARGET_OUT_EXECUTABLES)/dexdump2 |
Jeff Hao | c3acfc5 | 2016-08-29 14:18:26 -0700 | [diff] [blame] | 313 | |
Aart Bik | 3e40f4a | 2015-07-07 17:09:41 -0700 | [diff] [blame] | 314 | # The dexlist test requires an image and the dexlist utility. |
Aart Bik | 3e40f4a | 2015-07-07 17:09:41 -0700 | [diff] [blame] | 315 | ART_GTEST_dexlist_test_HOST_DEPS := \ |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 316 | $(HOST_CORE_IMAGE_DEFAULT_64) \ |
| 317 | $(HOST_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 318 | $(HOST_OUT_EXECUTABLES)/dexlist |
Aart Bik | 3e40f4a | 2015-07-07 17:09:41 -0700 | [diff] [blame] | 319 | ART_GTEST_dexlist_test_TARGET_DEPS := \ |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 320 | $(TARGET_CORE_IMAGE_DEFAULT_64) \ |
| 321 | $(TARGET_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 322 | $(TARGET_OUT_EXECUTABLES)/dexlist |
Aart Bik | 3e40f4a | 2015-07-07 17:09:41 -0700 | [diff] [blame] | 323 | |
Igor Murashkin | 3774335 | 2014-11-13 14:38:00 -0800 | [diff] [blame] | 324 | # The imgdiag test has dependencies on core.oat since it needs to load it during the test. |
Andreas Gampe | c93b8b5 | 2014-12-19 23:12:25 -0800 | [diff] [blame] | 325 | # For the host, also add the installed tool (in the base size, that should suffice). For the |
| 326 | # target, just the module is fine, the sync will happen late enough. |
| 327 | ART_GTEST_imgdiag_test_HOST_DEPS := \ |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 328 | $(HOST_CORE_IMAGE_DEFAULT_64) \ |
| 329 | $(HOST_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 330 | $(HOST_OUT_EXECUTABLES)/imgdiagd |
Andreas Gampe | c93b8b5 | 2014-12-19 23:12:25 -0800 | [diff] [blame] | 331 | ART_GTEST_imgdiag_test_TARGET_DEPS := \ |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 332 | $(TARGET_CORE_IMAGE_DEFAULT_64) \ |
| 333 | $(TARGET_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 334 | $(TARGET_OUT_EXECUTABLES)/imgdiagd |
Igor Murashkin | 3774335 | 2014-11-13 14:38:00 -0800 | [diff] [blame] | 335 | |
Mathieu Chartier | 2e0478a | 2018-04-06 14:33:25 -0700 | [diff] [blame] | 336 | # Dex analyze test requires dexanalyze. |
| 337 | ART_GTEST_dexanalyze_test_HOST_DEPS := \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 338 | $(HOST_OUT_EXECUTABLES)/dexanalyze |
Mathieu Chartier | 2e0478a | 2018-04-06 14:33:25 -0700 | [diff] [blame] | 339 | ART_GTEST_dexanalyze_test_TARGET_DEPS := \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 340 | $(TARGET_OUT_EXECUTABLES)/dexanalyze |
Mathieu Chartier | 2e0478a | 2018-04-06 14:33:25 -0700 | [diff] [blame] | 341 | |
Mathieu Chartier | ea216b3 | 2015-05-26 19:48:16 -0700 | [diff] [blame] | 342 | # Oatdump test requires an image and oatfile to dump. |
| 343 | ART_GTEST_oatdump_test_HOST_DEPS := \ |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 344 | $(HOST_CORE_IMAGE_DEFAULT_64) \ |
| 345 | $(HOST_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 346 | $(HOST_OUT_EXECUTABLES)/oatdumpd \ |
| 347 | $(HOST_OUT_EXECUTABLES)/oatdumpds \ |
| 348 | $(HOST_OUT_EXECUTABLES)/dexdump2 |
Mathieu Chartier | ea216b3 | 2015-05-26 19:48:16 -0700 | [diff] [blame] | 349 | ART_GTEST_oatdump_test_TARGET_DEPS := \ |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 350 | $(TARGET_CORE_IMAGE_DEFAULT_64) \ |
| 351 | $(TARGET_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 352 | $(TARGET_OUT_EXECUTABLES)/oatdumpd \ |
| 353 | $(TARGET_OUT_EXECUTABLES)/dexdump2 |
Vladimir Marko | 1352f13 | 2017-04-28 15:28:29 +0100 | [diff] [blame] | 354 | ART_GTEST_oatdump_image_test_HOST_DEPS := $(ART_GTEST_oatdump_test_HOST_DEPS) |
| 355 | ART_GTEST_oatdump_image_test_TARGET_DEPS := $(ART_GTEST_oatdump_test_TARGET_DEPS) |
Vladimir Marko | 421087b | 2018-02-27 11:00:17 +0000 | [diff] [blame] | 356 | ART_GTEST_oatdump_app_test_HOST_DEPS := $(ART_GTEST_oatdump_test_HOST_DEPS) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 357 | $(HOST_OUT_EXECUTABLES)/dex2oatd \ |
| 358 | $(HOST_OUT_EXECUTABLES)/dex2oatds |
Vladimir Marko | 421087b | 2018-02-27 11:00:17 +0000 | [diff] [blame] | 359 | ART_GTEST_oatdump_app_test_TARGET_DEPS := $(ART_GTEST_oatdump_test_TARGET_DEPS) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 360 | $(TARGET_OUT_EXECUTABLES)/dex2oatd |
Mathieu Chartier | ea216b3 | 2015-05-26 19:48:16 -0700 | [diff] [blame] | 361 | |
Calin Juravle | 2e2db78 | 2016-02-23 12:00:03 +0000 | [diff] [blame] | 362 | # Profile assistant tests requires profman utility. |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 363 | ART_GTEST_profile_assistant_test_HOST_DEPS := $(HOST_OUT_EXECUTABLES)/profmand |
| 364 | ART_GTEST_profile_assistant_test_TARGET_DEPS := $(TARGET_OUT_EXECUTABLES)/profmand |
Calin Juravle | 2e2db78 | 2016-02-23 12:00:03 +0000 | [diff] [blame] | 365 | |
David Brazdil | 2b9c35b | 2018-01-12 15:44:43 +0000 | [diff] [blame] | 366 | ART_GTEST_hiddenapi_test_HOST_DEPS := \ |
| 367 | $(HOST_CORE_IMAGE_DEFAULT_64) \ |
| 368 | $(HOST_CORE_IMAGE_DEFAULT_32) \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 369 | $(HOST_OUT_EXECUTABLES)/hiddenapid |
David Brazdil | 2b9c35b | 2018-01-12 15:44:43 +0000 | [diff] [blame] | 370 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 371 | # The path for which all the source files are relative, not actually the current directory. |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 372 | LOCAL_PATH := art |
| 373 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 374 | ART_TEST_MODULES := \ |
| 375 | art_cmdline_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 376 | art_compiler_host_tests \ |
Martin Stjernholm | 750bf04 | 2019-01-09 22:51:12 +0000 | [diff] [blame] | 377 | art_compiler_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 378 | art_dex2oat_tests \ |
Mathieu Chartier | 2e0478a | 2018-04-06 14:33:25 -0700 | [diff] [blame] | 379 | art_dexanalyze_tests \ |
David Sehr | 55232f1 | 2017-04-19 14:06:49 -0700 | [diff] [blame] | 380 | art_dexdiag_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 381 | art_dexdump_tests \ |
| 382 | art_dexlayout_tests \ |
| 383 | art_dexlist_tests \ |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 384 | art_dexoptanalyzer_tests \ |
David Brazdil | 2b9c35b | 2018-01-12 15:44:43 +0000 | [diff] [blame] | 385 | art_hiddenapi_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 386 | art_imgdiag_tests \ |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 387 | art_libartbase_tests \ |
Martin Stjernholm | fdb2f60 | 2019-01-09 14:47:00 +0000 | [diff] [blame] | 388 | art_libdexfile_external_tests \ |
Martin Stjernholm | 750bf04 | 2019-01-09 22:51:12 +0000 | [diff] [blame] | 389 | art_libdexfile_support_tests \ |
David Sehr | 334b9d7 | 2018-02-12 18:27:56 -0800 | [diff] [blame] | 390 | art_libdexfile_tests \ |
David Sehr | d5f8de8 | 2018-04-27 14:12:03 -0700 | [diff] [blame] | 391 | art_libprofile_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 392 | art_oatdump_tests \ |
| 393 | art_profman_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 394 | art_runtime_compiler_tests \ |
Martin Stjernholm | 750bf04 | 2019-01-09 22:51:12 +0000 | [diff] [blame] | 395 | art_runtime_tests \ |
Josh Gao | 1eac77e | 2018-02-26 15:54:41 -0800 | [diff] [blame] | 396 | art_sigchain_tests \ |
Brian Carlstrom | a1ce1fe | 2014-02-24 23:23:58 -0800 | [diff] [blame] | 397 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 398 | ART_TARGET_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\ |
| 399 | $(ART_TEST_LIST_device_$(TARGET_ARCH)_$(m))) |
Alex Light | 50fa993 | 2015-08-10 15:30:07 -0700 | [diff] [blame] | 400 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 401 | ifdef TARGET_2ND_ARCH |
| 402 | 2ND_ART_TARGET_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\ |
| 403 | $(ART_TEST_LIST_device_$(2ND_TARGET_ARCH)_$(m))) |
| 404 | endif |
| 405 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 406 | ART_HOST_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\ |
Colin Cross | 124f881 | 2016-09-15 20:57:47 -0700 | [diff] [blame] | 407 | $(ART_TEST_LIST_host_$(ART_HOST_ARCH)_$(m))) |
Alex Light | 50fa993 | 2015-08-10 15:30:07 -0700 | [diff] [blame] | 408 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 409 | ifneq ($(HOST_PREFER_32_BIT),true) |
| 410 | 2ND_ART_HOST_GTEST_FILES += $(foreach m,$(ART_TEST_MODULES),\ |
| 411 | $(ART_TEST_LIST_host_$(2ND_ART_HOST_ARCH)_$(m))) |
| 412 | endif |
| 413 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 414 | # Variables holding collections of gtest pre-requisits used to run a number of gtests. |
| 415 | ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 416 | ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 417 | ART_TEST_HOST_GTEST_RULES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 418 | ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 419 | ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 420 | ART_TEST_TARGET_GTEST_RULES := |
Nicolas Geoffray | 58035ae | 2015-05-27 19:10:27 +0100 | [diff] [blame] | 421 | ART_TEST_HOST_GTEST_DEPENDENCIES := |
Nicolas Geoffray | 17b1dcb | 2018-10-12 15:09:42 +0100 | [diff] [blame] | 422 | ART_TEST_TARGET_GTEST_DEPENDENCIES := |
Andreas Gampe | afbaa1a | 2014-03-25 18:09:32 -0700 | [diff] [blame] | 423 | |
Nicolas Geoffray | 96a37c8 | 2014-10-29 23:50:40 +0000 | [diff] [blame] | 424 | ART_GTEST_TARGET_ANDROID_ROOT := '/system' |
| 425 | ifneq ($(ART_TEST_ANDROID_ROOT),) |
| 426 | ART_GTEST_TARGET_ANDROID_ROOT := $(ART_TEST_ANDROID_ROOT) |
| 427 | endif |
| 428 | |
Neil Fuller | 26c4377 | 2018-11-23 17:56:43 +0000 | [diff] [blame] | 429 | ART_GTEST_TARGET_ANDROID_RUNTIME_ROOT := '/apex/com.android.runtime' |
Roland Levillain | 7c777f8 | 2019-01-10 18:00:37 +0000 | [diff] [blame] | 430 | ifneq ($(ART_TEST_ANDROID_RUNTIME_ROOT),) |
| 431 | ART_GTEST_TARGET_ANDROID_RUNTIME_ROOT := $(ART_TEST_ANDROID_RUNTIME_ROOT) |
| 432 | endif |
Neil Fuller | 26c4377 | 2018-11-23 17:56:43 +0000 | [diff] [blame] | 433 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 434 | # Define a make rule for a target device gtest. |
| 435 | # $(1): gtest name - the name of the test we're building such as leb128_test. |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 436 | # $(2): path relative to $OUT to the test binary |
| 437 | # $(3): 2ND_ or undefined - used to differentiate between the primary and secondary architecture. |
| 438 | # $(4): LD_LIBRARY_PATH or undefined - used in case libartd.so is not in /system/lib/ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 439 | define define-art-gtest-rule-target |
Roland Levillain | c6d02fd | 2018-05-23 14:31:46 +0100 | [diff] [blame] | 440 | ifeq ($(ART_TEST_CHROOT),) |
| 441 | # Non-chroot configuration. |
| 442 | maybe_art_test_chroot := |
| 443 | maybe_chroot_command := |
| 444 | else |
| 445 | # Chroot configuration. |
| 446 | maybe_art_test_chroot := $(ART_TEST_CHROOT) |
| 447 | maybe_chroot_command := chroot $(ART_TEST_CHROOT) |
| 448 | endif |
| 449 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 450 | gtest_rule := test-art-target-gtest-$(1)$$($(3)ART_PHONY_TEST_TARGET_SUFFIX) |
| 451 | gtest_exe := $(OUT_DIR)/$(2) |
| 452 | gtest_target_exe := $$(patsubst $(PRODUCT_OUT)/%,/%,$$(gtest_exe)) |
Andreas Gampe | afbaa1a | 2014-03-25 18:09:32 -0700 | [diff] [blame] | 453 | |
Brian Carlstrom | 532714a | 2014-06-25 02:15:31 -0700 | [diff] [blame] | 454 | # Add the test dependencies to test-art-target-sync, which will be a prerequisite for the test |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 455 | # to ensure files are pushed to the device. |
Nicolas Geoffray | 17b1dcb | 2018-10-12 15:09:42 +0100 | [diff] [blame] | 456 | gtest_deps := \ |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 457 | $$(ART_GTEST_$(1)_TARGET_DEPS) \ |
Ian Rogers | 1a2f84e | 2014-07-07 16:05:18 -0700 | [diff] [blame] | 458 | $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_TARGET_GTEST_$(file)_DEX)) \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 459 | $$(gtest_exe) \ |
| 460 | $$($(3)TARGET_OUT_SHARED_LIBRARIES)/libjavacore.so \ |
| 461 | $$($(3)TARGET_OUT_SHARED_LIBRARIES)/libopenjdkd.so \ |
Vladimir Marko | 0ace563 | 2018-12-14 11:11:47 +0000 | [diff] [blame] | 462 | $$(foreach jar,$$(TARGET_TEST_CORE_JARS),$$(TARGET_OUT_JAVA_LIBRARIES)/$$(jar).jar) |
Andreas Gampe | afbaa1a | 2014-03-25 18:09:32 -0700 | [diff] [blame] | 463 | |
Nicolas Geoffray | 17b1dcb | 2018-10-12 15:09:42 +0100 | [diff] [blame] | 464 | ART_TEST_TARGET_GTEST_DEPENDENCIES += $$(gtest_deps) |
| 465 | |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 466 | $$(gtest_rule): PRIVATE_TARGET_EXE := $$(gtest_target_exe) |
| 467 | $$(gtest_rule): PRIVATE_MAYBE_CHROOT_COMMAND := $$(maybe_chroot_command) |
Roland Levillain | 76cfe61 | 2017-10-30 13:14:28 +0000 | [diff] [blame] | 468 | |
| 469 | # File witnessing the success of the gtest, the presence of which means the gtest's success. |
Roland Levillain | e119457 | 2018-05-10 17:57:20 +0100 | [diff] [blame] | 470 | gtest_witness := \ |
Roland Levillain | c6d02fd | 2018-05-23 14:31:46 +0100 | [diff] [blame] | 471 | $$(maybe_art_test_chroot)$(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$(gtest_rule)-$$$$PPID |
Roland Levillain | e119457 | 2018-05-10 17:57:20 +0100 | [diff] [blame] | 472 | |
Roland Levillain | c6d02fd | 2018-05-23 14:31:46 +0100 | [diff] [blame] | 473 | $$(gtest_rule): PRIVATE_GTEST_WITNESS := $$(gtest_witness) |
Roland Levillain | 76cfe61 | 2017-10-30 13:14:28 +0000 | [diff] [blame] | 474 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 475 | .PHONY: $$(gtest_rule) |
| 476 | $$(gtest_rule): test-art-target-sync |
Nicolas Geoffray | 64c2d77 | 2018-08-31 09:22:44 +0100 | [diff] [blame] | 477 | $(hide) $(ADB) shell touch $$(PRIVATE_GTEST_WITNESS) |
| 478 | $(hide) $(ADB) shell rm $$(PRIVATE_GTEST_WITNESS) |
| 479 | $(hide) $(ADB) shell $$(PRIVATE_MAYBE_CHROOT_COMMAND) chmod 755 $$(PRIVATE_TARGET_EXE) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 480 | $(hide) $$(call ART_TEST_SKIP,$$@) && \ |
Nicolas Geoffray | 64c2d77 | 2018-08-31 09:22:44 +0100 | [diff] [blame] | 481 | ($(ADB) shell "$$(PRIVATE_MAYBE_CHROOT_COMMAND) env $(GCOV_ENV) LD_LIBRARY_PATH=$(4) \ |
Neil Fuller | 26c4377 | 2018-11-23 17:56:43 +0000 | [diff] [blame] | 482 | ANDROID_ROOT=$(ART_GTEST_TARGET_ANDROID_ROOT) \ |
| 483 | ANDROID_RUNTIME_ROOT=$(ART_GTEST_TARGET_ANDROID_RUNTIME_ROOT) \ |
| 484 | $$(PRIVATE_TARGET_EXE) \ |
Roland Levillain | c6d02fd | 2018-05-23 14:31:46 +0100 | [diff] [blame] | 485 | && touch $$(PRIVATE_GTEST_WITNESS)" \ |
Nicolas Geoffray | 64c2d77 | 2018-08-31 09:22:44 +0100 | [diff] [blame] | 486 | && ($(ADB) pull $$(PRIVATE_GTEST_WITNESS) /tmp/ && $$(call ART_TEST_PASSED,$$@)) \ |
Roland Levillain | a42e704 | 2017-10-30 17:24:43 +0000 | [diff] [blame] | 487 | || $$(call ART_TEST_FAILED,$$@)) |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 488 | $(hide) rm -f /tmp/$$@-$$$$PPID |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 489 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 490 | ART_TEST_TARGET_GTEST$($(3)ART_PHONY_TEST_TARGET_SUFFIX)_RULES += $$(gtest_rule) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 491 | ART_TEST_TARGET_GTEST_RULES += $$(gtest_rule) |
| 492 | ART_TEST_TARGET_GTEST_$(1)_RULES += $$(gtest_rule) |
| 493 | |
| 494 | # Clear locally defined variables. |
Roland Levillain | 76cfe61 | 2017-10-30 13:14:28 +0000 | [diff] [blame] | 495 | gtest_witness := |
| 496 | maybe_chroot_command := |
| 497 | maybe_art_test_chroot := |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 498 | gtest_target_exe := |
Nicolas Geoffray | 17b1dcb | 2018-10-12 15:09:42 +0100 | [diff] [blame] | 499 | gtest_deps := |
Roland Levillain | 76cfe61 | 2017-10-30 13:14:28 +0000 | [diff] [blame] | 500 | gtest_exe := |
| 501 | gtest_rule := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 502 | endef # define-art-gtest-rule-target |
| 503 | |
| 504 | # Define make rules for a host gtests. |
| 505 | # $(1): gtest name - the name of the test we're building such as leb128_test. |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 506 | # $(2): path relative to $OUT to the test binary |
| 507 | # $(3): 2ND_ or undefined - used to differentiate between the primary and secondary architecture. |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 508 | define define-art-gtest-rule-host |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 509 | gtest_suffix := $(1)$$($(3)ART_PHONY_TEST_HOST_SUFFIX) |
| 510 | gtest_rule := test-art-host-gtest-$$(gtest_suffix) |
| 511 | gtest_output := $(call intermediates-dir-for,PACKAGING,art-host-gtest,HOST)/$$(gtest_suffix).xml |
Dan Willemsen | 0ef9457 | 2018-10-21 19:00:56 +0000 | [diff] [blame] | 512 | $$(call dist-for-goals,$$(gtest_rule),$$(gtest_output):gtest/$$(gtest_suffix)) |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 513 | gtest_exe := $(OUT_DIR)/$(2) |
Ian Rogers | 665de8a | 2014-06-24 21:34:09 -0700 | [diff] [blame] | 514 | # Dependencies for all host gtests. |
| 515 | gtest_deps := $$(HOST_CORE_DEX_LOCATIONS) \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 516 | $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libjavacore$$(ART_HOST_SHLIB_EXTENSION) \ |
| 517 | $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libopenjdkd$$(ART_HOST_SHLIB_EXTENSION) \ |
Nicolas Geoffray | 58035ae | 2015-05-27 19:10:27 +0100 | [diff] [blame] | 518 | $$(gtest_exe) \ |
| 519 | $$(ART_GTEST_$(1)_HOST_DEPS) \ |
Andreas Gampe | 28fd62a | 2018-12-12 15:15:22 -0800 | [diff] [blame] | 520 | $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_HOST_GTEST_$(file)_DEX)) \ |
| 521 | $(HOST_OUT_EXECUTABLES)/timeout_dumper |
Ian Rogers | 665de8a | 2014-06-24 21:34:09 -0700 | [diff] [blame] | 522 | |
Nicolas Geoffray | 58035ae | 2015-05-27 19:10:27 +0100 | [diff] [blame] | 523 | ART_TEST_HOST_GTEST_DEPENDENCIES += $$(gtest_deps) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 524 | |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 525 | .PHONY: $$(gtest_rule) |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 526 | $$(gtest_rule): $$(gtest_output) |
| 527 | |
| 528 | # Re-run the tests, even if nothing changed. Until the build system has a dedicated "no cache" |
| 529 | # option, claim to write a file that is never produced. |
| 530 | $$(gtest_output): .KATI_IMPLICIT_OUTPUTS := $$(gtest_output)-nocache |
| 531 | $$(gtest_output): NAME := $$(gtest_rule) |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 532 | ifeq (,$(SANITIZE_HOST)) |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 533 | $$(gtest_output): $$(gtest_exe) $$(gtest_deps) |
Andreas Gampe | 28fd62a | 2018-12-12 15:15:22 -0800 | [diff] [blame] | 534 | $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && \ |
Andreas Gampe | 4bdcf5d | 2018-12-14 10:48:53 -0800 | [diff] [blame] | 535 | timeout --foreground -k 120s -s SIGRTMIN+2 2400s $(HOST_OUT_EXECUTABLES)/timeout_dumper \ |
Andreas Gampe | 28fd62a | 2018-12-12 15:15:22 -0800 | [diff] [blame] | 536 | $$< --gtest_output=xml:$$@ && \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 537 | $$(call ART_TEST_PASSED,$$(NAME))) || $$(call ART_TEST_FAILED,$$(NAME)) |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 538 | else |
Andreas Gampe | 0385805 | 2017-05-01 08:17:24 -0700 | [diff] [blame] | 539 | # Note: envsetup currently exports ASAN_OPTIONS=detect_leaks=0 to suppress leak detection, as some |
| 540 | # build tools (e.g., ninja) intentionally leak. We want leak checks when we run our tests, so |
| 541 | # override ASAN_OPTIONS. b/37751350 |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 542 | # Note 2: Under sanitization, also capture the output, and run it through the stack tool on failure |
| 543 | # (with the x86-64 ABI, as this allows symbolization of both x86 and x86-64). We don't do this in |
| 544 | # general as it loses all the color output, and we have our own symbolization step when not running |
| 545 | # under ASAN. |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 546 | $$(gtest_output): $$(gtest_exe) $$(gtest_deps) |
| 547 | $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && set -o pipefail && \ |
Andreas Gampe | 4bdcf5d | 2018-12-14 10:48:53 -0800 | [diff] [blame] | 548 | ASAN_OPTIONS=detect_leaks=1 timeout --foreground -k 120s -s SIGRTMIN+2 3600s \ |
Andreas Gampe | 28fd62a | 2018-12-12 15:15:22 -0800 | [diff] [blame] | 549 | $(HOST_OUT_EXECUTABLES)/timeout_dumper \ |
| 550 | $$< --gtest_output=xml:$$@ 2>&1 | tee $$<.tmp.out >&2 && \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 551 | { $$(call ART_TEST_PASSED,$$(NAME)) ; rm $$<.tmp.out ; }) || \ |
Andreas Gampe | c05fd3f | 2018-01-23 14:22:07 -0800 | [diff] [blame] | 552 | ( grep -q AddressSanitizer $$<.tmp.out && export ANDROID_BUILD_TOP=`pwd` && \ |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 553 | { echo "ABI: 'x86_64'" | cat - $$<.tmp.out | development/scripts/stack | tail -n 3000 ; } ; \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 554 | rm $$<.tmp.out ; $$(call ART_TEST_FAILED,$$(NAME))) |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 555 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 556 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 557 | ART_TEST_HOST_GTEST$$($(3)ART_PHONY_TEST_HOST_SUFFIX)_RULES += $$(gtest_rule) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 558 | ART_TEST_HOST_GTEST_RULES += $$(gtest_rule) |
| 559 | ART_TEST_HOST_GTEST_$(1)_RULES += $$(gtest_rule) |
| 560 | |
Andreas Gampe | 3c0bb31 | 2015-02-19 10:02:19 -0800 | [diff] [blame] | 561 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 562 | # Clear locally defined variables. |
Ian Rogers | 665de8a | 2014-06-24 21:34:09 -0700 | [diff] [blame] | 563 | gtest_deps := |
Roland Levillain | 76cfe61 | 2017-10-30 13:14:28 +0000 | [diff] [blame] | 564 | gtest_exe := |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 565 | gtest_output := |
Roland Levillain | 76cfe61 | 2017-10-30 13:14:28 +0000 | [diff] [blame] | 566 | gtest_rule := |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 567 | gtest_suffix := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 568 | endef # define-art-gtest-rule-host |
| 569 | |
| 570 | # Define the rules to build and run host and target gtests. |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 571 | # $(1): file name |
| 572 | # $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture. |
| 573 | define define-art-gtest-target |
| 574 | art_gtest_filename := $(1) |
Brian Carlstrom | 0796af0 | 2011-10-12 14:31:45 -0700 | [diff] [blame] | 575 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 576 | include $$(CLEAR_VARS) |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 577 | art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename))) |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 578 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 579 | library_path := |
| 580 | 2ND_library_path := |
| 581 | ifneq ($$(ART_TEST_ANDROID_ROOT),) |
| 582 | ifdef TARGET_2ND_ARCH |
| 583 | 2ND_library_path := $$(ART_TEST_ANDROID_ROOT)/lib |
| 584 | library_path := $$(ART_TEST_ANDROID_ROOT)/lib64 |
| 585 | else |
| 586 | ifneq ($(filter %64,$(TARGET_ARCH)),) |
Nicolas Geoffray | 9eb4074 | 2014-10-29 22:38:53 +0000 | [diff] [blame] | 587 | library_path := $$(ART_TEST_ANDROID_ROOT)/lib64 |
| 588 | else |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 589 | library_path := $$(ART_TEST_ANDROID_ROOT)/lib |
Nicolas Geoffray | 9eb4074 | 2014-10-29 22:38:53 +0000 | [diff] [blame] | 590 | endif |
| 591 | endif |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 592 | endif |
Andreas Gampe | 5ca4eaa | 2014-05-29 02:09:33 -0700 | [diff] [blame] | 593 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 594 | ifndef ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 595 | ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES := |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 596 | endif |
| 597 | $$(eval $$(call define-art-gtest-rule-target,$$(art_gtest_name),$$(art_gtest_filename),$(2),$$($(2)library_path))) |
| 598 | |
| 599 | # Clear locally defined variables. |
| 600 | art_gtest_filename := |
| 601 | art_gtest_name := |
| 602 | library_path := |
| 603 | 2ND_library_path := |
| 604 | endef # define-art-gtest-target |
| 605 | |
| 606 | # $(1): file name |
| 607 | # $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture. |
| 608 | define define-art-gtest-host |
| 609 | art_gtest_filename := $(1) |
| 610 | |
| 611 | include $$(CLEAR_VARS) |
| 612 | art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename))) |
| 613 | ifndef ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES |
| 614 | ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES := |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 615 | endif |
| 616 | $$(eval $$(call define-art-gtest-rule-host,$$(art_gtest_name),$$(art_gtest_filename),$(2))) |
| 617 | |
| 618 | # Clear locally defined variables. |
| 619 | art_gtest_filename := |
| 620 | art_gtest_name := |
| 621 | endef # define-art-gtest-host |
| 622 | |
| 623 | # Define the rules to build and run gtests for both archs on target. |
| 624 | # $(1): test name |
| 625 | define define-art-gtest-target-both |
| 626 | art_gtest_name := $(1) |
Andreas Gampe | afbaa1a | 2014-03-25 18:09:32 -0700 | [diff] [blame] | 627 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 628 | # A rule to run the different architecture versions of the gtest. |
| 629 | .PHONY: test-art-target-gtest-$$(art_gtest_name) |
| 630 | test-art-target-gtest-$$(art_gtest_name): $$(ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES) |
| 631 | $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@) |
| 632 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 633 | # Clear now unused variables. |
| 634 | ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES := |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 635 | art_gtest_name := |
| 636 | endef # define-art-gtest-target-both |
Ian Rogers | d912e5c | 2013-11-13 12:40:11 -0800 | [diff] [blame] | 637 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 638 | # Define the rules to build and run gtests for both archs on host. |
| 639 | # $(1): test name |
| 640 | define define-art-gtest-host-both |
| 641 | art_gtest_name := $(1) |
| 642 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 643 | .PHONY: test-art-host-gtest-$$(art_gtest_name) |
| 644 | test-art-host-gtest-$$(art_gtest_name): $$(ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES) |
| 645 | $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@) |
Ian Rogers | d912e5c | 2013-11-13 12:40:11 -0800 | [diff] [blame] | 646 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 647 | # Clear now unused variables. |
| 648 | ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 649 | art_gtest_name := |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 650 | endef # define-art-gtest-host-both |
Alex Light | 50fa993 | 2015-08-10 15:30:07 -0700 | [diff] [blame] | 651 | |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 652 | ifeq ($(ART_BUILD_TARGET),true) |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 653 | $(foreach file,$(ART_TARGET_GTEST_FILES), $(eval $(call define-art-gtest-target,$(file),))) |
Dan Willemsen | 5d2dbf8 | 2018-04-11 12:31:11 -0700 | [diff] [blame] | 654 | ifdef 2ND_ART_PHONY_TEST_TARGET_SUFFIX |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 655 | $(foreach file,$(2ND_ART_TARGET_GTEST_FILES), $(eval $(call define-art-gtest-target,$(file),2ND_))) |
| 656 | endif |
| 657 | # Rules to run the different architecture versions of the gtest. |
| 658 | $(foreach file,$(ART_TARGET_GTEST_FILES), $(eval $(call define-art-gtest-target-both,$$(notdir $$(basename $$(file)))))) |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 659 | endif |
Ian Rogers | c5f1773 | 2014-06-05 20:48:42 -0700 | [diff] [blame] | 660 | ifeq ($(ART_BUILD_HOST),true) |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 661 | $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),))) |
| 662 | ifneq ($(HOST_PREFER_32_BIT),true) |
| 663 | $(foreach file,$(2ND_ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),2ND_))) |
| 664 | endif |
| 665 | # Rules to run the different architecture versions of the gtest. |
| 666 | $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host-both,$$(notdir $$(basename $$(file)))))) |
Brian Carlstrom | 07d579f | 2011-07-27 13:31:51 -0700 | [diff] [blame] | 667 | endif |
Tsu Chiang Chuang | ec245a4 | 2014-05-15 21:16:21 -0700 | [diff] [blame] | 668 | |
| 669 | # Used outside the art project to get a list of the current tests |
| 670 | RUNTIME_TARGET_GTEST_MAKE_TARGETS := |
Dan Willemsen | cf767de | 2018-04-10 16:40:10 -0700 | [diff] [blame] | 671 | $(foreach file, $(ART_TARGET_GTEST_FILES), $(eval RUNTIME_TARGET_GTEST_MAKE_TARGETS += $$(notdir $$(patsubst %/,%,$$(dir $$(file))))_$$(notdir $$(basename $$(file))))) |
Tsu Chiang Chuang | ec245a4 | 2014-05-15 21:16:21 -0700 | [diff] [blame] | 672 | COMPILER_TARGET_GTEST_MAKE_TARGETS := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 673 | |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 674 | # Define all the combinations of host/target and suffix such as: |
| 675 | # test-art-host-gtest or test-art-host-gtest64 |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 676 | # $(1): host or target |
| 677 | # $(2): HOST or TARGET |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 678 | # $(3): undefined, 32 or 64 |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 679 | define define-test-art-gtest-combination |
| 680 | ifeq ($(1),host) |
| 681 | ifneq ($(2),HOST) |
| 682 | $$(error argument mismatch $(1) and ($2)) |
| 683 | endif |
| 684 | else |
| 685 | ifneq ($(1),target) |
| 686 | $$(error found $(1) expected host or target) |
| 687 | endif |
| 688 | ifneq ($(2),TARGET) |
| 689 | $$(error argument mismatch $(1) and ($2)) |
| 690 | endif |
| 691 | endif |
| 692 | |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 693 | rule_name := test-art-$(1)-gtest$(3) |
| 694 | dependencies := $$(ART_TEST_$(2)_GTEST$(3)_RULES) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 695 | |
| 696 | .PHONY: $$(rule_name) |
Orion Hodson | 64fe3be | 2018-06-15 12:50:22 +0100 | [diff] [blame] | 697 | $$(rule_name): $$(dependencies) d8 d8-compat-dx |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 698 | $(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@) |
| 699 | |
| 700 | # Clear locally defined variables. |
| 701 | rule_name := |
| 702 | dependencies := |
| 703 | endef # define-test-art-gtest-combination |
| 704 | |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 705 | $(eval $(call define-test-art-gtest-combination,target,TARGET,)) |
| 706 | $(eval $(call define-test-art-gtest-combination,target,TARGET,$(ART_PHONY_TEST_TARGET_SUFFIX))) |
Dan Willemsen | 5d2dbf8 | 2018-04-11 12:31:11 -0700 | [diff] [blame] | 707 | ifdef 2ND_ART_PHONY_TEST_TARGET_SUFFIX |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 708 | $(eval $(call define-test-art-gtest-combination,target,TARGET,$(2ND_ART_PHONY_TEST_TARGET_SUFFIX))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 709 | endif |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 710 | $(eval $(call define-test-art-gtest-combination,host,HOST,)) |
| 711 | $(eval $(call define-test-art-gtest-combination,host,HOST,$(ART_PHONY_TEST_HOST_SUFFIX))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 712 | ifneq ($(HOST_PREFER_32_BIT),true) |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 713 | $(eval $(call define-test-art-gtest-combination,host,HOST,$(2ND_ART_PHONY_TEST_HOST_SUFFIX))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 714 | endif |
| 715 | |
| 716 | # Clear locally defined variables. |
| 717 | define-art-gtest-rule-target := |
| 718 | define-art-gtest-rule-host := |
| 719 | define-art-gtest := |
| 720 | define-test-art-gtest-combination := |
| 721 | RUNTIME_GTEST_COMMON_SRC_FILES := |
| 722 | COMPILER_GTEST_COMMON_SRC_FILES := |
| 723 | RUNTIME_GTEST_TARGET_SRC_FILES := |
| 724 | RUNTIME_GTEST_HOST_SRC_FILES := |
| 725 | COMPILER_GTEST_TARGET_SRC_FILES := |
| 726 | COMPILER_GTEST_HOST_SRC_FILES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 727 | ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 728 | ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 729 | ART_TEST_HOST_GTEST_RULES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 730 | ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 731 | ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 732 | ART_TEST_TARGET_GTEST_RULES := |
Nicolas Geoffray | 96a37c8 | 2014-10-29 23:50:40 +0000 | [diff] [blame] | 733 | ART_GTEST_TARGET_ANDROID_ROOT := |
Neil Fuller | 26c4377 | 2018-11-23 17:56:43 +0000 | [diff] [blame] | 734 | ART_GTEST_TARGET_ANDROID_RUNTIME_ROOT := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 735 | ART_GTEST_class_linker_test_DEX_DEPS := |
Mathieu Chartier | db70ce5 | 2016-12-12 11:06:59 -0800 | [diff] [blame] | 736 | ART_GTEST_class_table_test_DEX_DEPS := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 737 | ART_GTEST_compiler_driver_test_DEX_DEPS := |
| 738 | ART_GTEST_dex_file_test_DEX_DEPS := |
| 739 | ART_GTEST_exception_test_DEX_DEPS := |
| 740 | ART_GTEST_elf_writer_test_HOST_DEPS := |
| 741 | ART_GTEST_elf_writer_test_TARGET_DEPS := |
Andreas Gampe | a1ff30f | 2016-09-27 12:19:45 -0700 | [diff] [blame] | 742 | ART_GTEST_imtable_test_DEX_DEPS := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 743 | ART_GTEST_jni_compiler_test_DEX_DEPS := |
| 744 | ART_GTEST_jni_internal_test_DEX_DEPS := |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 745 | ART_GTEST_oat_file_assistant_test_DEX_DEPS := |
| 746 | ART_GTEST_oat_file_assistant_test_HOST_DEPS := |
| 747 | ART_GTEST_oat_file_assistant_test_TARGET_DEPS := |
Mathieu Chartier | 0be7fa7 | 2018-04-12 10:13:29 -0700 | [diff] [blame] | 748 | ART_GTEST_dexanalyze_test_DEX_DEPS := |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 749 | ART_GTEST_dexoptanalyzer_test_DEX_DEPS := |
| 750 | ART_GTEST_dexoptanalyzer_test_HOST_DEPS := |
| 751 | ART_GTEST_dexoptanalyzer_test_TARGET_DEPS := |
Richard Uhler | 84f50ae | 2017-02-06 15:12:45 +0000 | [diff] [blame] | 752 | ART_GTEST_image_space_test_DEX_DEPS := |
| 753 | ART_GTEST_image_space_test_HOST_DEPS := |
| 754 | ART_GTEST_image_space_test_TARGET_DEPS := |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 755 | ART_GTEST_dex2oat_test_DEX_DEPS := |
| 756 | ART_GTEST_dex2oat_test_HOST_DEPS := |
| 757 | ART_GTEST_dex2oat_test_TARGET_DEPS := |
Mathieu Chartier | f70fe3d | 2017-06-21 15:24:02 -0700 | [diff] [blame] | 758 | ART_GTEST_dex2oat_image_test_DEX_DEPS := |
| 759 | ART_GTEST_dex2oat_image_test_HOST_DEPS := |
| 760 | ART_GTEST_dex2oat_image_test_TARGET_DEPS := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 761 | ART_GTEST_object_test_DEX_DEPS := |
| 762 | ART_GTEST_proxy_test_DEX_DEPS := |
| 763 | ART_GTEST_reflection_test_DEX_DEPS := |
| 764 | ART_GTEST_stub_test_DEX_DEPS := |
| 765 | ART_GTEST_transaction_test_DEX_DEPS := |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 766 | ART_GTEST_dex2oat_environment_tests_DEX_DEPS := |
Mathieu Chartier | 1ca6890 | 2017-04-18 11:26:22 -0700 | [diff] [blame] | 767 | ART_GTEST_heap_verification_test_DEX_DEPS := |
David Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 768 | ART_GTEST_verifier_deps_test_DEX_DEPS := |
Ian Rogers | 1a2f84e | 2014-07-07 16:05:18 -0700 | [diff] [blame] | 769 | $(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_TARGET_GTEST_$(dir)_DEX :=)) |
| 770 | $(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_HOST_GTEST_$(dir)_DEX :=)) |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 771 | ART_TEST_HOST_GTEST_MainStripped_DEX := |
| 772 | ART_TEST_TARGET_GTEST_MainStripped_DEX := |
Nicolas Geoffray | f307527 | 2018-01-08 12:41:19 +0000 | [diff] [blame] | 773 | ART_TEST_HOST_GTEST_MainUncompressed_DEX := |
| 774 | ART_TEST_TARGET_GTEST_MainUncompressed_DEX := |
Mathieu Chartier | 700a985 | 2018-02-06 18:27:38 -0800 | [diff] [blame] | 775 | ART_TEST_HOST_GTEST_EmptyUncompressed_DEX := |
| 776 | ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX := |
David Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 777 | ART_TEST_GTEST_VerifierDeps_SRC := |
| 778 | ART_TEST_HOST_GTEST_VerifierDeps_DEX := |
David Brazdil | f906f12 | 2016-09-16 16:33:31 +0100 | [diff] [blame] | 779 | ART_TEST_TARGET_GTEST_VerifierDeps_DEX := |
Vladimir Marko | d79b37b | 2018-11-02 13:06:22 +0000 | [diff] [blame] | 780 | ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC := |
| 781 | ART_TEST_HOST_GTEST_VerifySoftFailDuringClinit_DEX := |
| 782 | ART_TEST_TARGET_GTEST_VerifySoftFailDuringClinit_DEX := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 783 | GTEST_DEX_DIRECTORIES := |
Brian Carlstrom | 532714a | 2014-06-25 02:15:31 -0700 | [diff] [blame] | 784 | LOCAL_PATH := |