blob: 1b0027064425fcd69766c2990190c8c17a2e768d [file] [log] [blame]
Ian Rogersafd9acc2014-06-17 08:21:54 -07001# 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
16LOCAL_PATH := $(call my-dir)
17
18include art/build/Android.common_test.mk
19
20# List of all tests of the form 003-omnibus-opcodes.
21TEST_ART_RUN_TESTS := $(wildcard $(LOCAL_PATH)/[0-9]*)
22TEST_ART_RUN_TESTS := $(subst $(LOCAL_PATH)/,, $(TEST_ART_RUN_TESTS))
23
Ian Rogersf5c44b32014-08-19 16:52:36 -070024########################################################################
25# The art-run-tests module, used to build all run-tests into an image.
Alex Light9dcc4572014-08-14 14:16:26 -070026
Ian Rogersafd9acc2014-06-17 08:21:54 -070027# 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
29art_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.
33TEST_ART_RUN_TEST_BUILD_RULES :=
34
Nicolas Geoffray07f2bc12015-05-29 13:40:25 +010035# Dependencies for actually running a run-test.
Sebastien Hertz19ac0272015-02-24 17:39:50 +010036TEST_ART_RUN_TEST_DEPENDENCIES := \
37 $(DX) \
38 $(HOST_OUT_EXECUTABLES)/jasmin \
39 $(HOST_OUT_EXECUTABLES)/smali \
40 $(HOST_OUT_EXECUTABLES)/dexmerger
Yohann Roussel05b91252015-12-09 12:02:46 +010041TEST_ART_RUN_TEST_ORDERONLY_DEPENDENCIES :=
Sebastien Hertz19ac0272015-02-24 17:39:50 +010042
43ifeq ($(ANDROID_COMPILE_WITH_JACK),true)
44 TEST_ART_RUN_TEST_DEPENDENCIES += \
Yohann Rousselaaa779a2016-01-19 17:07:18 +010045 $(JACK)
Yohann Roussel05b91252015-12-09 12:02:46 +010046 TEST_ART_RUN_TEST_ORDERONLY_DEPENDENCIES += setup-jack-server
Sebastien Hertz19ac0272015-02-24 17:39:50 +010047endif
Nicolas Geoffray07f2bc12015-05-29 13:40:25 +010048
Hiroshi Yamauchi093f1b42015-07-14 12:20:30 -070049ifeq ($(ART_TEST_DEBUG_GC),true)
50 ART_TEST_WITH_STRACE := true
51endif
52
Ian Rogersafd9acc2014-06-17 08:21:54 -070053# Helper to create individual build targets for tests. Must be called with $(eval).
54# $(1): the test number
55define define-build-art-run-test
56 dmart_target := $(art_run_tests_dir)/art-run-tests/$(1)/touch
Sebastien Hertz19ac0272015-02-24 17:39:50 +010057 run_test_options = --build-only
58 ifeq ($(ANDROID_COMPILE_WITH_JACK),true)
59 run_test_options += --build-with-jack
60 else
61 run_test_options += --build-with-javac-dx
62 endif
Alex Light91de25f2015-10-28 17:00:06 -070063 ifeq ($(ART_TEST_QUIET),true)
64 run_test_options += --quiet
65 endif
Sebastien Hertz19ac0272015-02-24 17:39:50 +010066$$(dmart_target): PRIVATE_RUN_TEST_OPTIONS := $$(run_test_options)
Yohann Roussel05b91252015-12-09 12:02:46 +010067$$(dmart_target): $(TEST_ART_RUN_TEST_DEPENDENCIES) $(TARGET_JACK_CLASSPATH_DEPENDENCIES) | $(TEST_ART_RUN_TEST_ORDERONLY_DEPENDENCIES)
Ian Rogersafd9acc2014-06-17 08:21:54 -070068 $(hide) rm -rf $$(dir $$@) && mkdir -p $$(dir $$@)
69 $(hide) DX=$(abspath $(DX)) JASMIN=$(abspath $(HOST_OUT_EXECUTABLES)/jasmin) \
Andreas Gampe8fda9f22014-10-03 16:15:37 -070070 SMALI=$(abspath $(HOST_OUT_EXECUTABLES)/smali) \
71 DXMERGER=$(abspath $(HOST_OUT_EXECUTABLES)/dexmerger) \
Yohann Rousselcc6bb932016-01-19 23:29:29 +010072 JACK_VERSION=$(JACK_DEFAULT_VERSION) \
Sebastien Hertz19ac0272015-02-24 17:39:50 +010073 JACK=$(abspath $(JACK)) \
Yohann Rousselaaa779a2016-01-19 17:07:18 +010074 JACK_VERSION=$(JACK_DEFAULT_VERSION) \
Sebastien Hertz19ac0272015-02-24 17:39:50 +010075 JACK_CLASSPATH=$(TARGET_JACK_CLASSPATH) \
Sebastien Hertz19ac0272015-02-24 17:39:50 +010076 $(LOCAL_PATH)/run-test $$(PRIVATE_RUN_TEST_OPTIONS) --output-path $$(abspath $$(dir $$@)) $(1)
Ian Rogersafd9acc2014-06-17 08:21:54 -070077 $(hide) touch $$@
78
79 TEST_ART_RUN_TEST_BUILD_RULES += $$(dmart_target)
80 dmart_target :=
Sebastien Hertz19ac0272015-02-24 17:39:50 +010081 run_test_options :=
Ian Rogersafd9acc2014-06-17 08:21:54 -070082endef
Ian Rogersbf66bce2014-06-24 23:15:34 -070083$(foreach test, $(TEST_ART_RUN_TESTS), $(eval $(call define-build-art-run-test,$(test))))
Ian Rogersafd9acc2014-06-17 08:21:54 -070084
85include $(CLEAR_VARS)
86LOCAL_MODULE_TAGS := tests
87LOCAL_MODULE := art-run-tests
Ian Rogersabbf2422014-10-15 11:57:01 -070088LOCAL_ADDITIONAL_DEPENDENCIES := $(TEST_ART_RUN_TEST_BUILD_RULES)
Ian Rogersafd9acc2014-06-17 08:21:54 -070089# The build system use this flag to pick up files generated by declare-make-art-run-test.
90LOCAL_PICKUP_FILES := $(art_run_tests_dir)
91
92include $(BUILD_PHONY_PACKAGE)
93
94# Clear temp vars.
Ian Rogersafd9acc2014-06-17 08:21:54 -070095art_run_tests_dir :=
96define-build-art-run-test :=
Ian Rogers8a14b752014-07-18 15:06:53 -070097TEST_ART_RUN_TEST_BUILD_RULES :=
Ian Rogersafd9acc2014-06-17 08:21:54 -070098
99########################################################################
Ian Rogersf5c44b32014-08-19 16:52:36 -0700100# General rules to build and run a run-test.
Ian Rogersafd9acc2014-06-17 08:21:54 -0700101
Ian Rogersf5c44b32014-08-19 16:52:36 -0700102TARGET_TYPES := host target
Nicolas Geoffray41bb3312014-10-24 13:49:08 +0100103PREBUILD_TYPES :=
104ifeq ($(ART_TEST_RUN_TEST_PREBUILD),true)
105 PREBUILD_TYPES += prebuild
106endif
Ian Rogers86df3ac2014-08-27 10:54:11 -0700107ifeq ($(ART_TEST_RUN_TEST_NO_PREBUILD),true)
108 PREBUILD_TYPES += no-prebuild
109endif
110ifeq ($(ART_TEST_RUN_TEST_NO_DEX2OAT),true)
111 PREBUILD_TYPES += no-dex2oat
112endif
113COMPILER_TYPES :=
Igor Murashkin7617abd2015-07-10 18:27:47 -0700114ifeq ($(ART_TEST_INTERPRETER_ACCESS_CHECKS),true)
Andreas Gampe825570c2015-07-26 10:26:03 -0700115 COMPILER_TYPES += interp-ac
Igor Murashkin7617abd2015-07-10 18:27:47 -0700116endif
Ian Rogers86df3ac2014-08-27 10:54:11 -0700117ifeq ($(ART_TEST_INTERPRETER),true)
118 COMPILER_TYPES += interpreter
119endif
Mathieu Chartiere5f13e52015-02-24 09:37:21 -0800120ifeq ($(ART_TEST_JIT),true)
121 COMPILER_TYPES += jit
122endif
Ian Rogers86df3ac2014-08-27 10:54:11 -0700123ifeq ($(ART_TEST_OPTIMIZING),true)
124 COMPILER_TYPES += optimizing
125endif
126RELOCATE_TYPES := relocate
127ifeq ($(ART_TEST_RUN_TEST_NO_RELOCATE),true)
128 RELOCATE_TYPES += no-relocate
129endif
130ifeq ($(ART_TEST_RUN_TEST_RELOCATE_NO_PATCHOAT),true)
Andreas Gampeb9aec2c2015-04-23 22:23:47 -0700131 RELOCATE_TYPES += relocate-npatchoat
Ian Rogers86df3ac2014-08-27 10:54:11 -0700132endif
Mathieu Chartier1445dd32015-03-20 14:29:51 -0700133TRACE_TYPES := ntrace
Ian Rogers86df3ac2014-08-27 10:54:11 -0700134ifeq ($(ART_TEST_TRACE),true)
135 TRACE_TYPES += trace
136endif
Andreas Gampe7526d782015-06-22 22:53:45 -0700137ifeq ($(ART_TEST_TRACE_STREAM),true)
138 TRACE_TYPES += stream
139endif
Ian Rogers86df3ac2014-08-27 10:54:11 -0700140GC_TYPES := cms
Alex Light992f1e72014-08-27 16:08:57 -0700141ifeq ($(ART_TEST_GC_STRESS),true)
Ian Rogers86df3ac2014-08-27 10:54:11 -0700142 GC_TYPES += gcstress
143endif
Alex Light992f1e72014-08-27 16:08:57 -0700144ifeq ($(ART_TEST_GC_VERIFY),true)
Ian Rogers86df3ac2014-08-27 10:54:11 -0700145 GC_TYPES += gcverify
146endif
147JNI_TYPES := checkjni
148ifeq ($(ART_TEST_JNI_FORCECOPY),true)
149 JNI_TYPES += forcecopy
150endif
151IMAGE_TYPES := image
152ifeq ($(ART_TEST_RUN_TEST_NO_IMAGE),true)
153 IMAGE_TYPES += no-image
154endif
Jeff Haodcdc85b2015-12-04 14:06:18 -0800155ifeq ($(ART_TEST_RUN_TEST_MULTI_IMAGE),true)
156 IMAGE_TYPES := multiimage
157endif
Andreas Gampec23c9c92014-10-28 14:47:25 -0700158ifeq ($(ART_TEST_PIC_IMAGE),true)
159 IMAGE_TYPES += picimage
Jeff Haodcdc85b2015-12-04 14:06:18 -0800160 ifeq ($(ART_TEST_RUN_TEST_MULTI_IMAGE),true)
161 IMAGE_TYPES := multipicimage
162 endif
Andreas Gampec23c9c92014-10-28 14:47:25 -0700163endif
Mathieu Chartier1445dd32015-03-20 14:29:51 -0700164PICTEST_TYPES := npictest
Andreas Gampec23c9c92014-10-28 14:47:25 -0700165ifeq ($(ART_TEST_PIC_TEST),true)
166 PICTEST_TYPES += pictest
167endif
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100168RUN_TYPES :=
169ifeq ($(ART_TEST_RUN_TEST_DEBUG),true)
170 RUN_TYPES += debug
171endif
172ifeq ($(ART_TEST_RUN_TEST_NDEBUG),true)
173 RUN_TYPES += ndebug
174endif
Mathieu Chartier1445dd32015-03-20 14:29:51 -0700175DEBUGGABLE_TYPES := ndebuggable
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000176ifeq ($(ART_TEST_RUN_TEST_DEBUGGABLE),true)
177DEBUGGABLE_TYPES += debuggable
178endif
Nicolas Geoffray41bb3312014-10-24 13:49:08 +0100179ADDRESS_SIZES_TARGET := $(ART_PHONY_TEST_TARGET_SUFFIX)
180ADDRESS_SIZES_HOST := $(ART_PHONY_TEST_HOST_SUFFIX)
181ifeq ($(ART_TEST_RUN_TEST_2ND_ARCH),true)
182 ADDRESS_SIZES_TARGET += $(2ND_ART_PHONY_TEST_TARGET_SUFFIX)
183 ADDRESS_SIZES_HOST += $(2ND_ART_PHONY_TEST_HOST_SUFFIX)
184endif
Ian Rogersf5c44b32014-08-19 16:52:36 -0700185ALL_ADDRESS_SIZES := 64 32
Ian Rogers86df3ac2014-08-27 10:54:11 -0700186
Ian Rogersf5c44b32014-08-19 16:52:36 -0700187# List all run test names with number arguments agreeing with the comment above.
188define all-run-test-names
189 $(foreach target, $(1), \
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100190 $(foreach run-type, $(2), \
191 $(foreach prebuild, $(3), \
192 $(foreach compiler, $(4), \
193 $(foreach relocate, $(5), \
194 $(foreach trace, $(6), \
195 $(foreach gc, $(7), \
196 $(foreach jni, $(8), \
197 $(foreach image, $(9), \
Andreas Gampec23c9c92014-10-28 14:47:25 -0700198 $(foreach pictest, $(10), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000199 $(foreach debuggable, $(11), \
200 $(foreach test, $(12), \
201 $(foreach address_size, $(13), \
202 test-art-$(target)-run-test-$(run-type)-$(prebuild)-$(compiler)-$(relocate)-$(trace)-$(gc)-$(jni)-$(image)-$(pictest)-$(debuggable)-$(test)$(address_size) \
203 )))))))))))))
Ian Rogersf5c44b32014-08-19 16:52:36 -0700204endef # all-run-test-names
205
206# To generate a full list or tests:
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100207# $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES),$(COMPILER_TYPES), \
Ian Rogers86df3ac2014-08-27 10:54:11 -0700208# $(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \
Roland Levillaind139bb72015-07-15 14:09:20 +0100209# $(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_RUN_TESTS),$(ALL_ADDRESS_SIZES))
Ian Rogersf5c44b32014-08-19 16:52:36 -0700210
211# Convert's a rule name to the form used in variables, e.g. no-relocate to NO_RELOCATE
212define name-to-var
213$(shell echo $(1) | tr '[:lower:]' '[:upper:]' | tr '-' '_')
214endef # name-to-var
215
Alex Lightc07d66d2015-11-13 10:51:10 -0800216ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
217 $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
218 $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(ART_TEST_RUN_TEST_SKIP), $(ALL_ADDRESS_SIZES))
219
Sebastien Hertzfc075552016-02-25 18:50:23 +0100220
221# Disable 097-duplicate-method while investigation (broken by latest Jack release, b/27358065)
Nicolas Geoffray18047e42016-03-02 08:30:44 +0000222# Disable 137-cfi (b/27391690).
Hiroshi Yamauchi6cba74b2016-03-02 12:12:54 -0800223# Disable 577-profile-foreign-dex (b/27454772).
Sebastien Hertzfc075552016-02-25 18:50:23 +0100224TEST_ART_BROKEN_ALL_TARGET_TESTS := \
Nicolas Geoffray18047e42016-03-02 08:30:44 +0000225 097-duplicate-method \
Hiroshi Yamauchi6cba74b2016-03-02 12:12:54 -0800226 577-profile-foreign-dex \
Sebastien Hertzfc075552016-02-25 18:50:23 +0100227
228ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
229 $(COMPILER_TYPES), $(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
230 $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_ALL_TARGET_TESTS), \
231 $(ALL_ADDRESS_SIZES))
232
233TEST_ART_BROKEN_ALL_TARGET_TESTS :=
234
Ian Rogersf5c44b32014-08-19 16:52:36 -0700235# Tests that are timing sensitive and flaky on heavily loaded systems.
236TEST_ART_TIMING_SENSITIVE_RUN_TESTS := \
Nicolas Geoffray0b9112d2016-01-04 15:22:00 +0000237 002-sleep \
Ian Rogersf5c44b32014-08-19 16:52:36 -0700238 053-wait-some \
Mathieu Chartiere4a91bb2015-01-28 13:11:44 -0800239 055-enum-performance \
240 133-static-invoke-super
Ian Rogersf5c44b32014-08-19 16:52:36 -0700241
Alex Lightdedcba22015-10-14 10:43:01 -0700242# disable timing sensitive tests on "dist" builds.
243ifdef dist_goal
244 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
245 $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
246 $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_TIMING_SENSITIVE_RUN_TESTS), $(ALL_ADDRESS_SIZES))
247endif
248
Vladimir Marko354efa62016-02-04 19:46:56 +0000249# 569-checker-pattern-replacement tests behaviour present only on host.
250TEST_ART_BROKEN_TARGET_TESTS := \
251 569-checker-pattern-replacement
252
253ifneq (,$(filter target,$(TARGET_TYPES)))
254 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,target,$(RUN_TYPES),$(PREBUILD_TYPES), \
255 $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
256 $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_TARGET_TESTS), $(ALL_ADDRESS_SIZES))
257endif
258
259TEST_ART_BROKEN_TARGET_TESTS :=
260
Nicolas Geoffrayec00b7e2015-10-14 09:27:09 +0100261# Tests that require python3.
262TEST_ART_PYTHON3_DEPENDENCY_RUN_TESTS := \
263 960-default-smali \
264 961-default-iface-resolution-generated \
265 964-default-iface-init-generated \
Alex Light705ad492015-09-21 11:36:30 -0700266 968-default-partial-compile-generated \
Nicolas Geoffray812dd362016-01-14 22:21:14 +0000267 969-iface-super \
Alex Light705ad492015-09-21 11:36:30 -0700268 970-iface-super-resolution-generated \
Nicolas Geoffraya866ccf2016-01-19 09:17:25 +0000269 971-iface-super
Nicolas Geoffrayec00b7e2015-10-14 09:27:09 +0100270
Alex Lightdedcba22015-10-14 10:43:01 -0700271# Check if we have python3 to run our tests.
272ifeq ($(wildcard /usr/bin/python3),)
273 $(warning "No python3 found. Disabling tests: $(TEST_ART_PYTHON3_DEPENDENCY_RUN_TESTS)")
Nicolas Geoffrayec00b7e2015-10-14 09:27:09 +0100274
Alex Lightdedcba22015-10-14 10:43:01 -0700275 # Currently disable tests requiring python3 when it is not installed.
Nicolas Geoffrayec00b7e2015-10-14 09:27:09 +0100276 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
277 $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
278 $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_PYTHON3_DEPENDENCY_RUN_TESTS), $(ALL_ADDRESS_SIZES))
Ian Rogersf5c44b32014-08-19 16:52:36 -0700279endif
280
Ian Rogers86df3ac2014-08-27 10:54:11 -0700281TEST_ART_TIMING_SENSITIVE_RUN_TESTS :=
282
Ian Rogers40e19122014-09-02 15:59:28 -0700283# Note 116-nodex2oat is not broken per-se it just doesn't (and isn't meant to) work with --prebuild.
Ian Rogersf5c44b32014-08-19 16:52:36 -0700284TEST_ART_BROKEN_PREBUILD_RUN_TESTS := \
Andreas Gampe3ad5d5e2015-02-03 18:26:55 -0800285 116-nodex2oat \
Jean Christophe Beyler24e04aa2014-09-12 12:03:25 -0700286 118-noimage-dex2oat \
287 134-nodex2oat-nofallback
Ian Rogersf5c44b32014-08-19 16:52:36 -0700288
Ian Rogers40e19122014-09-02 15:59:28 -0700289ifneq (,$(filter prebuild,$(PREBUILD_TYPES)))
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100290 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),prebuild, \
Ian Rogers40e19122014-09-02 15:59:28 -0700291 $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000292 $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_PREBUILD_RUN_TESTS), $(ALL_ADDRESS_SIZES))
Ian Rogers40e19122014-09-02 15:59:28 -0700293endif
Ian Rogersf5c44b32014-08-19 16:52:36 -0700294
Ian Rogers86df3ac2014-08-27 10:54:11 -0700295TEST_ART_BROKEN_PREBUILD_RUN_TESTS :=
296
Andreas Gampe216848a2015-12-02 11:49:01 -0800297# 554-jit-profile-file is disabled because it needs a primary oat file to know what it should save.
Ian Rogersf5c44b32014-08-19 16:52:36 -0700298TEST_ART_BROKEN_NO_PREBUILD_TESTS := \
Andreas Gampe216848a2015-12-02 11:49:01 -0800299 117-nopatchoat \
300 554-jit-profile-file
Ian Rogersf5c44b32014-08-19 16:52:36 -0700301
Ian Rogers40e19122014-09-02 15:59:28 -0700302ifneq (,$(filter no-prebuild,$(PREBUILD_TYPES)))
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100303 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),no-prebuild, \
Ian Rogers40e19122014-09-02 15:59:28 -0700304 $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000305 $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_NO_PREBUILD_TESTS), $(ALL_ADDRESS_SIZES))
Ian Rogers40e19122014-09-02 15:59:28 -0700306endif
Ian Rogersf5c44b32014-08-19 16:52:36 -0700307
Ian Rogers86df3ac2014-08-27 10:54:11 -0700308TEST_ART_BROKEN_NO_PREBUILD_TESTS :=
309
Ian Rogers40e19122014-09-02 15:59:28 -0700310# Note 117-nopatchoat is not broken per-se it just doesn't work (and isn't meant to) without
311# --prebuild --relocate
312TEST_ART_BROKEN_NO_RELOCATE_TESTS := \
Andreas Gampe3ad5d5e2015-02-03 18:26:55 -0800313 117-nopatchoat \
314 118-noimage-dex2oat \
Calin Juravle226501b2015-12-11 14:41:31 +0000315 119-noimage-patchoat \
316 554-jit-profile-file
Ian Rogers40e19122014-09-02 15:59:28 -0700317
318ifneq (,$(filter no-relocate,$(RELOCATE_TYPES)))
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100319 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
Ian Rogers40e19122014-09-02 15:59:28 -0700320 $(COMPILER_TYPES), no-relocate,$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000321 $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_NO_RELOCATE_TESTS), $(ALL_ADDRESS_SIZES))
Ian Rogers40e19122014-09-02 15:59:28 -0700322endif
323
324TEST_ART_BROKEN_NO_RELOCATE_TESTS :=
325
Igor Murashkin7617abd2015-07-10 18:27:47 -0700326# Temporarily disable some broken tests when forcing access checks in interpreter b/22414682
327TEST_ART_BROKEN_INTERPRETER_ACCESS_CHECK_TESTS := \
Igor Murashkindf707e42016-02-02 16:56:50 -0800328 137-cfi
Igor Murashkin7617abd2015-07-10 18:27:47 -0700329
Andreas Gampe825570c2015-07-26 10:26:03 -0700330ifneq (,$(filter interp-ac,$(COMPILER_TYPES)))
Igor Murashkin7617abd2015-07-10 18:27:47 -0700331 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
Andreas Gampe825570c2015-07-26 10:26:03 -0700332 interp-ac,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
Igor Murashkin7617abd2015-07-10 18:27:47 -0700333 $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_INTERPRETER_ACCESS_CHECK_TESTS), $(ALL_ADDRESS_SIZES))
334endif
335
336TEST_ART_BROKEN_INTERPRETER_ACCESS_CHECK_TESTS :=
337
Man Cao1ed11b92015-06-11 22:47:35 -0700338# Tests that are broken with GC stress.
Alex Light8d148c92015-10-20 10:23:32 -0700339# * 137-cfi needs to unwind a second forked process. We're using a primitive sleep to wait till we
340# hope the second process got into the expected state. The slowness of gcstress makes this bad.
Alex Light9b0f5162015-11-13 10:39:34 -0800341# * 961-default-iface-resolution-generated and 964-default-iface-init-generated are very long tests
342# that often will take more than the timeout to run when gcstress is enabled. This is because
343# gcstress slows down allocations significantly which these tests do a lot.
Mathieu Chartiereb193622015-06-27 15:42:27 -0700344TEST_ART_BROKEN_GCSTRESS_RUN_TESTS := \
Alex Light8d148c92015-10-20 10:23:32 -0700345 137-cfi \
Alex Light9b0f5162015-11-13 10:39:34 -0800346 961-default-iface-resolution-generated \
347 964-default-iface-init-generated
Man Cao1ed11b92015-06-11 22:47:35 -0700348
349ifneq (,$(filter gcstress,$(GC_TYPES)))
350 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
351 $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),gcstress,$(JNI_TYPES), \
352 $(IMAGE_TYPES), $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_GCSTRESS_RUN_TESTS), $(ALL_ADDRESS_SIZES))
353endif
354
355TEST_ART_BROKEN_GCSTRESS_RUN_TESTS :=
Ian Rogers40e19122014-09-02 15:59:28 -0700356
Ian Rogersf5c44b32014-08-19 16:52:36 -0700357# 115-native-bridge setup is complicated. Need to implement it correctly for the target.
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100358ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,target,$(RUN_TYPES),$(PREBUILD_TYPES),$(COMPILER_TYPES), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000359 $(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES), 115-native-bridge, \
Ian Rogersf5c44b32014-08-19 16:52:36 -0700360 $(ALL_ADDRESS_SIZES))
361
Andreas Gampe3a913092015-01-10 00:26:17 -0800362# 130-hprof dumps the heap and runs hprof-conv to check whether the file is somewhat readable. This
363# is only possible on the host.
364# TODO: Turn off all the other combinations, this is more about testing actual ART code. A gtest is
365# very hard to write here, as (for a complete test) JDWP must be set up.
366ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,target,$(RUN_TYPES),$(PREBUILD_TYPES), \
367 $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000368 $(PICTEST_TYPES),$(DEBUGGABLE_TYPES),130-hprof,$(ALL_ADDRESS_SIZES))
Andreas Gampe3a913092015-01-10 00:26:17 -0800369
Andreas Gampe94329d32015-04-24 20:22:06 -0700370# 131 is an old test. The functionality has been implemented at an earlier stage and is checked
Mathieu Chartier80b37b72015-10-12 18:13:39 -0700371# in tests 138. Blacklisted for debug builds since these builds have duplicate classes checks which
372# punt to interpreter.
373ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),debug,$(PREBUILD_TYPES), \
Andreas Gampe94329d32015-04-24 20:22:06 -0700374 $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \
375 $(PICTEST_TYPES),$(DEBUGGABLE_TYPES),131-structural-change,$(ALL_ADDRESS_SIZES))
376
Mathieu Chartier80b37b72015-10-12 18:13:39 -0700377# 138-duplicate-classes-check. Turned on for debug builds since debug builds have duplicate classes
378# checks enabled, b/2133391.
379ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),ndebug,$(PREBUILD_TYPES), \
Andreas Gampe69b5d8f2015-06-03 15:43:16 -0700380 $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \
381 $(PICTEST_TYPES),$(DEBUGGABLE_TYPES),138-duplicate-classes-check,$(ALL_ADDRESS_SIZES))
382
Alex Light03a112d2014-08-25 13:25:56 -0700383# All these tests check that we have sane behavior if we don't have a patchoat or dex2oat.
384# Therefore we shouldn't run them in situations where we actually don't have these since they
385# explicitly test for them. These all also assume we have an image.
Calin Juravle226501b2015-12-11 14:41:31 +0000386# 554-jit-profile-file is disabled because it needs a primary oat file to know what it should save.
Alex Light03a112d2014-08-25 13:25:56 -0700387TEST_ART_BROKEN_FALLBACK_RUN_TESTS := \
388 116-nodex2oat \
389 117-nopatchoat \
390 118-noimage-dex2oat \
Andreas Gampeb9aec2c2015-04-23 22:23:47 -0700391 119-noimage-patchoat \
Andreas Gampee1bbed22015-05-20 13:55:00 -0700392 137-cfi \
Calin Juravle226501b2015-12-11 14:41:31 +0000393 138-duplicate-classes-check2 \
394 554-jit-profile-file
Andreas Gampeb9aec2c2015-04-23 22:23:47 -0700395
396# This test fails without an image.
397TEST_ART_BROKEN_NO_IMAGE_RUN_TESTS := \
Andreas Gampee1bbed22015-05-20 13:55:00 -0700398 137-cfi \
Andreas Gampeb9aec2c2015-04-23 22:23:47 -0700399 138-duplicate-classes-check
Alex Light03a112d2014-08-25 13:25:56 -0700400
Ian Rogers40e19122014-09-02 15:59:28 -0700401ifneq (,$(filter no-dex2oat,$(PREBUILD_TYPES)))
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100402 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),no-dex2oat, \
Ian Rogers40e19122014-09-02 15:59:28 -0700403 $(COMPILER_TYPES),$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000404 $(PICTEST_TYPES),$(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_FALLBACK_RUN_TESTS),$(ALL_ADDRESS_SIZES))
Ian Rogers40e19122014-09-02 15:59:28 -0700405endif
Alex Light03a112d2014-08-25 13:25:56 -0700406
Alex Light03a112d2014-08-25 13:25:56 -0700407
Ian Rogers40e19122014-09-02 15:59:28 -0700408ifneq (,$(filter no-image,$(IMAGE_TYPES)))
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100409 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
Ian Rogers40e19122014-09-02 15:59:28 -0700410 $(COMPILER_TYPES), $(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),no-image, \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000411 $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_FALLBACK_RUN_TESTS),$(ALL_ADDRESS_SIZES))
Andreas Gampeb9aec2c2015-04-23 22:23:47 -0700412 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
413 $(COMPILER_TYPES), $(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES),no-image, \
414 $(PICTEST_TYPES), $(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_NO_IMAGE_RUN_TESTS),$(ALL_ADDRESS_SIZES))
Ian Rogers40e19122014-09-02 15:59:28 -0700415endif
416
Mathieu Chartier1445dd32015-03-20 14:29:51 -0700417ifneq (,$(filter relocate-npatchoat,$(RELOCATE_TYPES)))
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100418 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
Mathieu Chartier1445dd32015-03-20 14:29:51 -0700419 $(COMPILER_TYPES), relocate-npatchoat,$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000420 $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_FALLBACK_RUN_TESTS),$(ALL_ADDRESS_SIZES))
Ian Rogers40e19122014-09-02 15:59:28 -0700421endif
Alex Light03a112d2014-08-25 13:25:56 -0700422
Ian Rogers86df3ac2014-08-27 10:54:11 -0700423TEST_ART_BROKEN_FALLBACK_RUN_TESTS :=
424
Andreas Gampee1bbed22015-05-20 13:55:00 -0700425# 137:
426# This test unrolls and expects managed frames, but tracing means we run the interpreter.
Nicolas Geoffrayd9bc4332016-02-05 23:32:25 +0000427# 802 and 570-checker-osr:
Andreas Gampe9cb65bc2015-02-18 17:08:27 -0800428# This test dynamically enables tracing to force a deoptimization. This makes the test meaningless
429# when already tracing, and writes an error message that we do not want to check for.
430TEST_ART_BROKEN_TRACING_RUN_TESTS := \
Mathieu Chartier7778b882015-10-05 16:41:10 -0700431 087-gc-after-link \
Andreas Gampee1bbed22015-05-20 13:55:00 -0700432 137-cfi \
Mathieu Chartier42fbf492015-09-25 17:12:48 -0700433 141-class-unload \
Nicolas Geoffrayd9bc4332016-02-05 23:32:25 +0000434 570-checker-osr \
Andreas Gampe9cb65bc2015-02-18 17:08:27 -0800435 802-deoptimization
436
Andreas Gampe7526d782015-06-22 22:53:45 -0700437ifneq (,$(filter trace stream,$(TRACE_TYPES)))
Andreas Gampe9cb65bc2015-02-18 17:08:27 -0800438 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
Andreas Gampe7526d782015-06-22 22:53:45 -0700439 $(COMPILER_TYPES),$(RELOCATE_TYPES),trace stream,$(GC_TYPES),$(JNI_TYPES),$(IMAGE_TYPES), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000440 $(PICTEST_TYPES),$(DEBUGGABLE_TYPES), $(TEST_ART_BROKEN_TRACING_RUN_TESTS),$(ALL_ADDRESS_SIZES))
Andreas Gampe9cb65bc2015-02-18 17:08:27 -0800441endif
442
Andreas Gampee1bbed22015-05-20 13:55:00 -0700443# Known broken tests for the interpreter.
444# CFI unwinding expects managed frames.
445TEST_ART_BROKEN_INTERPRETER_RUN_TESTS := \
Calin Juravle226501b2015-12-11 14:41:31 +0000446 137-cfi \
447 554-jit-profile-file
Andreas Gampee1bbed22015-05-20 13:55:00 -0700448
449ifneq (,$(filter interpreter,$(COMPILER_TYPES)))
450 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
451 interpreter,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
452 $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_INTERPRETER_RUN_TESTS),$(ALL_ADDRESS_SIZES))
453endif
454
455TEST_ART_BROKEN_INTERPRETER_RUN_TESTS :=
456
Andreas Gampeaab9f732015-05-20 14:50:06 -0700457# Known broken tests for the JIT.
458# CFI unwinding expects managed frames, and the test does not iterate enough to even compile. JIT
459# also uses Generic JNI instead of the JNI compiler.
460TEST_ART_BROKEN_JIT_RUN_TESTS := \
461 137-cfi
462
463ifneq (,$(filter jit,$(COMPILER_TYPES)))
464 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
465 jit,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
466 $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES),$(TEST_ART_BROKEN_JIT_RUN_TESTS),$(ALL_ADDRESS_SIZES))
467endif
468
469TEST_ART_BROKEN_JIT_RUN_TESTS :=
470
David Brazdil73b6cdf2015-09-30 11:47:35 +0100471# Known broken tests for the mips32 optimizing compiler backend.
472TEST_ART_BROKEN_OPTIMIZING_MIPS_RUN_TESTS := \
David Brazdil73b6cdf2015-09-30 11:47:35 +0100473 510-checker-try-catch \
Alexandre Rames5319def2014-10-23 10:03:10 +0100474
David Brazdil73b6cdf2015-09-30 11:47:35 +0100475ifeq (mips,$(TARGET_ARCH))
476 ifneq (,$(filter optimizing,$(COMPILER_TYPES)))
477 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,target,$(RUN_TYPES),$(PREBUILD_TYPES), \
478 optimizing,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
479 $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES), \
480 $(TEST_ART_BROKEN_OPTIMIZING_MIPS_RUN_TESTS),$(ALL_ADDRESS_SIZES))
481 endif
Alexandre Rames5319def2014-10-23 10:03:10 +0100482endif
483
David Brazdil73b6cdf2015-09-30 11:47:35 +0100484TEST_ART_BROKEN_OPTIMIZING_MIPS_RUN_TESTS :=
Alexandre Rames5319def2014-10-23 10:03:10 +0100485
Scott Wakeling40a04bf2015-12-11 09:50:36 +0000486# Known broken tests for the mips64 optimizing compiler backend.
487TEST_ART_BROKEN_OPTIMIZING_MIPS64_RUN_TESTS := \
Scott Wakeling40a04bf2015-12-11 09:50:36 +0000488
489ifeq (mips64,$(TARGET_ARCH))
490 ifneq (,$(filter optimizing,$(COMPILER_TYPES)))
491 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,target,$(RUN_TYPES),$(PREBUILD_TYPES), \
492 optimizing,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
493 $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES), \
494 $(TEST_ART_BROKEN_OPTIMIZING_MIPS64_RUN_TESTS),$(ALL_ADDRESS_SIZES))
495 endif
496endif
497
498TEST_ART_BROKEN_OPTIMIZING_MIPS64_RUN_TESTS :=
499
Nicolas Geoffraye0fe7ae2015-03-09 10:02:49 +0000500# Tests that should fail when the optimizing compiler compiles them non-debuggable.
501TEST_ART_BROKEN_OPTIMIZING_NONDEBUGGABLE_RUN_TESTS := \
Nicolas Geoffray915b9d02015-03-11 15:11:19 +0000502 454-get-vreg \
Nicolas Geoffraye0fe7ae2015-03-09 10:02:49 +0000503 457-regs \
504
505ifneq (,$(filter optimizing,$(COMPILER_TYPES)))
506 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
507 optimizing,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
Mathieu Chartier1445dd32015-03-20 14:29:51 -0700508 $(IMAGE_TYPES),$(PICTEST_TYPES),ndebuggable,$(TEST_ART_BROKEN_OPTIMIZING_NONDEBUGGABLE_RUN_TESTS),$(ALL_ADDRESS_SIZES))
Nicolas Geoffraye0fe7ae2015-03-09 10:02:49 +0000509endif
510
511TEST_ART_BROKEN_OPTIMIZING_NONDEBUGGABLE_RUN_TESTS :=
512
Nicolas Geoffraye50b8d22015-03-13 08:57:42 +0000513# Tests that should fail when the optimizing compiler compiles them debuggable.
514TEST_ART_BROKEN_OPTIMIZING_DEBUGGABLE_RUN_TESTS := \
Nicolas Geoffraye50b8d22015-03-13 08:57:42 +0000515
516ifneq (,$(filter optimizing,$(COMPILER_TYPES)))
517 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES),$(PREBUILD_TYPES), \
518 optimizing,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
519 $(IMAGE_TYPES),$(PICTEST_TYPES),debuggable,$(TEST_ART_BROKEN_OPTIMIZING_DEBUGGABLE_RUN_TESTS),$(ALL_ADDRESS_SIZES))
520endif
521
522TEST_ART_BROKEN_OPTIMIZING_DEBUGGABLE_RUN_TESTS :=
523
Roland Levillainb0659e62016-01-26 14:05:42 +0000524# Tests that should fail in the read barrier configuration with the interpreter.
Hiroshi Yamauchi6c738362016-03-17 14:57:58 -0700525TEST_ART_BROKEN_INTERPRETER_READ_BARRIER_RUN_TESTS :=
Hiroshi Yamauchi1d858232015-05-05 13:36:39 -0700526
Roland Levillain78ebe4a2016-01-26 10:47:42 +0000527# Tests that should fail in the read barrier configuration with the Optimizing compiler (AOT).
Roland Levillaine217fee2015-12-16 14:21:33 +0000528# 484: Baker's fast path based read barrier compiler instrumentation generates code containing
529# more parallel moves on x86, thus some Checker assertions may fail.
Roland Levillaincd3d0fb2016-01-15 19:26:48 +0000530# 527: On ARM64, the read barrier instrumentation does not support the HArm64IntermediateAddress
531# instruction yet (b/26601270).
Roland Levillaine217fee2015-12-16 14:21:33 +0000532# 537: Expects an array copy to be intrinsified on x86-64, but calling-on-slowpath intrinsics are
533# not yet handled in the read barrier configuration.
534TEST_ART_BROKEN_OPTIMIZING_READ_BARRIER_RUN_TESTS := \
535 484-checker-register-hints \
Roland Levillaincd3d0fb2016-01-15 19:26:48 +0000536 527-checker-array-access-split \
Roland Levillaine217fee2015-12-16 14:21:33 +0000537 537-checker-arraycopy
538
Roland Levillain560297f2016-01-29 11:37:48 +0000539# Tests that should fail in the read barrier configuration with JIT (Optimizing compiler).
Hiroshi Yamauchi5c0a4af2016-03-17 14:57:25 -0700540TEST_ART_BROKEN_JIT_READ_BARRIER_RUN_TESTS :=
Roland Levillain3c36f662016-01-14 12:40:41 +0000541
Roland Levillaine217fee2015-12-16 14:21:33 +0000542ifeq ($(ART_USE_READ_BARRIER),true)
Roland Levillainb0659e62016-01-26 14:05:42 +0000543 ifneq (,$(filter interpreter,$(COMPILER_TYPES)))
544 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES), \
545 $(PREBUILD_TYPES),interpreter,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES), \
546 $(JNI_TYPES),$(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES), \
547 $(TEST_ART_BROKEN_INTERPRETER_READ_BARRIER_RUN_TESTS),$(ALL_ADDRESS_SIZES))
548 endif
549
Roland Levillaine217fee2015-12-16 14:21:33 +0000550 ifneq (,$(filter optimizing,$(COMPILER_TYPES)))
551 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES), \
552 $(PREBUILD_TYPES),optimizing,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES), \
553 $(JNI_TYPES),$(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES), \
554 $(TEST_ART_BROKEN_OPTIMIZING_READ_BARRIER_RUN_TESTS),$(ALL_ADDRESS_SIZES))
555 endif
Roland Levillain3c36f662016-01-14 12:40:41 +0000556
557 ifneq (,$(filter jit,$(COMPILER_TYPES)))
558 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES), \
559 $(PREBUILD_TYPES),jit,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES), \
560 $(JNI_TYPES),$(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES), \
561 $(TEST_ART_BROKEN_JIT_READ_BARRIER_RUN_TESTS),$(ALL_ADDRESS_SIZES))
562 endif
Roland Levillaine217fee2015-12-16 14:21:33 +0000563endif
564
Roland Levillaine217fee2015-12-16 14:21:33 +0000565TEST_ART_BROKEN_OPTIMIZING_READ_BARRIER_RUN_TESTS :=
Roland Levillain3c36f662016-01-14 12:40:41 +0000566TEST_ART_BROKEN_JIT_READ_BARRIER_RUN_TESTS :=
Roland Levillaine217fee2015-12-16 14:21:33 +0000567
Roland Levillaine217fee2015-12-16 14:21:33 +0000568# Tests that should fail in the heap poisoning configuration with the Optimizing compiler.
569# 055: Exceeds run time limits due to heap poisoning instrumentation (on ARM and ARM64 devices).
570TEST_ART_BROKEN_OPTIMIZING_HEAP_POISONING_RUN_TESTS := \
571 055-enum-performance
572
Andreas Gampe44372192015-05-21 10:01:42 -0700573ifeq ($(ART_HEAP_POISONING),true)
Roland Levillain4d027112015-07-01 15:41:14 +0100574 ifneq (,$(filter optimizing,$(COMPILER_TYPES)))
575 ART_TEST_KNOWN_BROKEN += $(call all-run-test-names,$(TARGET_TYPES),$(RUN_TYPES), \
576 $(PREBUILD_TYPES),optimizing,$(RELOCATE_TYPES),$(TRACE_TYPES),$(GC_TYPES),$(JNI_TYPES), \
577 $(IMAGE_TYPES),$(PICTEST_TYPES),$(DEBUGGABLE_TYPES), \
578 $(TEST_ART_BROKEN_OPTIMIZING_HEAP_POISONING_RUN_TESTS),$(ALL_ADDRESS_SIZES))
579 endif
Andreas Gampe44372192015-05-21 10:01:42 -0700580endif
581
Roland Levillaine217fee2015-12-16 14:21:33 +0000582TEST_ART_BROKEN_OPTIMIZING_HEAP_POISONING_RUN_TESTS :=
Andreas Gampe44372192015-05-21 10:01:42 -0700583
Ian Rogersf5c44b32014-08-19 16:52:36 -0700584# Clear variables ahead of appending to them when defining tests.
585$(foreach target, $(TARGET_TYPES), $(eval ART_RUN_TEST_$(call name-to-var,$(target))_RULES :=))
586$(foreach target, $(TARGET_TYPES), \
587 $(foreach prebuild, $(PREBUILD_TYPES), \
588 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(prebuild))_RULES :=)))
589$(foreach target, $(TARGET_TYPES), \
590 $(foreach compiler, $(COMPILER_TYPES), \
591 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(compiler))_RULES :=)))
592$(foreach target, $(TARGET_TYPES), \
593 $(foreach relocate, $(RELOCATE_TYPES), \
594 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(relocate))_RULES :=)))
595$(foreach target, $(TARGET_TYPES), \
596 $(foreach trace, $(TRACE_TYPES), \
597 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(trace))_RULES :=)))
598$(foreach target, $(TARGET_TYPES), \
599 $(foreach gc, $(GC_TYPES), \
600 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(gc))_RULES :=)))
601$(foreach target, $(TARGET_TYPES), \
602 $(foreach jni, $(JNI_TYPES), \
603 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(jni))_RULES :=)))
604$(foreach target, $(TARGET_TYPES), \
Alex Light03a112d2014-08-25 13:25:56 -0700605 $(foreach image, $(IMAGE_TYPES), \
606 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(image))_RULES :=)))
607$(foreach target, $(TARGET_TYPES), \
Ian Rogersf5c44b32014-08-19 16:52:36 -0700608 $(foreach test, $(TEST_ART_RUN_TESTS), \
609 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(test))_RULES :=)))
610$(foreach target, $(TARGET_TYPES), \
611 $(foreach address_size, $(ALL_ADDRESS_SIZES), \
612 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(address_size))_RULES :=)))
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100613$(foreach target, $(TARGET_TYPES), \
614 $(foreach run_type, $(RUN_TYPES), \
615 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(run_type))_RULES :=)))
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000616$(foreach target, $(TARGET_TYPES), \
617 $(foreach debuggable_type, $(DEBUGGABLE_TYPES), \
618 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(debuggable_type))_RULES :=)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700619
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700620# We need dex2oat and dalvikvm on the target as well as the core images (all images as we sync
621# only once).
622TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_EXECUTABLES) $(TARGET_CORE_IMG_OUTS)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700623
Andreas Gampe1c83cbc2014-07-22 18:52:29 -0700624# Also need libarttest.
625TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_TEST_OUT)/$(TARGET_ARCH)/libarttest.so
Mathieu Chartier031768a2015-08-27 10:25:02 -0700626TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_TEST_OUT)/$(TARGET_ARCH)/libarttestd.so
Andreas Gampe1c83cbc2014-07-22 18:52:29 -0700627ifdef TARGET_2ND_ARCH
628TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_TEST_OUT)/$(TARGET_2ND_ARCH)/libarttest.so
Mathieu Chartier031768a2015-08-27 10:25:02 -0700629TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_TEST_OUT)/$(TARGET_2ND_ARCH)/libarttestd.so
Andreas Gampe1c83cbc2014-07-22 18:52:29 -0700630endif
631
Andreas Gampe855564b2014-07-25 02:32:19 -0700632# Also need libnativebridgetest.
633TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_TEST_OUT)/$(TARGET_ARCH)/libnativebridgetest.so
634ifdef TARGET_2ND_ARCH
635TEST_ART_TARGET_SYNC_DEPS += $(ART_TARGET_TEST_OUT)/$(TARGET_2ND_ARCH)/libnativebridgetest.so
636endif
637
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700638# All tests require the host executables. The tests also depend on the core images, but on
639# specific version depending on the compiler.
Ian Rogersafd9acc2014-06-17 08:21:54 -0700640ART_TEST_HOST_RUN_TEST_DEPENDENCIES := \
641 $(ART_HOST_EXECUTABLES) \
Andreas Gampe1c83cbc2014-07-22 18:52:29 -0700642 $(ART_HOST_OUT_SHARED_LIBRARIES)/libarttest$(ART_HOST_SHLIB_EXTENSION) \
Mathieu Chartier031768a2015-08-27 10:25:02 -0700643 $(ART_HOST_OUT_SHARED_LIBRARIES)/libarttestd$(ART_HOST_SHLIB_EXTENSION) \
Andreas Gampe855564b2014-07-25 02:32:19 -0700644 $(ART_HOST_OUT_SHARED_LIBRARIES)/libnativebridgetest$(ART_HOST_SHLIB_EXTENSION) \
Narayan Kamath67ef2c92015-11-16 10:17:35 +0000645 $(ART_HOST_OUT_SHARED_LIBRARIES)/libjavacore$(ART_HOST_SHLIB_EXTENSION) \
Andreas Gampe10edbb12016-01-06 17:59:49 -0800646 $(ART_HOST_OUT_SHARED_LIBRARIES)/libopenjdk$(ART_HOST_SHLIB_EXTENSION) \
647 $(ART_HOST_OUT_SHARED_LIBRARIES)/libopenjdkd$(ART_HOST_SHLIB_EXTENSION)
Ian Rogers665de8a2014-06-24 21:34:09 -0700648
649ifneq ($(HOST_PREFER_32_BIT),true)
650ART_TEST_HOST_RUN_TEST_DEPENDENCIES += \
Andreas Gampe1c83cbc2014-07-22 18:52:29 -0700651 $(2ND_ART_HOST_OUT_SHARED_LIBRARIES)/libarttest$(ART_HOST_SHLIB_EXTENSION) \
Mathieu Chartier031768a2015-08-27 10:25:02 -0700652 $(2ND_ART_HOST_OUT_SHARED_LIBRARIES)/libarttestd$(ART_HOST_SHLIB_EXTENSION) \
Andreas Gampe855564b2014-07-25 02:32:19 -0700653 $(2ND_ART_HOST_OUT_SHARED_LIBRARIES)/libnativebridgetest$(ART_HOST_SHLIB_EXTENSION) \
Narayan Kamath67ef2c92015-11-16 10:17:35 +0000654 $(2ND_ART_HOST_OUT_SHARED_LIBRARIES)/libjavacore$(ART_HOST_SHLIB_EXTENSION) \
Andreas Gampe10edbb12016-01-06 17:59:49 -0800655 $(2ND_ART_HOST_OUT_SHARED_LIBRARIES)/libopenjdk$(ART_HOST_SHLIB_EXTENSION) \
656 $(2ND_ART_HOST_OUT_SHARED_LIBRARIES)/libopenjdkd$(ART_HOST_SHLIB_EXTENSION)
Ian Rogers665de8a2014-06-24 21:34:09 -0700657endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700658
Ian Rogersf5c44b32014-08-19 16:52:36 -0700659# Create a rule to build and run a tests following the form:
Calin Juravle9228b2a2014-10-22 15:54:34 +0100660# test-art-{1: host or target}-run-test-{2: debug ndebug}-{3: prebuild no-prebuild no-dex2oat}-
Nicolas Geoffray7db00cd2016-03-22 10:43:01 +0000661# {4: interpreter optimizing jit interp-ac}-
Igor Murashkin7617abd2015-07-10 18:27:47 -0700662# {5: relocate nrelocate relocate-npatchoat}-
Mathieu Chartier1445dd32015-03-20 14:29:51 -0700663# {6: trace or ntrace}-{7: gcstress gcverify cms}-{8: forcecopy checkjni jni}-
664# {9: no-image image picimage}-{10: pictest npictest}-
665# {11: ndebuggable debuggable}-{12: test name}{13: 32 or 64}
Ian Rogersafd9acc2014-06-17 08:21:54 -0700666define define-test-art-run-test
Nicolas Geoffray611e1db2014-10-09 17:34:45 +0100667 run_test_options :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700668 prereq_rule :=
Ian Rogersf5c44b32014-08-19 16:52:36 -0700669 test_groups :=
670 uc_host_or_target :=
Sebastien Hertz19ac0272015-02-24 17:39:50 +0100671 jack_classpath :=
672 ifeq ($(ANDROID_COMPILE_WITH_JACK),true)
673 run_test_options += --build-with-jack
674 else
675 run_test_options += --build-with-javac-dx
676 endif
Hiroshi Yamauchi1d4184d2015-07-13 17:11:22 -0700677 ifeq ($(ART_TEST_WITH_STRACE),true)
678 run_test_options += --strace
679 endif
Alex Lightbfac14a2014-07-30 09:41:21 -0700680 ifeq ($(ART_TEST_RUN_TEST_ALWAYS_CLEAN),true)
681 run_test_options += --always-clean
682 endif
Ian Rogersf5c44b32014-08-19 16:52:36 -0700683 ifeq ($(1),host)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700684 uc_host_or_target := HOST
Ian Rogersf5c44b32014-08-19 16:52:36 -0700685 test_groups := ART_RUN_TEST_HOST_RULES
Ian Rogersafd9acc2014-06-17 08:21:54 -0700686 run_test_options += --host
Yohann Roussel30486982015-07-21 16:25:44 +0200687 prereq_rule := $(ART_TEST_HOST_RUN_TEST_DEPENDENCIES) $(HOST_JACK_CLASSPATH_DEPENDENCIES)
Sebastien Hertz19ac0272015-02-24 17:39:50 +0100688 jack_classpath := $(HOST_JACK_CLASSPATH)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700689 else
Ian Rogersf5c44b32014-08-19 16:52:36 -0700690 ifeq ($(1),target)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700691 uc_host_or_target := TARGET
Ian Rogersf5c44b32014-08-19 16:52:36 -0700692 test_groups := ART_RUN_TEST_TARGET_RULES
Yohann Roussel30486982015-07-21 16:25:44 +0200693 prereq_rule := test-art-target-sync $(TARGET_JACK_CLASSPATH_DEPENDENCIES)
Sebastien Hertz19ac0272015-02-24 17:39:50 +0100694 jack_classpath := $(TARGET_JACK_CLASSPATH)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700695 else
Ian Rogersf5c44b32014-08-19 16:52:36 -0700696 $$(error found $(1) expected $(TARGET_TYPES))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700697 endif
698 endif
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100699 ifeq ($(2),debug)
700 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_DEBUG_RULES
701 else
702 ifeq ($(2),ndebug)
703 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_RELEASE_RULES
704 run_test_options += -O
705 else
706 $$(error found $(2) expected $(RUN_TYPES))
707 endif
708 endif
709 ifeq ($(3),prebuild)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700710 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_PREBUILD_RULES
711 run_test_options += --prebuild
Alex Lighta59dd802014-07-02 16:28:08 -0700712 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100713 ifeq ($(3),no-prebuild)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700714 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NO_PREBUILD_RULES
715 run_test_options += --no-prebuild
Alex Lighta59dd802014-07-02 16:28:08 -0700716 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100717 ifeq ($(3),no-dex2oat)
Alex Light03a112d2014-08-25 13:25:56 -0700718 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NO_DEX2OAT_RULES
719 run_test_options += --no-prebuild --no-dex2oat
720 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100721 $$(error found $(3) expected $(PREBUILD_TYPES))
Alex Light03a112d2014-08-25 13:25:56 -0700722 endif
Alex Lighta59dd802014-07-02 16:28:08 -0700723 endif
724 endif
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100725 ifeq ($(4),optimizing)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700726 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_OPTIMIZING_RULES
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700727 run_test_options += --optimizing
Ian Rogersafd9acc2014-06-17 08:21:54 -0700728 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100729 ifeq ($(4),interpreter)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700730 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_INTERPRETER_RULES
Ian Rogersafd9acc2014-06-17 08:21:54 -0700731 run_test_options += --interpreter
Andreas Gampe825570c2015-07-26 10:26:03 -0700732 else ifeq ($(4),interp-ac)
Igor Murashkin7617abd2015-07-10 18:27:47 -0700733 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_INTERPRETER_ACCESS_CHECKS_RULES
734 run_test_options += --interpreter --verify-soft-fail
Ian Rogersafd9acc2014-06-17 08:21:54 -0700735 else
Nicolas Geoffray7db00cd2016-03-22 10:43:01 +0000736 ifeq ($(4),jit)
737 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_JIT_RULES
738 run_test_options += --jit
Ian Rogersafd9acc2014-06-17 08:21:54 -0700739 else
Nicolas Geoffray7db00cd2016-03-22 10:43:01 +0000740 $$(error found $(4) expected $(COMPILER_TYPES))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700741 endif
742 endif
743 endif
Andreas Gampe63fc30e2014-10-24 21:58:16 -0700744
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100745 ifeq ($(5),relocate)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700746 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_RELOCATE_RULES
747 run_test_options += --relocate
Ian Rogersafd9acc2014-06-17 08:21:54 -0700748 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100749 ifeq ($(5),no-relocate)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700750 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NO_RELOCATE_RULES
751 run_test_options += --no-relocate
752 else
Mathieu Chartier1445dd32015-03-20 14:29:51 -0700753 ifeq ($(5),relocate-npatchoat)
Alex Light03a112d2014-08-25 13:25:56 -0700754 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_RELOCATE_NO_PATCHOAT_RULES
755 run_test_options += --relocate --no-patchoat
756 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100757 $$(error found $(5) expected $(RELOCATE_TYPES))
Alex Light03a112d2014-08-25 13:25:56 -0700758 endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700759 endif
760 endif
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100761 ifeq ($(6),trace)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700762 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_TRACE_RULES
Ian Rogers716e4f82014-07-16 11:18:03 -0700763 run_test_options += --trace
Ian Rogers716e4f82014-07-16 11:18:03 -0700764 else
Mathieu Chartier1445dd32015-03-20 14:29:51 -0700765 ifeq ($(6),ntrace)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700766 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NO_TRACE_RULES
Ian Rogers701aa642014-07-18 11:38:13 -0700767 else
Andreas Gampe7526d782015-06-22 22:53:45 -0700768 ifeq ($(6),stream)
769 # Group streaming under normal tracing rules.
770 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_TRACE_RULES
771 run_test_options += --trace --stream
772 else
773 $$(error found $(6) expected $(TRACE_TYPES))
774 endif
Ian Rogersf5c44b32014-08-19 16:52:36 -0700775 endif
776 endif
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100777 ifeq ($(7),gcverify)
Ian Rogers86df3ac2014-08-27 10:54:11 -0700778 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_GCVERIFY_RULES
Ian Rogersf5c44b32014-08-19 16:52:36 -0700779 run_test_options += --gcverify
780 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100781 ifeq ($(7),gcstress)
Ian Rogers86df3ac2014-08-27 10:54:11 -0700782 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_GCSTRESS_RULES
Ian Rogersf5c44b32014-08-19 16:52:36 -0700783 run_test_options += --gcstress
784 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100785 ifeq ($(7),cms)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700786 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_CMS_RULES
Ian Rogers8a14b752014-07-18 15:06:53 -0700787 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100788 $$(error found $(7) expected $(GC_TYPES))
Ian Rogers701aa642014-07-18 11:38:13 -0700789 endif
Ian Rogers716e4f82014-07-16 11:18:03 -0700790 endif
791 endif
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100792 ifeq ($(8),forcecopy)
Ian Rogers86df3ac2014-08-27 10:54:11 -0700793 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_FORCECOPY_RULES
Ian Rogersf5c44b32014-08-19 16:52:36 -0700794 run_test_options += --runtime-option -Xjniopts:forcecopy
795 ifneq ($$(ART_TEST_JNI_FORCECOPY),true)
796 skip_test := true
797 endif
798 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100799 ifeq ($(8),checkjni)
Ian Rogers86df3ac2014-08-27 10:54:11 -0700800 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_CHECKJNI_RULES
Ian Rogersf5c44b32014-08-19 16:52:36 -0700801 run_test_options += --runtime-option -Xcheck:jni
802 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100803 ifeq ($(8),jni)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700804 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_JNI_RULES
805 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100806 $$(error found $(8) expected $(JNI_TYPES))
Ian Rogersf5c44b32014-08-19 16:52:36 -0700807 endif
808 endif
809 endif
Andreas Gampe8a159fd2015-09-21 15:14:38 -0700810 image_suffix := $(4)
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100811 ifeq ($(9),no-image)
Alex Light03a112d2014-08-25 13:25:56 -0700812 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NO_IMAGE_RULES
813 run_test_options += --no-image
Andreas Gampebf03e842014-10-29 20:46:17 -0700814 # Add the core dependency. This is required for pre-building.
815 ifeq ($(1),host)
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000816 prereq_rule += $$(HOST_CORE_IMAGE_$$(image_suffix)_no-pic_$(13))
Andreas Gampebf03e842014-10-29 20:46:17 -0700817 else
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000818 prereq_rule += $$(TARGET_CORE_IMAGE_$$(image_suffix)_no-pic_$(13))
Andreas Gampebf03e842014-10-29 20:46:17 -0700819 endif
Alex Light03a112d2014-08-25 13:25:56 -0700820 else
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100821 ifeq ($(9),image)
Alex Light03a112d2014-08-25 13:25:56 -0700822 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_IMAGE_RULES
Andreas Gampec23c9c92014-10-28 14:47:25 -0700823 # Add the core dependency.
824 ifeq ($(1),host)
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000825 prereq_rule += $$(HOST_CORE_IMAGE_$$(image_suffix)_no-pic_$(13))
Andreas Gampec23c9c92014-10-28 14:47:25 -0700826 else
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000827 prereq_rule += $$(TARGET_CORE_IMAGE_$$(image_suffix)_no-pic_$(13))
Andreas Gampec23c9c92014-10-28 14:47:25 -0700828 endif
Alex Light03a112d2014-08-25 13:25:56 -0700829 else
Andreas Gampec23c9c92014-10-28 14:47:25 -0700830 ifeq ($(9),picimage)
831 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_PICIMAGE_RULES
832 run_test_options += --pic-image
833 ifeq ($(1),host)
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000834 prereq_rule += $$(HOST_CORE_IMAGE_$$(image_suffix)_pic_$(13))
Andreas Gampec23c9c92014-10-28 14:47:25 -0700835 else
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000836 prereq_rule += $$(TARGET_CORE_IMAGE_$$(image_suffix)_pic_$(13))
Andreas Gampec23c9c92014-10-28 14:47:25 -0700837 endif
838 else
Jeff Haodcdc85b2015-12-04 14:06:18 -0800839 ifeq ($(9),multiimage)
840 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_IMAGE_RULES
841 run_test_options += --multi-image
Roland Levillain3c36f662016-01-14 12:40:41 +0000842 ifeq ($(1),host)
843 prereq_rule += $$(HOST_CORE_IMAGE_$$(image_suffix)_no-pic_multi_$(13))
844 else
845 prereq_rule += $$(TARGET_CORE_IMAGE_$$(image_suffix)_no-pic_multi_$(13))
846 endif
Jeff Haodcdc85b2015-12-04 14:06:18 -0800847 else
848 ifeq ($(9),multipicimage)
849 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_PICIMAGE_RULES
Roland Levillain3c36f662016-01-14 12:40:41 +0000850 run_test_options += --pic-image --multi-image
851 ifeq ($(1),host)
852 prereq_rule += $$(HOST_CORE_IMAGE_$$(image_suffix)_pic_multi_$(13))
853 else
854 prereq_rule += $$(TARGET_CORE_IMAGE_$$(image_suffix)_pic_multi_$(13))
855 endif
Jeff Haodcdc85b2015-12-04 14:06:18 -0800856 else
857 $$(error found $(9) expected $(IMAGE_TYPES))
858 endif
859 endif
Andreas Gampec23c9c92014-10-28 14:47:25 -0700860 endif
Alex Light03a112d2014-08-25 13:25:56 -0700861 endif
862 endif
Andreas Gampec23c9c92014-10-28 14:47:25 -0700863 ifeq ($(10),pictest)
864 run_test_options += --pic-test
865 else
Mathieu Chartier1445dd32015-03-20 14:29:51 -0700866 ifeq ($(10),npictest)
Andreas Gampec23c9c92014-10-28 14:47:25 -0700867 # Nothing to be done.
868 else
869 $$(error found $(10) expected $(PICTEST_TYPES))
870 endif
871 endif
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000872 ifeq ($(11),debuggable)
873 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_DEBUGGABLE_RULES
874 run_test_options += --debuggable
875 else
Mathieu Chartier1445dd32015-03-20 14:29:51 -0700876 ifeq ($(11),ndebuggable)
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000877 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_NONDEBUGGABLE_RULES
878 # Nothing to be done.
879 else
880 $$(error found $(11) expected $(DEBUGGABLE_TYPES))
881 endif
882 endif
883 # $(12) is the test name.
884 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_$(call name-to-var,$(12))_RULES
885 ifeq ($(13),64)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700886 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_64_RULES
887 run_test_options += --64
888 else
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000889 ifeq ($(13),32)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700890 test_groups += ART_RUN_TEST_$$(uc_host_or_target)_32_RULES
891 else
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000892 $$(error found $(13) expected $(ALL_ADDRESS_SIZES))
Ian Rogersf5c44b32014-08-19 16:52:36 -0700893 endif
894 endif
Andreas Gampe4d2ef332015-08-05 09:24:45 -0700895 # Override of host instruction-set-features. Required to test advanced x86 intrinsics. The
896 # conditionals aren't really correct, they will fail to do the right thing on a 32-bit only
897 # host. However, this isn't common enough to worry here and make the conditions complicated.
898 ifneq ($(DEX2OAT_HOST_INSTRUCTION_SET_FEATURES),)
899 ifeq ($(13),64)
900 run_test_options += --instruction-set-features $(DEX2OAT_HOST_INSTRUCTION_SET_FEATURES)
901 endif
902 endif
903 ifneq ($($(HOST_2ND_ARCH_VAR_PREFIX)DEX2OAT_HOST_INSTRUCTION_SET_FEATURES),)
904 ifeq ($(13),32)
905 run_test_options += --instruction-set-features $($(HOST_2ND_ARCH_VAR_PREFIX)DEX2OAT_HOST_INSTRUCTION_SET_FEATURES)
906 endif
907 endif
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000908 run_test_rule_name := test-art-$(1)-run-test-$(2)-$(3)-$(4)-$(5)-$(6)-$(7)-$(8)-$(9)-$(10)-$(11)-$(12)$(13)
Ian Rogersf5c44b32014-08-19 16:52:36 -0700909 run_test_options := --output-path $(ART_HOST_TEST_DIR)/run-test-output/$$(run_test_rule_name) \
Ian Rogers5242c0a2014-07-18 11:02:19 -0700910 $$(run_test_options)
Nicolas Geoffrayc8f23fc2014-10-28 17:59:47 +0000911 ifneq ($(ART_TEST_ANDROID_ROOT),)
912 run_test_options := --android-root $(ART_TEST_ANDROID_ROOT) $$(run_test_options)
913 endif
Alex Light91de25f2015-10-28 17:00:06 -0700914 ifeq ($(ART_TEST_QUIET),true)
915 run_test_options += --quiet
916 endif
Ian Rogersafd9acc2014-06-17 08:21:54 -0700917$$(run_test_rule_name): PRIVATE_RUN_TEST_OPTIONS := $$(run_test_options)
Sebastien Hertz19ac0272015-02-24 17:39:50 +0100918$$(run_test_rule_name): PRIVATE_JACK_CLASSPATH := $$(jack_classpath)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700919.PHONY: $$(run_test_rule_name)
Yohann Roussel05b91252015-12-09 12:02:46 +0100920$$(run_test_rule_name): $(TEST_ART_RUN_TEST_DEPENDENCIES) $(HOST_OUT_EXECUTABLES)/hprof-conv $$(prereq_rule) | $(TEST_ART_RUN_TEST_ORDERONLY_DEPENDENCIES)
Ian Rogersafd9acc2014-06-17 08:21:54 -0700921 $(hide) $$(call ART_TEST_SKIP,$$@) && \
Sebastien Hertz19ac0272015-02-24 17:39:50 +0100922 DX=$(abspath $(DX)) \
923 JASMIN=$(abspath $(HOST_OUT_EXECUTABLES)/jasmin) \
Andreas Gampe8fda9f22014-10-03 16:15:37 -0700924 SMALI=$(abspath $(HOST_OUT_EXECUTABLES)/smali) \
925 DXMERGER=$(abspath $(HOST_OUT_EXECUTABLES)/dexmerger) \
Yohann Rousselcc6bb932016-01-19 23:29:29 +0100926 JACK_VERSION=$(JACK_DEFAULT_VERSION) \
Sebastien Hertz19ac0272015-02-24 17:39:50 +0100927 JACK=$(abspath $(JACK)) \
Yohann Rousselaaa779a2016-01-19 17:07:18 +0100928 JACK_VERSION=$(JACK_DEFAULT_VERSION) \
Sebastien Hertz19ac0272015-02-24 17:39:50 +0100929 JACK_CLASSPATH=$$(PRIVATE_JACK_CLASSPATH) \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000930 art/test/run-test $$(PRIVATE_RUN_TEST_OPTIONS) $(12) \
Ian Rogersafd9acc2014-06-17 08:21:54 -0700931 && $$(call ART_TEST_PASSED,$$@) || $$(call ART_TEST_FAILED,$$@)
932 $$(hide) (echo $(MAKECMDGOALS) | grep -q $$@ && \
933 echo "run-test run as top-level target, removing test directory $(ART_HOST_TEST_DIR)" && \
934 rm -r $(ART_HOST_TEST_DIR)) || true
935
Ian Rogersf5c44b32014-08-19 16:52:36 -0700936 $$(foreach test_group,$$(test_groups), $$(eval $$(value test_group) += $$(run_test_rule_name)))
Ian Rogersafd9acc2014-06-17 08:21:54 -0700937
938 # Clear locally defined variables.
Ian Rogersf5c44b32014-08-19 16:52:36 -0700939 uc_host_or_target :=
940 test_groups :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700941 run_test_options :=
942 run_test_rule_name :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700943 prereq_rule :=
Sebastien Hertz19ac0272015-02-24 17:39:50 +0100944 jack_classpath :=
Ian Rogersafd9acc2014-06-17 08:21:54 -0700945endef # define-test-art-run-test
946
Ian Rogersf5c44b32014-08-19 16:52:36 -0700947$(foreach target, $(TARGET_TYPES), \
948 $(foreach test, $(TEST_ART_RUN_TESTS), \
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100949 $(foreach run_type, $(RUN_TYPES), \
950 $(foreach address_size, $(ADDRESS_SIZES_$(call name-to-var,$(target))), \
951 $(foreach prebuild, $(PREBUILD_TYPES), \
952 $(foreach compiler, $(COMPILER_TYPES), \
953 $(foreach relocate, $(RELOCATE_TYPES), \
954 $(foreach trace, $(TRACE_TYPES), \
955 $(foreach gc, $(GC_TYPES), \
956 $(foreach jni, $(JNI_TYPES), \
957 $(foreach image, $(IMAGE_TYPES), \
Andreas Gampec23c9c92014-10-28 14:47:25 -0700958 $(foreach pictest, $(PICTEST_TYPES), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000959 $(foreach debuggable, $(DEBUGGABLE_TYPES), \
960 $(eval $(call define-test-art-run-test,$(target),$(run_type),$(prebuild),$(compiler),$(relocate),$(trace),$(gc),$(jni),$(image),$(pictest),$(debuggable),$(test),$(address_size))) \
961 )))))))))))))
Ian Rogersf5c44b32014-08-19 16:52:36 -0700962define-test-art-run-test :=
Ian Rogersf5c44b32014-08-19 16:52:36 -0700963
Ian Rogersafd9acc2014-06-17 08:21:54 -0700964# Define a phony rule whose purpose is to test its prerequisites.
Ian Rogersf5c44b32014-08-19 16:52:36 -0700965# $(1): host or target
Ian Rogersafd9acc2014-06-17 08:21:54 -0700966# $(2): list of prerequisites
Ian Rogersf5c44b32014-08-19 16:52:36 -0700967define define-test-art-run-test-group
Ian Rogersafd9acc2014-06-17 08:21:54 -0700968.PHONY: $(1)
969$(1): $(2)
970 $(hide) $$(call ART_TEST_PREREQ_FINISHED,$$@)
971
Ian Rogersafd9acc2014-06-17 08:21:54 -0700972endef # define-test-art-run-test-group
973
Ian Rogersafd9acc2014-06-17 08:21:54 -0700974
Ian Rogersf5c44b32014-08-19 16:52:36 -0700975$(foreach target, $(TARGET_TYPES), $(eval \
976 $(call define-test-art-run-test-group,test-art-$(target)-run-test,$(ART_RUN_TEST_$(call name-to-var,$(target))_RULES))))
977$(foreach target, $(TARGET_TYPES), \
978 $(foreach prebuild, $(PREBUILD_TYPES), $(eval \
979 $(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)))))
980$(foreach target, $(TARGET_TYPES), \
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +0100981 $(foreach run-type, $(RUN_TYPES), $(eval \
982 $(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)))))
983$(foreach target, $(TARGET_TYPES), \
Ian Rogersf5c44b32014-08-19 16:52:36 -0700984 $(foreach compiler, $(COMPILER_TYPES), $(eval \
985 $(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)))))
986$(foreach target, $(TARGET_TYPES), \
987 $(foreach relocate, $(RELOCATE_TYPES), $(eval \
988 $(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)))))
989$(foreach target, $(TARGET_TYPES), \
990 $(foreach trace, $(TRACE_TYPES), $(eval \
991 $(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)))))
992$(foreach target, $(TARGET_TYPES), \
993 $(foreach gc, $(GC_TYPES), $(eval \
994 $(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)))))
995$(foreach target, $(TARGET_TYPES), \
996 $(foreach jni, $(JNI_TYPES), $(eval \
997 $(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)))))
998$(foreach target, $(TARGET_TYPES), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +0000999 $(foreach debuggable, $(DEBUGGABLE_TYPES), $(eval \
1000 $(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)))))
1001$(foreach target, $(TARGET_TYPES), \
Alex Light03a112d2014-08-25 13:25:56 -07001002 $(foreach image, $(IMAGE_TYPES), $(eval \
1003 $(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)))))
1004$(foreach target, $(TARGET_TYPES), \
Ian Rogersf5c44b32014-08-19 16:52:36 -07001005 $(foreach test, $(TEST_ART_RUN_TESTS), $(eval \
1006 $(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)))))
1007$(foreach target, $(TARGET_TYPES), \
Ian Rogers86df3ac2014-08-27 10:54:11 -07001008 $(foreach address_size, $(ADDRESS_SIZES_$(call name-to-var,$(target))), $(eval \
Ian Rogersa3cf6ce2014-10-02 16:35:52 -07001009 $(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 Rogersafd9acc2014-06-17 08:21:54 -07001010
Ian Rogersf5c44b32014-08-19 16:52:36 -07001011# Clear variables now we're finished with them.
1012$(foreach target, $(TARGET_TYPES), $(eval ART_RUN_TEST_$(call name-to-var,$(target))_RULES :=))
1013$(foreach target, $(TARGET_TYPES), \
1014 $(foreach prebuild, $(PREBUILD_TYPES), \
1015 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(prebuild))_RULES :=)))
1016$(foreach target, $(TARGET_TYPES), \
1017 $(foreach compiler, $(COMPILER_TYPES), \
1018 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(compiler))_RULES :=)))
1019$(foreach target, $(TARGET_TYPES), \
1020 $(foreach relocate, $(RELOCATE_TYPES), \
1021 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(relocate))_RULES :=)))
1022$(foreach target, $(TARGET_TYPES), \
1023 $(foreach trace, $(TRACE_TYPES), \
1024 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(trace))_RULES :=)))
1025$(foreach target, $(TARGET_TYPES), \
1026 $(foreach gc, $(GC_TYPES), \
1027 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(gc))_RULES :=)))
1028$(foreach target, $(TARGET_TYPES), \
1029 $(foreach jni, $(JNI_TYPES), \
1030 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(jni))_RULES :=)))
1031$(foreach target, $(TARGET_TYPES), \
Nicolas Geoffray43c162f2015-03-09 12:21:26 +00001032 $(foreach debuggable, $(DEBUGGABLE_TYPES), \
1033 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(debuggable))_RULES :=)))
1034$(foreach target, $(TARGET_TYPES), \
Alex Light03a112d2014-08-25 13:25:56 -07001035 $(foreach image, $(IMAGE_TYPES), \
1036 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(image))_RULES :=)))
1037$(foreach target, $(TARGET_TYPES), \
Ian Rogersf5c44b32014-08-19 16:52:36 -07001038 $(foreach test, $(TEST_ART_RUN_TESTS), \
1039 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(test))_RULES :=)))
1040$(foreach target, $(TARGET_TYPES), \
1041 $(foreach address_size, $(ALL_ADDRESS_SIZES), \
1042 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(address_size))_RULES :=)))
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +01001043$(foreach target, $(TARGET_TYPES), \
1044 $(foreach run_type, $(RUN_TYPES), \
1045 $(eval ART_RUN_TEST_$(call name-to-var,$(target))_$(call name-to-var,$(run_type))_RULES :=)))
Ian Rogersafd9acc2014-06-17 08:21:54 -07001046define-test-art-run-test-group :=
Ian Rogersf5c44b32014-08-19 16:52:36 -07001047TARGET_TYPES :=
1048PREBUILD_TYPES :=
1049COMPILER_TYPES :=
1050RELOCATE_TYPES :=
1051TRACE_TYPES :=
1052GC_TYPES :=
1053JNI_TYPES :=
Alex Light03a112d2014-08-25 13:25:56 -07001054IMAGE_TYPES :=
Ian Rogers86df3ac2014-08-27 10:54:11 -07001055ADDRESS_SIZES_TARGET :=
1056ADDRESS_SIZES_HOST :=
Ian Rogersf5c44b32014-08-19 16:52:36 -07001057ALL_ADDRESS_SIZES :=
Nicolas Geoffraybd2c63c2014-10-16 18:04:12 +01001058RUN_TYPES :=
Nicolas Geoffray43c162f2015-03-09 12:21:26 +00001059DEBUGGABLE_TYPES :=
Ian Rogers9fcaa4b2014-08-26 19:59:52 -07001060
1061include $(LOCAL_PATH)/Android.libarttest.mk
1062include art/test/Android.libnativebridgetest.mk