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 | |
Phil Dubach | 9e35a86 | 2009-05-11 11:00:16 -0700 | [diff] [blame] | 20 | CTS_EXECUTABLE := startcts |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 21 | ifeq ($(HOST_OS),windows) |
| 22 | CTS_EXECUTABLE_PATH := $(cts_tools_src_dir)/host/etc/cts.bat |
| 23 | else |
Phil Dubach | 9e35a86 | 2009-05-11 11:00:16 -0700 | [diff] [blame] | 24 | CTS_EXECUTABLE_PATH := $(cts_tools_src_dir)/utils/$(CTS_EXECUTABLE) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 25 | endif |
| 26 | CTS_HOST_JAR := $(HOST_OUT_JAVA_LIBRARIES)/cts.jar |
| 27 | |
Brett Chabot | 67bae7f | 2009-06-26 14:41:30 -0700 | [diff] [blame] | 28 | junit_host_jar := $(HOST_OUT_JAVA_LIBRARIES)/junit.jar |
| 29 | |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 30 | CTS_CORE_CASE_LIST := android.core.tests.annotation \ |
| 31 | android.core.tests.archive \ |
| 32 | android.core.tests.concurrent \ |
| 33 | android.core.tests.crypto \ |
| 34 | android.core.tests.dom \ |
| 35 | android.core.tests.logging \ |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 36 | android.core.tests.luni.io \ |
| 37 | android.core.tests.luni.lang \ |
| 38 | android.core.tests.luni.net \ |
| 39 | android.core.tests.luni.util \ |
| 40 | android.core.tests.math \ |
| 41 | android.core.tests.nio \ |
| 42 | android.core.tests.nio_char \ |
| 43 | android.core.tests.prefs \ |
| 44 | android.core.tests.regex \ |
| 45 | android.core.tests.security \ |
| 46 | android.core.tests.sql \ |
| 47 | android.core.tests.text \ |
| 48 | android.core.tests.xml \ |
Jorg Pleumann | 6178820 | 2009-05-07 01:33:14 -0700 | [diff] [blame] | 49 | android.core.tests.xnet \ |
| 50 | android.core.tests.runner |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 51 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 52 | CTS_CASE_LIST := \ |
| 53 | DeviceInfoCollector \ |
| 54 | CtsTestStubs \ |
| 55 | CtsAppTestCases \ |
| 56 | CtsContentTestCases \ |
| 57 | CtsDatabaseTestCases \ |
| 58 | CtsGraphicsTestCases \ |
The Android Open Source Project | fdd3a10 | 2009-03-11 12:11:54 -0700 | [diff] [blame] | 59 | CtsHardwareTestCases \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 60 | CtsLocationTestCases \ |
Phil Dubach | 571d0f2 | 2009-07-13 14:47:25 -0700 | [diff] [blame] | 61 | CtsMediaTestCases \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 62 | CtsOsTestCases \ |
The Android Open Source Project | fdd3a10 | 2009-03-11 12:11:54 -0700 | [diff] [blame] | 63 | CtsPermissionTestCases \ |
Brett Chabot | 7b5edc3 | 2009-07-28 20:11:24 -0700 | [diff] [blame] | 64 | CtsPermission2TestCases \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 65 | CtsProviderTestCases \ |
Phil Dubach | 951f3d8 | 2009-07-14 19:11:30 -0700 | [diff] [blame] | 66 | CtsTelephonyTestCases \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 67 | CtsTextTestCases \ |
| 68 | CtsUtilTestCases \ |
| 69 | CtsViewTestCases \ |
Phil Dubach | 951f3d8 | 2009-07-14 19:11:30 -0700 | [diff] [blame] | 70 | CtsWebkitTestCases \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 71 | CtsWidgetTestCases \ |
| 72 | CtsNetTestCases \ |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 73 | SignatureTest \ |
Bill Napier | f23f5b4 | 2009-04-23 10:14:59 -0700 | [diff] [blame] | 74 | CtsPerformanceTestCases \ |
| 75 | CtsPerformance2TestCases \ |
| 76 | CtsPerformance3TestCases \ |
| 77 | CtsPerformance4TestCases \ |
| 78 | CtsPerformance5TestCases \ |
Bill Napier | f22b9a0 | 2009-04-24 18:26:58 -0700 | [diff] [blame] | 79 | ApiDemos \ |
Bill Napier | f23f5b4 | 2009-04-23 10:14:59 -0700 | [diff] [blame] | 80 | ApiDemosReferenceTest \ |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 81 | $(CTS_CORE_CASE_LIST) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 82 | |
| 83 | DEFAULT_TEST_PLAN := $(PRIVATE_DIR)/resource/plans |
| 84 | |
Brett Chabot | 67bae7f | 2009-06-26 14:41:30 -0700 | [diff] [blame] | 85 | $(cts_dir)/all_cts_files_stamp: PRIVATE_JUNIT_HOST_JAR := $(junit_host_jar) |
| 86 | |
| 87 | $(cts_dir)/all_cts_files_stamp: $(CTS_CASE_LIST) $(junit_host_jar) $(ACP) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 88 | # Make necessary directory for CTS |
| 89 | @rm -rf $(PRIVATE_CTS_DIR) |
| 90 | @mkdir -p $(TMP_DIR) |
| 91 | @mkdir -p $(PRIVATE_DIR)/docs |
| 92 | @mkdir -p $(PRIVATE_DIR)/tools |
| 93 | @mkdir -p $(PRIVATE_DIR)/repository/testcases |
| 94 | @mkdir -p $(PRIVATE_DIR)/repository/plans |
| 95 | # Copy executable to CTS directory |
| 96 | $(hide) $(ACP) -fp $(CTS_HOST_JAR) $(PRIVATE_DIR)/tools |
| 97 | $(hide) $(ACP) -fp $(CTS_EXECUTABLE_PATH) $(PRIVATE_DIR)/tools |
Brett Chabot | 67bae7f | 2009-06-26 14:41:30 -0700 | [diff] [blame] | 98 | # Copy junit jar |
| 99 | $(hide) $(ACP) -fp $(PRIVATE_JUNIT_HOST_JAR) $(PRIVATE_DIR)/tools |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 100 | # Change mode of the executables |
| 101 | $(hide) chmod ug+rwX $(PRIVATE_DIR)/tools/$(notdir $(CTS_EXECUTABLE_PATH)) |
| 102 | $(foreach apk,$(CTS_CASE_LIST), \ |
| 103 | $(call copy-testcase-apk,$(apk))) |
Phil Dubach | 9e35a86 | 2009-05-11 11:00:16 -0700 | [diff] [blame] | 104 | # Copy CTS host config to CTS directory |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 105 | $(hide) $(ACP) -fp $(cts_tools_src_dir)/utils/host_config.xml $(PRIVATE_DIR)/repository/ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 106 | $(hide) touch $@ |
| 107 | |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 108 | # Generate the test descriptions for the core-tests |
Phil Dubach | c539dbe | 2009-08-07 10:59:04 -0700 | [diff] [blame^] | 109 | # Parameters: |
| 110 | # $1 : The output file where the description should be written (without the '.xml' extension) |
| 111 | # $2 : The AndroidManifest.xml corresponding to the test package |
| 112 | # $3 : The name of the TestSuite generator class to use |
| 113 | # $4 : 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))")" |
| 116 | $(hide) java $(PRIVATE_JAVAOPTS) \ |
| 117 | -classpath $(PRIVATE_CLASSPATH) \ |
| 118 | $(PRIVATE_PARAMS) CollectAllTests $(1) \ |
Phil Dubach | c539dbe | 2009-08-07 10:59:04 -0700 | [diff] [blame^] | 119 | $(2) $(3) $(4) |
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 | |
| 122 | CORE_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core,,COMMON) |
| 123 | TESTS_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core-tests,,COMMON) |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 124 | GEN_CLASSPATH := $(CORE_INTERMEDIATES)/classes.jar:$(TESTS_INTERMEDIATES)/classes.jar:$(CORE_INTERMEDIATES)/javalib.jar:$(TESTS_INTERMEDIATES)/javalib.jar:$(HOST_OUT_JAVA_LIBRARIES)/descGen.jar:$(HOST_JDK_TOOLS_JAR) |
| 125 | |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 126 | $(cts_dir)/all_cts_core_files_stamp: PRIVATE_CLASSPATH:=$(GEN_CLASSPATH) |
| 127 | $(cts_dir)/all_cts_core_files_stamp: PRIVATE_JAVAOPTS:=-Xmx256M |
| 128 | $(cts_dir)/all_cts_core_files_stamp: PRIVATE_PARAMS:=-Dcts.useSuppliedTestResult=true |
| 129 | $(cts_dir)/all_cts_core_files_stamp: PRIVATE_PARAMS+=-Dcts.useEnhancedJunit=true |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 130 | # Why does this depend on javalib.jar instead of classes.jar? Because |
| 131 | # even though the tool will operate on the classes.jar files, the |
| 132 | # build system requires that dependencies use javalib.jar. If |
| 133 | # javalib.jar is up-to-date, then classes.jar is as well. Depending |
| 134 | # on classes.jar will build the files incorrectly. |
Phil Dubach | ccd2def | 2009-04-27 12:07:38 -0700 | [diff] [blame] | 135 | $(cts_dir)/all_cts_core_files_stamp: $(CTS_CORE_CASE_LIST) $(HOST_OUT_JAVA_LIBRARIES)/descGen.jar $(CORE_INTERMEDIATES)/javalib.jar $(TESTS_INTERMEDIATES)/javalib.jar $(cts_dir)/all_cts_files_stamp | $(ACP) |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 136 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.annotation,\ |
| 137 | cts/tests/core/annotation/AndroidManifest.xml,\ |
| 138 | tests.annotation.AllTests) |
| 139 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.archive,\ |
| 140 | cts/tests/core/archive/AndroidManifest.xml,\ |
| 141 | tests.archive.AllTests) |
| 142 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.concurrent,\ |
| 143 | cts/tests/core/concurrent/AndroidManifest.xml,\ |
| 144 | tests.concurrent.AllTests) |
| 145 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.crypto,\ |
| 146 | cts/tests/core/crypto/AndroidManifest.xml,\ |
| 147 | tests.crypto.AllTests) |
| 148 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.dom,\ |
| 149 | cts/tests/core/dom/AndroidManifest.xml,\ |
| 150 | tests.dom.AllTests) |
| 151 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.logging,\ |
| 152 | cts/tests/core/logging/AndroidManifest.xml,\ |
| 153 | tests.logging.AllTests) |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 154 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.luni.io,\ |
| 155 | cts/tests/core/luni-io/AndroidManifest.xml,\ |
| 156 | tests.luni.AllTestsIo) |
| 157 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.luni.lang,\ |
| 158 | cts/tests/core/luni-lang/AndroidManifest.xml,\ |
| 159 | tests.luni.AllTestsLang) |
| 160 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.luni.net,\ |
| 161 | cts/tests/core/luni-net/AndroidManifest.xml,\ |
| 162 | tests.luni.AllTestsNet) |
| 163 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.luni.util,\ |
| 164 | cts/tests/core/luni-util/AndroidManifest.xml,\ |
| 165 | tests.luni.AllTestsUtil) |
| 166 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.math,\ |
| 167 | cts/tests/core/math/AndroidManifest.xml,\ |
| 168 | tests.math.AllTests) |
| 169 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.nio,\ |
| 170 | cts/tests/core/nio/AndroidManifest.xml,\ |
| 171 | tests.nio.AllTests) |
| 172 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.nio_char,\ |
| 173 | cts/tests/core/nio_char/AndroidManifest.xml,\ |
| 174 | tests.nio_char.AllTests) |
| 175 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.prefs,\ |
| 176 | cts/tests/core/prefs/AndroidManifest.xml,\ |
| 177 | tests.prefs.AllTests) |
| 178 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.regex,\ |
| 179 | cts/tests/core/regex/AndroidManifest.xml,\ |
| 180 | tests.regex.AllTests) |
| 181 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.security,\ |
| 182 | cts/tests/core/security/AndroidManifest.xml,\ |
| 183 | tests.security.AllTests) |
| 184 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.sql,\ |
| 185 | cts/tests/core/sql/AndroidManifest.xml,\ |
| 186 | tests.sql.AllTests) |
| 187 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.text,\ |
| 188 | cts/tests/core/text/AndroidManifest.xml,\ |
| 189 | tests.text.AllTests) |
| 190 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.xml,\ |
| 191 | cts/tests/core/xml/AndroidManifest.xml,\ |
| 192 | tests.xml.AllTests) |
| 193 | $(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.xnet,\ |
| 194 | cts/tests/core/xnet/AndroidManifest.xml,\ |
| 195 | tests.xnet.AllTests) |
| 196 | $(hide) touch $@ |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 197 | |
| 198 | |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 199 | # ----- Generate the test descriptions for the vm-tests ----- |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 200 | # |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 201 | CORE_VM_TEST_DESC := $(cts_dir)/$(cts_name)/repository/testcases/android.core.vm-tests |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 202 | |
| 203 | VMTESTS_INTERMEDIATES :=$(call intermediates-dir-for,EXECUTABLES,vm-tests,1,) |
| 204 | # core tests only needed to get hold of junit-framework-classes |
| 205 | TESTS_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core-tests,,COMMON) |
| 206 | CORE_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core,,COMMON) |
| 207 | |
| 208 | GEN_CLASSPATH := $(CORE_INTERMEDIATES)/classes.jar:$(TESTS_INTERMEDIATES)/classes.jar:$(VMTESTS_INTERMEDIATES)/android.core.vm-tests.jar:$(HOST_OUT_JAVA_LIBRARIES)/descGen.jar:$(HOST_JDK_TOOLS_JAR) |
| 209 | |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 210 | $(CORE_VM_TEST_DESC): PRIVATE_CLASSPATH:=$(GEN_CLASSPATH) |
| 211 | $(CORE_VM_TEST_DESC): PRIVATE_PARAMS:=-Dcts.useSuppliedTestResult=true |
| 212 | $(CORE_VM_TEST_DESC): PRIVATE_PARAMS+=-Dcts.useEnhancedJunit=true |
| 213 | $(CORE_VM_TEST_DESC): PRIVATE_JAVAOPTS:=-Xmx256M |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 214 | # Please see big comment above on why this line depends on javalib.jar instead of classes.jar |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 215 | $(CORE_VM_TEST_DESC): vm-tests $(HOST_OUT_JAVA_LIBRARIES)/descGen.jar $(CORE_INTERMEDIATES)/javalib.jar $(VMTESTS_INTERMEDIATES)/android.core.vm-tests.jar $(TESTS_INTERMEDIATES)/javalib.jar $(cts_dir)/all_cts_files_stamp | $(ACP) |
| 216 | $(call generate-core-test-description,$(CORE_VM_TEST_DESC),\ |
| 217 | cts/tests/vm-tests/AndroidManifest.xml,\ |
| 218 | dot.junit.AllJunitHostTests, cts/tools/vm-tests/Android.mk) |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 219 | $(ACP) -fv $(VMTESTS_INTERMEDIATES)/android.core.vm-tests.jar $(PRIVATE_DIR)/repository/testcases/android.core.vm-tests.jar |
| 220 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 221 | # Generate the default test plan for User. |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 222 | $(DEFAULT_TEST_PLAN): $(cts_dir)/all_cts_files_stamp $(cts_dir)/all_cts_core_files_stamp $(cts_tools_src_dir)/utils/genDefaultTestPlan.sh $(CORE_VM_TEST_DESC) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 223 | $(hide) bash $(cts_tools_src_dir)/utils/genDefaultTestPlan.sh cts/tests/tests/ \ |
| 224 | $(PRIVATE_DIR) $(TMP_DIR) $(TOP) $(TARGET_COMMON_OUT_ROOT) $(OUT_DIR) |
| 225 | |
| 226 | # Package CTS and clean up. |
| 227 | # |
| 228 | # TODO: |
| 229 | # Pack cts.bat into the same zip file as well. See http://buganizer/issue?id=1656821 for more details |
| 230 | INTERNAL_CTS_TARGET := $(cts_dir)/$(cts_name).zip |
| 231 | $(INTERNAL_CTS_TARGET): PRIVATE_NAME := $(cts_name) |
| 232 | $(INTERNAL_CTS_TARGET): PRIVATE_CTS_DIR := $(cts_dir) |
| 233 | $(INTERNAL_CTS_TARGET): PRIVATE_DIR := $(cts_dir)/$(cts_name) |
| 234 | $(INTERNAL_CTS_TARGET): TMP_DIR := $(cts_dir)/temp |
Urs Grob | b3c6b2d | 2009-04-17 11:27:08 -0700 | [diff] [blame] | 235 | $(INTERNAL_CTS_TARGET): $(cts_dir)/all_cts_files_stamp $(DEFAULT_TEST_PLAN) $(CORE_VM_TEST_DESC) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 236 | @echo "Package CTS: $@" |
| 237 | $(hide) cd $(dir $@) && zip -rq $(notdir $@) $(PRIVATE_NAME) |
| 238 | |
| 239 | .PHONY: cts |
| 240 | cts: $(INTERNAL_CTS_TARGET) adb |
| 241 | $(call dist-for-goals,cts,$(INTERNAL_CTS_TARGET)) |
| 242 | |
| 243 | define copy-testcase-apk |
| 244 | |
| 245 | $(hide) $(ACP) -fp $(call intermediates-dir-for,APPS,$(1))/package.apk \ |
| 246 | $(PRIVATE_DIR)/repository/testcases/$(1).apk |
| 247 | |
| 248 | endef |