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