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