Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 1 | # Copyright (C) 2011 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | # |
| 15 | |
| 16 | LOCAL_PATH := $(call my-dir) |
| 17 | |
| 18 | include art/build/Android.common_test.mk |
| 19 | |
| 20 | # List of all tests of the form 003-omnibus-opcodes. |
| 21 | TEST_ART_RUN_TESTS := $(wildcard $(LOCAL_PATH)/[0-9]*) |
| 22 | TEST_ART_RUN_TESTS := $(subst $(LOCAL_PATH)/,, $(TEST_ART_RUN_TESTS)) |
| 23 | |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 24 | ######################################################################## |
| 25 | # The art-run-tests module, used to build all run-tests into an image. |
Alex Light | 9dcc457 | 2014-08-14 14:16:26 -0700 | [diff] [blame] | 26 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 27 | # The path where build only targets will be output, e.g. |
| 28 | # out/target/product/generic_x86_64/obj/PACKAGING/art-run-tests_intermediates/DATA |
| 29 | art_run_tests_dir := $(call intermediates-dir-for,PACKAGING,art-run-tests)/DATA |
| 30 | |
| 31 | # A generated list of prerequisites that call 'run-test --build-only', the actual prerequisite is |
| 32 | # an empty file touched in the intermediate directory. |
| 33 | TEST_ART_RUN_TEST_BUILD_RULES := |
| 34 | |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 35 | # Dependencies for actually running a run-test. |
| 36 | TEST_ART_RUN_TEST_DEPENDENCIES := \ |
| 37 | $(DX) \ |
| 38 | $(HOST_OUT_EXECUTABLES)/jasmin \ |
| 39 | $(HOST_OUT_EXECUTABLES)/smali \ |
| 40 | $(HOST_OUT_EXECUTABLES)/dexmerger |
| 41 | |
| 42 | ifeq ($(ANDROID_COMPILE_WITH_JACK),true) |
| 43 | TEST_ART_RUN_TEST_DEPENDENCIES += \ |
| 44 | $(JACK_JAR) \ |
| 45 | $(JACK_LAUNCHER_JAR) \ |
| 46 | $(JILL_JAR) |
| 47 | endif |
| 48 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 49 | # Helper to create individual build targets for tests. Must be called with $(eval). |
| 50 | # $(1): the test number |
| 51 | define define-build-art-run-test |
| 52 | dmart_target := $(art_run_tests_dir)/art-run-tests/$(1)/touch |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 53 | run_test_options = --build-only |
| 54 | ifeq ($(ANDROID_COMPILE_WITH_JACK),true) |
| 55 | run_test_options += --build-with-jack |
| 56 | else |
| 57 | run_test_options += --build-with-javac-dx |
| 58 | endif |
| 59 | $$(dmart_target): PRIVATE_RUN_TEST_OPTIONS := $$(run_test_options) |
| 60 | $$(dmart_target): $(TEST_ART_RUN_TEST_DEPENDENCIES) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 61 | $(hide) rm -rf $$(dir $$@) && mkdir -p $$(dir $$@) |
| 62 | $(hide) DX=$(abspath $(DX)) JASMIN=$(abspath $(HOST_OUT_EXECUTABLES)/jasmin) \ |
Andreas Gampe | 8fda9f2 | 2014-10-03 16:15:37 -0700 | [diff] [blame] | 63 | SMALI=$(abspath $(HOST_OUT_EXECUTABLES)/smali) \ |
| 64 | DXMERGER=$(abspath $(HOST_OUT_EXECUTABLES)/dexmerger) \ |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 65 | JACK=$(abspath $(JACK)) \ |
| 66 | JACK_VM_COMMAND="$(JACK_VM) $(DEFAULT_JACK_VM_ARGS) $(JAVA_TMPDIR_ARG) -jar $(abspath $(JACK_LAUNCHER_JAR)) " \ |
| 67 | JACK_CLASSPATH=$(TARGET_JACK_CLASSPATH) \ |
| 68 | JACK_JAR=$(abspath $(JACK_JAR)) \ |
| 69 | JILL_JAR=$(abspath $(JILL_JAR)) \ |
| 70 | $(LOCAL_PATH)/run-test $$(PRIVATE_RUN_TEST_OPTIONS) --output-path $$(abspath $$(dir $$@)) $(1) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 71 | $(hide) touch $$@ |
| 72 | |
| 73 | TEST_ART_RUN_TEST_BUILD_RULES += $$(dmart_target) |
| 74 | dmart_target := |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 75 | run_test_options := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 76 | endef |
Ian Rogers | bf66bce | 2014-06-24 23:15:34 -0700 | [diff] [blame] | 77 | $(foreach test, $(TEST_ART_RUN_TESTS), $(eval $(call define-build-art-run-test,$(test)))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 78 | |
| 79 | include $(CLEAR_VARS) |
| 80 | LOCAL_MODULE_TAGS := tests |
| 81 | LOCAL_MODULE := art-run-tests |
Ian Rogers | abbf242 | 2014-10-15 11:57:01 -0700 | [diff] [blame] | 82 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TEST_ART_RUN_TEST_BUILD_RULES) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 83 | # The build system use this flag to pick up files generated by declare-make-art-run-test. |
| 84 | LOCAL_PICKUP_FILES := $(art_run_tests_dir) |
| 85 | |
| 86 | include $(BUILD_PHONY_PACKAGE) |
| 87 | |
| 88 | # Clear temp vars. |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 89 | art_run_tests_dir := |
| 90 | define-build-art-run-test := |
Ian Rogers | 8a14b75 | 2014-07-18 15:06:53 -0700 | [diff] [blame] | 91 | TEST_ART_RUN_TEST_BUILD_RULES := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 92 | |
| 93 | ######################################################################## |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 94 | # General rules to build and run a run-test. |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 95 | |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 96 | TARGET_TYPES := host target |
Nicolas Geoffray | 41bb331 | 2014-10-24 13:49:08 +0100 | [diff] [blame] | 97 | PREBUILD_TYPES := |
| 98 | ifeq ($(ART_TEST_RUN_TEST_PREBUILD),true) |
| 99 | PREBUILD_TYPES += prebuild |
| 100 | endif |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 101 | ifeq ($(ART_TEST_RUN_TEST_NO_PREBUILD),true) |
| 102 | PREBUILD_TYPES += no-prebuild |
| 103 | endif |
| 104 | ifeq ($(ART_TEST_RUN_TEST_NO_DEX2OAT),true) |
| 105 | PREBUILD_TYPES += no-dex2oat |
| 106 | endif |
| 107 | COMPILER_TYPES := |
| 108 | ifeq ($(ART_TEST_DEFAULT_COMPILER),true) |
| 109 | COMPILER_TYPES += default |
| 110 | endif |
| 111 | ifeq ($(ART_TEST_INTERPRETER),true) |
| 112 | COMPILER_TYPES += interpreter |
| 113 | endif |
Mathieu Chartier | e5f13e5 | 2015-02-24 09:37:21 -0800 | [diff] [blame] | 114 | ifeq ($(ART_TEST_JIT),true) |
| 115 | COMPILER_TYPES += jit |
| 116 | endif |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 117 | ifeq ($(ART_TEST_OPTIMIZING),true) |
| 118 | COMPILER_TYPES += optimizing |
| 119 | endif |
| 120 | RELOCATE_TYPES := relocate |
| 121 | ifeq ($(ART_TEST_RUN_TEST_NO_RELOCATE),true) |
| 122 | RELOCATE_TYPES += no-relocate |
| 123 | endif |
| 124 | ifeq ($(ART_TEST_RUN_TEST_RELOCATE_NO_PATCHOAT),true) |
Andreas Gampe | b9aec2c | 2015-04-23 22:23:47 -0700 | [diff] [blame] | 125 | RELOCATE_TYPES += relocate-npatchoat |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 126 | endif |
Mathieu Chartier | 1445dd3 | 2015-03-20 14:29:51 -0700 | [diff] [blame] | 127 | TRACE_TYPES := ntrace |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 128 | ifeq ($(ART_TEST_TRACE),true) |
| 129 | TRACE_TYPES += trace |
| 130 | endif |
Andreas Gampe | b91205e | 2015-06-22 22:53:45 -0700 | [diff] [blame] | 131 | ifeq ($(ART_TEST_TRACE_STREAM),true) |
| 132 | TRACE_TYPES += stream |
| 133 | endif |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 134 | GC_TYPES := cms |
Alex Light | 992f1e7 | 2014-08-27 16:08:57 -0700 | [diff] [blame] | 135 | ifeq ($(ART_TEST_GC_STRESS),true) |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 136 | GC_TYPES += gcstress |
| 137 | endif |
Alex Light | 992f1e7 | 2014-08-27 16:08:57 -0700 | [diff] [blame] | 138 | ifeq ($(ART_TEST_GC_VERIFY),true) |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 139 | GC_TYPES += gcverify |
| 140 | endif |
| 141 | JNI_TYPES := checkjni |
| 142 | ifeq ($(ART_TEST_JNI_FORCECOPY),true) |
| 143 | JNI_TYPES += forcecopy |
| 144 | endif |
| 145 | IMAGE_TYPES := image |
| 146 | ifeq ($(ART_TEST_RUN_TEST_NO_IMAGE),true) |
| 147 | IMAGE_TYPES += no-image |
| 148 | endif |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 149 | ifeq ($(ART_TEST_PIC_IMAGE),true) |
| 150 | IMAGE_TYPES += picimage |
| 151 | endif |
Mathieu Chartier | 1445dd3 | 2015-03-20 14:29:51 -0700 | [diff] [blame] | 152 | PICTEST_TYPES := npictest |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 153 | ifeq ($(ART_TEST_PIC_TEST),true) |
| 154 | PICTEST_TYPES += pictest |
| 155 | endif |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 156 | RUN_TYPES := |
| 157 | ifeq ($(ART_TEST_RUN_TEST_DEBUG),true) |
| 158 | RUN_TYPES += debug |
| 159 | endif |
| 160 | ifeq ($(ART_TEST_RUN_TEST_NDEBUG),true) |
| 161 | RUN_TYPES += ndebug |
| 162 | endif |
Mathieu Chartier | 1445dd3 | 2015-03-20 14:29:51 -0700 | [diff] [blame] | 163 | DEBUGGABLE_TYPES := ndebuggable |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 164 | ifeq ($(ART_TEST_RUN_TEST_DEBUGGABLE),true) |
| 165 | DEBUGGABLE_TYPES += debuggable |
| 166 | endif |
Nicolas Geoffray | 41bb331 | 2014-10-24 13:49:08 +0100 | [diff] [blame] | 167 | ADDRESS_SIZES_TARGET := $(ART_PHONY_TEST_TARGET_SUFFIX) |
| 168 | ADDRESS_SIZES_HOST := $(ART_PHONY_TEST_HOST_SUFFIX) |
| 169 | ifeq ($(ART_TEST_RUN_TEST_2ND_ARCH),true) |
| 170 | ADDRESS_SIZES_TARGET += $(2ND_ART_PHONY_TEST_TARGET_SUFFIX) |
| 171 | ADDRESS_SIZES_HOST += $(2ND_ART_PHONY_TEST_HOST_SUFFIX) |
| 172 | endif |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 173 | ALL_ADDRESS_SIZES := 64 32 |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 174 | |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 175 | # List all run test names with number arguments agreeing with the comment above. |
| 176 | define all-run-test-names |
| 177 | $(foreach target, $(1), \ |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 178 | $(foreach run-type, $(2), \ |
| 179 | $(foreach prebuild, $(3), \ |
| 180 | $(foreach compiler, $(4), \ |
| 181 | $(foreach relocate, $(5), \ |
| 182 | $(foreach trace, $(6), \ |
| 183 | $(foreach gc, $(7), \ |
| 184 | $(foreach jni, $(8), \ |
| 185 | $(foreach image, $(9), \ |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 186 | $(foreach pictest, $(10), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 187 | $(foreach debuggable, $(11), \ |
| 188 | $(foreach test, $(12), \ |
| 189 | $(foreach address_size, $(13), \ |
| 190 | test-art-$(target)-run-test-$(run-type)-$(prebuild)-$(compiler)-$(relocate)-$(trace)-$(gc)-$(jni)-$(image)-$(pictest)-$(debuggable)-$(test)$(address_size) \ |
| 191 | ))))))))))))) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 192 | endef # all-run-test-names |
| 193 | |
| 194 | # To generate a full list or tests: |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 195 | # $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES),$(COMPILER_TYPES), \ |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 196 | # $(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 197 | # $(DEBUGGABLE_TYPES) $(TEST_ART_RUN_TESTS), $(ALL_ADDRESS_SIZES) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 198 | |
| 199 | # Convert's a rule name to the form used in variables, e.g. no-relocate to NO_RELOCATE |
| 200 | define name-to-var |
| 201 | $(shell echo $(1) | tr '[:lower:]' '[:upper:]' | tr '-' '_') |
| 202 | endef # name-to-var |
| 203 | |
| 204 | # Tests that are timing sensitive and flaky on heavily loaded systems. |
| 205 | TEST_ART_TIMING_SENSITIVE_RUN_TESTS := \ |
| 206 | 053-wait-some \ |
Mathieu Chartier | e4a91bb | 2015-01-28 13:11:44 -0800 | [diff] [blame] | 207 | 055-enum-performance \ |
| 208 | 133-static-invoke-super |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 209 | |
| 210 | # disable timing sensitive tests on "dist" builds. |
| 211 | ifdef dist_goal |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 212 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 213 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 214 | $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_TIMING_SENSITIVE_RUN_TESTS), $(ALL_ADDRESS_SIZES)) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 215 | endif |
| 216 | |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 217 | TEST_ART_TIMING_SENSITIVE_RUN_TESTS := |
| 218 | |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 219 | # Note 116-nodex2oat is not broken per-se it just doesn't (and isn't meant to) work with --prebuild. |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 220 | TEST_ART_BROKEN_PREBUILD_RUN_TESTS := \ |
Andreas Gampe | 3ad5d5e | 2015-02-03 18:26:55 -0800 | [diff] [blame] | 221 | 116-nodex2oat \ |
Jean Christophe Beyler | 24e04aa | 2014-09-12 12:03:25 -0700 | [diff] [blame] | 222 | 118-noimage-dex2oat \ |
| 223 | 134-nodex2oat-nofallback |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 224 | |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 225 | ifneq (,$(filter prebuild,$(PREBUILD_TYPES))) |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 226 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),prebuild, \ |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 227 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 228 | $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_PREBUILD_RUN_TESTS), $(ALL_ADDRESS_SIZES)) |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 229 | endif |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 230 | |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 231 | TEST_ART_BROKEN_PREBUILD_RUN_TESTS := |
| 232 | |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 233 | TEST_ART_BROKEN_NO_PREBUILD_TESTS := \ |
| 234 | 117-nopatchoat |
| 235 | |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 236 | ifneq (,$(filter no-prebuild,$(PREBUILD_TYPES))) |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 237 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),no-prebuild, \ |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 238 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 239 | $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_NO_PREBUILD_TESTS), $(ALL_ADDRESS_SIZES)) |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 240 | endif |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 241 | |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 242 | TEST_ART_BROKEN_NO_PREBUILD_TESTS := |
| 243 | |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 244 | # Note 117-nopatchoat is not broken per-se it just doesn't work (and isn't meant to) without |
| 245 | # --prebuild --relocate |
| 246 | TEST_ART_BROKEN_NO_RELOCATE_TESTS := \ |
Andreas Gampe | 3ad5d5e | 2015-02-03 18:26:55 -0800 | [diff] [blame] | 247 | 117-nopatchoat \ |
| 248 | 118-noimage-dex2oat \ |
| 249 | 119-noimage-patchoat |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 250 | |
| 251 | ifneq (,$(filter no-relocate,$(RELOCATE_TYPES))) |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 252 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 253 | $(COMPILER_TYPES), no-relocate,$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 254 | $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_NO_RELOCATE_TESTS), $(ALL_ADDRESS_SIZES)) |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 255 | endif |
| 256 | |
| 257 | TEST_ART_BROKEN_NO_RELOCATE_TESTS := |
| 258 | |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 259 | # Tests that are broken with GC stress. |
Mathieu Chartier | bdeb9b7 | 2015-01-07 17:42:07 -0800 | [diff] [blame] | 260 | TEST_ART_BROKEN_GCSTRESS_RUN_TESTS := |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 261 | |
| 262 | ifneq (,$(filter gcstress,$(GC_TYPES))) |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 263 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 264 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),gcstress,$(JNI_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 265 | $(IMAGE_TYPES), $(PICTEST_TYPES), $(DBEUGGABLE_TYPES), $(TEST_ART_BROKEN_GCSTRESS_RUN_TESTS), $(ALL_ADDRESS_SIZES)) |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 266 | endif |
| 267 | |
| 268 | TEST_ART_BROKEN_GCSTRESS_RUN_TESTS := |
| 269 | |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 270 | # 115-native-bridge setup is complicated. Need to implement it correctly for the target. |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 271 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,target,$(RUN_TYPES),$(PREBUILD_TYPES),$(COMPILER_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 272 | $(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES), 115-native-bridge, \ |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 273 | $(ALL_ADDRESS_SIZES)) |
| 274 | |
Andreas Gampe | 3a91309 | 2015-01-10 00:26:17 -0800 | [diff] [blame] | 275 | # 130-hprof dumps the heap and runs hprof-conv to check whether the file is somewhat readable. This |
| 276 | # is only possible on the host. |
| 277 | # TODO: Turn off all the other combinations, this is more about testing actual ART code. A gtest is |
| 278 | # very hard to write here, as (for a complete test) JDWP must be set up. |
| 279 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,target,$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 280 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 281 | $(PICTEST_TYPES),$(DEBUGGABLE_TYPES),130-hprof,$(ALL_ADDRESS_SIZES)) |
Andreas Gampe | 3a91309 | 2015-01-10 00:26:17 -0800 | [diff] [blame] | 282 | |
Andreas Gampe | 94329d3 | 2015-04-24 20:22:06 -0700 | [diff] [blame] | 283 | # 131 is an old test. The functionality has been implemented at an earlier stage and is checked |
| 284 | # in tests 138. |
| 285 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 286 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \ |
| 287 | $(PICTEST_TYPES),$(DEBUGGABLE_TYPES),131-structural-change,$(ALL_ADDRESS_SIZES)) |
| 288 | |
Andreas Gampe | 0fc16a0 | 2015-06-03 15:43:16 -0700 | [diff] [blame] | 289 | # 138-duplicate-classes-check. Turned off temporarily, b/21333911. |
| 290 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 291 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \ |
| 292 | $(PICTEST_TYPES),$(DEBUGGABLE_TYPES),138-duplicate-classes-check,$(ALL_ADDRESS_SIZES)) |
| 293 | |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 294 | # All these tests check that we have sane behavior if we don't have a patchoat or dex2oat. |
| 295 | # Therefore we shouldn't run them in situations where we actually don't have these since they |
| 296 | # explicitly test for them. These all also assume we have an image. |
| 297 | TEST_ART_BROKEN_FALLBACK_RUN_TESTS := \ |
| 298 | 116-nodex2oat \ |
| 299 | 117-nopatchoat \ |
| 300 | 118-noimage-dex2oat \ |
Andreas Gampe | b9aec2c | 2015-04-23 22:23:47 -0700 | [diff] [blame] | 301 | 119-noimage-patchoat \ |
David Srbecky | a26cb57 | 2015-04-22 18:57:06 -0700 | [diff] [blame] | 302 | 137-cfi \ |
Andreas Gampe | b9aec2c | 2015-04-23 22:23:47 -0700 | [diff] [blame] | 303 | 138-duplicate-classes-check2 |
| 304 | |
| 305 | # This test fails without an image. |
| 306 | TEST_ART_BROKEN_NO_IMAGE_RUN_TESTS := \ |
David Srbecky | a26cb57 | 2015-04-22 18:57:06 -0700 | [diff] [blame] | 307 | 137-cfi \ |
Andreas Gampe | b9aec2c | 2015-04-23 22:23:47 -0700 | [diff] [blame] | 308 | 138-duplicate-classes-check |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 309 | |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 310 | ifneq (,$(filter no-dex2oat,$(PREBUILD_TYPES))) |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 311 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),no-dex2oat, \ |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 312 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 313 | $(PICTEST_TYPES),$(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_FALLBACK_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 314 | endif |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 315 | |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 316 | |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 317 | ifneq (,$(filter no-image,$(IMAGE_TYPES))) |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 318 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 319 | $(COMPILER_TYPES), $(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),no-image, \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 320 | $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_FALLBACK_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
Andreas Gampe | b9aec2c | 2015-04-23 22:23:47 -0700 | [diff] [blame] | 321 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 322 | $(COMPILER_TYPES), $(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),no-image, \ |
| 323 | $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_NO_IMAGE_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 324 | endif |
| 325 | |
Mathieu Chartier | 1445dd3 | 2015-03-20 14:29:51 -0700 | [diff] [blame] | 326 | ifneq (,$(filter relocate-npatchoat,$(RELOCATE_TYPES))) |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 327 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
Mathieu Chartier | 1445dd3 | 2015-03-20 14:29:51 -0700 | [diff] [blame] | 328 | $(COMPILER_TYPES), relocate-npatchoat,$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 329 | $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_FALLBACK_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
Ian Rogers | 40e1912 | 2014-09-02 15:59:28 -0700 | [diff] [blame] | 330 | endif |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 331 | |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 332 | TEST_ART_BROKEN_FALLBACK_RUN_TESTS := |
| 333 | |
David Srbecky | a26cb57 | 2015-04-22 18:57:06 -0700 | [diff] [blame] | 334 | # 137: |
| 335 | # This test unrolls and expects managed frames, but tracing means we run the interpreter. |
| 336 | # 802: |
Andreas Gampe | 9cb65bc | 2015-02-18 17:08:27 -0800 | [diff] [blame] | 337 | # This test dynamically enables tracing to force a deoptimization. This makes the test meaningless |
| 338 | # when already tracing, and writes an error message that we do not want to check for. |
| 339 | TEST_ART_BROKEN_TRACING_RUN_TESTS := \ |
David Srbecky | a26cb57 | 2015-04-22 18:57:06 -0700 | [diff] [blame] | 340 | 137-cfi \ |
Andreas Gampe | 9cb65bc | 2015-02-18 17:08:27 -0800 | [diff] [blame] | 341 | 802-deoptimization |
| 342 | |
Andreas Gampe | b91205e | 2015-06-22 22:53:45 -0700 | [diff] [blame] | 343 | ifneq (,$(filter trace stream,$(TRACE_TYPES))) |
Andreas Gampe | 9cb65bc | 2015-02-18 17:08:27 -0800 | [diff] [blame] | 344 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
Andreas Gampe | b91205e | 2015-06-22 22:53:45 -0700 | [diff] [blame] | 345 | $(COMPILER_TYPES),$(RELOCATE_TYPES),trace stream,$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 346 | $(PICTEST_TYPES),$(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_TRACING_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
Andreas Gampe | 9cb65bc | 2015-02-18 17:08:27 -0800 | [diff] [blame] | 347 | endif |
| 348 | |
| 349 | TEST_ART_BROKEN_TRACING_RUN_TESTS := |
| 350 | |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 351 | # The following tests use libarttest.so, which is linked against libartd.so, so will |
| 352 | # not work when libart.so is the one loaded. |
| 353 | # TODO: Find a way to run these tests in ndebug mode. |
| 354 | TEST_ART_BROKEN_NDEBUG_TESTS := \ |
| 355 | 004-JniTest \ |
| 356 | 004-ReferenceMap \ |
| 357 | 004-SignalTest \ |
| 358 | 004-StackWalk \ |
| 359 | 004-UnsafeTest \ |
Nicolas Geoffray | 64dea7e | 2014-11-07 14:32:42 +0000 | [diff] [blame] | 360 | 051-thread \ |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 361 | 115-native-bridge \ |
| 362 | 116-nodex2oat \ |
| 363 | 117-nopatchoat \ |
| 364 | 118-noimage-dex2oat \ |
| 365 | 119-noimage-patchoat \ |
Nicolas Geoffray | 8c9200a | 2015-01-15 08:42:47 +0000 | [diff] [blame] | 366 | 131-structural-change \ |
David Srbecky | a26cb57 | 2015-04-22 18:57:06 -0700 | [diff] [blame] | 367 | 137-cfi \ |
Andreas Gampe | 8256609 | 2015-05-18 15:52:22 -0700 | [diff] [blame] | 368 | 139-register-natives \ |
Nicolas Geoffray | d845fd0 | 2015-03-03 12:43:45 +0000 | [diff] [blame] | 369 | 454-get-vreg \ |
| 370 | 455-set-vreg \ |
Nicolas Geoffray | 64d69ab | 2015-03-10 19:26:24 +0000 | [diff] [blame] | 371 | 457-regs \ |
Nicolas Geoffray | 915b9d0 | 2015-03-11 15:11:19 +0000 | [diff] [blame] | 372 | 461-get-reference-vreg \ |
Nicolas Geoffray | d8126be | 2015-03-27 10:22:41 +0000 | [diff] [blame] | 373 | 466-get-live-vreg \ |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 374 | |
| 375 | ifneq (,$(filter ndebug,$(RUN_TYPES))) |
| 376 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),ndebug,$(PREBUILD_TYPES), \ |
| 377 | $(COMPILER_TYPES), $(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 378 | $(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_NDEBUG_TESTS),$(ALL_ADDRESS_SIZES)) |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 379 | endif |
| 380 | |
| 381 | TEST_ART_BROKEN_NDEBUG_TESTS := |
| 382 | |
David Srbecky | a26cb57 | 2015-04-22 18:57:06 -0700 | [diff] [blame] | 383 | # Known broken tests for the interpreter. |
| 384 | # CFI unwinding expects managed frames. |
| 385 | TEST_ART_BROKEN_INTERPRETER_RUN_TESTS := \ |
| 386 | 137-cfi |
| 387 | |
| 388 | ifneq (,$(filter interpreter,$(COMPILER_TYPES))) |
| 389 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 390 | interpreter,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
| 391 | $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_INTERPRETER_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
| 392 | endif |
| 393 | |
| 394 | TEST_ART_BROKEN_INTERPRETER_RUN_TESTS := |
| 395 | |
| 396 | # Known broken tests for the JIT. |
| 397 | # CFI unwinding expects managed frames, and the test does not iterate enough to even compile. JIT |
| 398 | # also uses Generic JNI instead of the JNI compiler. |
| 399 | TEST_ART_BROKEN_JIT_RUN_TESTS := \ |
| 400 | 137-cfi |
| 401 | |
| 402 | ifneq (,$(filter jit,$(COMPILER_TYPES))) |
| 403 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 404 | jit,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
| 405 | $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_JIT_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
| 406 | endif |
| 407 | |
| 408 | TEST_ART_BROKEN_JIT_RUN_TESTS := |
| 409 | |
Nicolas Geoffray | a3d05a4 | 2014-10-20 17:41:32 +0100 | [diff] [blame] | 410 | # Known broken tests for the default compiler (Quick). |
Nicolas Geoffray | e0fe7ae | 2015-03-09 10:02:49 +0000 | [diff] [blame] | 411 | TEST_ART_BROKEN_DEFAULT_RUN_TESTS := \ |
| 412 | 457-regs |
Nicolas Geoffray | a3d05a4 | 2014-10-20 17:41:32 +0100 | [diff] [blame] | 413 | |
| 414 | ifneq (,$(filter default,$(COMPILER_TYPES))) |
| 415 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
Nicolas Geoffray | 83cae42 | 2014-10-22 15:08:03 +0100 | [diff] [blame] | 416 | default,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 417 | $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_DEFAULT_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
Nicolas Geoffray | a3d05a4 | 2014-10-20 17:41:32 +0100 | [diff] [blame] | 418 | endif |
| 419 | |
| 420 | TEST_ART_BROKEN_DEFAULT_RUN_TESTS := |
| 421 | |
Roland Levillain | 232ade0 | 2015-04-20 15:14:36 +0100 | [diff] [blame] | 422 | # Known broken tests for Quick's and Optimizing's ARM back ends. |
| 423 | TEST_ART_BROKEN_ARM_RUN_TESTS := 477-long-to-float-conversion-precision # b/20413424 |
| 424 | |
| 425 | ifeq ($(TARGET_ARCH),arm) |
| 426 | ifneq (,$(filter 32,$(ALL_ADDRESS_SIZES))) |
| 427 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,target,$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 428 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
| 429 | $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_ARM_RUN_TESTS),32) |
| 430 | endif |
| 431 | endif |
| 432 | |
Roland Levillain | 0a025d2 | 2015-04-23 15:02:51 +0100 | [diff] [blame] | 433 | ifdef TARGET_2ND_ARCH |
| 434 | ifeq ($(TARGET_2ND_ARCH),arm) |
| 435 | ifneq (,$(filter 32,$(ALL_ADDRESS_SIZES))) |
| 436 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,target,$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 437 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
| 438 | $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_ARM_RUN_TESTS),32) |
| 439 | endif |
| 440 | endif |
| 441 | endif |
| 442 | |
Roland Levillain | 232ade0 | 2015-04-20 15:14:36 +0100 | [diff] [blame] | 443 | TEST_ART_BROKEN_ARM_RUN_TESTS := |
| 444 | |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 445 | # Known broken tests for the arm64 optimizing compiler backend. |
Serban Constantinescu | 02d81cc | 2015-01-05 16:08:49 +0000 | [diff] [blame] | 446 | TEST_ART_BROKEN_OPTIMIZING_ARM64_RUN_TESTS := |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 447 | |
| 448 | ifneq (,$(filter optimizing,$(COMPILER_TYPES))) |
| 449 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,target,$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 450 | optimizing,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 451 | $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_OPTIMIZING_ARM64_RUN_TESTS),64) |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 452 | endif |
| 453 | |
| 454 | TEST_ART_BROKEN_OPTIMIZING_ARM64_RUN_TESTS := |
| 455 | |
Nicolas Geoffray | 19a19cf | 2014-10-22 16:07:05 +0100 | [diff] [blame] | 456 | # Known broken tests for the optimizing compiler. |
Nicolas Geoffray | aa8dd2f | 2015-01-23 17:48:28 +0000 | [diff] [blame] | 457 | TEST_ART_BROKEN_OPTIMIZING_RUN_TESTS := |
Nicolas Geoffray | 19a19cf | 2014-10-22 16:07:05 +0100 | [diff] [blame] | 458 | |
| 459 | ifneq (,$(filter optimizing,$(COMPILER_TYPES))) |
| 460 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 461 | optimizing,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 462 | $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_OPTIMIZING_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
Nicolas Geoffray | 19a19cf | 2014-10-22 16:07:05 +0100 | [diff] [blame] | 463 | endif |
| 464 | |
Nicolas Geoffray | 5d672a6 | 2014-12-04 14:39:31 +0000 | [diff] [blame] | 465 | # If ART_USE_OPTIMIZING_COMPILER is set to true, then the default core.art has been |
| 466 | # compiled with the optimizing compiler. |
| 467 | ifeq ($(ART_USE_OPTIMIZING_COMPILER),true) |
| 468 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 469 | default,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 470 | $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_OPTIMIZING_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
Nicolas Geoffray | 5d672a6 | 2014-12-04 14:39:31 +0000 | [diff] [blame] | 471 | endif |
| 472 | |
Nicolas Geoffray | 19a19cf | 2014-10-22 16:07:05 +0100 | [diff] [blame] | 473 | TEST_ART_BROKEN_OPTIMIZING_RUN_TESTS := |
| 474 | |
Nicolas Geoffray | e0fe7ae | 2015-03-09 10:02:49 +0000 | [diff] [blame] | 475 | # Tests that should fail when the optimizing compiler compiles them non-debuggable. |
| 476 | TEST_ART_BROKEN_OPTIMIZING_NONDEBUGGABLE_RUN_TESTS := \ |
Nicolas Geoffray | 915b9d0 | 2015-03-11 15:11:19 +0000 | [diff] [blame] | 477 | 454-get-vreg \ |
| 478 | 455-set-vreg \ |
Nicolas Geoffray | e0fe7ae | 2015-03-09 10:02:49 +0000 | [diff] [blame] | 479 | 457-regs \ |
| 480 | |
| 481 | ifneq (,$(filter optimizing,$(COMPILER_TYPES))) |
| 482 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 483 | optimizing,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
Mathieu Chartier | 1445dd3 | 2015-03-20 14:29:51 -0700 | [diff] [blame] | 484 | $(IMAGE_TYPES),$(PICTEST_TYPES),ndebuggable,$(TEST_ART_BROKEN_OPTIMIZING_NONDEBUGGABLE_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
Nicolas Geoffray | e0fe7ae | 2015-03-09 10:02:49 +0000 | [diff] [blame] | 485 | endif |
| 486 | |
| 487 | TEST_ART_BROKEN_OPTIMIZING_NONDEBUGGABLE_RUN_TESTS := |
| 488 | |
Nicolas Geoffray | e50b8d2 | 2015-03-13 08:57:42 +0000 | [diff] [blame] | 489 | # Tests that should fail when the optimizing compiler compiles them debuggable. |
| 490 | TEST_ART_BROKEN_OPTIMIZING_DEBUGGABLE_RUN_TESTS := \ |
Nicolas Geoffray | e50b8d2 | 2015-03-13 08:57:42 +0000 | [diff] [blame] | 491 | |
| 492 | ifneq (,$(filter optimizing,$(COMPILER_TYPES))) |
| 493 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 494 | optimizing,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
| 495 | $(IMAGE_TYPES),$(PICTEST_TYPES),debuggable,$(TEST_ART_BROKEN_OPTIMIZING_DEBUGGABLE_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
| 496 | endif |
| 497 | |
| 498 | TEST_ART_BROKEN_OPTIMIZING_DEBUGGABLE_RUN_TESTS := |
| 499 | |
Hiroshi Yamauchi | 1d85823 | 2015-05-05 13:36:39 -0700 | [diff] [blame] | 500 | # Tests that should fail in the read barrier configuration. |
David Srbecky | a26cb57 | 2015-04-22 18:57:06 -0700 | [diff] [blame] | 501 | # 098: b/20720510 |
| 502 | # 137: Read barrier forces interpreter. Cannot run this with the interpreter. |
Hiroshi Yamauchi | 1d85823 | 2015-05-05 13:36:39 -0700 | [diff] [blame] | 503 | TEST_ART_BROKEN_READ_BARRIER_RUN_TESTS := \ |
David Srbecky | a26cb57 | 2015-04-22 18:57:06 -0700 | [diff] [blame] | 504 | 098-ddmc \ |
| 505 | 137-cfi \ |
Hiroshi Yamauchi | 1d85823 | 2015-05-05 13:36:39 -0700 | [diff] [blame] | 506 | |
| 507 | ifeq ($(ART_USE_READ_BARRIER),true) |
| 508 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 509 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
| 510 | $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_READ_BARRIER_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
| 511 | endif |
| 512 | |
| 513 | TEST_ART_BROKEN_READ_BARRIER_RUN_TESTS := |
Alexandre Rames | 5319def | 2014-10-23 10:03:10 +0100 | [diff] [blame] | 514 | |
David Srbecky | a26cb57 | 2015-04-22 18:57:06 -0700 | [diff] [blame] | 515 | # Tests that should fail in the heap poisoning configuration. |
| 516 | # 137: Heap poisoning forces interpreter. Cannot run this with the interpreter. |
| 517 | TEST_ART_BROKEN_HEAP_POISONING_RUN_TESTS := \ |
| 518 | 137-cfi |
| 519 | |
| 520 | ifeq ($(ART_HEAP_POISONING),true) |
| 521 | ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \ |
| 522 | $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \ |
| 523 | $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_HEAP_POISONING_RUN_TESTS),$(ALL_ADDRESS_SIZES)) |
| 524 | endif |
| 525 | |
| 526 | TEST_ART_BROKEN_HEAP_POISONING_RUN_TESTS := |
| 527 | |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 528 | # Clear variables ahead of appending to them when defining tests. |
| 529 | $(foreach target, $(TARGET_TYPES), $(eval ART_RUN_TEST_$(call name-to-var,$(target))_RULES :=)) |
| 530 | $(foreach target, $(TARGET_TYPES), \ |
| 531 | $(foreach prebuild, $(PREBUILD_TYPES), \ |
| 532 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(prebuild))_RULES :=))) |
| 533 | $(foreach target, $(TARGET_TYPES), \ |
| 534 | $(foreach compiler, $(COMPILER_TYPES), \ |
| 535 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(compiler))_RULES :=))) |
| 536 | $(foreach target, $(TARGET_TYPES), \ |
| 537 | $(foreach relocate, $(RELOCATE_TYPES), \ |
| 538 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(relocate))_RULES :=))) |
| 539 | $(foreach target, $(TARGET_TYPES), \ |
| 540 | $(foreach trace, $(TRACE_TYPES), \ |
| 541 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(trace))_RULES :=))) |
| 542 | $(foreach target, $(TARGET_TYPES), \ |
| 543 | $(foreach gc, $(GC_TYPES), \ |
| 544 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(gc))_RULES :=))) |
| 545 | $(foreach target, $(TARGET_TYPES), \ |
| 546 | $(foreach jni, $(JNI_TYPES), \ |
| 547 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(jni))_RULES :=))) |
| 548 | $(foreach target, $(TARGET_TYPES), \ |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 549 | $(foreach image, $(IMAGE_TYPES), \ |
| 550 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(image))_RULES :=))) |
| 551 | $(foreach target, $(TARGET_TYPES), \ |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 552 | $(foreach test, $(TEST_ART_RUN_TESTS), \ |
| 553 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(test))_RULES :=))) |
| 554 | $(foreach target, $(TARGET_TYPES), \ |
| 555 | $(foreach address_size, $(ALL_ADDRESS_SIZES), \ |
| 556 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(address_size))_RULES :=))) |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 557 | $(foreach target, $(TARGET_TYPES), \ |
| 558 | $(foreach run_type, $(RUN_TYPES), \ |
| 559 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(run_type))_RULES :=))) |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 560 | $(foreach target, $(TARGET_TYPES), \ |
| 561 | $(foreach debuggable_type, $(DEBUGGABLE_TYPES), \ |
| 562 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(debuggable_type))_RULES :=))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 563 | |
Andreas Gampe | 63fc30e | 2014-10-24 21:58:16 -0700 | [diff] [blame] | 564 | # We need dex2oat and dalvikvm on the target as well as the core images (all images as we sync |
| 565 | # only once). |
| 566 | TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_EXECUTABLES) $(TARGET_CORE_IMG_OUTS) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 567 | |
Andreas Gampe | 1c83cbc | 2014-07-22 18:52:29 -0700 | [diff] [blame] | 568 | # Also need libarttest. |
| 569 | TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_TEST_OUT)/$(TARGET_ARCH)/libarttest.so |
| 570 | ifdef TARGET_2ND_ARCH |
| 571 | TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_TEST_OUT)/$(TARGET_2ND_ARCH)/libarttest.so |
| 572 | endif |
| 573 | |
Andreas Gampe | 855564b | 2014-07-25 02:32:19 -0700 | [diff] [blame] | 574 | # Also need libnativebridgetest. |
| 575 | TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_TEST_OUT)/$(TARGET_ARCH)/libnativebridgetest.so |
| 576 | ifdef TARGET_2ND_ARCH |
| 577 | TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_TEST_OUT)/$(TARGET_2ND_ARCH)/libnativebridgetest.so |
| 578 | endif |
| 579 | |
Andreas Gampe | 63fc30e | 2014-10-24 21:58:16 -0700 | [diff] [blame] | 580 | # All tests require the host executables. The tests also depend on the core images, but on |
| 581 | # specific version depending on the compiler. |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 582 | ART_TEST_HOST_RUN_TEST_DEPENDENCIES := \ |
| 583 | $(ART_HOST_EXECUTABLES) \ |
Andreas Gampe | 1c83cbc | 2014-07-22 18:52:29 -0700 | [diff] [blame] | 584 | $(ART_HOST_OUT_SHARED_LIBRARIES)/libarttest$(ART_HOST_SHLIB_EXTENSION) \ |
Andreas Gampe | 855564b | 2014-07-25 02:32:19 -0700 | [diff] [blame] | 585 | $(ART_HOST_OUT_SHARED_LIBRARIES)/libnativebridgetest$(ART_HOST_SHLIB_EXTENSION) \ |
Andreas Gampe | 63fc30e | 2014-10-24 21:58:16 -0700 | [diff] [blame] | 586 | $(ART_HOST_OUT_SHARED_LIBRARIES)/libjavacore$(ART_HOST_SHLIB_EXTENSION) |
Ian Rogers | 665de8a | 2014-06-24 21:34:09 -0700 | [diff] [blame] | 587 | |
| 588 | ifneq ($(HOST_PREFER_32_BIT),true) |
| 589 | ART_TEST_HOST_RUN_TEST_DEPENDENCIES += \ |
Andreas Gampe | 1c83cbc | 2014-07-22 18:52:29 -0700 | [diff] [blame] | 590 | $(2ND_ART_HOST_OUT_SHARED_LIBRARIES)/libarttest$(ART_HOST_SHLIB_EXTENSION) \ |
Andreas Gampe | 855564b | 2014-07-25 02:32:19 -0700 | [diff] [blame] | 591 | $(2ND_ART_HOST_OUT_SHARED_LIBRARIES)/libnativebridgetest$(ART_HOST_SHLIB_EXTENSION) \ |
Andreas Gampe | 63fc30e | 2014-10-24 21:58:16 -0700 | [diff] [blame] | 592 | $(2ND_ART_HOST_OUT_SHARED_LIBRARIES)/libjavacore$(ART_HOST_SHLIB_EXTENSION) |
Ian Rogers | 665de8a | 2014-06-24 21:34:09 -0700 | [diff] [blame] | 593 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 594 | |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 595 | # Create a rule to build and run a tests following the form: |
Calin Juravle | 9228b2a | 2014-10-22 15:54:34 +0100 | [diff] [blame] | 596 | # test-art-{1: host or target}-run-test-{2: debug ndebug}-{3: prebuild no-prebuild no-dex2oat}- |
Mathieu Chartier | 1445dd3 | 2015-03-20 14:29:51 -0700 | [diff] [blame] | 597 | # {4: interpreter default optimizing jit}-{5: relocate nrelocate relocate-npatchoat}- |
| 598 | # {6: trace or ntrace}-{7: gcstress gcverify cms}-{8: forcecopy checkjni jni}- |
| 599 | # {9: no-image image picimage}-{10: pictest npictest}- |
| 600 | # {11: ndebuggable debuggable}-{12: test name}{13: 32 or 64} |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 601 | define define-test-art-run-test |
Nicolas Geoffray | 611e1db | 2014-10-09 17:34:45 +0100 | [diff] [blame] | 602 | run_test_options := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 603 | prereq_rule := |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 604 | test_groups := |
| 605 | uc_host_or_target := |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 606 | jack_classpath := |
| 607 | ifeq ($(ANDROID_COMPILE_WITH_JACK),true) |
| 608 | run_test_options += --build-with-jack |
| 609 | else |
| 610 | run_test_options += --build-with-javac-dx |
| 611 | endif |
Alex Light | bfac14a | 2014-07-30 09:41:21 -0700 | [diff] [blame] | 612 | ifeq ($(ART_TEST_RUN_TEST_ALWAYS_CLEAN),true) |
| 613 | run_test_options += --always-clean |
| 614 | endif |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 615 | ifeq ($(1),host) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 616 | uc_host_or_target := HOST |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 617 | test_groups := ART_RUN_TEST_HOST_RULES |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 618 | run_test_options += --host |
| 619 | prereq_rule := $(ART_TEST_HOST_RUN_TEST_DEPENDENCIES) |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 620 | jack_classpath := $(HOST_JACK_CLASSPATH) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 621 | else |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 622 | ifeq ($(1),target) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 623 | uc_host_or_target := TARGET |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 624 | test_groups := ART_RUN_TEST_TARGET_RULES |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 625 | prereq_rule := test-art-target-sync |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 626 | jack_classpath := $(TARGET_JACK_CLASSPATH) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 627 | else |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 628 | $$(error found $(1) expected $(TARGET_TYPES)) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 629 | endif |
| 630 | endif |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 631 | ifeq ($(2),debug) |
| 632 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_DEBUG_RULES |
| 633 | else |
| 634 | ifeq ($(2),ndebug) |
| 635 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_RELEASE_RULES |
| 636 | run_test_options += -O |
| 637 | else |
| 638 | $$(error found $(2) expected $(RUN_TYPES)) |
| 639 | endif |
| 640 | endif |
| 641 | ifeq ($(3),prebuild) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 642 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_PREBUILD_RULES |
| 643 | run_test_options += --prebuild |
Alex Light | a59dd80 | 2014-07-02 16:28:08 -0700 | [diff] [blame] | 644 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 645 | ifeq ($(3),no-prebuild) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 646 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NO_PREBUILD_RULES |
| 647 | run_test_options += --no-prebuild |
Alex Light | a59dd80 | 2014-07-02 16:28:08 -0700 | [diff] [blame] | 648 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 649 | ifeq ($(3),no-dex2oat) |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 650 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NO_DEX2OAT_RULES |
| 651 | run_test_options += --no-prebuild --no-dex2oat |
| 652 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 653 | $$(error found $(3) expected $(PREBUILD_TYPES)) |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 654 | endif |
Alex Light | a59dd80 | 2014-07-02 16:28:08 -0700 | [diff] [blame] | 655 | endif |
| 656 | endif |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 657 | ifeq ($(4),optimizing) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 658 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_OPTIMIZING_RULES |
Andreas Gampe | 63fc30e | 2014-10-24 21:58:16 -0700 | [diff] [blame] | 659 | run_test_options += --optimizing |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 660 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 661 | ifeq ($(4),interpreter) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 662 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_INTERPRETER_RULES |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 663 | run_test_options += --interpreter |
| 664 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 665 | ifeq ($(4),default) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 666 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_DEFAULT_RULES |
Nicolas Geoffray | c9338b9 | 2014-12-03 13:36:10 +0000 | [diff] [blame] | 667 | run_test_options += --quick |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 668 | else |
Mathieu Chartier | e5f13e5 | 2015-02-24 09:37:21 -0800 | [diff] [blame] | 669 | ifeq ($(4),jit) |
Mathieu Chartier | 3fc1b12 | 2015-02-26 10:58:08 -0800 | [diff] [blame] | 670 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_JIT_RULES |
Mathieu Chartier | e5f13e5 | 2015-02-24 09:37:21 -0800 | [diff] [blame] | 671 | run_test_options += --jit |
| 672 | else |
| 673 | $$(error found $(4) expected $(COMPILER_TYPES)) |
| 674 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 675 | endif |
| 676 | endif |
| 677 | endif |
Andreas Gampe | 63fc30e | 2014-10-24 21:58:16 -0700 | [diff] [blame] | 678 | |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 679 | ifeq ($(5),relocate) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 680 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_RELOCATE_RULES |
| 681 | run_test_options += --relocate |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 682 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 683 | ifeq ($(5),no-relocate) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 684 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NO_RELOCATE_RULES |
| 685 | run_test_options += --no-relocate |
| 686 | else |
Mathieu Chartier | 1445dd3 | 2015-03-20 14:29:51 -0700 | [diff] [blame] | 687 | ifeq ($(5),relocate-npatchoat) |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 688 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_RELOCATE_NO_PATCHOAT_RULES |
| 689 | run_test_options += --relocate --no-patchoat |
| 690 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 691 | $$(error found $(5) expected $(RELOCATE_TYPES)) |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 692 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 693 | endif |
| 694 | endif |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 695 | ifeq ($(6),trace) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 696 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_TRACE_RULES |
Ian Rogers | 716e4f8 | 2014-07-16 11:18:03 -0700 | [diff] [blame] | 697 | run_test_options += --trace |
Ian Rogers | 716e4f8 | 2014-07-16 11:18:03 -0700 | [diff] [blame] | 698 | else |
Mathieu Chartier | 1445dd3 | 2015-03-20 14:29:51 -0700 | [diff] [blame] | 699 | ifeq ($(6),ntrace) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 700 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NO_TRACE_RULES |
Ian Rogers | 701aa64 | 2014-07-18 11:38:13 -0700 | [diff] [blame] | 701 | else |
Andreas Gampe | b91205e | 2015-06-22 22:53:45 -0700 | [diff] [blame] | 702 | ifeq ($(6),stream) |
| 703 | # Group streaming under normal tracing rules. |
| 704 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_TRACE_RULES |
| 705 | run_test_options += --trace --stream |
| 706 | else |
| 707 | $$(error found $(6) expected $(TRACE_TYPES)) |
| 708 | endif |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 709 | endif |
| 710 | endif |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 711 | ifeq ($(7),gcverify) |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 712 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_GCVERIFY_RULES |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 713 | run_test_options += --gcverify |
| 714 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 715 | ifeq ($(7),gcstress) |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 716 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_GCSTRESS_RULES |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 717 | run_test_options += --gcstress |
| 718 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 719 | ifeq ($(7),cms) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 720 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_CMS_RULES |
Ian Rogers | 8a14b75 | 2014-07-18 15:06:53 -0700 | [diff] [blame] | 721 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 722 | $$(error found $(7) expected $(GC_TYPES)) |
Ian Rogers | 701aa64 | 2014-07-18 11:38:13 -0700 | [diff] [blame] | 723 | endif |
Ian Rogers | 716e4f8 | 2014-07-16 11:18:03 -0700 | [diff] [blame] | 724 | endif |
| 725 | endif |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 726 | ifeq ($(8),forcecopy) |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 727 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_FORCECOPY_RULES |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 728 | run_test_options += --runtime-option -Xjniopts:forcecopy |
| 729 | ifneq ($$(ART_TEST_JNI_FORCECOPY),true) |
| 730 | skip_test := true |
| 731 | endif |
| 732 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 733 | ifeq ($(8),checkjni) |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 734 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_CHECKJNI_RULES |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 735 | run_test_options += --runtime-option -Xcheck:jni |
| 736 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 737 | ifeq ($(8),jni) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 738 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_JNI_RULES |
| 739 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 740 | $$(error found $(8) expected $(JNI_TYPES)) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 741 | endif |
| 742 | endif |
| 743 | endif |
Mathieu Chartier | e2a12c0 | 2015-02-27 13:21:15 -0800 | [diff] [blame] | 744 | ifeq ($(4),jit) |
| 745 | # Use interpreter image for JIT. |
| 746 | image_suffix := interpreter |
| 747 | else |
| 748 | image_suffix := $(4) |
| 749 | endif |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 750 | ifeq ($(9),no-image) |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 751 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NO_IMAGE_RULES |
| 752 | run_test_options += --no-image |
Andreas Gampe | bf03e84 | 2014-10-29 20:46:17 -0700 | [diff] [blame] | 753 | # Add the core dependency. This is required for pre-building. |
| 754 | ifeq ($(1),host) |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 755 | prereq_rule += $$(HOST_CORE_IMAGE_$$(image_suffix)_no-pic_$(13)) |
Andreas Gampe | bf03e84 | 2014-10-29 20:46:17 -0700 | [diff] [blame] | 756 | else |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 757 | prereq_rule += $$(TARGET_CORE_IMAGE_$$(image_suffix)_no-pic_$(13)) |
Andreas Gampe | bf03e84 | 2014-10-29 20:46:17 -0700 | [diff] [blame] | 758 | endif |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 759 | else |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 760 | ifeq ($(9),image) |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 761 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_IMAGE_RULES |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 762 | # Add the core dependency. |
| 763 | ifeq ($(1),host) |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 764 | prereq_rule += $$(HOST_CORE_IMAGE_$$(image_suffix)_no-pic_$(13)) |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 765 | else |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 766 | prereq_rule += $$(TARGET_CORE_IMAGE_$$(image_suffix)_no-pic_$(13)) |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 767 | endif |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 768 | else |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 769 | ifeq ($(9),picimage) |
| 770 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_PICIMAGE_RULES |
| 771 | run_test_options += --pic-image |
| 772 | ifeq ($(1),host) |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 773 | prereq_rule += $$(HOST_CORE_IMAGE_$$(image_suffix)_pic_$(13)) |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 774 | else |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 775 | prereq_rule += $$(TARGET_CORE_IMAGE_$$(image_suffix)_pic_$(13)) |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 776 | endif |
| 777 | else |
| 778 | $$(error found $(9) expected $(IMAGE_TYPES)) |
| 779 | endif |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 780 | endif |
| 781 | endif |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 782 | ifeq ($(10),pictest) |
| 783 | run_test_options += --pic-test |
| 784 | else |
Mathieu Chartier | 1445dd3 | 2015-03-20 14:29:51 -0700 | [diff] [blame] | 785 | ifeq ($(10),npictest) |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 786 | # Nothing to be done. |
| 787 | else |
| 788 | $$(error found $(10) expected $(PICTEST_TYPES)) |
| 789 | endif |
| 790 | endif |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 791 | ifeq ($(11),debuggable) |
| 792 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_DEBUGGABLE_RULES |
| 793 | run_test_options += --debuggable |
| 794 | else |
Mathieu Chartier | 1445dd3 | 2015-03-20 14:29:51 -0700 | [diff] [blame] | 795 | ifeq ($(11),ndebuggable) |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 796 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NONDEBUGGABLE_RULES |
| 797 | # Nothing to be done. |
| 798 | else |
| 799 | $$(error found $(11) expected $(DEBUGGABLE_TYPES)) |
| 800 | endif |
| 801 | endif |
| 802 | # $(12) is the test name. |
| 803 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_$(call name-to-var,$(12))_RULES |
| 804 | ifeq ($(13),64) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 805 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_64_RULES |
| 806 | run_test_options += --64 |
| 807 | else |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 808 | ifeq ($(13),32) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 809 | test_groups += ART_RUN_TEST_$$(uc_host_or_target)_32_RULES |
| 810 | else |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 811 | $$(error found $(13) expected $(ALL_ADDRESS_SIZES)) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 812 | endif |
| 813 | endif |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 814 | run_test_rule_name := test-art-$(1)-run-test-$(2)-$(3)-$(4)-$(5)-$(6)-$(7)-$(8)-$(9)-$(10)-$(11)-$(12)$(13) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 815 | run_test_options := --output-path $(ART_HOST_TEST_DIR)/run-test-output/$$(run_test_rule_name) \ |
Ian Rogers | 5242c0a | 2014-07-18 11:02:19 -0700 | [diff] [blame] | 816 | $$(run_test_options) |
Nicolas Geoffray | c8f23fc | 2014-10-28 17:59:47 +0000 | [diff] [blame] | 817 | ifneq ($(ART_TEST_ANDROID_ROOT),) |
| 818 | run_test_options := --android-root $(ART_TEST_ANDROID_ROOT) $$(run_test_options) |
| 819 | endif |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 820 | $$(run_test_rule_name): PRIVATE_RUN_TEST_OPTIONS := $$(run_test_options) |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 821 | $$(run_test_rule_name): PRIVATE_JACK_CLASSPATH := $$(jack_classpath) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 822 | .PHONY: $$(run_test_rule_name) |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 823 | $$(run_test_rule_name): $(TEST_ART_RUN_TEST_DEPENDENCIES) $(HOST_OUT_EXECUTABLES)/hprof-conv $$(prereq_rule) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 824 | $(hide) $$(call ART_TEST_SKIP,$$@) && \ |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 825 | DX=$(abspath $(DX)) \ |
| 826 | JASMIN=$(abspath $(HOST_OUT_EXECUTABLES)/jasmin) \ |
Andreas Gampe | 8fda9f2 | 2014-10-03 16:15:37 -0700 | [diff] [blame] | 827 | SMALI=$(abspath $(HOST_OUT_EXECUTABLES)/smali) \ |
| 828 | DXMERGER=$(abspath $(HOST_OUT_EXECUTABLES)/dexmerger) \ |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 829 | JACK=$(abspath $(JACK)) \ |
| 830 | JACK_VM_COMMAND="$(JACK_VM) $(DEFAULT_JACK_VM_ARGS) $(JAVA_TMPDIR_ARG) -jar $(abspath $(JACK_LAUNCHER_JAR)) " \ |
| 831 | JACK_CLASSPATH=$$(PRIVATE_JACK_CLASSPATH) \ |
| 832 | JACK_JAR=$(abspath $(JACK_JAR)) \ |
| 833 | JILL_JAR=$(abspath $(JILL_JAR)) \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 834 | art/test/run-test $$(PRIVATE_RUN_TEST_OPTIONS) $(12) \ |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 835 | && $$(call ART_TEST_PASSED,$$@) || $$(call ART_TEST_FAILED,$$@) |
| 836 | $$(hide) (echo $(MAKECMDGOALS) | grep -q $$@ && \ |
| 837 | echo "run-test run as top-level target, removing test directory $(ART_HOST_TEST_DIR)" && \ |
| 838 | rm -r $(ART_HOST_TEST_DIR)) || true |
| 839 | |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 840 | $$(foreach test_group,$$(test_groups), $$(eval $$(value test_group) += $$(run_test_rule_name))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 841 | |
| 842 | # Clear locally defined variables. |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 843 | uc_host_or_target := |
| 844 | test_groups := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 845 | run_test_options := |
| 846 | run_test_rule_name := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 847 | prereq_rule := |
Sebastien Hertz | 5ee9454 | 2015-02-24 17:39:50 +0100 | [diff] [blame] | 848 | jack_classpath := |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 849 | endef # define-test-art-run-test |
| 850 | |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 851 | $(foreach target, $(TARGET_TYPES), \ |
| 852 | $(foreach test, $(TEST_ART_RUN_TESTS), \ |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 853 | $(foreach run_type, $(RUN_TYPES), \ |
| 854 | $(foreach address_size, $(ADDRESS_SIZES_$(call name-to-var,$(target))), \ |
| 855 | $(foreach prebuild, $(PREBUILD_TYPES), \ |
| 856 | $(foreach compiler, $(COMPILER_TYPES), \ |
| 857 | $(foreach relocate, $(RELOCATE_TYPES), \ |
| 858 | $(foreach trace, $(TRACE_TYPES), \ |
| 859 | $(foreach gc, $(GC_TYPES), \ |
| 860 | $(foreach jni, $(JNI_TYPES), \ |
| 861 | $(foreach image, $(IMAGE_TYPES), \ |
Andreas Gampe | c23c9c9 | 2014-10-28 14:47:25 -0700 | [diff] [blame] | 862 | $(foreach pictest, $(PICTEST_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 863 | $(foreach debuggable, $(DEBUGGABLE_TYPES), \ |
| 864 | $(eval $(call define-test-art-run-test,$(target),$(run_type),$(prebuild),$(compiler),$(relocate),$(trace),$(gc),$(jni),$(image),$(pictest),$(debuggable),$(test),$(address_size))) \ |
| 865 | ))))))))))))) |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 866 | define-test-art-run-test := |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 867 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 868 | # Define a phony rule whose purpose is to test its prerequisites. |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 869 | # $(1): host or target |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 870 | # $(2): list of prerequisites |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 871 | define define-test-art-run-test-group |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 872 | .PHONY: $(1) |
| 873 | $(1): $(2) |
| 874 | $(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@) |
| 875 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 876 | endef # define-test-art-run-test-group |
| 877 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 878 | |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 879 | $(foreach target, $(TARGET_TYPES), $(eval \ |
| 880 | $(call define-test-art-run-test-group,test-art-$(target)-run-test,$(ART_RUN_TEST_$(call name-to-var,$(target))_RULES)))) |
| 881 | $(foreach target, $(TARGET_TYPES), \ |
| 882 | $(foreach prebuild, $(PREBUILD_TYPES), $(eval \ |
| 883 | $(call define-test-art-run-test-group,test-art-$(target)-run-test-$(prebuild),$(ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(prebuild))_RULES))))) |
| 884 | $(foreach target, $(TARGET_TYPES), \ |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 885 | $(foreach run-type, $(RUN_TYPES), $(eval \ |
| 886 | $(call define-test-art-run-test-group,test-art-$(target)-run-test-$(run-type),$(ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(run-type))_RULES))))) |
| 887 | $(foreach target, $(TARGET_TYPES), \ |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 888 | $(foreach compiler, $(COMPILER_TYPES), $(eval \ |
| 889 | $(call define-test-art-run-test-group,test-art-$(target)-run-test-$(compiler),$(ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(compiler))_RULES))))) |
| 890 | $(foreach target, $(TARGET_TYPES), \ |
| 891 | $(foreach relocate, $(RELOCATE_TYPES), $(eval \ |
| 892 | $(call define-test-art-run-test-group,test-art-$(target)-run-test-$(relocate),$(ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(relocate))_RULES))))) |
| 893 | $(foreach target, $(TARGET_TYPES), \ |
| 894 | $(foreach trace, $(TRACE_TYPES), $(eval \ |
| 895 | $(call define-test-art-run-test-group,test-art-$(target)-run-test-$(trace),$(ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(trace))_RULES))))) |
| 896 | $(foreach target, $(TARGET_TYPES), \ |
| 897 | $(foreach gc, $(GC_TYPES), $(eval \ |
| 898 | $(call define-test-art-run-test-group,test-art-$(target)-run-test-$(gc),$(ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(gc))_RULES))))) |
| 899 | $(foreach target, $(TARGET_TYPES), \ |
| 900 | $(foreach jni, $(JNI_TYPES), $(eval \ |
| 901 | $(call define-test-art-run-test-group,test-art-$(target)-run-test-$(jni),$(ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(jni))_RULES))))) |
| 902 | $(foreach target, $(TARGET_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 903 | $(foreach debuggable, $(DEBUGGABLE_TYPES), $(eval \ |
| 904 | $(call define-test-art-run-test-group,test-art-$(target)-run-test-$(debuggable),$(ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(debuggable))_RULES))))) |
| 905 | $(foreach target, $(TARGET_TYPES), \ |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 906 | $(foreach image, $(IMAGE_TYPES), $(eval \ |
| 907 | $(call define-test-art-run-test-group,test-art-$(target)-run-test-$(image),$(ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(image))_RULES))))) |
| 908 | $(foreach target, $(TARGET_TYPES), \ |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 909 | $(foreach test, $(TEST_ART_RUN_TESTS), $(eval \ |
| 910 | $(call define-test-art-run-test-group,test-art-$(target)-run-test-$(test),$(ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(test))_RULES))))) |
| 911 | $(foreach target, $(TARGET_TYPES), \ |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 912 | $(foreach address_size, $(ADDRESS_SIZES_$(call name-to-var,$(target))), $(eval \ |
Ian Rogers | a3cf6ce | 2014-10-02 16:35:52 -0700 | [diff] [blame] | 913 | $(call define-test-art-run-test-group,test-art-$(target)-run-test$(address_size),$(ART_RUN_TEST_$(call name-to-var,$(target))_$(address_size)_RULES))))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 914 | |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 915 | # Clear variables now we're finished with them. |
| 916 | $(foreach target, $(TARGET_TYPES), $(eval ART_RUN_TEST_$(call name-to-var,$(target))_RULES :=)) |
| 917 | $(foreach target, $(TARGET_TYPES), \ |
| 918 | $(foreach prebuild, $(PREBUILD_TYPES), \ |
| 919 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(prebuild))_RULES :=))) |
| 920 | $(foreach target, $(TARGET_TYPES), \ |
| 921 | $(foreach compiler, $(COMPILER_TYPES), \ |
| 922 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(compiler))_RULES :=))) |
| 923 | $(foreach target, $(TARGET_TYPES), \ |
| 924 | $(foreach relocate, $(RELOCATE_TYPES), \ |
| 925 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(relocate))_RULES :=))) |
| 926 | $(foreach target, $(TARGET_TYPES), \ |
| 927 | $(foreach trace, $(TRACE_TYPES), \ |
| 928 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(trace))_RULES :=))) |
| 929 | $(foreach target, $(TARGET_TYPES), \ |
| 930 | $(foreach gc, $(GC_TYPES), \ |
| 931 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(gc))_RULES :=))) |
| 932 | $(foreach target, $(TARGET_TYPES), \ |
| 933 | $(foreach jni, $(JNI_TYPES), \ |
| 934 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(jni))_RULES :=))) |
| 935 | $(foreach target, $(TARGET_TYPES), \ |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 936 | $(foreach debuggable, $(DEBUGGABLE_TYPES), \ |
| 937 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(debuggable))_RULES :=))) |
| 938 | $(foreach target, $(TARGET_TYPES), \ |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 939 | $(foreach image, $(IMAGE_TYPES), \ |
| 940 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(image))_RULES :=))) |
| 941 | $(foreach target, $(TARGET_TYPES), \ |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 942 | $(foreach test, $(TEST_ART_RUN_TESTS), \ |
| 943 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(test))_RULES :=))) |
| 944 | $(foreach target, $(TARGET_TYPES), \ |
| 945 | $(foreach address_size, $(ALL_ADDRESS_SIZES), \ |
| 946 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(address_size))_RULES :=))) |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 947 | $(foreach target, $(TARGET_TYPES), \ |
| 948 | $(foreach run_type, $(RUN_TYPES), \ |
| 949 | $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(run_type))_RULES :=))) |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 950 | define-test-art-run-test-group := |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 951 | TARGET_TYPES := |
| 952 | PREBUILD_TYPES := |
| 953 | COMPILER_TYPES := |
| 954 | RELOCATE_TYPES := |
| 955 | TRACE_TYPES := |
| 956 | GC_TYPES := |
| 957 | JNI_TYPES := |
Alex Light | 03a112d | 2014-08-25 13:25:56 -0700 | [diff] [blame] | 958 | IMAGE_TYPES := |
Ian Rogers | 86df3ac | 2014-08-27 10:54:11 -0700 | [diff] [blame] | 959 | ADDRESS_SIZES_TARGET := |
| 960 | ADDRESS_SIZES_HOST := |
Ian Rogers | f5c44b3 | 2014-08-19 16:52:36 -0700 | [diff] [blame] | 961 | ALL_ADDRESS_SIZES := |
Nicolas Geoffray | bd2c63c | 2014-10-16 18:04:12 +0100 | [diff] [blame] | 962 | RUN_TYPES := |
Nicolas Geoffray | 43c162f | 2015-03-09 12:21:26 +0000 | [diff] [blame] | 963 | DEBUGGABLE_TYPES := |
Ian Rogers | 9fcaa4b | 2014-08-26 19:59:52 -0700 | [diff] [blame] | 964 | |
| 965 | include $(LOCAL_PATH)/Android.libarttest.mk |
| 966 | include art/test/Android.libnativebridgetest.mk |