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