The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | # Copyright (C) 2008 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 | cts_dir := $(HOST_OUT)/cts |
| 16 | cts_tools_src_dir := cts/tools |
| 17 | |
| 18 | cts_name := android-cts |
| 19 | |
Neil Fuller | 4fdf674 | 2014-05-29 13:18:35 +0100 | [diff] [blame] | 20 | JUNIT_HOST_JAR := $(HOST_OUT_JAVA_LIBRARIES)/junit.jar |
Phil Dubach | 3b7521b | 2009-08-19 16:26:40 -0700 | [diff] [blame] | 21 | HOSTTESTLIB_JAR := $(HOST_OUT_JAVA_LIBRARIES)/hosttestlib.jar |
Brett Chabot | 358b247 | 2011-01-30 15:07:21 -0800 | [diff] [blame] | 22 | TF_JAR := $(HOST_OUT_JAVA_LIBRARIES)/tradefed-prebuilt.jar |
| 23 | CTS_TF_JAR := $(HOST_OUT_JAVA_LIBRARIES)/cts-tradefed.jar |
Tsu Chiang Chuang | 557bada | 2015-02-10 17:47:22 -0800 | [diff] [blame] | 24 | CTS_TF_EXEC_PATH ?= $(HOST_OUT_EXECUTABLES)/cts-tradefed |
Brett Chabot | e847a39 | 2011-02-18 15:13:50 -0800 | [diff] [blame] | 25 | CTS_TF_README_PATH := $(cts_tools_src_dir)/tradefed-host/README |
Brett Chabot | 67bae7f | 2009-06-26 14:41:30 -0700 | [diff] [blame] | 26 | |
Ying Wang | 02d75da | 2012-08-21 11:54:49 -0700 | [diff] [blame] | 27 | VMTESTSTF_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,vm-tests-tf,HOST) |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 28 | VMTESTSTF_JAR := $(VMTESTSTF_INTERMEDIATES)/android.core.vm-tests-tf.jar |
| 29 | |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 30 | # The list of test packages that core-tests (libcore/Android.mk) |
| 31 | # is split into. |
Brian Carlstrom | b6a08f0 | 2010-05-28 17:02:57 -0700 | [diff] [blame] | 32 | CTS_CORE_CASE_LIST := \ |
Brian Carlstrom | af85000 | 2011-05-27 00:04:57 -0700 | [diff] [blame] | 33 | android.core.tests.libcore.package.dalvik \ |
| 34 | android.core.tests.libcore.package.com \ |
Kenny Root | 69c00c9 | 2013-09-05 15:10:44 -0700 | [diff] [blame] | 35 | android.core.tests.libcore.package.conscrypt \ |
Brian Carlstrom | af85000 | 2011-05-27 00:04:57 -0700 | [diff] [blame] | 36 | android.core.tests.libcore.package.sun \ |
| 37 | android.core.tests.libcore.package.tests \ |
| 38 | android.core.tests.libcore.package.org \ |
| 39 | android.core.tests.libcore.package.libcore \ |
Tsu Chiang Chuang | d1f7501 | 2013-08-21 11:46:03 -0700 | [diff] [blame] | 40 | android.core.tests.libcore.package.jsr166 \ |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 41 | android.core.tests.libcore.package.harmony_annotation \ |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 42 | android.core.tests.libcore.package.harmony_java_io \ |
| 43 | android.core.tests.libcore.package.harmony_java_lang \ |
| 44 | android.core.tests.libcore.package.harmony_java_math \ |
| 45 | android.core.tests.libcore.package.harmony_java_net \ |
| 46 | android.core.tests.libcore.package.harmony_java_nio \ |
| 47 | android.core.tests.libcore.package.harmony_java_text \ |
| 48 | android.core.tests.libcore.package.harmony_java_util \ |
| 49 | android.core.tests.libcore.package.harmony_javax_security \ |
Neil Fuller | 4fdf674 | 2014-05-29 13:18:35 +0100 | [diff] [blame] | 50 | android.core.tests.libcore.package.okhttp \ |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 51 | android.core.tests.runner |
| 52 | |
Neil Fuller | 56128c5 | 2015-03-13 14:22:11 +0000 | [diff] [blame] | 53 | # Additional CTS packages for code under libcore |
| 54 | CTS_CORE_CASE_LIST += \ |
| 55 | android.core.tests.libcore.package.tzdata |
| 56 | |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 57 | # The list of test packages that apache-harmony-tests (external/apache-harmony/Android.mk) |
| 58 | # is split into. |
| 59 | CTS_CORE_CASE_LIST += \ |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 60 | android.core.tests.libcore.package.harmony_beans \ |
| 61 | android.core.tests.libcore.package.harmony_logging \ |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 62 | android.core.tests.libcore.package.harmony_prefs \ |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 63 | android.core.tests.libcore.package.harmony_sql |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 64 | |
Tsu Chiang Chuang | bcf11b0 | 2014-06-18 09:59:49 -0700 | [diff] [blame] | 65 | |
| 66 | CTS_TEST_JAR_LIST := \ |
Stuart Scott | 5139ce4 | 2015-01-27 10:49:25 -0800 | [diff] [blame] | 67 | cts-junit \ |
Tsu Chiang Chuang | bcf11b0 | 2014-06-18 09:59:49 -0700 | [diff] [blame] | 68 | CtsJdwp |
| 69 | |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 70 | # Depend on the full package paths rather than the phony targets to avoid |
| 71 | # rebuilding the packages every time. |
| 72 | CTS_CORE_CASES := $(foreach pkg,$(CTS_CORE_CASE_LIST),$(call intermediates-dir-for,APPS,$(pkg))/package.apk) |
Tsu Chiang Chuang | bcf11b0 | 2014-06-18 09:59:49 -0700 | [diff] [blame] | 73 | CTS_TEST_JAR_FILES := $(foreach c,$(CTS_TEST_JAR_LIST),$(call intermediates-dir-for,JAVA_LIBRARIES,$(c))/javalib.jar) |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 74 | |
Brian Muramatsu | fa3d88f | 2010-07-22 14:46:53 -0700 | [diff] [blame] | 75 | -include cts/CtsTestCaseList.mk |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 76 | |
Ying Wang | 89ec798 | 2014-10-01 11:46:30 -0700 | [diff] [blame] | 77 | # A module may have mutliple installed files (e.g. split apks) |
| 78 | CTS_CASE_LIST_APKS := |
Stuart Scott | 5139ce4 | 2015-01-27 10:49:25 -0800 | [diff] [blame] | 79 | $(foreach m, $(CTS_TEST_CASE_LIST),\ |
| 80 | $(foreach fp, $(ALL_MODULES.$(m).BUILT_INSTALLED),\ |
| 81 | $(eval pair := $(subst :,$(space),$(fp)))\ |
| 82 | $(eval CTS_CASE_LIST_APKS += $(CTS_TESTCASES_OUT)/$(notdir $(word 2,$(pair))))))\ |
| 83 | $(foreach m, $(CTS_CORE_CASE_LIST),\ |
Ying Wang | 89ec798 | 2014-10-01 11:46:30 -0700 | [diff] [blame] | 84 | $(foreach fp, $(ALL_MODULES.$(m).BUILT_INSTALLED),\ |
| 85 | $(eval pair := $(subst :,$(space),$(fp)))\ |
| 86 | $(eval built := $(word 1,$(pair)))\ |
Stuart Scott | 5139ce4 | 2015-01-27 10:49:25 -0800 | [diff] [blame] | 87 | $(eval installed := $(CTS_TESTCASES_OUT)/$(notdir $(word 2,$(pair))))\ |
Ying Wang | 89ec798 | 2014-10-01 11:46:30 -0700 | [diff] [blame] | 88 | $(eval $(call copy-one-file, $(built), $(installed)))\ |
| 89 | $(eval CTS_CASE_LIST_APKS += $(installed)))) |
| 90 | |
Stuart Scott | 5139ce4 | 2015-01-27 10:49:25 -0800 | [diff] [blame] | 91 | CTS_CASE_LIST_JARS := |
| 92 | $(foreach m, $(CTS_TEST_JAR_LIST),\ |
| 93 | $(eval CTS_CASE_LIST_JARS += $(CTS_TESTCASES_OUT)/$(m).jar)) |
| 94 | |
dcashman | 49b362d | 2015-05-12 11:31:09 -0700 | [diff] [blame] | 95 | CTS_SHARED_LIBS := |
dcashman | 17412c8 | 2015-04-21 11:25:28 -0700 | [diff] [blame] | 96 | |
Joe Onorato | 8004266 | 2010-06-15 17:29:19 -0400 | [diff] [blame] | 97 | DEFAULT_TEST_PLAN := $(cts_dir)/$(cts_name)/resource/plans |
dcashman | 9d50b54 | 2015-04-22 14:49:23 -0700 | [diff] [blame] | 98 | $(cts_dir)/all_cts_files_stamp: $(CTS_CORE_CASES) $(CTS_TEST_JAR_FILES) $(CTS_TEST_CASES) $(CTS_CASE_LIST_APKS) $(CTS_CASE_LIST_JARS) $(JUNIT_HOST_JAR) $(HOSTTESTLIB_JAR) $(CTS_HOST_LIBRARY_JARS) $(TF_JAR) $(VMTESTSTF_JAR) $(CTS_TF_JAR) $(CTS_TF_EXEC_PATH) $(CTS_TF_README_PATH) $(ADDITIONAL_TF_JARS) $(ACP) $(CTS_SHARED_LIBS) |
Tsu Chiang Chuang | 557bada | 2015-02-10 17:47:22 -0800 | [diff] [blame] | 99 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 100 | # Make necessary directory for CTS |
Brian Muramatsu | 1cf9e0e | 2010-12-06 12:49:13 -0800 | [diff] [blame] | 101 | $(hide) mkdir -p $(TMP_DIR) |
| 102 | $(hide) mkdir -p $(PRIVATE_DIR)/docs |
| 103 | $(hide) mkdir -p $(PRIVATE_DIR)/tools |
| 104 | $(hide) mkdir -p $(PRIVATE_DIR)/repository/testcases |
| 105 | $(hide) mkdir -p $(PRIVATE_DIR)/repository/plans |
Brian Muramatsu | 45a971d | 2010-09-02 12:36:59 -0700 | [diff] [blame] | 106 | # Copy executable and JARs to CTS directory |
Stuart Scott | 5139ce4 | 2015-01-27 10:49:25 -0800 | [diff] [blame] | 107 | $(hide) $(ACP) -fp $(VMTESTSTF_JAR) $(CTS_TESTCASES_OUT) |
Tsu Chiang Chuang | 557bada | 2015-02-10 17:47:22 -0800 | [diff] [blame] | 108 | $(hide) $(ACP) -fp $(HOSTTESTLIB_JAR) $(CTS_HOST_LIBRARY_JARS) $(TF_JAR) $(CTS_TF_JAR) $(CTS_TF_EXEC_PATH) $(ADDITIONAL_TF_JARS) $(CTS_TF_README_PATH) $(PRIVATE_DIR)/tools |
dcashman | 17412c8 | 2015-04-21 11:25:28 -0700 | [diff] [blame] | 109 | $(hide) $(call copy-files-with-structure, $(CTS_SHARED_LIBS),$(HOST_OUT)/,$(PRIVATE_DIR)) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 110 | $(hide) touch $@ |
| 111 | |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 112 | # Generate the test descriptions for the core-tests |
Phil Dubach | c539dbe | 2009-08-07 10:59:04 -0700 | [diff] [blame] | 113 | # Parameters: |
| 114 | # $1 : The output file where the description should be written (without the '.xml' extension) |
| 115 | # $2 : The AndroidManifest.xml corresponding to the test package |
Brian Carlstrom | bb7c6d8 | 2011-04-01 15:45:58 -0700 | [diff] [blame] | 116 | # $3 : The jar file name on PRIVATE_CLASSPATH containing junit tests to search for |
Brian Carlstrom | af85000 | 2011-05-27 00:04:57 -0700 | [diff] [blame] | 117 | # $4 : The package prefix of classes to include, possible empty |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 118 | # $5 : The architecture of the current build |
| 119 | # $6 : The directory containing vogar expectations files |
| 120 | # $7 : The Android.mk corresponding to the test package (required for host-side tests only) |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 121 | define generate-core-test-description |
| 122 | @echo "Generate core-test description ("$(notdir $(1))")" |
Brian Carlstrom | bb7c6d8 | 2011-04-01 15:45:58 -0700 | [diff] [blame] | 123 | $(hide) java -Xmx256M \ |
Neil Fuller | 4fdf674 | 2014-05-29 13:18:35 +0100 | [diff] [blame] | 124 | -Xbootclasspath/a:$(PRIVATE_CLASSPATH):$(JUNIT_HOST_JAR) \ |
| 125 | -classpath $(HOST_OUT_JAVA_LIBRARIES)/descGen.jar:$(HOST_JDK_TOOLS_JAR) \ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 126 | $(PRIVATE_PARAMS) CollectAllTests $(1) $(2) $(3) "$(4)" $(5) $(6) $(7) |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 127 | endef |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 128 | |
Brian Carlstrom | b1dafb1 | 2014-06-18 15:11:01 -0700 | [diff] [blame] | 129 | CORE_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core-libart,,COMMON) |
Kenny Root | dfaf384 | 2013-04-29 13:25:29 -0700 | [diff] [blame] | 130 | CONSCRYPT_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,conscrypt,,COMMON) |
Brian Carlstrom | bb7c6d8 | 2011-04-01 15:45:58 -0700 | [diff] [blame] | 131 | BOUNCYCASTLE_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,bouncycastle,,COMMON) |
| 132 | APACHEXML_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,apache-xml,,COMMON) |
Neil Fuller | 4fdf674 | 2014-05-29 13:18:35 +0100 | [diff] [blame] | 133 | OKHTTP_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,okhttp-nojarjar,,COMMON) |
| 134 | OKHTTPTESTS_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,okhttp-tests-nojarjar,,COMMON) |
| 135 | OKHTTP_REPACKAGED_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,okhttp,,COMMON) |
| 136 | APACHEHARMONYTESTS_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,apache-harmony-tests,,COMMON) |
Brian Carlstrom | bb7c6d8 | 2011-04-01 15:45:58 -0700 | [diff] [blame] | 137 | SQLITEJDBC_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,sqlite-jdbc,,COMMON) |
Brian Carlstrom | d05d74b | 2010-05-28 18:47:17 -0700 | [diff] [blame] | 138 | JUNIT_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core-junit,,COMMON) |
Brian Carlstrom | bb7c6d8 | 2011-04-01 15:45:58 -0700 | [diff] [blame] | 139 | CORETESTS_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core-tests,,COMMON) |
Tsu Chiang Chuang | d1f7501 | 2013-08-21 11:46:03 -0700 | [diff] [blame] | 140 | JSR166TESTS_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,jsr166-tests,,COMMON) |
Kenny Root | 69c00c9 | 2013-09-05 15:10:44 -0700 | [diff] [blame] | 141 | CONSCRYPTTESTS_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,conscrypt-tests,,COMMON) |
Neil Fuller | 56128c5 | 2015-03-13 14:22:11 +0000 | [diff] [blame] | 142 | TZDATAUPDATETESTS_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,tzdata_update-tests,,COMMON) |
Brian Carlstrom | bb7c6d8 | 2011-04-01 15:45:58 -0700 | [diff] [blame] | 143 | |
Neil Fuller | 56128c5 | 2015-03-13 14:22:11 +0000 | [diff] [blame] | 144 | GEN_CLASSPATH := \ |
| 145 | $(CORE_INTERMEDIATES)/classes.jar:$(CONSCRYPT_INTERMEDIATES)/classes.jar:$(BOUNCYCASTLE_INTERMEDIATES)/classes.jar:$(APACHEXML_INTERMEDIATES)/classes.jar:$(APACHEHARMONYTESTS_INTERMEDIATES)/classes.jar:$(OKHTTP_INTERMEDIATES)/classes.jar:$(OKHTTPTESTS_INTERMEDIATES)/classes.jar:$(OKHTTP_REPACKAGED_INTERMEDIATES)/classes.jar:$(JUNIT_INTERMEDIATES)/classes.jar:$(SQLITEJDBC_INTERMEDIATES)/javalib.jar:$(CORETESTS_INTERMEDIATES)/javalib.jar:$(JSR166TESTS_INTERMEDIATES)/javalib.jar:$(CONSCRYPTTESTS_INTERMEDIATES)/javalib.jar:$(TZDATAUPDATETESTS_INTERMEDIATES)/javalib.jar |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 146 | |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 147 | CTS_CORE_XMLS := \ |
| 148 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.dalvik.xml \ |
| 149 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.com.xml \ |
Kenny Root | 69c00c9 | 2013-09-05 15:10:44 -0700 | [diff] [blame] | 150 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.conscrypt.xml \ |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 151 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.sun.xml \ |
| 152 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.tests.xml \ |
| 153 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.org.xml \ |
Tsu Chiang Chuang | d1f7501 | 2013-08-21 11:46:03 -0700 | [diff] [blame] | 154 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.libcore.xml \ |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 155 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.jsr166.xml \ |
| 156 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_annotation.xml \ |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 157 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_io.xml \ |
| 158 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_lang.xml \ |
| 159 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_math.xml \ |
| 160 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_net.xml \ |
| 161 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_nio.xml \ |
| 162 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_text.xml \ |
| 163 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_util.xml \ |
| 164 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_javax_security.xml \ |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 165 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_beans.xml \ |
| 166 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_logging.xml \ |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 167 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_prefs.xml \ |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 168 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_sql.xml \ |
Neil Fuller | 4fdf674 | 2014-05-29 13:18:35 +0100 | [diff] [blame] | 169 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.okhttp.xml \ |
Neil Fuller | 56128c5 | 2015-03-13 14:22:11 +0000 | [diff] [blame] | 170 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.tzdata.xml \ |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 171 | |
| 172 | $(CTS_CORE_XMLS): PRIVATE_CLASSPATH:=$(GEN_CLASSPATH) |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 173 | # Why does this depend on javalib.jar instead of classes.jar? Because |
| 174 | # even though the tool will operate on the classes.jar files, the |
| 175 | # build system requires that dependencies use javalib.jar. If |
| 176 | # javalib.jar is up-to-date, then classes.jar is as well. Depending |
| 177 | # on classes.jar will build the files incorrectly. |
Neil Fuller | 391d4e9 | 2015-04-01 18:02:46 +0100 | [diff] [blame] | 178 | CTS_CORE_XMLS_DEPS := $(CTS_CORE_CASES) $(HOST_OUT_JAVA_LIBRARIES)/descGen.jar $(JUNIT_HOST_JAR) $(CORE_INTERMEDIATES)/javalib.jar $(BOUNCYCASTLE_INTERMEDIATES)/javalib.jar $(APACHEXML_INTERMEDIATES)/javalib.jar $(APACHEHARMONYTESTS_INTERMEDIATES)/javalib.jar $(OKHTTP_INTERMEDIATES)/javalib.jar $(OKHTTPTESTS_INTERMEDIATES)/javalib.jar $(OKHTTP_REPACKAGED_INTERMEDIATES)/javalib.jar $(SQLITEJDBC_INTERMEDIATES)/javalib.jar $(JUNIT_INTERMEDIATES)/javalib.jar $(CORETESTS_INTERMEDIATES)/javalib.jar $(JSR166TESTS_INTERMEDIATES)/javalib.jar $(CONSCRYPTTESTS_INTERMEDIATES)/javalib.jar $(TZDATAUPDATETESTS_INTERMEDIATES)/javalib.jar build/core/tasks/cts.mk | $(ACP) |
Ying Wang | 6238cd9 | 2013-07-10 16:58:52 -0700 | [diff] [blame] | 179 | |
| 180 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.dalvik.xml: $(CTS_CORE_XMLS_DEPS) |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 181 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 182 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.dalvik,\ |
Brian Carlstrom | af85000 | 2011-05-27 00:04:57 -0700 | [diff] [blame] | 183 | cts/tests/core/libcore/dalvik/AndroidManifest.xml,\ |
| 184 | $(CORETESTS_INTERMEDIATES)/javalib.jar,dalvik,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 185 | $(TARGET_ARCH),libcore/expectations) |
Ying Wang | 6238cd9 | 2013-07-10 16:58:52 -0700 | [diff] [blame] | 186 | |
| 187 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.com.xml: $(CTS_CORE_XMLS_DEPS) |
| 188 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 189 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.com,\ |
Brian Carlstrom | af85000 | 2011-05-27 00:04:57 -0700 | [diff] [blame] | 190 | cts/tests/core/libcore/com/AndroidManifest.xml,\ |
| 191 | $(CORETESTS_INTERMEDIATES)/javalib.jar,com,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 192 | $(TARGET_ARCH),libcore/expectations) |
Ying Wang | 6238cd9 | 2013-07-10 16:58:52 -0700 | [diff] [blame] | 193 | |
Kenny Root | 69c00c9 | 2013-09-05 15:10:44 -0700 | [diff] [blame] | 194 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.conscrypt.xml: $(CTS_CORE_XMLS_DEPS) |
| 195 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 196 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.conscrypt,\ |
| 197 | cts/tests/core/libcore/conscrypt/AndroidManifest.xml,\ |
| 198 | $(CONSCRYPTTESTS_INTERMEDIATES)/javalib.jar,,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 199 | $(TARGET_ARCH),libcore/expectations) |
Kenny Root | 69c00c9 | 2013-09-05 15:10:44 -0700 | [diff] [blame] | 200 | |
Ying Wang | 6238cd9 | 2013-07-10 16:58:52 -0700 | [diff] [blame] | 201 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.sun.xml: $(CTS_CORE_XMLS_DEPS) |
| 202 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 203 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.sun,\ |
Brian Carlstrom | af85000 | 2011-05-27 00:04:57 -0700 | [diff] [blame] | 204 | cts/tests/core/libcore/sun/AndroidManifest.xml,\ |
| 205 | $(CORETESTS_INTERMEDIATES)/javalib.jar,sun,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 206 | $(TARGET_ARCH),libcore/expectations) |
Ying Wang | 6238cd9 | 2013-07-10 16:58:52 -0700 | [diff] [blame] | 207 | |
| 208 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.tests.xml: $(CTS_CORE_XMLS_DEPS) |
| 209 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 210 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.tests,\ |
Brian Carlstrom | af85000 | 2011-05-27 00:04:57 -0700 | [diff] [blame] | 211 | cts/tests/core/libcore/tests/AndroidManifest.xml,\ |
| 212 | $(CORETESTS_INTERMEDIATES)/javalib.jar,tests,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 213 | $(TARGET_ARCH),libcore/expectations) |
Ying Wang | 6238cd9 | 2013-07-10 16:58:52 -0700 | [diff] [blame] | 214 | |
| 215 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.org.xml: $(CTS_CORE_XMLS_DEPS) |
| 216 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 217 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.org,\ |
Brian Carlstrom | af85000 | 2011-05-27 00:04:57 -0700 | [diff] [blame] | 218 | cts/tests/core/libcore/org/AndroidManifest.xml,\ |
Narayan Kamath | cf7fbcd | 2015-06-01 14:45:55 +0100 | [diff] [blame] | 219 | $(CORETESTS_INTERMEDIATES)/javalib.jar,\ |
| 220 | org.w3c.domts:\ |
| 221 | org.apache.harmony.security.tests:\ |
| 222 | org.apache.harmony.nio.tests:\ |
| 223 | org.apache.harmony.crypto.tests:\ |
| 224 | org.apache.harmony.regex.tests:\ |
| 225 | org.apache.harmony.luni.tests:\ |
| 226 | org.apache.harmony.tests.internal.net.www.protocol:\ |
| 227 | org.apache.harmony.tests.javax.net:\ |
| 228 | org.json,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 229 | $(TARGET_ARCH),libcore/expectations) |
Ying Wang | 6238cd9 | 2013-07-10 16:58:52 -0700 | [diff] [blame] | 230 | |
| 231 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.libcore.xml: $(CTS_CORE_XMLS_DEPS) |
| 232 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 233 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.libcore,\ |
Brian Carlstrom | af85000 | 2011-05-27 00:04:57 -0700 | [diff] [blame] | 234 | cts/tests/core/libcore/libcore/AndroidManifest.xml,\ |
| 235 | $(CORETESTS_INTERMEDIATES)/javalib.jar,libcore,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 236 | $(TARGET_ARCH),libcore/expectations) |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 237 | |
Tsu Chiang Chuang | d1f7501 | 2013-08-21 11:46:03 -0700 | [diff] [blame] | 238 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.jsr166.xml: $(CTS_CORE_XMLS_DEPS) |
| 239 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 240 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.jsr166,\ |
| 241 | cts/tests/core/libcore/jsr166/AndroidManifest.xml,\ |
| 242 | $(JSR166TESTS_INTERMEDIATES)/javalib.jar,jsr166,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 243 | $(TARGET_ARCH),libcore/expectations) |
Tsu Chiang Chuang | d1f7501 | 2013-08-21 11:46:03 -0700 | [diff] [blame] | 244 | |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 245 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_annotation.xml: $(CTS_CORE_XMLS_DEPS) |
| 246 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 247 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_annotation,\ |
| 248 | cts/tests/core/libcore/harmony_annotation/AndroidManifest.xml,\ |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 249 | $(CORETESTS_INTERMEDIATES)/javalib.jar,org.apache.harmony.annotation.tests,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 250 | $(TARGET_ARCH),libcore/expectations) |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 251 | |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 252 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_io.xml: $(CTS_CORE_XMLS_DEPS) |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 253 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 254 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_io,\ |
| 255 | cts/tests/core/libcore/harmony_java_io/AndroidManifest.xml,\ |
| 256 | $(CORETESTS_INTERMEDIATES)/javalib.jar,org.apache.harmony.tests.java.io,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 257 | $(TARGET_ARCH),libcore/expectations) |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 258 | |
| 259 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_lang.xml: $(CTS_CORE_XMLS_DEPS) |
| 260 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 261 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_lang,\ |
| 262 | cts/tests/core/libcore/harmony_java_lang/AndroidManifest.xml,\ |
| 263 | $(CORETESTS_INTERMEDIATES)/javalib.jar,org.apache.harmony.tests.java.lang,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 264 | $(TARGET_ARCH),libcore/expectations) |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 265 | |
| 266 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_math.xml: $(CTS_CORE_XMLS_DEPS) |
| 267 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 268 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_math,\ |
| 269 | cts/tests/core/libcore/harmony_java_math/AndroidManifest.xml,\ |
| 270 | $(CORETESTS_INTERMEDIATES)/javalib.jar,org.apache.harmony.tests.java.math,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 271 | $(TARGET_ARCH),libcore/expectations) |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 272 | |
| 273 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_net.xml: $(CTS_CORE_XMLS_DEPS) |
| 274 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 275 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_net,\ |
| 276 | cts/tests/core/libcore/harmony_java_net/AndroidManifest.xml,\ |
| 277 | $(CORETESTS_INTERMEDIATES)/javalib.jar,org.apache.harmony.tests.java.net,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 278 | $(TARGET_ARCH),libcore/expectations) |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 279 | |
| 280 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_nio.xml: $(CTS_CORE_XMLS_DEPS) |
| 281 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 282 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_nio,\ |
| 283 | cts/tests/core/libcore/harmony_java_nio/AndroidManifest.xml,\ |
| 284 | $(CORETESTS_INTERMEDIATES)/javalib.jar,org.apache.harmony.tests.java.nio,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 285 | $(TARGET_ARCH),libcore/expectations) |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 286 | |
| 287 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_text.xml: $(CTS_CORE_XMLS_DEPS) |
| 288 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 289 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_text,\ |
| 290 | cts/tests/core/libcore/harmony_java_text/AndroidManifest.xml,\ |
| 291 | $(CORETESTS_INTERMEDIATES)/javalib.jar,org.apache.harmony.tests.java.text,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 292 | $(TARGET_ARCH),libcore/expectations) |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 293 | |
| 294 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_util.xml: $(CTS_CORE_XMLS_DEPS) |
| 295 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 296 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_java_util,\ |
| 297 | cts/tests/core/libcore/harmony_java_util/AndroidManifest.xml,\ |
| 298 | $(CORETESTS_INTERMEDIATES)/javalib.jar,org.apache.harmony.tests.java.util,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 299 | $(TARGET_ARCH),libcore/expectations) |
Narayan Kamath | 13a3fe8 | 2013-12-31 15:15:41 +0000 | [diff] [blame] | 300 | |
| 301 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_javax_security.xml: $(CTS_CORE_XMLS_DEPS) |
| 302 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 303 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_javax_security,\ |
| 304 | cts/tests/core/libcore/harmony_javax_security/AndroidManifest.xml,\ |
| 305 | $(CORETESTS_INTERMEDIATES)/javalib.jar,org.apache.harmony.tests.javax.security,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 306 | $(TARGET_ARCH),libcore/expectations) |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 307 | |
| 308 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_beans.xml: $(CTS_CORE_XMLS_DEPS) |
| 309 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 310 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_beans,\ |
| 311 | cts/tests/core/libcore/harmony_beans/AndroidManifest.xml,\ |
Neil Fuller | 4fdf674 | 2014-05-29 13:18:35 +0100 | [diff] [blame] | 312 | $(APACHEHARMONYTESTS_INTERMEDIATES)/javalib.jar,com.android.org.apache.harmony.beans,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 313 | $(TARGET_ARCH),libcore/expectations external/apache-harmony/Android.mk) |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 314 | |
| 315 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_logging.xml: $(CTS_CORE_XMLS_DEPS) |
| 316 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 317 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_logging,\ |
| 318 | cts/tests/core/libcore/harmony_logging/AndroidManifest.xml,\ |
Neil Fuller | 4fdf674 | 2014-05-29 13:18:35 +0100 | [diff] [blame] | 319 | $(APACHEHARMONYTESTS_INTERMEDIATES)/javalib.jar,com.android.org.apache.harmony.logging,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 320 | $(TARGET_ARCH),libcore/expectations external/apache-harmony/Android.mk) |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 321 | |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 322 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_prefs.xml: $(CTS_CORE_XMLS_DEPS) |
| 323 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 324 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_prefs,\ |
| 325 | cts/tests/core/libcore/harmony_prefs/AndroidManifest.xml,\ |
Neil Fuller | 4fdf674 | 2014-05-29 13:18:35 +0100 | [diff] [blame] | 326 | $(APACHEHARMONYTESTS_INTERMEDIATES)/javalib.jar,com.android.org.apache.harmony.prefs,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 327 | $(TARGET_ARCH),libcore/expectations external/apache-harmony/Android.mk) |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 328 | |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 329 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_sql.xml: $(CTS_CORE_XMLS_DEPS) |
| 330 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 331 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.harmony_sql,\ |
| 332 | cts/tests/core/libcore/harmony_sql/AndroidManifest.xml,\ |
Neil Fuller | 4fdf674 | 2014-05-29 13:18:35 +0100 | [diff] [blame] | 333 | $(APACHEHARMONYTESTS_INTERMEDIATES)/javalib.jar,com.android.org.apache.harmony.sql,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 334 | $(TARGET_ARCH),libcore/expectations external/apache-harmony/Android.mk) |
Tsu Chiang Chuang | 6b874c9 | 2012-10-24 16:47:49 -0700 | [diff] [blame] | 335 | |
Neil Fuller | 4fdf674 | 2014-05-29 13:18:35 +0100 | [diff] [blame] | 336 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.okhttp.xml: $(CTS_CORE_XMLS_DEPS) |
| 337 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 338 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.okhttp,\ |
| 339 | cts/tests/core/libcore/okhttp/AndroidManifest.xml,\ |
| 340 | $(OKHTTPTESTS_INTERMEDIATES)/javalib.jar,,\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 341 | $(TARGET_ARCH),libcore/expectations) |
Neil Fuller | 4fdf674 | 2014-05-29 13:18:35 +0100 | [diff] [blame] | 342 | |
Neil Fuller | 56128c5 | 2015-03-13 14:22:11 +0000 | [diff] [blame] | 343 | $(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.tzdata.xml: $(CTS_CORE_XMLS_DEPS) |
| 344 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 345 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.tests.libcore.package.tzdata,\ |
| 346 | cts/tests/core/libcore/tzdata/AndroidManifest.xml,\ |
| 347 | $(TZDATAUPDATETESTS_INTERMEDIATES)/javalib.jar,,\ |
| 348 | $(TARGET_ARCH),libcore/expectations) |
| 349 | |
Tsu Chiang Chuang | 9d047ac | 2011-04-27 17:01:32 -0700 | [diff] [blame] | 350 | # ----- Generate the test descriptions for the vm-tests-tf ----- |
| 351 | # |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 352 | CORE_VM_TEST_TF_DESC := $(CTS_TESTCASES_OUT)/android.core.vm-tests-tf.xml |
Tsu Chiang Chuang | 9d047ac | 2011-04-27 17:01:32 -0700 | [diff] [blame] | 353 | |
Tsu Chiang Chuang | 9d047ac | 2011-04-27 17:01:32 -0700 | [diff] [blame] | 354 | # core tests only needed to get hold of junit-framework-classes |
Neil Fuller | c61caf1 | 2014-06-19 11:21:08 +0100 | [diff] [blame] | 355 | CORE_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core-libart,,COMMON) |
Tsu Chiang Chuang | 9d047ac | 2011-04-27 17:01:32 -0700 | [diff] [blame] | 356 | JUNIT_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core-junit,,COMMON) |
| 357 | |
Brett Chabot | cf1d2b1 | 2014-09-25 12:38:36 -0700 | [diff] [blame] | 358 | GEN_CLASSPATH := $(CORE_INTERMEDIATES)/classes.jar:$(JUNIT_INTERMEDIATES)/classes.jar:$(VMTESTSTF_JAR):$(TF_JAR) |
Tsu Chiang Chuang | 9d047ac | 2011-04-27 17:01:32 -0700 | [diff] [blame] | 359 | |
| 360 | $(CORE_VM_TEST_TF_DESC): PRIVATE_CLASSPATH:=$(GEN_CLASSPATH) |
| 361 | # Please see big comment above on why this line depends on javalib.jar instead of classes.jar |
Brett Chabot | cf1d2b1 | 2014-09-25 12:38:36 -0700 | [diff] [blame] | 362 | $(CORE_VM_TEST_TF_DESC): $(HOST_OUT_JAVA_LIBRARIES)/descGen.jar $(JUNIT_HOST_JAR) $(CORE_INTERMEDIATES)/javalib.jar $(JUNIT_INTERMEDIATES)/javalib.jar $(VMTESTSTF_JAR) | $(ACP) |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 363 | $(hide) mkdir -p $(CTS_TESTCASES_OUT) |
| 364 | $(call generate-core-test-description,$(CTS_TESTCASES_OUT)/android.core.vm-tests-tf,\ |
Tsu Chiang Chuang | 9d047ac | 2011-04-27 17:01:32 -0700 | [diff] [blame] | 365 | cts/tests/vm-tests-tf/AndroidManifest.xml,\ |
Brian Muramatsu | c0a6924 | 2012-01-05 18:24:43 -0800 | [diff] [blame] | 366 | $(VMTESTSTF_JAR),"",\ |
Stuart Scott | f06c6ef | 2014-10-08 19:01:37 -0700 | [diff] [blame] | 367 | $(TARGET_ARCH),\ |
Tsu Chiang Chuang | 9d047ac | 2011-04-27 17:01:32 -0700 | [diff] [blame] | 368 | libcore/expectations,\ |
| 369 | cts/tools/vm-tests-tf/Android.mk) |
Brian Muramatsu | 237fa07 | 2011-12-12 23:54:49 -0800 | [diff] [blame] | 370 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 371 | # Generate the default test plan for User. |
Phil Dubach | 5e3ab04 | 2009-08-14 13:48:34 -0700 | [diff] [blame] | 372 | # Usage: buildCts.py <testRoot> <ctsOutputDir> <tempDir> <androidRootDir> <docletPath> |
Brian Muramatsu | 237fa07 | 2011-12-12 23:54:49 -0800 | [diff] [blame] | 373 | |
Stuart Scott | 5139ce4 | 2015-01-27 10:49:25 -0800 | [diff] [blame] | 374 | $(DEFAULT_TEST_PLAN): $(cts_dir)/all_cts_files_stamp $(cts_tools_src_dir)/utils/buildCts.py $(HOST_OUT_JAVA_LIBRARIES)/descGen.jar $(CTS_CORE_XMLS) $(CTS_TEST_XMLS) $(CORE_VM_TEST_TF_DESC) |
Phil Dubach | 5e3ab04 | 2009-08-14 13:48:34 -0700 | [diff] [blame] | 375 | $(hide) $(cts_tools_src_dir)/utils/buildCts.py cts/tests/tests/ $(PRIVATE_DIR) $(TMP_DIR) \ |
| 376 | $(TOP) $(HOST_OUT_JAVA_LIBRARIES)/descGen.jar |
Ying Wang | 51a1ae1 | 2013-07-10 11:33:27 -0700 | [diff] [blame] | 377 | $(hide) mkdir -p $(dir $@) && touch $@ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 378 | |
| 379 | # Package CTS and clean up. |
| 380 | # |
| 381 | # TODO: |
| 382 | # Pack cts.bat into the same zip file as well. See http://buganizer/issue?id=1656821 for more details |
| 383 | INTERNAL_CTS_TARGET := $(cts_dir)/$(cts_name).zip |
| 384 | $(INTERNAL_CTS_TARGET): PRIVATE_NAME := $(cts_name) |
| 385 | $(INTERNAL_CTS_TARGET): PRIVATE_CTS_DIR := $(cts_dir) |
| 386 | $(INTERNAL_CTS_TARGET): PRIVATE_DIR := $(cts_dir)/$(cts_name) |
| 387 | $(INTERNAL_CTS_TARGET): TMP_DIR := $(cts_dir)/temp |
Brian Muramatsu | 5fc0057 | 2011-12-16 13:07:15 -0800 | [diff] [blame] | 388 | $(INTERNAL_CTS_TARGET): $(cts_dir)/all_cts_files_stamp $(DEFAULT_TEST_PLAN) |
Brian Muramatsu | 1cf9e0e | 2010-12-06 12:49:13 -0800 | [diff] [blame] | 389 | $(hide) echo "Package CTS: $@" |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 390 | $(hide) cd $(dir $@) && zip -rq $(notdir $@) $(PRIVATE_NAME) |
| 391 | |
| 392 | .PHONY: cts |
| 393 | cts: $(INTERNAL_CTS_TARGET) adb |
| 394 | $(call dist-for-goals,cts,$(INTERNAL_CTS_TARGET)) |
| 395 | |