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 \ |
Nicolas Geoffray | 01b70e8 | 2016-11-17 10:58:36 +0000 | [diff] [blame] | 28 | DexToDexDecompiler \ |
Mathieu Chartier | 1e4841e | 2016-12-15 14:21:04 -0800 | [diff] [blame] | 29 | ErroneousA \ |
| 30 | ErroneousB \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 31 | ExceptionHandle \ |
| 32 | GetMethodSignature \ |
Mathieu Chartier | 496577f | 2016-09-20 15:33:31 -0700 | [diff] [blame] | 33 | ImageLayoutA \ |
| 34 | ImageLayoutB \ |
Andreas Gampe | a1ff30f | 2016-09-27 12:19:45 -0700 | [diff] [blame] | 35 | IMTA \ |
| 36 | IMTB \ |
Sebastien Hertz | 0462c4c | 2015-04-01 16:34:17 +0200 | [diff] [blame] | 37 | Instrumentation \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 38 | Interfaces \ |
Artem Udovichenko | d9786b0 | 2015-10-14 16:36:55 +0300 | [diff] [blame] | 39 | Lookup \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 40 | Main \ |
Narayan Kamath | 25352fc | 2016-08-03 12:46:58 +0100 | [diff] [blame] | 41 | MethodTypes \ |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 42 | MultiDex \ |
Richard Uhler | 67ff7d1 | 2015-05-14 13:21:13 -0700 | [diff] [blame] | 43 | MultiDexModifiedSecondary \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 44 | MyClass \ |
| 45 | MyClassNatives \ |
| 46 | Nested \ |
| 47 | NonStaticLeafMethods \ |
Mathieu Chartier | 279ac5c | 2016-09-08 17:34:25 -0700 | [diff] [blame] | 48 | Packages \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 49 | ProtoCompare \ |
| 50 | ProtoCompare2 \ |
Calin Juravle | 877fd96 | 2016-01-05 14:29:29 +0000 | [diff] [blame] | 51 | ProfileTestMultiDex \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 52 | StaticLeafMethods \ |
| 53 | Statics \ |
| 54 | StaticsFromCode \ |
| 55 | Transaction \ |
| 56 | XandY |
| 57 | |
| 58 | # Create build rules for each dex file recording the dependency. |
| 59 | $(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] | 60 | $(ART_TARGET_NATIVETEST_OUT),art/build/Android.gtest.mk,ART_TEST_TARGET_GTEST_$(dir)_DEX, \ |
| 61 | ART_TEST_HOST_GTEST_$(dir)_DEX))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 62 | |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 63 | # Create rules for MainStripped, a copy of Main with the classes.dex stripped |
| 64 | # for the oat file assistant tests. |
| 65 | ART_TEST_HOST_GTEST_MainStripped_DEX := $(basename $(ART_TEST_HOST_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_HOST_GTEST_Main_DEX)) |
| 66 | ART_TEST_TARGET_GTEST_MainStripped_DEX := $(basename $(ART_TEST_TARGET_GTEST_Main_DEX))Stripped$(suffix $(ART_TEST_TARGET_GTEST_Main_DEX)) |
| 67 | |
| 68 | $(ART_TEST_HOST_GTEST_MainStripped_DEX): $(ART_TEST_HOST_GTEST_Main_DEX) |
| 69 | cp $< $@ |
| 70 | $(call dexpreopt-remove-classes.dex,$@) |
| 71 | |
| 72 | $(ART_TEST_TARGET_GTEST_MainStripped_DEX): $(ART_TEST_TARGET_GTEST_Main_DEX) |
| 73 | cp $< $@ |
| 74 | $(call dexpreopt-remove-classes.dex,$@) |
| 75 | |
David Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 76 | ART_TEST_GTEST_VerifierDeps_SRC := $(abspath $(wildcard $(LOCAL_PATH)/VerifierDeps/*.smali)) |
| 77 | 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] | 78 | 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)) |
David Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 79 | |
| 80 | $(ART_TEST_HOST_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali |
| 81 | $(HOST_OUT_EXECUTABLES)/smali --output=$@ $(filter %.smali,$^) |
| 82 | |
David Brazdil | f906f12 | 2016-09-16 16:33:31 +0100 | [diff] [blame] | 83 | $(ART_TEST_TARGET_GTEST_VerifierDeps_DEX): $(ART_TEST_GTEST_VerifierDeps_SRC) $(HOST_OUT_EXECUTABLES)/smali |
| 84 | $(HOST_OUT_EXECUTABLES)/smali --output=$@ $(filter %.smali,$^) |
| 85 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 86 | # Dex file dependencies for each gtest. |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 87 | ART_GTEST_dex2oat_environment_tests_DEX_DEPS := Main MainStripped MultiDex MultiDexModifiedSecondary Nested |
| 88 | |
Mathieu Chartier | 9df8931 | 2016-11-23 13:28:16 -0800 | [diff] [blame] | 89 | ART_GTEST_atomic_method_ref_map_test_DEX_DEPS := Interfaces |
Mathieu Chartier | 1e4841e | 2016-12-15 14:21:04 -0800 | [diff] [blame] | 90 | ART_GTEST_class_linker_test_DEX_DEPS := ErroneousA ErroneousB Interfaces MethodTypes MultiDex MyClass Nested Statics StaticsFromCode |
Mathieu Chartier | db70ce5 | 2016-12-12 11:06:59 -0800 | [diff] [blame] | 91 | ART_GTEST_class_table_test_DEX_DEPS := XandY |
Calin Juravle | 877fd96 | 2016-01-05 14:29:29 +0000 | [diff] [blame] | 92 | ART_GTEST_compiler_driver_test_DEX_DEPS := AbstractMethod StaticLeafMethods ProfileTestMultiDex |
Narayan Kamath | 25352fc | 2016-08-03 12:46:58 +0100 | [diff] [blame] | 93 | ART_GTEST_dex_cache_test_DEX_DEPS := Main Packages MethodTypes |
Andreas Gampe | da82344 | 2014-11-03 15:36:53 -0800 | [diff] [blame] | 94 | ART_GTEST_dex_file_test_DEX_DEPS := GetMethodSignature Main Nested |
Andreas Gampe | 7adeda8 | 2016-07-25 08:27:35 -0700 | [diff] [blame] | 95 | ART_GTEST_dex2oat_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) Statics |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 96 | ART_GTEST_exception_test_DEX_DEPS := ExceptionHandle |
Mathieu Chartier | 496577f | 2016-09-20 15:33:31 -0700 | [diff] [blame] | 97 | ART_GTEST_image_test_DEX_DEPS := ImageLayoutA ImageLayoutB |
Andreas Gampe | a1ff30f | 2016-09-27 12:19:45 -0700 | [diff] [blame] | 98 | ART_GTEST_imtable_test_DEX_DEPS := IMTA IMTB |
Sebastien Hertz | 0462c4c | 2015-04-01 16:34:17 +0200 | [diff] [blame] | 99 | ART_GTEST_instrumentation_test_DEX_DEPS := Instrumentation |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 100 | ART_GTEST_jni_compiler_test_DEX_DEPS := MyClassNatives |
| 101 | ART_GTEST_jni_internal_test_DEX_DEPS := AllFields StaticLeafMethods |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 102 | ART_GTEST_oat_file_assistant_test_DEX_DEPS := $(ART_GTEST_dex2oat_environment_tests_DEX_DEPS) |
Andreas Gampe | 7848da4 | 2015-04-09 11:15:04 -0700 | [diff] [blame] | 103 | ART_GTEST_oat_file_test_DEX_DEPS := Main MultiDex |
Mathieu Chartier | 07ddb6f | 2015-11-05 11:16:34 -0800 | [diff] [blame] | 104 | ART_GTEST_oat_test_DEX_DEPS := Main |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 105 | ART_GTEST_object_test_DEX_DEPS := ProtoCompare ProtoCompare2 StaticsFromCode XandY |
| 106 | ART_GTEST_proxy_test_DEX_DEPS := Interfaces |
| 107 | ART_GTEST_reflection_test_DEX_DEPS := Main NonStaticLeafMethods StaticLeafMethods |
Calin Juravle | 877fd96 | 2016-01-05 14:29:29 +0000 | [diff] [blame] | 108 | ART_GTEST_profile_assistant_test_DEX_DEPS := ProfileTestMultiDex |
| 109 | ART_GTEST_profile_compilation_info_test_DEX_DEPS := ProfileTestMultiDex |
Andreas Gampe | 0f01b58 | 2017-01-18 15:22:37 -0800 | [diff] [blame^] | 110 | ART_GTEST_runtime_callbacks_test_DEX_DEPS := XandY |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 111 | ART_GTEST_stub_test_DEX_DEPS := AllFields |
| 112 | ART_GTEST_transaction_test_DEX_DEPS := Transaction |
Artem Udovichenko | d9786b0 | 2015-10-14 16:36:55 +0300 | [diff] [blame] | 113 | ART_GTEST_type_lookup_table_test_DEX_DEPS := Lookup |
Nicolas Geoffray | d01f60c | 2016-10-28 14:45:48 +0100 | [diff] [blame] | 114 | ART_GTEST_verifier_deps_test_DEX_DEPS := VerifierDeps MultiDex |
Nicolas Geoffray | 01b70e8 | 2016-11-17 10:58:36 +0000 | [diff] [blame] | 115 | ART_GTEST_dex_to_dex_decompiler_test_DEX_DEPS := VerifierDeps DexToDexDecompiler |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 116 | |
| 117 | # The elf writer test has dependencies on core.oat. |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 118 | ART_GTEST_elf_writer_test_HOST_DEPS := $(HOST_CORE_IMAGE_optimizing_no-pic_64) $(HOST_CORE_IMAGE_optimizing_no-pic_32) |
| 119 | ART_GTEST_elf_writer_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_optimizing_no-pic_64) $(TARGET_CORE_IMAGE_optimizing_no-pic_32) |
Brian Carlstrom | 53463ea | 2014-11-09 14:11:51 -0800 | [diff] [blame] | 120 | |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 121 | ART_GTEST_dex2oat_environment_tests_HOST_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 122 | $(HOST_CORE_IMAGE_optimizing_pic_64) \ |
| 123 | $(HOST_CORE_IMAGE_optimizing_pic_32) \ |
Richard Uhler | cb6a591 | 2017-01-19 10:53:59 +0000 | [diff] [blame] | 124 | $(HOST_CORE_IMAGE_optimizing_no-pic_64) \ |
| 125 | $(HOST_CORE_IMAGE_optimizing_no-pic_32) \ |
Richard Uhler | f51ac42 | 2016-07-08 09:22:33 -0700 | [diff] [blame] | 126 | $(HOST_OUT_EXECUTABLES)/patchoatd |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 127 | ART_GTEST_dex2oat_environment_tests_TARGET_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 128 | $(TARGET_CORE_IMAGE_optimizing_pic_64) \ |
| 129 | $(TARGET_CORE_IMAGE_optimizing_pic_32) \ |
Richard Uhler | cb6a591 | 2017-01-19 10:53:59 +0000 | [diff] [blame] | 130 | $(TARGET_CORE_IMAGE_optimizing_no-pic_64) \ |
| 131 | $(TARGET_CORE_IMAGE_optimizing_no-pic_32) \ |
Richard Uhler | f51ac42 | 2016-07-08 09:22:33 -0700 | [diff] [blame] | 132 | $(TARGET_OUT_EXECUTABLES)/patchoatd |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 133 | |
| 134 | ART_GTEST_oat_file_assistant_test_HOST_DEPS := \ |
Richard Uhler | f51ac42 | 2016-07-08 09:22:33 -0700 | [diff] [blame] | 135 | $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 136 | ART_GTEST_oat_file_assistant_test_TARGET_DEPS := \ |
Richard Uhler | f51ac42 | 2016-07-08 09:22:33 -0700 | [diff] [blame] | 137 | $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 138 | |
| 139 | |
| 140 | ART_GTEST_dex2oat_test_HOST_DEPS := \ |
| 141 | $(ART_GTEST_dex2oat_environment_tests_HOST_DEPS) |
| 142 | ART_GTEST_dex2oat_test_TARGET_DEPS := \ |
| 143 | $(ART_GTEST_dex2oat_environment_tests_TARGET_DEPS) |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 144 | |
Brian Carlstrom | 53463ea | 2014-11-09 14:11:51 -0800 | [diff] [blame] | 145 | # TODO: document why this is needed. |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 146 | ART_GTEST_proxy_test_HOST_DEPS := $(HOST_CORE_IMAGE_optimizing_no-pic_64) $(HOST_CORE_IMAGE_optimizing_no-pic_32) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 147 | |
Aart Bik | cfbe53c | 2015-07-06 14:27:27 -0700 | [diff] [blame] | 148 | # The dexdump test requires an image and the dexdump utility. |
Aart Bik | 22c26f5 | 2015-07-08 21:20:13 +0000 | [diff] [blame] | 149 | # TODO: rename into dexdump when migration completes |
Aart Bik | cfbe53c | 2015-07-06 14:27:27 -0700 | [diff] [blame] | 150 | ART_GTEST_dexdump_test_HOST_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 151 | $(HOST_CORE_IMAGE_optimizing_no-pic_64) \ |
| 152 | $(HOST_CORE_IMAGE_optimizing_no-pic_32) \ |
Aart Bik | 22c26f5 | 2015-07-08 21:20:13 +0000 | [diff] [blame] | 153 | $(HOST_OUT_EXECUTABLES)/dexdump2 |
Aart Bik | cfbe53c | 2015-07-06 14:27:27 -0700 | [diff] [blame] | 154 | ART_GTEST_dexdump_test_TARGET_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 155 | $(TARGET_CORE_IMAGE_optimizing_no-pic_64) \ |
| 156 | $(TARGET_CORE_IMAGE_optimizing_no-pic_32) \ |
Aart Bik | 22c26f5 | 2015-07-08 21:20:13 +0000 | [diff] [blame] | 157 | dexdump2 |
Aart Bik | cfbe53c | 2015-07-06 14:27:27 -0700 | [diff] [blame] | 158 | |
Jeff Hao | c3acfc5 | 2016-08-29 14:18:26 -0700 | [diff] [blame] | 159 | # The dexlayout test requires an image and the dexlayout utility. |
| 160 | # TODO: rename into dexdump when migration completes |
| 161 | ART_GTEST_dexlayout_test_HOST_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 162 | $(HOST_CORE_IMAGE_optimizing_no-pic_64) \ |
| 163 | $(HOST_CORE_IMAGE_optimizing_no-pic_32) \ |
Jeff Hao | c3acfc5 | 2016-08-29 14:18:26 -0700 | [diff] [blame] | 164 | $(HOST_OUT_EXECUTABLES)/dexlayout \ |
| 165 | $(HOST_OUT_EXECUTABLES)/dexdump2 |
| 166 | ART_GTEST_dexlayout_test_TARGET_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 167 | $(TARGET_CORE_IMAGE_optimizing_no-pic_64) \ |
| 168 | $(TARGET_CORE_IMAGE_optimizing_no-pic_32) \ |
Jeff Hao | c3acfc5 | 2016-08-29 14:18:26 -0700 | [diff] [blame] | 169 | dexlayout \ |
| 170 | dexdump2 |
| 171 | |
Aart Bik | 3e40f4a | 2015-07-07 17:09:41 -0700 | [diff] [blame] | 172 | # The dexlist test requires an image and the dexlist utility. |
Aart Bik | 3e40f4a | 2015-07-07 17:09:41 -0700 | [diff] [blame] | 173 | ART_GTEST_dexlist_test_HOST_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 174 | $(HOST_CORE_IMAGE_optimizing_no-pic_64) \ |
| 175 | $(HOST_CORE_IMAGE_optimizing_no-pic_32) \ |
Aart Bik | b1b45be | 2015-08-28 11:09:29 -0700 | [diff] [blame] | 176 | $(HOST_OUT_EXECUTABLES)/dexlist |
Aart Bik | 3e40f4a | 2015-07-07 17:09:41 -0700 | [diff] [blame] | 177 | ART_GTEST_dexlist_test_TARGET_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 178 | $(TARGET_CORE_IMAGE_optimizing_no-pic_64) \ |
| 179 | $(TARGET_CORE_IMAGE_optimizing_no-pic_32) \ |
Aart Bik | b1b45be | 2015-08-28 11:09:29 -0700 | [diff] [blame] | 180 | dexlist |
Aart Bik | 3e40f4a | 2015-07-07 17:09:41 -0700 | [diff] [blame] | 181 | |
Igor Murashkin | 3774335 | 2014-11-13 14:38:00 -0800 | [diff] [blame] | 182 | # 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] | 183 | # For the host, also add the installed tool (in the base size, that should suffice). For the |
| 184 | # target, just the module is fine, the sync will happen late enough. |
| 185 | ART_GTEST_imgdiag_test_HOST_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 186 | $(HOST_CORE_IMAGE_optimizing_no-pic_64) \ |
| 187 | $(HOST_CORE_IMAGE_optimizing_no-pic_32) \ |
Andreas Gampe | c93b8b5 | 2014-12-19 23:12:25 -0800 | [diff] [blame] | 188 | $(HOST_OUT_EXECUTABLES)/imgdiagd |
| 189 | ART_GTEST_imgdiag_test_TARGET_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 190 | $(TARGET_CORE_IMAGE_optimizing_no-pic_64) \ |
| 191 | $(TARGET_CORE_IMAGE_optimizing_no-pic_32) \ |
Andreas Gampe | c93b8b5 | 2014-12-19 23:12:25 -0800 | [diff] [blame] | 192 | imgdiagd |
Igor Murashkin | 3774335 | 2014-11-13 14:38:00 -0800 | [diff] [blame] | 193 | |
Mathieu Chartier | ea216b3 | 2015-05-26 19:48:16 -0700 | [diff] [blame] | 194 | # Oatdump test requires an image and oatfile to dump. |
| 195 | ART_GTEST_oatdump_test_HOST_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 196 | $(HOST_CORE_IMAGE_optimizing_no-pic_64) \ |
| 197 | $(HOST_CORE_IMAGE_optimizing_no-pic_32) \ |
Colin Cross | b20be21 | 2016-09-19 13:02:47 -0700 | [diff] [blame] | 198 | $(HOST_OUT_EXECUTABLES)/oatdumpd \ |
| 199 | $(HOST_OUT_EXECUTABLES)/oatdumpds |
Mathieu Chartier | ea216b3 | 2015-05-26 19:48:16 -0700 | [diff] [blame] | 200 | ART_GTEST_oatdump_test_TARGET_DEPS := \ |
Nicolas Geoffray | b76bc78 | 2016-09-14 12:33:34 +0000 | [diff] [blame] | 201 | $(TARGET_CORE_IMAGE_optimizing_no-pic_64) \ |
| 202 | $(TARGET_CORE_IMAGE_optimizing_no-pic_32) \ |
Mathieu Chartier | ea216b3 | 2015-05-26 19:48:16 -0700 | [diff] [blame] | 203 | oatdump |
| 204 | |
Calin Juravle | 2e2db78 | 2016-02-23 12:00:03 +0000 | [diff] [blame] | 205 | # Profile assistant tests requires profman utility. |
| 206 | ART_GTEST_profile_assistant_test_HOST_DEPS := \ |
| 207 | $(HOST_OUT_EXECUTABLES)/profmand |
| 208 | ART_GTEST_profile_assistant_test_TARGET_DEPS := \ |
| 209 | profman |
| 210 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 211 | # 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] | 212 | LOCAL_PATH := art |
| 213 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 214 | ART_TEST_MODULES := \ |
| 215 | art_cmdline_tests \ |
| 216 | art_compiler_tests \ |
| 217 | art_compiler_host_tests \ |
| 218 | art_dex2oat_tests \ |
| 219 | art_dexdump_tests \ |
| 220 | art_dexlayout_tests \ |
| 221 | art_dexlist_tests \ |
| 222 | art_imgdiag_tests \ |
| 223 | art_oatdump_tests \ |
| 224 | art_profman_tests \ |
| 225 | art_runtime_tests \ |
| 226 | art_runtime_compiler_tests \ |
Brian Carlstrom | a1ce1fe | 2014-02-24 23:23:58 -0800 | [diff] [blame] | 227 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 228 | ART_TARGET_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\ |
| 229 | $(ART_TEST_LIST_device_$(TARGET_ARCH)_$(m))) |
Alex Light | 50fa993 | 2015-08-10 15:30:07 -0700 | [diff] [blame] | 230 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 231 | ifdef TARGET_2ND_ARCH |
| 232 | 2ND_ART_TARGET_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\ |
| 233 | $(ART_TEST_LIST_device_$(2ND_TARGET_ARCH)_$(m))) |
| 234 | endif |
| 235 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 236 | ART_HOST_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\ |
Colin Cross | 124f881 | 2016-09-15 20:57:47 -0700 | [diff] [blame] | 237 | $(ART_TEST_LIST_host_$(ART_HOST_ARCH)_$(m))) |
Alex Light | 50fa993 | 2015-08-10 15:30:07 -0700 | [diff] [blame] | 238 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 239 | ifneq ($(HOST_PREFER_32_BIT),true) |
| 240 | 2ND_ART_HOST_GTEST_FILES += $(foreach m,$(ART_TEST_MODULES),\ |
| 241 | $(ART_TEST_LIST_host_$(2ND_ART_HOST_ARCH)_$(m))) |
| 242 | endif |
| 243 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 244 | # Variables holding collections of gtest pre-requisits used to run a number of gtests. |
| 245 | ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 246 | ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 247 | ART_TEST_HOST_GTEST_RULES := |
| 248 | ART_TEST_HOST_VALGRIND_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 249 | ART_TEST_HOST_VALGRIND_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 250 | ART_TEST_HOST_VALGRIND_GTEST_RULES := |
| 251 | ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 252 | ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 253 | ART_TEST_TARGET_GTEST_RULES := |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 254 | ART_TEST_TARGET_VALGRIND_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 255 | ART_TEST_TARGET_VALGRIND_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 256 | ART_TEST_TARGET_VALGRIND_GTEST_RULES := |
Nicolas Geoffray | 58035ae | 2015-05-27 19:10:27 +0100 | [diff] [blame] | 257 | ART_TEST_HOST_GTEST_DEPENDENCIES := |
Andreas Gampe | afbaa1a | 2014-03-25 18:09:32 -0700 | [diff] [blame] | 258 | |
Nicolas Geoffray | 96a37c8 | 2014-10-29 23:50:40 +0000 | [diff] [blame] | 259 | ART_GTEST_TARGET_ANDROID_ROOT := '/system' |
| 260 | ifneq ($(ART_TEST_ANDROID_ROOT),) |
| 261 | ART_GTEST_TARGET_ANDROID_ROOT := $(ART_TEST_ANDROID_ROOT) |
| 262 | endif |
| 263 | |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 264 | ART_VALGRIND_TARGET_DEPENDENCIES := \ |
| 265 | $(TARGET_OUT_EXECUTABLES)/valgrind \ |
| 266 | $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/memcheck-$(TARGET_ARCH)-linux \ |
| 267 | $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/vgpreload_core-$(TARGET_ARCH)-linux.so \ |
| 268 | $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/vgpreload_memcheck-$(TARGET_ARCH)-linux.so \ |
| 269 | $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/default.supp |
| 270 | |
| 271 | ifdef TARGET_2ND_ARCH |
| 272 | ART_VALGRIND_TARGET_DEPENDENCIES += \ |
| 273 | $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/memcheck-$(TARGET_2ND_ARCH)-linux \ |
| 274 | $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/vgpreload_core-$(TARGET_2ND_ARCH)-linux.so \ |
| 275 | $(TARGET_OUT_SHARED_LIBRARIES)/valgrind/vgpreload_memcheck-$(TARGET_2ND_ARCH)-linux.so |
| 276 | endif |
| 277 | |
| 278 | include $(CLEAR_VARS) |
| 279 | LOCAL_MODULE := valgrind-target-suppressions.txt |
| 280 | LOCAL_MODULE_CLASS := ETC |
| 281 | LOCAL_MODULE_TAGS := optional |
| 282 | LOCAL_SRC_FILES := test/valgrind-target-suppressions.txt |
| 283 | LOCAL_MODULE_PATH := $(ART_TARGET_TEST_OUT) |
| 284 | include $(BUILD_PREBUILT) |
| 285 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 286 | # Define a make rule for a target device gtest. |
| 287 | # $(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] | 288 | # $(2): path relative to $OUT to the test binary |
| 289 | # $(3): 2ND_ or undefined - used to differentiate between the primary and secondary architecture. |
| 290 | # $(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] | 291 | define define-art-gtest-rule-target |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 292 | gtest_rule := test-art-target-gtest-$(1)$$($(3)ART_PHONY_TEST_TARGET_SUFFIX) |
| 293 | gtest_exe := $(OUT_DIR)/$(2) |
| 294 | gtest_target_exe := $$(patsubst $(PRODUCT_OUT)/%,/%,$$(gtest_exe)) |
Andreas Gampe | afbaa1a | 2014-03-25 18:09:32 -0700 | [diff] [blame] | 295 | |
Brian Carlstrom | 532714a | 2014-06-25 02:15:31 -0700 | [diff] [blame] | 296 | # 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] | 297 | # to ensure files are pushed to the device. |
| 298 | TEST_ART_TARGET_SYNC_DEPS += \ |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 299 | $$(ART_GTEST_$(1)_TARGET_DEPS) \ |
Ian Rogers | 1a2f84e | 2014-07-07 16:05:18 -0700 | [diff] [blame] | 300 | $(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] | 301 | $$(gtest_exe) \ |
| 302 | $$($(3)TARGET_OUT_SHARED_LIBRARIES)/libjavacore.so \ |
| 303 | $$($(3)TARGET_OUT_SHARED_LIBRARIES)/libopenjdkd.so \ |
Andreas Gampe | c7d4a58 | 2015-09-30 11:52:02 -0700 | [diff] [blame] | 304 | $$(TARGET_OUT_JAVA_LIBRARIES)/core-libart-testdex.jar \ |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 305 | $$(TARGET_OUT_JAVA_LIBRARIES)/core-oj-testdex.jar \ |
| 306 | $$(ART_TARGET_TEST_OUT)/valgrind-target-suppressions.txt |
Andreas Gampe | afbaa1a | 2014-03-25 18:09:32 -0700 | [diff] [blame] | 307 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 308 | $$(gtest_rule) valgrind-$$(gtest_rule): PRIVATE_TARGET_EXE := $$(gtest_target_exe) |
| 309 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 310 | .PHONY: $$(gtest_rule) |
| 311 | $$(gtest_rule): test-art-target-sync |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 312 | $(hide) adb shell touch $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID |
| 313 | $(hide) adb shell rm $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID |
| 314 | $(hide) adb shell chmod 755 $$(PRIVATE_TARGET_EXE) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 315 | $(hide) $$(call ART_TEST_SKIP,$$@) && \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 316 | (adb shell "$(GCOV_ENV) LD_LIBRARY_PATH=$(4) ANDROID_ROOT=$(ART_GTEST_TARGET_ANDROID_ROOT) \ |
| 317 | $$(PRIVATE_TARGET_EXE) && touch $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID" \ |
| 318 | && (adb pull $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID /tmp/ \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 319 | && $$(call ART_TEST_PASSED,$$@)) \ |
| 320 | || $$(call ART_TEST_FAILED,$$@)) |
Ian Rogers | 6f3dbba | 2014-10-14 17:41:57 -0700 | [diff] [blame] | 321 | $(hide) rm -f /tmp/$$@-$$$$PPID |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 322 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 323 | 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] | 324 | ART_TEST_TARGET_GTEST_RULES += $$(gtest_rule) |
| 325 | ART_TEST_TARGET_GTEST_$(1)_RULES += $$(gtest_rule) |
| 326 | |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 327 | .PHONY: valgrind-$$(gtest_rule) |
| 328 | valgrind-$$(gtest_rule): $(ART_VALGRIND_TARGET_DEPENDENCIES) test-art-target-sync |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 329 | $(hide) adb shell touch $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID |
| 330 | $(hide) adb shell rm $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID |
| 331 | $(hide) adb shell chmod 755 $$(PRIVATE_TARGET_EXE) |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 332 | $(hide) $$(call ART_TEST_SKIP,$$@) && \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 333 | (adb shell "$(GCOV_ENV) LD_LIBRARY_PATH=$(4) ANDROID_ROOT=$(ART_GTEST_TARGET_ANDROID_ROOT) \ |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 334 | valgrind --leak-check=full --error-exitcode=1 --workaround-gcc296-bugs=yes \ |
| 335 | --suppressions=$(ART_TARGET_TEST_DIR)/valgrind-target-suppressions.txt \ |
Anton Kirilov | 3a2e78e | 2017-01-06 13:33:42 +0000 | [diff] [blame] | 336 | --num-callers=50 --show-mismatched-frees=no \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 337 | $$(PRIVATE_TARGET_EXE) && touch $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID" \ |
| 338 | && (adb pull $(ART_TARGET_TEST_DIR)/$(TARGET_$(3)ARCH)/$$@-$$$$PPID /tmp/ \ |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 339 | && $$(call ART_TEST_PASSED,$$@)) \ |
| 340 | || $$(call ART_TEST_FAILED,$$@)) |
| 341 | $(hide) rm -f /tmp/$$@-$$$$PPID |
| 342 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 343 | ART_TEST_TARGET_VALGRIND_GTEST$$($(3)ART_PHONY_TEST_TARGET_SUFFIX)_RULES += valgrind-$$(gtest_rule) |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 344 | ART_TEST_TARGET_VALGRIND_GTEST_RULES += valgrind-$$(gtest_rule) |
| 345 | ART_TEST_TARGET_VALGRIND_GTEST_$(1)_RULES += valgrind-$$(gtest_rule) |
| 346 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 347 | # Clear locally defined variables. |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 348 | valgrind_gtest_rule := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 349 | gtest_rule := |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 350 | gtest_exe := |
| 351 | gtest_target_exe := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 352 | endef # define-art-gtest-rule-target |
| 353 | |
Andreas Gampe | 3c0bb31 | 2015-02-19 10:02:19 -0800 | [diff] [blame] | 354 | ART_VALGRIND_DEPENDENCIES := \ |
| 355 | $(HOST_OUT_EXECUTABLES)/valgrind \ |
| 356 | $(HOST_OUT)/lib64/valgrind/memcheck-amd64-linux \ |
| 357 | $(HOST_OUT)/lib64/valgrind/memcheck-x86-linux \ |
| 358 | $(HOST_OUT)/lib64/valgrind/default.supp \ |
| 359 | $(HOST_OUT)/lib64/valgrind/vgpreload_core-amd64-linux.so \ |
| 360 | $(HOST_OUT)/lib64/valgrind/vgpreload_core-x86-linux.so \ |
| 361 | $(HOST_OUT)/lib64/valgrind/vgpreload_memcheck-amd64-linux.so \ |
| 362 | $(HOST_OUT)/lib64/valgrind/vgpreload_memcheck-x86-linux.so |
| 363 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 364 | # Define make rules for a host gtests. |
| 365 | # $(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] | 366 | # $(2): path relative to $OUT to the test binary |
| 367 | # $(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] | 368 | define define-art-gtest-rule-host |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 369 | gtest_rule := test-art-host-gtest-$(1)$$($(3)ART_PHONY_TEST_HOST_SUFFIX) |
| 370 | gtest_exe := $(OUT_DIR)/$(2) |
Ian Rogers | 665de8a | 2014-06-24 21:34:09 -0700 | [diff] [blame] | 371 | # Dependencies for all host gtests. |
| 372 | gtest_deps := $$(HOST_CORE_DEX_LOCATIONS) \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 373 | $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libjavacore$$(ART_HOST_SHLIB_EXTENSION) \ |
| 374 | $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libopenjdkd$$(ART_HOST_SHLIB_EXTENSION) \ |
Nicolas Geoffray | 58035ae | 2015-05-27 19:10:27 +0100 | [diff] [blame] | 375 | $$(gtest_exe) \ |
| 376 | $$(ART_GTEST_$(1)_HOST_DEPS) \ |
| 377 | $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_HOST_GTEST_$(file)_DEX)) |
Ian Rogers | 665de8a | 2014-06-24 21:34:09 -0700 | [diff] [blame] | 378 | |
Nicolas Geoffray | 58035ae | 2015-05-27 19:10:27 +0100 | [diff] [blame] | 379 | ART_TEST_HOST_GTEST_DEPENDENCIES += $$(gtest_deps) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 380 | |
| 381 | .PHONY: $$(gtest_rule) |
Nicolas Geoffray | 0f7c06d | 2015-05-28 10:21:03 +0100 | [diff] [blame] | 382 | $$(gtest_rule): $$(gtest_exe) $$(gtest_deps) |
Dmitriy Ivanov | 8508a43 | 2014-10-14 11:38:46 -0700 | [diff] [blame] | 383 | $(hide) ($$(call ART_TEST_SKIP,$$@) && $$< && $$(call ART_TEST_PASSED,$$@)) \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 384 | || $$(call ART_TEST_FAILED,$$@) |
| 385 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 386 | 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] | 387 | ART_TEST_HOST_GTEST_RULES += $$(gtest_rule) |
| 388 | ART_TEST_HOST_GTEST_$(1)_RULES += $$(gtest_rule) |
| 389 | |
Andreas Gampe | 3c0bb31 | 2015-02-19 10:02:19 -0800 | [diff] [blame] | 390 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 391 | .PHONY: valgrind-$$(gtest_rule) |
Andreas Gampe | 3db3600 | 2015-05-28 20:17:09 -0700 | [diff] [blame] | 392 | valgrind-$$(gtest_rule): $$(gtest_exe) $$(gtest_deps) $(ART_VALGRIND_DEPENDENCIES) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 393 | $(hide) $$(call ART_TEST_SKIP,$$@) && \ |
Andreas Gampe | 8df91ac | 2015-02-20 13:15:15 -0800 | [diff] [blame] | 394 | VALGRIND_LIB=$(HOST_OUT)/lib64/valgrind \ |
Hiroshi Yamauchi | dc15e89 | 2016-03-10 13:49:14 -0800 | [diff] [blame] | 395 | $(HOST_OUT_EXECUTABLES)/valgrind --leak-check=full --error-exitcode=1 \ |
Andreas Gampe | bf13e80 | 2016-09-02 19:43:09 -0700 | [diff] [blame] | 396 | --suppressions=art/test/valgrind-suppressions.txt --num-callers=50 \ |
| 397 | $$< && \ |
Andreas Gampe | 3c0bb31 | 2015-02-19 10:02:19 -0800 | [diff] [blame] | 398 | $$(call ART_TEST_PASSED,$$@) || $$(call ART_TEST_FAILED,$$@) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 399 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 400 | 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] | 401 | ART_TEST_HOST_VALGRIND_GTEST_RULES += valgrind-$$(gtest_rule) |
| 402 | ART_TEST_HOST_VALGRIND_GTEST_$(1)_RULES += valgrind-$$(gtest_rule) |
| 403 | |
| 404 | # Clear locally defined variables. |
| 405 | valgrind_gtest_rule := |
| 406 | gtest_rule := |
| 407 | gtest_exe := |
Ian Rogers | 665de8a | 2014-06-24 21:34:09 -0700 | [diff] [blame] | 408 | gtest_deps := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 409 | endef # define-art-gtest-rule-host |
| 410 | |
| 411 | # Define the rules to build and run host and target gtests. |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 412 | # $(1): file name |
| 413 | # $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture. |
| 414 | define define-art-gtest-target |
| 415 | art_gtest_filename := $(1) |
Brian Carlstrom | 0796af0 | 2011-10-12 14:31:45 -0700 | [diff] [blame] | 416 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 417 | include $$(CLEAR_VARS) |
Brian Carlstrom | 47a0d5a | 2011-10-12 21:20:05 -0700 | [diff] [blame] | 418 | art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename))) |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 419 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 420 | library_path := |
| 421 | 2ND_library_path := |
| 422 | ifneq ($$(ART_TEST_ANDROID_ROOT),) |
| 423 | ifdef TARGET_2ND_ARCH |
| 424 | 2ND_library_path := $$(ART_TEST_ANDROID_ROOT)/lib |
| 425 | library_path := $$(ART_TEST_ANDROID_ROOT)/lib64 |
| 426 | else |
| 427 | ifneq ($(filter %64,$(TARGET_ARCH)),) |
Nicolas Geoffray | 9eb4074 | 2014-10-29 22:38:53 +0000 | [diff] [blame] | 428 | library_path := $$(ART_TEST_ANDROID_ROOT)/lib64 |
| 429 | else |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 430 | library_path := $$(ART_TEST_ANDROID_ROOT)/lib |
Nicolas Geoffray | 9eb4074 | 2014-10-29 22:38:53 +0000 | [diff] [blame] | 431 | endif |
| 432 | endif |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 433 | endif |
Andreas Gampe | 5ca4eaa | 2014-05-29 02:09:33 -0700 | [diff] [blame] | 434 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 435 | ifndef ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 436 | ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES := |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 437 | ART_TEST_TARGET_VALGRIND_GTEST_$$(art_gtest_name)_RULES := |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 438 | endif |
| 439 | $$(eval $$(call define-art-gtest-rule-target,$$(art_gtest_name),$$(art_gtest_filename),$(2),$$($(2)library_path))) |
| 440 | |
| 441 | # Clear locally defined variables. |
| 442 | art_gtest_filename := |
| 443 | art_gtest_name := |
| 444 | library_path := |
| 445 | 2ND_library_path := |
| 446 | endef # define-art-gtest-target |
| 447 | |
| 448 | # $(1): file name |
| 449 | # $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture. |
| 450 | define define-art-gtest-host |
| 451 | art_gtest_filename := $(1) |
| 452 | |
| 453 | include $$(CLEAR_VARS) |
| 454 | art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename))) |
| 455 | ifndef ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES |
| 456 | ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES := |
| 457 | ART_TEST_HOST_VALGRIND_GTEST_$$(art_gtest_name)_RULES := |
| 458 | endif |
| 459 | $$(eval $$(call define-art-gtest-rule-host,$$(art_gtest_name),$$(art_gtest_filename),$(2))) |
| 460 | |
| 461 | # Clear locally defined variables. |
| 462 | art_gtest_filename := |
| 463 | art_gtest_name := |
| 464 | endef # define-art-gtest-host |
| 465 | |
| 466 | # Define the rules to build and run gtests for both archs on target. |
| 467 | # $(1): test name |
| 468 | define define-art-gtest-target-both |
| 469 | art_gtest_name := $(1) |
Andreas Gampe | afbaa1a | 2014-03-25 18:09:32 -0700 | [diff] [blame] | 470 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 471 | # A rule to run the different architecture versions of the gtest. |
| 472 | .PHONY: test-art-target-gtest-$$(art_gtest_name) |
| 473 | test-art-target-gtest-$$(art_gtest_name): $$(ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES) |
| 474 | $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@) |
| 475 | |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 476 | .PHONY: valgrind-test-art-target-gtest-$$(art_gtest_name) |
| 477 | valgrind-test-art-target-gtest-$$(art_gtest_name): $$(ART_TEST_TARGET_VALGRIND_GTEST_$$(art_gtest_name)_RULES) |
| 478 | $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@) |
| 479 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 480 | # Clear now unused variables. |
| 481 | ART_TEST_TARGET_GTEST_$$(art_gtest_name)_RULES := |
| 482 | ART_TEST_TARGET_VALGRIND_GTEST_$$(art_gtest_name)_RULES := |
| 483 | art_gtest_name := |
| 484 | endef # define-art-gtest-target-both |
Ian Rogers | d912e5c | 2013-11-13 12:40:11 -0800 | [diff] [blame] | 485 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 486 | # Define the rules to build and run gtests for both archs on host. |
| 487 | # $(1): test name |
| 488 | define define-art-gtest-host-both |
| 489 | art_gtest_name := $(1) |
| 490 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 491 | .PHONY: test-art-host-gtest-$$(art_gtest_name) |
| 492 | test-art-host-gtest-$$(art_gtest_name): $$(ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES) |
| 493 | $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@) |
Ian Rogers | d912e5c | 2013-11-13 12:40:11 -0800 | [diff] [blame] | 494 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 495 | .PHONY: valgrind-test-art-host-gtest-$$(art_gtest_name) |
| 496 | valgrind-test-art-host-gtest-$$(art_gtest_name): $$(ART_TEST_HOST_VALGRIND_GTEST_$$(art_gtest_name)_RULES) |
| 497 | $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@) |
| 498 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 499 | # Clear now unused variables. |
| 500 | ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES := |
| 501 | ART_TEST_HOST_VALGRIND_GTEST_$$(art_gtest_name)_RULES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 502 | art_gtest_name := |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 503 | endef # define-art-gtest-host-both |
Alex Light | 50fa993 | 2015-08-10 15:30:07 -0700 | [diff] [blame] | 504 | |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 505 | ifeq ($(ART_BUILD_TARGET),true) |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 506 | $(foreach file,$(ART_TARGET_GTEST_FILES), $(eval $(call define-art-gtest-target,$(file),))) |
| 507 | ifdef TARGET_2ND_ARCH |
| 508 | $(foreach file,$(2ND_ART_TARGET_GTEST_FILES), $(eval $(call define-art-gtest-target,$(file),2ND_))) |
| 509 | endif |
| 510 | # Rules to run the different architecture versions of the gtest. |
| 511 | $(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] | 512 | endif |
Ian Rogers | c5f1773 | 2014-06-05 20:48:42 -0700 | [diff] [blame] | 513 | ifeq ($(ART_BUILD_HOST),true) |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 514 | $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),))) |
| 515 | ifneq ($(HOST_PREFER_32_BIT),true) |
| 516 | $(foreach file,$(2ND_ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),2ND_))) |
| 517 | endif |
| 518 | # Rules to run the different architecture versions of the gtest. |
| 519 | $(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] | 520 | endif |
Tsu Chiang Chuang | ec245a4 | 2014-05-15 21:16:21 -0700 | [diff] [blame] | 521 | |
| 522 | # Used outside the art project to get a list of the current tests |
| 523 | RUNTIME_TARGET_GTEST_MAKE_TARGETS := |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 524 | $(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] | 525 | COMPILER_TARGET_GTEST_MAKE_TARGETS := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 526 | |
| 527 | # Define all the combinations of host/target, valgrind and suffix such as: |
| 528 | # test-art-host-gtest or valgrind-test-art-host-gtest64 |
| 529 | # $(1): host or target |
| 530 | # $(2): HOST or TARGET |
| 531 | # $(3): valgrind- or undefined |
| 532 | # $(4): undefined, 32 or 64 |
| 533 | define define-test-art-gtest-combination |
| 534 | ifeq ($(1),host) |
| 535 | ifneq ($(2),HOST) |
| 536 | $$(error argument mismatch $(1) and ($2)) |
| 537 | endif |
| 538 | else |
| 539 | ifneq ($(1),target) |
| 540 | $$(error found $(1) expected host or target) |
| 541 | endif |
| 542 | ifneq ($(2),TARGET) |
| 543 | $$(error argument mismatch $(1) and ($2)) |
| 544 | endif |
| 545 | endif |
| 546 | |
| 547 | rule_name := $(3)test-art-$(1)-gtest$(4) |
Andreas Gampe | 928f72b | 2014-09-09 19:53:48 -0700 | [diff] [blame] | 548 | ifeq ($(3),valgrind-) |
Andreas Gampe | 928f72b | 2014-09-09 19:53:48 -0700 | [diff] [blame] | 549 | dependencies := $$(ART_TEST_$(2)_VALGRIND_GTEST$(4)_RULES) |
| 550 | else |
| 551 | dependencies := $$(ART_TEST_$(2)_GTEST$(4)_RULES) |
| 552 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 553 | |
| 554 | .PHONY: $$(rule_name) |
| 555 | $$(rule_name): $$(dependencies) |
| 556 | $(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@) |
| 557 | |
| 558 | # Clear locally defined variables. |
| 559 | rule_name := |
| 560 | dependencies := |
| 561 | endef # define-test-art-gtest-combination |
| 562 | |
| 563 | $(eval $(call define-test-art-gtest-combination,target,TARGET,,)) |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 564 | $(eval $(call define-test-art-gtest-combination,target,TARGET,valgrind-,)) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 565 | $(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] | 566 | $(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] | 567 | ifdef TARGET_2ND_ARCH |
| 568 | $(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] | 569 | $(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] | 570 | endif |
| 571 | $(eval $(call define-test-art-gtest-combination,host,HOST,,)) |
| 572 | $(eval $(call define-test-art-gtest-combination,host,HOST,valgrind-,)) |
| 573 | $(eval $(call define-test-art-gtest-combination,host,HOST,,$(ART_PHONY_TEST_HOST_SUFFIX))) |
| 574 | $(eval $(call define-test-art-gtest-combination,host,HOST,valgrind-,$(ART_PHONY_TEST_HOST_SUFFIX))) |
| 575 | ifneq ($(HOST_PREFER_32_BIT),true) |
| 576 | $(eval $(call define-test-art-gtest-combination,host,HOST,,$(2ND_ART_PHONY_TEST_HOST_SUFFIX))) |
| 577 | $(eval $(call define-test-art-gtest-combination,host,HOST,valgrind-,$(2ND_ART_PHONY_TEST_HOST_SUFFIX))) |
| 578 | endif |
| 579 | |
| 580 | # Clear locally defined variables. |
| 581 | define-art-gtest-rule-target := |
| 582 | define-art-gtest-rule-host := |
| 583 | define-art-gtest := |
| 584 | define-test-art-gtest-combination := |
| 585 | RUNTIME_GTEST_COMMON_SRC_FILES := |
| 586 | COMPILER_GTEST_COMMON_SRC_FILES := |
| 587 | RUNTIME_GTEST_TARGET_SRC_FILES := |
| 588 | RUNTIME_GTEST_HOST_SRC_FILES := |
| 589 | COMPILER_GTEST_TARGET_SRC_FILES := |
| 590 | COMPILER_GTEST_HOST_SRC_FILES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 591 | ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 592 | ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 593 | ART_TEST_HOST_GTEST_RULES := |
| 594 | ART_TEST_HOST_VALGRIND_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 595 | ART_TEST_HOST_VALGRIND_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 596 | ART_TEST_HOST_VALGRIND_GTEST_RULES := |
| 597 | ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 598 | ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 599 | ART_TEST_TARGET_GTEST_RULES := |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 600 | ART_TEST_TARGET_VALGRIND_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 601 | ART_TEST_TARGET_VALGRIND_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 602 | ART_TEST_TARGET_VALGRIND_GTEST_RULES := |
Nicolas Geoffray | 96a37c8 | 2014-10-29 23:50:40 +0000 | [diff] [blame] | 603 | ART_GTEST_TARGET_ANDROID_ROOT := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 604 | ART_GTEST_class_linker_test_DEX_DEPS := |
Mathieu Chartier | db70ce5 | 2016-12-12 11:06:59 -0800 | [diff] [blame] | 605 | ART_GTEST_class_table_test_DEX_DEPS := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 606 | ART_GTEST_compiler_driver_test_DEX_DEPS := |
| 607 | ART_GTEST_dex_file_test_DEX_DEPS := |
| 608 | ART_GTEST_exception_test_DEX_DEPS := |
| 609 | ART_GTEST_elf_writer_test_HOST_DEPS := |
| 610 | ART_GTEST_elf_writer_test_TARGET_DEPS := |
Andreas Gampe | a1ff30f | 2016-09-27 12:19:45 -0700 | [diff] [blame] | 611 | ART_GTEST_imtable_test_DEX_DEPS := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 612 | ART_GTEST_jni_compiler_test_DEX_DEPS := |
| 613 | ART_GTEST_jni_internal_test_DEX_DEPS := |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 614 | ART_GTEST_oat_file_assistant_test_DEX_DEPS := |
| 615 | ART_GTEST_oat_file_assistant_test_HOST_DEPS := |
| 616 | ART_GTEST_oat_file_assistant_test_TARGET_DEPS := |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 617 | ART_GTEST_dex2oat_test_DEX_DEPS := |
| 618 | ART_GTEST_dex2oat_test_HOST_DEPS := |
| 619 | ART_GTEST_dex2oat_test_TARGET_DEPS := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 620 | ART_GTEST_object_test_DEX_DEPS := |
| 621 | ART_GTEST_proxy_test_DEX_DEPS := |
| 622 | ART_GTEST_reflection_test_DEX_DEPS := |
| 623 | ART_GTEST_stub_test_DEX_DEPS := |
| 624 | ART_GTEST_transaction_test_DEX_DEPS := |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 625 | ART_GTEST_dex2oat_environment_tests_DEX_DEPS := |
David Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 626 | ART_GTEST_verifier_deps_test_DEX_DEPS := |
Andreas Gampe | 3c0bb31 | 2015-02-19 10:02:19 -0800 | [diff] [blame] | 627 | ART_VALGRIND_DEPENDENCIES := |
Anton Kirilov | e5e76f4 | 2016-05-03 16:15:36 +0100 | [diff] [blame] | 628 | ART_VALGRIND_TARGET_DEPENDENCIES := |
Ian Rogers | 1a2f84e | 2014-07-07 16:05:18 -0700 | [diff] [blame] | 629 | $(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_TARGET_GTEST_$(dir)_DEX :=)) |
| 630 | $(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_HOST_GTEST_$(dir)_DEX :=)) |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 631 | ART_TEST_HOST_GTEST_MainStripped_DEX := |
| 632 | ART_TEST_TARGET_GTEST_MainStripped_DEX := |
David Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 633 | ART_TEST_GTEST_VerifierDeps_SRC := |
| 634 | ART_TEST_HOST_GTEST_VerifierDeps_DEX := |
David Brazdil | f906f12 | 2016-09-16 16:33:31 +0100 | [diff] [blame] | 635 | ART_TEST_TARGET_GTEST_VerifierDeps_DEX := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 636 | GTEST_DEX_DIRECTORIES := |
Brian Carlstrom | 532714a | 2014-06-25 02:15:31 -0700 | [diff] [blame] | 637 | LOCAL_PATH := |