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