Carl Shapiro | 008e412 | 2011-06-23 17:27:46 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
David Srbecky | 883c134 | 2020-05-11 23:30:29 +0000 | [diff] [blame] | 17 | # Build rules are excluded from Mac, since we can not run ART tests there in the first place. |
| 18 | ifneq ($(HOST_OS),darwin) |
| 19 | |
David Srbecky | 1cf46a3 | 2020-06-22 15:39:00 +0100 | [diff] [blame] | 20 | ################################################################################################### |
| 21 | # Create module in testcases to hold all common data and tools needed for ART host tests. |
| 22 | |
| 23 | # ART binary tools and libraries (automatic list of all art_cc_binary/art_cc_library modules). |
| 24 | my_files := $(ART_TESTCASES_CONTENT) |
| 25 | |
| 26 | # Manually add system libraries that we need to run the host ART tools. |
| 27 | my_files += \ |
David Srbecky | 22872da | 2020-06-25 15:23:15 +0100 | [diff] [blame] | 28 | $(foreach lib, libbacktrace libbase libc++ libicu_jni liblog libsigchain libunwindstack \ |
| 29 | libziparchive libjavacore libandroidio libopenjdkd, \ |
| 30 | $(call intermediates-dir-for,SHARED_LIBRARIES,$(lib),HOST)/$(lib).so:lib64/$(lib).so \ |
| 31 | $(call intermediates-dir-for,SHARED_LIBRARIES,$(lib),HOST,,2ND)/$(lib).so:lib/$(lib).so) \ |
| 32 | $(foreach lib, libcrypto libz libicuuc libicui18n libandroidicu libexpat, \ |
| 33 | $(call intermediates-dir-for,SHARED_LIBRARIES,$(lib),HOST)/$(lib).so:lib64/$(lib)-host.so \ |
| 34 | $(call intermediates-dir-for,SHARED_LIBRARIES,$(lib),HOST,,2ND)/$(lib).so:lib/$(lib)-host.so) |
David Srbecky | 1cf46a3 | 2020-06-22 15:39:00 +0100 | [diff] [blame] | 35 | |
| 36 | # Add apex directories for art, conscrypt and i18n. |
| 37 | my_files += $(foreach infix,_ _VDEX_,$(foreach suffix,$(HOST_ARCH) $(HOST_2ND_ARCH), \ |
| 38 | $(DEXPREOPT_IMAGE$(infix)BUILT_INSTALLED_art_host_$(suffix)))) |
| 39 | my_files += \ |
| 40 | $(foreach jar,$(CORE_IMG_JARS),\ |
| 41 | $(HOST_OUT_JAVA_LIBRARIES)/$(jar)-hostdex.jar:apex/com.android.art/javalib/$(jar).jar) \ |
| 42 | $(HOST_OUT_JAVA_LIBRARIES)/conscrypt-hostdex.jar:apex/com.android.conscrypt/javalib/conscrypt.jar\ |
David Srbecky | 22872da | 2020-06-25 15:23:15 +0100 | [diff] [blame] | 43 | $(HOST_OUT_JAVA_LIBRARIES)/core-icu4j-hostdex.jar:apex/com.android.i18n/javalib/core-icu4j.jar \ |
| 44 | $(HOST_OUT)/com.android.i18n/etc/icu/icudt66l.dat:com.android.i18n/etc/icu/icudt66l.dat |
David Srbecky | 1cf46a3 | 2020-06-22 15:39:00 +0100 | [diff] [blame] | 45 | |
| 46 | # Create dummy module that will copy all the data files into testcases directory. |
| 47 | # For now, this copies everything to "out/host/linux-x86/" subdirectory, since it |
| 48 | # is hard-coded in many places. TODO: Refactor tests to remove the need for this. |
| 49 | include $(CLEAR_VARS) |
| 50 | LOCAL_IS_HOST_MODULE := true |
| 51 | LOCAL_MODULE := art_common |
| 52 | LOCAL_MODULE_TAGS := tests |
| 53 | LOCAL_MODULE_CLASS := NATIVE_TESTS |
| 54 | LOCAL_MODULE_SUFFIX := .txt |
| 55 | LOCAL_COMPATIBILITY_SUITE := general-tests |
David Srbecky | 22872da | 2020-06-25 15:23:15 +0100 | [diff] [blame] | 56 | LOCAL_COMPATIBILITY_SUPPORT_FILES := $(ART_TESTCASES_PREBUILT_CONTENT) \ |
David Srbecky | 1cf46a3 | 2020-06-22 15:39:00 +0100 | [diff] [blame] | 57 | $(foreach f,$(my_files),$(call word-colon,1,$f):out/host/linux-x86/$(call word-colon,2,$f)) |
| 58 | include $(BUILD_SYSTEM)/base_rules.mk |
| 59 | |
| 60 | $(LOCAL_BUILT_MODULE): |
| 61 | @mkdir -p $(dir $@) |
| 62 | echo "This directory contains common data and tools needed for ART host tests" > $@ |
| 63 | |
| 64 | my_files := |
| 65 | include $(CLEAR_VARS) |
| 66 | ################################################################################################### |
| 67 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 68 | # The path for which all the dex files are relative, not actually the current directory. |
| 69 | LOCAL_PATH := art/test |
| 70 | |
| 71 | include art/build/Android.common_test.mk |
| 72 | include art/build/Android.common_path.mk |
Alex Light | 50fa993 | 2015-08-10 15:30:07 -0700 | [diff] [blame] | 73 | include art/build/Android.common_build.mk |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 74 | |
David Srbecky | 928d28e | 2020-04-01 17:50:51 +0100 | [diff] [blame] | 75 | # Deprecated core.art dependencies. |
| 76 | HOST_CORE_IMAGE_DEFAULT_32 := |
| 77 | HOST_CORE_IMAGE_DEFAULT_64 := |
| 78 | TARGET_CORE_IMAGE_DEFAULT_32 := |
| 79 | TARGET_CORE_IMAGE_DEFAULT_64 := |
| 80 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 81 | # The elf writer test has dependencies on core.oat. |
Richard Uhler | 67e1dc5 | 2017-02-06 16:50:17 +0000 | [diff] [blame] | 82 | ART_GTEST_elf_writer_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32) |
| 83 | ART_GTEST_elf_writer_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32) |
Brian Carlstrom | 53463ea | 2014-11-09 14:11:51 -0800 | [diff] [blame] | 84 | |
Nicolas Geoffray | 975b774 | 2019-03-21 17:37:38 +0000 | [diff] [blame] | 85 | # The two_runtimes_test test has dependencies on core.oat. |
| 86 | ART_GTEST_two_runtimes_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32) |
| 87 | ART_GTEST_two_runtimes_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32) |
| 88 | |
Vladimir Marko | 672c080 | 2019-07-26 13:03:13 +0100 | [diff] [blame] | 89 | # The transaction test has dependencies on core.oat. |
| 90 | ART_GTEST_transaction_test_HOST_DEPS := $(HOST_CORE_IMAGE_DEFAULT_64) $(HOST_CORE_IMAGE_DEFAULT_32) |
| 91 | ART_GTEST_transaction_test_TARGET_DEPS := $(TARGET_CORE_IMAGE_DEFAULT_64) $(TARGET_CORE_IMAGE_DEFAULT_32) |
| 92 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 93 | # 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] | 94 | LOCAL_PATH := art |
| 95 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 96 | ART_TEST_MODULES := \ |
| 97 | art_cmdline_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 98 | art_compiler_host_tests \ |
Martin Stjernholm | 750bf04 | 2019-01-09 22:51:12 +0000 | [diff] [blame] | 99 | art_compiler_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 100 | art_dex2oat_tests \ |
Mathieu Chartier | 2e0478a | 2018-04-06 14:33:25 -0700 | [diff] [blame] | 101 | art_dexanalyze_tests \ |
David Sehr | 55232f1 | 2017-04-19 14:06:49 -0700 | [diff] [blame] | 102 | art_dexdiag_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 103 | art_dexdump_tests \ |
| 104 | art_dexlayout_tests \ |
| 105 | art_dexlist_tests \ |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 106 | art_dexoptanalyzer_tests \ |
David Brazdil | 2b9c35b | 2018-01-12 15:44:43 +0000 | [diff] [blame] | 107 | art_hiddenapi_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 108 | art_imgdiag_tests \ |
David Sehr | 67bf42e | 2018-02-26 16:43:04 -0800 | [diff] [blame] | 109 | art_libartbase_tests \ |
Orion Hodson | 119733d | 2019-01-30 15:14:41 +0000 | [diff] [blame] | 110 | art_libartpalette_tests \ |
Martin Stjernholm | fdb2f60 | 2019-01-09 14:47:00 +0000 | [diff] [blame] | 111 | art_libdexfile_external_tests \ |
Martin Stjernholm | 70ae00d | 2019-02-15 22:41:14 +0000 | [diff] [blame] | 112 | art_libdexfile_support_static_tests \ |
Martin Stjernholm | 750bf04 | 2019-01-09 22:51:12 +0000 | [diff] [blame] | 113 | art_libdexfile_support_tests \ |
David Sehr | 334b9d7 | 2018-02-12 18:27:56 -0800 | [diff] [blame] | 114 | art_libdexfile_tests \ |
David Sehr | d5f8de8 | 2018-04-27 14:12:03 -0700 | [diff] [blame] | 115 | art_libprofile_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 116 | art_oatdump_tests \ |
| 117 | art_profman_tests \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 118 | art_runtime_compiler_tests \ |
Martin Stjernholm | 750bf04 | 2019-01-09 22:51:12 +0000 | [diff] [blame] | 119 | art_runtime_tests \ |
Josh Gao | 1eac77e | 2018-02-26 15:54:41 -0800 | [diff] [blame] | 120 | art_sigchain_tests \ |
Brian Carlstrom | a1ce1fe | 2014-02-24 23:23:58 -0800 | [diff] [blame] | 121 | |
Jiyong Park | a599252 | 2020-01-07 16:55:09 +0900 | [diff] [blame] | 122 | ART_TARGET_GTEST_NAMES := $(foreach tm,$(ART_TEST_MODULES),\ |
| 123 | $(foreach path,$(ART_TEST_LIST_device_$(TARGET_ARCH)_$(tm)),\ |
| 124 | $(notdir $(path))\ |
| 125 | )\ |
| 126 | ) |
Nicolas Geoffray | 340fb0b | 2019-12-30 10:36:22 +0000 | [diff] [blame] | 127 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 128 | ART_HOST_GTEST_FILES := $(foreach m,$(ART_TEST_MODULES),\ |
Colin Cross | 124f881 | 2016-09-15 20:57:47 -0700 | [diff] [blame] | 129 | $(ART_TEST_LIST_host_$(ART_HOST_ARCH)_$(m))) |
Alex Light | 50fa993 | 2015-08-10 15:30:07 -0700 | [diff] [blame] | 130 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 131 | ifneq ($(HOST_PREFER_32_BIT),true) |
| 132 | 2ND_ART_HOST_GTEST_FILES += $(foreach m,$(ART_TEST_MODULES),\ |
| 133 | $(ART_TEST_LIST_host_$(2ND_ART_HOST_ARCH)_$(m))) |
| 134 | endif |
| 135 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 136 | # Variables holding collections of gtest pre-requisits used to run a number of gtests. |
| 137 | ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 138 | ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 139 | ART_TEST_HOST_GTEST_RULES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 140 | ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 141 | ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 142 | ART_TEST_TARGET_GTEST_RULES := |
Nicolas Geoffray | 58035ae | 2015-05-27 19:10:27 +0100 | [diff] [blame] | 143 | ART_TEST_HOST_GTEST_DEPENDENCIES := |
Nicolas Geoffray | 17b1dcb | 2018-10-12 15:09:42 +0100 | [diff] [blame] | 144 | ART_TEST_TARGET_GTEST_DEPENDENCIES := |
Andreas Gampe | afbaa1a | 2014-03-25 18:09:32 -0700 | [diff] [blame] | 145 | |
Nicolas Geoffray | 96a37c8 | 2014-10-29 23:50:40 +0000 | [diff] [blame] | 146 | ART_GTEST_TARGET_ANDROID_ROOT := '/system' |
| 147 | ifneq ($(ART_TEST_ANDROID_ROOT),) |
| 148 | ART_GTEST_TARGET_ANDROID_ROOT := $(ART_TEST_ANDROID_ROOT) |
| 149 | endif |
| 150 | |
Victor Chang | 6461124 | 2019-07-05 16:32:41 +0100 | [diff] [blame] | 151 | ART_GTEST_TARGET_ANDROID_I18N_ROOT := '/apex/com.android.i18n' |
| 152 | ifneq ($(ART_TEST_ANDROID_I18N_ROOT),) |
| 153 | ART_GTEST_TARGET_ANDROID_I18N_ROOT := $(ART_TEST_ANDROID_I18N_ROOT) |
| 154 | endif |
| 155 | |
Martin Stjernholm | e58624f | 2019-09-20 15:53:40 +0100 | [diff] [blame] | 156 | ART_GTEST_TARGET_ANDROID_ART_ROOT := '/apex/com.android.art' |
| 157 | ifneq ($(ART_TEST_ANDROID_ART_ROOT),) |
| 158 | ART_GTEST_TARGET_ANDROID_ART_ROOT := $(ART_TEST_ANDROID_ART_ROOT) |
Roland Levillain | 7c777f8 | 2019-01-10 18:00:37 +0000 | [diff] [blame] | 159 | endif |
Neil Fuller | 26c4377 | 2018-11-23 17:56:43 +0000 | [diff] [blame] | 160 | |
Neil Fuller | 26a5dd6 | 2019-03-13 15:16:35 +0000 | [diff] [blame] | 161 | ART_GTEST_TARGET_ANDROID_TZDATA_ROOT := '/apex/com.android.tzdata' |
| 162 | ifneq ($(ART_TEST_ANDROID_TZDATA_ROOT),) |
| 163 | ART_GTEST_TARGET_ANDROID_TZDATA_ROOT := $(ART_TEST_ANDROID_TZDATA_ROOT) |
| 164 | endif |
| 165 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 166 | # Define make rules for a host gtests. |
| 167 | # $(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] | 168 | # $(2): path relative to $OUT to the test binary |
| 169 | # $(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] | 170 | define define-art-gtest-rule-host |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 171 | gtest_suffix := $(1)$$($(3)ART_PHONY_TEST_HOST_SUFFIX) |
| 172 | gtest_rule := test-art-host-gtest-$$(gtest_suffix) |
| 173 | gtest_output := $(call intermediates-dir-for,PACKAGING,art-host-gtest,HOST)/$$(gtest_suffix).xml |
Dan Willemsen | 0ef9457 | 2018-10-21 19:00:56 +0000 | [diff] [blame] | 174 | $$(call dist-for-goals,$$(gtest_rule),$$(gtest_output):gtest/$$(gtest_suffix)) |
Colin Cross | 8307206 | 2019-10-02 16:06:58 -0700 | [diff] [blame] | 175 | gtest_exe := $(2) |
Ian Rogers | 665de8a | 2014-06-24 21:34:09 -0700 | [diff] [blame] | 176 | # Dependencies for all host gtests. |
Nicolas Geoffray | d31cff1 | 2020-03-27 14:29:45 +0000 | [diff] [blame] | 177 | gtest_deps := $$(ART_HOST_DEX_DEPENDENCIES) \ |
David Srbecky | 883c134 | 2020-05-11 23:30:29 +0000 | [diff] [blame] | 178 | $$(ART_TEST_HOST_GTEST_DEPENDENCIES) \ |
Nicolas Geoffray | c69b3f8 | 2020-06-22 12:33:38 +0000 | [diff] [blame^] | 179 | $$(HOST_OUT)/$$(I18N_APEX)/etc \ |
David Srbecky | 0c0f302 | 2020-02-13 15:53:01 +0000 | [diff] [blame] | 180 | $$(HOST_BOOT_IMAGE_JARS) \ |
Victor Chang | 65ae669 | 2019-10-11 14:17:21 +0100 | [diff] [blame] | 181 | $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libicu_jni$$(ART_HOST_SHLIB_EXTENSION) \ |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 182 | $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libjavacore$$(ART_HOST_SHLIB_EXTENSION) \ |
| 183 | $$($(3)ART_HOST_OUT_SHARED_LIBRARIES)/libopenjdkd$$(ART_HOST_SHLIB_EXTENSION) \ |
Nicolas Geoffray | 58035ae | 2015-05-27 19:10:27 +0100 | [diff] [blame] | 184 | $$(gtest_exe) \ |
| 185 | $$(ART_GTEST_$(1)_HOST_DEPS) \ |
Andreas Gampe | 28fd62a | 2018-12-12 15:15:22 -0800 | [diff] [blame] | 186 | $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_HOST_GTEST_$(file)_DEX)) \ |
Andreas Gampe | 148c160 | 2019-06-10 16:47:46 -0700 | [diff] [blame] | 187 | $(HOST_OUT_EXECUTABLES)/signal_dumper |
Ian Rogers | 665de8a | 2014-06-24 21:34:09 -0700 | [diff] [blame] | 188 | |
David Srbecky | 403384e | 2020-03-27 12:24:36 +0000 | [diff] [blame] | 189 | # Note: The "host arch" Make variables defined in build/make/core/envsetup.mk |
| 190 | # and art/build/Android.common.mk have different meanings: |
| 191 | # |
| 192 | # * In build/make/core/envsetup.mk: |
| 193 | # * HOST_ARCH := x86_64 |
| 194 | # * HOST_2ND_ARCH := x86 |
| 195 | # |
| 196 | # * In art/build/Android.common.mk: |
| 197 | # * When `HOST_PREFER_32_BIT` is `true`: |
| 198 | # * ART_HOST_ARCH := x86 |
| 199 | # * 2ND_ART_HOST_ARCH := |
| 200 | # * 2ND_HOST_ARCH := |
| 201 | # * Otherwise: |
| 202 | # * ART_HOST_ARCH := x86_64 |
| 203 | # * 2ND_ART_HOST_ARCH := x86 |
| 204 | # * 2ND_HOST_ARCH := x86 |
| 205 | ifeq ($(HOST_PREFER_32_BIT),true) |
| 206 | gtest_deps += $$(2ND_HOST_BOOT_IMAGE) # Depend on the 32-bit boot image. |
| 207 | else |
| 208 | gtest_deps += $$($(3)HOST_BOOT_IMAGE) |
| 209 | endif |
| 210 | |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 211 | .PHONY: $$(gtest_rule) |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 212 | $$(gtest_rule): $$(gtest_output) |
| 213 | |
| 214 | # Re-run the tests, even if nothing changed. Until the build system has a dedicated "no cache" |
| 215 | # option, claim to write a file that is never produced. |
| 216 | $$(gtest_output): .KATI_IMPLICIT_OUTPUTS := $$(gtest_output)-nocache |
David Srbecky | 883c134 | 2020-05-11 23:30:29 +0000 | [diff] [blame] | 217 | # Limit concurrent runs. Each test itself is already highly parallel (and thus memory hungry). |
| 218 | $$(gtest_output): .KATI_NINJA_POOL := highmem_pool |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 219 | $$(gtest_output): NAME := $$(gtest_rule) |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 220 | ifeq (,$(SANITIZE_HOST)) |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 221 | $$(gtest_output): $$(gtest_exe) $$(gtest_deps) |
Andreas Gampe | 28fd62a | 2018-12-12 15:15:22 -0800 | [diff] [blame] | 222 | $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && \ |
Andreas Gampe | 0df2aba | 2019-06-10 16:53:55 -0700 | [diff] [blame] | 223 | timeout --foreground -k 120s 2400s $(HOST_OUT_EXECUTABLES)/signal_dumper -s 15 \ |
Christopher Ferris | fc5e2ef | 2020-05-08 00:08:42 +0000 | [diff] [blame] | 224 | $$< --gtest_output=xml:$$@ && \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 225 | $$(call ART_TEST_PASSED,$$(NAME))) || $$(call ART_TEST_FAILED,$$(NAME)) |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 226 | else |
Andreas Gampe | 0385805 | 2017-05-01 08:17:24 -0700 | [diff] [blame] | 227 | # Note: envsetup currently exports ASAN_OPTIONS=detect_leaks=0 to suppress leak detection, as some |
| 228 | # build tools (e.g., ninja) intentionally leak. We want leak checks when we run our tests, so |
| 229 | # override ASAN_OPTIONS. b/37751350 |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 230 | # Note 2: Under sanitization, also capture the output, and run it through the stack tool on failure |
| 231 | # (with the x86-64 ABI, as this allows symbolization of both x86 and x86-64). We don't do this in |
| 232 | # general as it loses all the color output, and we have our own symbolization step when not running |
| 233 | # under ASAN. |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 234 | $$(gtest_output): $$(gtest_exe) $$(gtest_deps) |
| 235 | $(hide) ($$(call ART_TEST_SKIP,$$(NAME)) && set -o pipefail && \ |
Andreas Gampe | 0df2aba | 2019-06-10 16:53:55 -0700 | [diff] [blame] | 236 | ASAN_OPTIONS=detect_leaks=1 timeout --foreground -k 120s 3600s \ |
| 237 | $(HOST_OUT_EXECUTABLES)/signal_dumper -s 15 \ |
Andreas Gampe | 28fd62a | 2018-12-12 15:15:22 -0800 | [diff] [blame] | 238 | $$< --gtest_output=xml:$$@ 2>&1 | tee $$<.tmp.out >&2 && \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 239 | { $$(call ART_TEST_PASSED,$$(NAME)) ; rm $$<.tmp.out ; }) || \ |
Andreas Gampe | c05fd3f | 2018-01-23 14:22:07 -0800 | [diff] [blame] | 240 | ( grep -q AddressSanitizer $$<.tmp.out && export ANDROID_BUILD_TOP=`pwd` && \ |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 241 | { echo "ABI: 'x86_64'" | cat - $$<.tmp.out | development/scripts/stack | tail -n 3000 ; } ; \ |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 242 | rm $$<.tmp.out ; $$(call ART_TEST_FAILED,$$(NAME))) |
Andreas Gampe | 6acebf4 | 2018-01-22 22:15:43 -0800 | [diff] [blame] | 243 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 244 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 245 | 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] | 246 | ART_TEST_HOST_GTEST_RULES += $$(gtest_rule) |
| 247 | ART_TEST_HOST_GTEST_$(1)_RULES += $$(gtest_rule) |
| 248 | |
Andreas Gampe | 3c0bb31 | 2015-02-19 10:02:19 -0800 | [diff] [blame] | 249 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 250 | # Clear locally defined variables. |
Ian Rogers | 665de8a | 2014-06-24 21:34:09 -0700 | [diff] [blame] | 251 | gtest_deps := |
Roland Levillain | 76cfe61 | 2017-10-30 13:14:28 +0000 | [diff] [blame] | 252 | gtest_exe := |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 253 | gtest_output := |
Roland Levillain | 76cfe61 | 2017-10-30 13:14:28 +0000 | [diff] [blame] | 254 | gtest_rule := |
Dan Willemsen | db72e5e | 2018-10-02 14:09:21 -0700 | [diff] [blame] | 255 | gtest_suffix := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 256 | endef # define-art-gtest-rule-host |
| 257 | |
Nicolas Geoffray | c69b3f8 | 2020-06-22 12:33:38 +0000 | [diff] [blame^] | 258 | ART_TEST_HOST_GTEST_DEPENDENCIES := $(host-i18n-data-file) |
David Srbecky | 4a88a5a | 2020-05-05 16:21:57 +0100 | [diff] [blame] | 259 | ART_TEST_TARGET_GTEST_DEPENDENCIES := $(TESTING_ART_APEX) |
David Srbecky | 883c134 | 2020-05-11 23:30:29 +0000 | [diff] [blame] | 260 | |
Jiyong Park | eac38a1 | 2020-01-03 17:56:33 +0900 | [diff] [blame] | 261 | # Add the additional dependencies for the specified test |
Nicolas Geoffray | 340fb0b | 2019-12-30 10:36:22 +0000 | [diff] [blame] | 262 | # $(1): test name |
Jiyong Park | eac38a1 | 2020-01-03 17:56:33 +0900 | [diff] [blame] | 263 | define add-art-gtest-dependencies |
Nicolas Geoffray | 340fb0b | 2019-12-30 10:36:22 +0000 | [diff] [blame] | 264 | # Note that, both the primary and the secondary arches of the libs are built by depending |
| 265 | # on the module name. |
| 266 | gtest_deps := \ |
| 267 | $$(ART_GTEST_$(1)_TARGET_DEPS) \ |
| 268 | $(foreach file,$(ART_GTEST_$(1)_DEX_DEPS),$(ART_TEST_TARGET_GTEST_$(file)_DEX)) \ |
Brian Carlstrom | 0796af0 | 2011-10-12 14:31:45 -0700 | [diff] [blame] | 269 | |
Nicolas Geoffray | 340fb0b | 2019-12-30 10:36:22 +0000 | [diff] [blame] | 270 | ART_TEST_TARGET_GTEST_DEPENDENCIES += $$(gtest_deps) |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 271 | |
| 272 | # Clear locally defined variables. |
Nicolas Geoffray | 340fb0b | 2019-12-30 10:36:22 +0000 | [diff] [blame] | 273 | gtest_deps := |
Jiyong Park | eac38a1 | 2020-01-03 17:56:33 +0900 | [diff] [blame] | 274 | endef # add-art-gtest-dependencies |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 275 | |
| 276 | # $(1): file name |
| 277 | # $(2): 2ND_ or undefined - used to differentiate between the primary and secondary architecture. |
| 278 | define define-art-gtest-host |
| 279 | art_gtest_filename := $(1) |
| 280 | |
| 281 | include $$(CLEAR_VARS) |
| 282 | art_gtest_name := $$(notdir $$(basename $$(art_gtest_filename))) |
| 283 | ifndef ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES |
| 284 | ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES := |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 285 | endif |
| 286 | $$(eval $$(call define-art-gtest-rule-host,$$(art_gtest_name),$$(art_gtest_filename),$(2))) |
| 287 | |
| 288 | # Clear locally defined variables. |
| 289 | art_gtest_filename := |
| 290 | art_gtest_name := |
| 291 | endef # define-art-gtest-host |
| 292 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 293 | # Define the rules to build and run gtests for both archs on host. |
| 294 | # $(1): test name |
| 295 | define define-art-gtest-host-both |
| 296 | art_gtest_name := $(1) |
| 297 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 298 | .PHONY: test-art-host-gtest-$$(art_gtest_name) |
| 299 | test-art-host-gtest-$$(art_gtest_name): $$(ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES) |
| 300 | $$(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@) |
Ian Rogers | d912e5c | 2013-11-13 12:40:11 -0800 | [diff] [blame] | 301 | |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 302 | # Clear now unused variables. |
| 303 | ART_TEST_HOST_GTEST_$$(art_gtest_name)_RULES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 304 | art_gtest_name := |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 305 | endef # define-art-gtest-host-both |
Alex Light | 50fa993 | 2015-08-10 15:30:07 -0700 | [diff] [blame] | 306 | |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 307 | ifeq ($(ART_BUILD_TARGET),true) |
Jiyong Park | eac38a1 | 2020-01-03 17:56:33 +0900 | [diff] [blame] | 308 | $(foreach name,$(ART_TARGET_GTEST_NAMES), $(eval $(call add-art-gtest-dependencies,$(name),))) |
| 309 | ART_TEST_TARGET_GTEST_DEPENDENCIES += \ |
Nicolas Geoffray | c69b3f8 | 2020-06-22 12:33:38 +0000 | [diff] [blame^] | 310 | com.android.i18n \ |
Nicolas Geoffray | ec64f20 | 2020-04-20 15:05:54 +0100 | [diff] [blame] | 311 | libjavacore.com.android.art.testing \ |
| 312 | libopenjdkd.com.android.art.testing \ |
Nicolas Geoffray | 31e0dc2 | 2020-03-20 15:48:09 +0000 | [diff] [blame] | 313 | com.android.art.testing \ |
| 314 | com.android.conscrypt |
Brian Carlstrom | 4b620ff | 2011-09-11 01:11:01 -0700 | [diff] [blame] | 315 | endif |
Ian Rogers | c5f1773 | 2014-06-05 20:48:42 -0700 | [diff] [blame] | 316 | ifeq ($(ART_BUILD_HOST),true) |
Nicolas Geoffray | 6bbea4c | 2016-09-16 16:41:43 +0100 | [diff] [blame] | 317 | $(foreach file,$(ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),))) |
| 318 | ifneq ($(HOST_PREFER_32_BIT),true) |
| 319 | $(foreach file,$(2ND_ART_HOST_GTEST_FILES), $(eval $(call define-art-gtest-host,$(file),2ND_))) |
| 320 | endif |
| 321 | # Rules to run the different architecture versions of the gtest. |
| 322 | $(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] | 323 | endif |
Tsu Chiang Chuang | ec245a4 | 2014-05-15 21:16:21 -0700 | [diff] [blame] | 324 | |
| 325 | # Used outside the art project to get a list of the current tests |
| 326 | RUNTIME_TARGET_GTEST_MAKE_TARGETS := |
Jiyong Park | eac38a1 | 2020-01-03 17:56:33 +0900 | [diff] [blame] | 327 | art_target_gtest_files := $(foreach m,$(ART_TEST_MODULES),$(ART_TEST_LIST_device_$(TARGET_ARCH)_$(m))) |
Dan Willemsen | 7955f5e | 2020-01-28 12:18:49 -0800 | [diff] [blame] | 328 | # If testdir == testfile, assume this is not a test_per_src module |
Jiyong Park | eac38a1 | 2020-01-03 17:56:33 +0900 | [diff] [blame] | 329 | $(foreach file,$(art_target_gtest_files),\ |
Dan Willemsen | 7955f5e | 2020-01-28 12:18:49 -0800 | [diff] [blame] | 330 | $(eval testdir := $$(notdir $$(patsubst %/,%,$$(dir $$(file)))))\ |
| 331 | $(eval testfile := $$(notdir $$(basename $$(file))))\ |
| 332 | $(if $(call streq,$(testdir),$(testfile)),,\ |
| 333 | $(eval testfile := $(testdir)_$(testfile)))\ |
| 334 | $(eval RUNTIME_TARGET_GTEST_MAKE_TARGETS += $(testfile))\ |
Jiyong Park | eac38a1 | 2020-01-03 17:56:33 +0900 | [diff] [blame] | 335 | ) |
Dan Willemsen | 7955f5e | 2020-01-28 12:18:49 -0800 | [diff] [blame] | 336 | testdir := |
| 337 | testfile := |
Jiyong Park | eac38a1 | 2020-01-03 17:56:33 +0900 | [diff] [blame] | 338 | art_target_gtest_files := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 339 | |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 340 | # Define all the combinations of host/target and suffix such as: |
| 341 | # test-art-host-gtest or test-art-host-gtest64 |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 342 | # $(1): host or target |
| 343 | # $(2): HOST or TARGET |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 344 | # $(3): undefined, 32 or 64 |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 345 | define define-test-art-gtest-combination |
| 346 | ifeq ($(1),host) |
| 347 | ifneq ($(2),HOST) |
| 348 | $$(error argument mismatch $(1) and ($2)) |
| 349 | endif |
| 350 | else |
| 351 | ifneq ($(1),target) |
| 352 | $$(error found $(1) expected host or target) |
| 353 | endif |
| 354 | ifneq ($(2),TARGET) |
| 355 | $$(error argument mismatch $(1) and ($2)) |
| 356 | endif |
| 357 | endif |
| 358 | |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 359 | rule_name := test-art-$(1)-gtest$(3) |
| 360 | dependencies := $$(ART_TEST_$(2)_GTEST$(3)_RULES) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 361 | |
| 362 | .PHONY: $$(rule_name) |
Søren Gjesse | 46845f6 | 2019-12-10 09:14:16 +0100 | [diff] [blame] | 363 | $$(rule_name): $$(dependencies) d8 |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 364 | $(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@) |
| 365 | |
| 366 | # Clear locally defined variables. |
| 367 | rule_name := |
| 368 | dependencies := |
| 369 | endef # define-test-art-gtest-combination |
| 370 | |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 371 | $(eval $(call define-test-art-gtest-combination,target,TARGET,)) |
| 372 | $(eval $(call define-test-art-gtest-combination,target,TARGET,$(ART_PHONY_TEST_TARGET_SUFFIX))) |
Dan Willemsen | 5d2dbf8 | 2018-04-11 12:31:11 -0700 | [diff] [blame] | 373 | ifdef 2ND_ART_PHONY_TEST_TARGET_SUFFIX |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 374 | $(eval $(call define-test-art-gtest-combination,target,TARGET,$(2ND_ART_PHONY_TEST_TARGET_SUFFIX))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 375 | endif |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 376 | $(eval $(call define-test-art-gtest-combination,host,HOST,)) |
| 377 | $(eval $(call define-test-art-gtest-combination,host,HOST,$(ART_PHONY_TEST_HOST_SUFFIX))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 378 | ifneq ($(HOST_PREFER_32_BIT),true) |
Roland Levillain | 05e34f4 | 2018-05-24 13:19:05 +0000 | [diff] [blame] | 379 | $(eval $(call define-test-art-gtest-combination,host,HOST,$(2ND_ART_PHONY_TEST_HOST_SUFFIX))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 380 | endif |
| 381 | |
| 382 | # Clear locally defined variables. |
| 383 | define-art-gtest-rule-target := |
| 384 | define-art-gtest-rule-host := |
| 385 | define-art-gtest := |
| 386 | define-test-art-gtest-combination := |
| 387 | RUNTIME_GTEST_COMMON_SRC_FILES := |
| 388 | COMPILER_GTEST_COMMON_SRC_FILES := |
| 389 | RUNTIME_GTEST_TARGET_SRC_FILES := |
| 390 | RUNTIME_GTEST_HOST_SRC_FILES := |
| 391 | COMPILER_GTEST_TARGET_SRC_FILES := |
| 392 | COMPILER_GTEST_HOST_SRC_FILES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 393 | ART_TEST_HOST_GTEST$(ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 394 | ART_TEST_HOST_GTEST$(2ND_ART_PHONY_TEST_HOST_SUFFIX)_RULES := |
| 395 | ART_TEST_HOST_GTEST_RULES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 396 | ART_TEST_TARGET_GTEST$(ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 397 | ART_TEST_TARGET_GTEST$(2ND_ART_PHONY_TEST_TARGET_SUFFIX)_RULES := |
| 398 | ART_TEST_TARGET_GTEST_RULES := |
Nicolas Geoffray | 96a37c8 | 2014-10-29 23:50:40 +0000 | [diff] [blame] | 399 | ART_GTEST_TARGET_ANDROID_ROOT := |
Victor Chang | 6461124 | 2019-07-05 16:32:41 +0100 | [diff] [blame] | 400 | ART_GTEST_TARGET_ANDROID_I18N_ROOT := |
Martin Stjernholm | e58624f | 2019-09-20 15:53:40 +0100 | [diff] [blame] | 401 | ART_GTEST_TARGET_ANDROID_ART_ROOT := |
Neil Fuller | 26a5dd6 | 2019-03-13 15:16:35 +0000 | [diff] [blame] | 402 | ART_GTEST_TARGET_ANDROID_TZDATA_ROOT := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 403 | ART_GTEST_class_linker_test_DEX_DEPS := |
Mathieu Chartier | db70ce5 | 2016-12-12 11:06:59 -0800 | [diff] [blame] | 404 | ART_GTEST_class_table_test_DEX_DEPS := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 405 | ART_GTEST_compiler_driver_test_DEX_DEPS := |
| 406 | ART_GTEST_dex_file_test_DEX_DEPS := |
| 407 | ART_GTEST_exception_test_DEX_DEPS := |
| 408 | ART_GTEST_elf_writer_test_HOST_DEPS := |
| 409 | ART_GTEST_elf_writer_test_TARGET_DEPS := |
Andreas Gampe | a1ff30f | 2016-09-27 12:19:45 -0700 | [diff] [blame] | 410 | ART_GTEST_imtable_test_DEX_DEPS := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 411 | ART_GTEST_jni_compiler_test_DEX_DEPS := |
| 412 | ART_GTEST_jni_internal_test_DEX_DEPS := |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 413 | ART_GTEST_oat_file_assistant_test_DEX_DEPS := |
| 414 | ART_GTEST_oat_file_assistant_test_HOST_DEPS := |
| 415 | ART_GTEST_oat_file_assistant_test_TARGET_DEPS := |
Mathieu Chartier | 0be7fa7 | 2018-04-12 10:13:29 -0700 | [diff] [blame] | 416 | ART_GTEST_dexanalyze_test_DEX_DEPS := |
Calin Juravle | 36eb313 | 2017-01-13 16:32:38 -0800 | [diff] [blame] | 417 | ART_GTEST_dexoptanalyzer_test_DEX_DEPS := |
| 418 | ART_GTEST_dexoptanalyzer_test_HOST_DEPS := |
| 419 | ART_GTEST_dexoptanalyzer_test_TARGET_DEPS := |
Richard Uhler | 84f50ae | 2017-02-06 15:12:45 +0000 | [diff] [blame] | 420 | ART_GTEST_image_space_test_DEX_DEPS := |
| 421 | ART_GTEST_image_space_test_HOST_DEPS := |
| 422 | ART_GTEST_image_space_test_TARGET_DEPS := |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 423 | ART_GTEST_dex2oat_test_DEX_DEPS := |
| 424 | ART_GTEST_dex2oat_test_HOST_DEPS := |
| 425 | ART_GTEST_dex2oat_test_TARGET_DEPS := |
Mathieu Chartier | f70fe3d | 2017-06-21 15:24:02 -0700 | [diff] [blame] | 426 | ART_GTEST_dex2oat_image_test_DEX_DEPS := |
| 427 | ART_GTEST_dex2oat_image_test_HOST_DEPS := |
| 428 | ART_GTEST_dex2oat_image_test_TARGET_DEPS := |
Vladimir Marko | d1f7351 | 2020-04-02 10:50:35 +0100 | [diff] [blame] | 429 | ART_GTEST_module_exclusion_test_HOST_DEPS := |
| 430 | ART_GTEST_module_exclusion_test_TARGET_DEPS := |
Brian Carlstrom | eb85f2b | 2014-06-25 13:23:00 -0700 | [diff] [blame] | 431 | ART_GTEST_object_test_DEX_DEPS := |
| 432 | ART_GTEST_proxy_test_DEX_DEPS := |
| 433 | ART_GTEST_reflection_test_DEX_DEPS := |
| 434 | ART_GTEST_stub_test_DEX_DEPS := |
| 435 | ART_GTEST_transaction_test_DEX_DEPS := |
Andreas Gampe | e1459ae | 2016-06-29 09:36:30 -0700 | [diff] [blame] | 436 | ART_GTEST_dex2oat_environment_tests_DEX_DEPS := |
Mathieu Chartier | 1ca6890 | 2017-04-18 11:26:22 -0700 | [diff] [blame] | 437 | ART_GTEST_heap_verification_test_DEX_DEPS := |
David Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 438 | ART_GTEST_verifier_deps_test_DEX_DEPS := |
Ian Rogers | 1a2f84e | 2014-07-07 16:05:18 -0700 | [diff] [blame] | 439 | $(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_TARGET_GTEST_$(dir)_DEX :=)) |
| 440 | $(foreach dir,$(GTEST_DEX_DIRECTORIES), $(eval ART_TEST_HOST_GTEST_$(dir)_DEX :=)) |
Richard Uhler | 66d874d | 2015-01-15 09:37:19 -0800 | [diff] [blame] | 441 | ART_TEST_HOST_GTEST_MainStripped_DEX := |
| 442 | ART_TEST_TARGET_GTEST_MainStripped_DEX := |
David Srbecky | 8c8f148 | 2020-02-05 20:17:10 +0000 | [diff] [blame] | 443 | ART_TEST_HOST_GTEST_MainUncompressedAligned_DEX := |
| 444 | ART_TEST_TARGET_GTEST_MainUncompressedAligned_DEX := |
Mathieu Chartier | 700a985 | 2018-02-06 18:27:38 -0800 | [diff] [blame] | 445 | ART_TEST_HOST_GTEST_EmptyUncompressed_DEX := |
| 446 | ART_TEST_TARGET_GTEST_EmptyUncompressed_DEX := |
David Brazdil | ca3c8c3 | 2016-09-06 14:04:48 +0100 | [diff] [blame] | 447 | ART_TEST_GTEST_VerifierDeps_SRC := |
| 448 | ART_TEST_HOST_GTEST_VerifierDeps_DEX := |
David Brazdil | f906f12 | 2016-09-16 16:33:31 +0100 | [diff] [blame] | 449 | ART_TEST_TARGET_GTEST_VerifierDeps_DEX := |
Vladimir Marko | d79b37b | 2018-11-02 13:06:22 +0000 | [diff] [blame] | 450 | ART_TEST_GTEST_VerifySoftFailDuringClinit_SRC := |
| 451 | ART_TEST_HOST_GTEST_VerifySoftFailDuringClinit_DEX := |
| 452 | ART_TEST_TARGET_GTEST_VerifySoftFailDuringClinit_DEX := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 453 | GTEST_DEX_DIRECTORIES := |
Brian Carlstrom | 532714a | 2014-06-25 02:15:31 -0700 | [diff] [blame] | 454 | LOCAL_PATH := |
David Srbecky | 883c134 | 2020-05-11 23:30:29 +0000 | [diff] [blame] | 455 | |
| 456 | endif # ifneq ($(HOST_OS),darwin) |