blob: bf15709e119ceceaa774b018f7a4ea92acdf18de [file] [log] [blame]
Brian Muramatsu320a7a12010-07-08 16:37:21 -07001# Copyright (C) 2010 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
Brian Muramatsube775f52012-01-10 18:26:00 -080015cts_security_apps_list := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030016 CtsAppAccessData \
17 CtsAppWithData \
Jeff Sharkey3c4d2fc2014-10-10 11:40:22 -070018 CtsDocumentProvider \
19 CtsDocumentClient \
Mika Isojärvi84e65932014-09-11 18:11:07 +030020 CtsExternalStorageApp \
21 CtsInstrumentationAppDiffCert \
22 CtsPermissionDeclareApp \
23 CtsPermissionDeclareAppCompat \
24 CtsReadExternalStorageApp \
25 CtsSharedUidInstall \
26 CtsSharedUidInstallDiffCert \
27 CtsSimpleAppInstall \
28 CtsSimpleAppInstallDiffCert \
Jeff Sharkey6302bb52014-10-07 12:09:40 -070029 CtsSplitApp \
30 CtsSplitApp_x86 \
31 CtsSplitApp_x86_64 \
32 CtsSplitApp_armeabi-v7a \
33 CtsSplitApp_armeabi \
34 CtsSplitApp_arm64-v8a \
35 CtsSplitApp_mips64 \
36 CtsSplitApp_mips \
Jeff Sharkeycd627da2014-12-10 14:31:12 -080037 CtsSplitAppDiffRevision \
Jeff Sharkey6302bb52014-10-07 12:09:40 -070038 CtsSplitAppDiffVersion \
39 CtsSplitAppDiffCert \
Jeff Sharkeyd724a392014-10-08 16:37:51 -070040 CtsSplitAppFeature \
Mika Isojärvi84e65932014-09-11 18:11:07 +030041 CtsTargetInstrumentationApp \
42 CtsUsePermissionDiffCert \
43 CtsWriteExternalStorageApp \
44 CtsMultiUserStorageApp
Brian Muramatsu320a7a12010-07-08 16:37:21 -070045
dcashmane84939a2014-08-21 15:33:24 -070046cts_security_keysets_list := \
47 CtsKeySetTestApp \
48 CtsKeySetPermDefSigningA \
49 CtsKeySetPermDefSigningB\
50 CtsKeySetPermUseSigningA \
51 CtsKeySetPermUseSigningB \
52 CtsKeySetSigningAUpgradeA \
53 CtsKeySetSigningBUpgradeA \
54 CtsKeySetSigningAUpgradeAAndB \
55 CtsKeySetSigningAUpgradeAOrB \
56 CtsKeySetSigningAUpgradeB \
57 CtsKeySetSigningBUpgradeB \
58 CtsKeySetSigningAAndBUpgradeA \
59 CtsKeySetSigningAAndCUpgradeB \
dcashmanf7050df2015-05-22 12:19:41 -070060 CtsKeySetSigningAUpgradeNone \
61 CtsKeySetSharedUserSigningAUpgradeB \
62 CtsKeySetSharedUserSigningBUpgradeB \
63 CtsKeySetSigningABadUpgradeB \
64 CtsKeySetSigningCBadAUpgradeAB \
dcashman851517b2015-06-01 15:09:32 -070065 CtsKeySetSigningANoDefUpgradeB \
66 CtsKeySetSigningAUpgradeEcA \
67 CtsKeySetSigningEcAUpgradeA
dcashmane84939a2014-08-21 15:33:24 -070068
Brian Muramatsube775f52012-01-10 18:26:00 -080069cts_support_packages := \
Stuart Scott1734c7f2014-02-19 17:34:36 -080070 CtsAccelerationTestStubs \
Chenjie Luo15f32be2014-09-25 11:28:03 -070071 CtsAppTestStubs \
Chris Craik66399332015-06-05 16:08:31 -070072 CtsAtraceTestApp \
Rubin Xua21a5642015-03-09 15:50:34 +000073 CtsCertInstallerApp \
Stuart Scott1734c7f2014-02-19 17:34:36 -080074 CtsDeviceAdmin \
Stuart Scotta132af62013-11-07 10:30:32 -080075 CtsDeviceOpenGl \
Zoltan Szatmary-Banb99428e2015-06-24 10:50:26 +010076 CtsWifiConfigCreator \
Esteban Talavera17aafef2014-09-30 17:03:32 +010077 CtsDeviceOwnerApp \
Stuart Scotta132af62013-11-07 10:30:32 -080078 CtsDeviceTaskswitchingAppA \
79 CtsDeviceTaskswitchingAppB \
80 CtsDeviceTaskswitchingControl \
81 CtsDeviceUi \
Lorenzo Colitti33b838b2014-11-16 20:09:24 -080082 CtsHostsideNetworkTestsApp \
Nicolas Prevot7366f3f2014-10-01 13:56:18 +010083 CtsIntentReceiverApp \
Jeff Sharkey8d959c12014-10-14 14:16:31 -070084 CtsIntentSenderApp \
Kenny Guyda652442015-01-26 14:49:13 +000085 CtsLauncherAppsTests \
86 CtsLauncherAppsTestsSupport \
Esteban Talavera17aafef2014-09-30 17:03:32 +010087 CtsManagedProfileApp \
Stuart Scotta132af62013-11-07 10:30:32 -080088 CtsMonkeyApp \
89 CtsMonkeyApp2 \
Vasu Nori2835d692015-07-07 14:22:43 -070090 CtsPermissionApp \
Kenny Guyda652442015-01-26 14:49:13 +000091 CtsSimpleApp \
Esteban Talaverac90f6062015-06-26 12:01:50 +010092 CtsSimplePreMApp \
Stuart Scotta132af62013-11-07 10:30:32 -080093 CtsSomeAccessibilityServices \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -070094 CtsThemeDeviceApp \
Stuart Scotta132af62013-11-07 10:30:32 -080095 TestDeviceSetup \
96 CtsUiAutomatorApp \
97 CtsUsbSerialTestApp \
Vasu Nori4d23c7a2015-06-16 19:37:50 -070098 CtsVoiceInteractionService \
99 CtsVoiceInteractionApp \
Vasu Nori2835d692015-07-07 14:22:43 -0700100 CtsVoiceSettingsService \
dcashmane84939a2014-08-21 15:33:24 -0700101 $(cts_security_apps_list) \
102 $(cts_security_keysets_list)
Brian Muramatsube775f52012-01-10 18:26:00 -0800103
104cts_external_packages := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300105 com.replica.replicaisland \
106 com.drawelements.deqp
Brian Muramatsube775f52012-01-10 18:26:00 -0800107
108# Any APKs that need to be copied to the CTS distribution's testcases
109# directory but do not require an associated test package XML.
110CTS_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300111 $(cts_support_packages) \
112 $(cts_external_packages)
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800113
114# Test packages that require an associated test package XML.
Brian Muramatsube775f52012-01-10 18:26:00 -0800115cts_test_packages := \
Stuart Scotta132af62013-11-07 10:30:32 -0800116 CtsDeviceFilePerf \
117 CtsDeviceUi \
118 CtsDeviceDram \
119 CtsDeviceSimpleCpu \
120 CtsDeviceBrowserBench \
121 CtsDeviceVideoPerf \
122 CtsDeviceOpenGl \
Wonsik Kim37388882014-09-07 12:24:20 +0900123 CtsDeviceTvProviderPerf \
Stuart Scotta132af62013-11-07 10:30:32 -0800124 CtsAccelerationTestCases \
125 CtsAccountManagerTestCases \
126 CtsAccessibilityServiceTestCases \
127 CtsAccessibilityTestCases \
128 CtsAdminTestCases \
Vasu Nori8714b8a2015-07-13 10:39:05 -0700129 CtsAlarmClockTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800130 CtsAnimationTestCases \
131 CtsAppTestCases \
Svet Ganov31510c02014-07-28 00:07:01 -0700132 CtsAppWidgetTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800133 CtsBluetoothTestCases \
134 CtsCalendarcommon2TestCases \
Vasu Nori2835d692015-07-07 14:22:43 -0700135 CtsCallLogTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800136 CtsContentTestCases \
137 CtsDatabaseTestCases \
138 CtsDisplayTestCases \
139 CtsDpiTestCases \
140 CtsDpiTestCases2 \
141 CtsDreamsTestCases \
142 CtsDrmTestCases \
143 CtsEffectTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800144 CtsGestureTestCases \
145 CtsGraphicsTestCases \
146 CtsGraphics2TestCases \
147 CtsHardwareTestCases \
Guang Zhucf5c2542015-03-09 23:13:27 -0700148 CtsJankTestCases \
Matthew Williams547b8162014-10-15 10:18:11 -0700149 CtsJobSchedulerDeviceTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800150 CtsJniTestCases \
151 CtsKeystoreTestCases \
Neil Fuller92b89af2015-04-16 18:21:49 +0100152 CtsLibcoreLegacy22TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800153 CtsLocationTestCases \
Chenjie Luo693ed402014-09-11 15:12:33 -0700154 CtsLocation2TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800155 CtsMediaStressTestCases \
156 CtsMediaTestCases \
Phil Burk4185d112015-06-02 17:23:34 -0700157 CtsMidiTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800158 CtsNativeOpenGLTestCases \
159 CtsNdefTestCases \
160 CtsNetTestCases \
161 CtsOpenGLTestCases \
162 CtsOpenGlPerfTestCases \
163 CtsOsTestCases \
164 CtsPermissionTestCases \
165 CtsPermission2TestCases \
166 CtsPreferenceTestCases \
167 CtsPreference2TestCases \
Svetoslav12c82d42013-12-20 12:34:52 -0800168 CtsPrintTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800169 CtsProviderTestCases \
170 CtsRenderscriptTestCases \
Chenjie Luo74e860b2014-09-08 11:36:02 -0700171 CtsRenderscriptLegacyTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800172 CtsRsCppTestCases \
173 CtsSaxTestCases \
174 CtsSecurityTestCases \
Stuart Scottf67280f2014-09-30 14:07:30 -0700175 CtsSignatureTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800176 CtsSpeechTestCases \
Yorke Leedfca0f42015-06-04 18:47:01 -0700177 CtsTelecomTestCases \
Yorke Lee80eab502015-06-11 15:26:31 -0700178 CtsTelecomTestCases2 \
Stuart Scotta132af62013-11-07 10:30:32 -0800179 CtsTelephonyTestCases \
180 CtsTextTestCases \
181 CtsTextureViewTestCases \
182 CtsThemeTestCases \
George Mount82577ea2015-06-23 11:06:45 -0700183 CtsTransitionTestCases \
Wonsik Kim42fe8892014-08-07 17:05:37 +0900184 CtsTvTestCases \
Svetoslav966b4e92014-03-28 13:41:17 -0700185 CtsUiAutomationTestCases \
Antonio Calabrese16ac3c82014-06-12 13:58:58 -0700186 CtsUiRenderingTestCases \
Adam Lesinski4da0bc02014-07-30 11:52:12 -0700187 CtsUsageStatsTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800188 CtsUtilTestCases \
189 CtsViewTestCases \
Vasu Nori4d23c7a2015-06-16 19:37:50 -0700190 CtsVoiceInteractionTestCases \
Vasu Nori2835d692015-07-07 14:22:43 -0700191 CtsVoiceSettingsTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800192 CtsWebkitTestCases \
193 CtsWidgetTestCases
Brian Muramatsu2f8eead2010-09-24 14:56:43 -0700194
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800195# All APKs that need to be scanned by the coverage utilities.
196CTS_COVERAGE_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300197 $(cts_support_packages) \
198 $(cts_test_packages)
Brian Muramatsu12c86912011-07-21 17:26:46 -0700199
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800200# Host side only tests
Brian Muramatsube775f52012-01-10 18:26:00 -0800201cts_host_libraries := \
Stuart Scotta132af62013-11-07 10:30:32 -0800202 CtsAdbTests \
203 CtsAppSecurityTests \
Chris Craika81eb0f2015-06-03 09:08:44 -0700204 CtsAtraceHostTestCases \
Esteban Talaverab53252a2014-09-17 11:56:52 +0100205 CtsDevicePolicyManagerTestCases \
Roman Dudkoda4fccc2014-11-13 11:27:26 -0800206 CtsDumpsysHostTestCases \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800207 CtsHostJank \
Lorenzo Colitti33b838b2014-11-16 20:09:24 -0800208 CtsHostsideNetworkTests \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800209 CtsHostUi \
Stuart Scotta132af62013-11-07 10:30:32 -0800210 CtsMonkeyTestCases \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700211 CtsThemeHostTestCases \
dcashman5909bcd2014-08-21 15:33:24 -0700212 CtsSecurityHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800213 CtsUsbTests
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800214
Christopher Ferris286aca52014-10-15 18:08:41 -0700215# List of native tests. For 32 bit targets, assumes that there will be
216# one test executable, and it will end in 32. For 64 bit targets, assumes
217# that there will be two executables, one that ends in 32 for the 32
218# bit executable and one that ends in 64 for the 64 bit executable.
219cts_native_tests := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300220 NativeMediaTest_SL \
221 NativeMediaTest_XA \
Narayan Kamathfef43142014-02-14 13:27:22 +0000222
223ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
Christopher Ferris286aca52014-10-15 18:08:41 -0700224cts_native_tests += bionic-unit-tests-cts
Narayan Kamathfef43142014-02-14 13:27:22 +0000225endif
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800226
Brett Chabot87f44512012-11-16 16:00:02 -0800227cts_ui_tests := \
Stuart Scotta132af62013-11-07 10:30:32 -0800228 CtsUiAutomatorTests
229
230cts_device_jars := \
Guang Zhuba2f09c2015-01-26 11:04:08 -0800231 CtsDeviceJank
Svetoslav12c82d42013-12-20 12:34:52 -0800232
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700233cts_target_junit_tests := \
234 CtsJdwp
235
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700236cts_deqp_test_apis := \
Pyry Haulos3d698f22015-04-14 13:52:46 -0700237 egl \
238 gles2 \
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700239 gles3 \
240 gles31
241
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800242# All the files that will end up under the repository/testcases
243# directory of the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800244CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800245 $(call cts-get-package-paths,$(cts_test_packages)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800246 $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800247 $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700248 $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
Stuart Scott0337dbf2015-02-04 10:37:07 -0800249 $(call cts-get-executable-paths,$(cts_device_executables)) \
250 $(call cts-get-native-paths,$(cts_native_tests),32)
Christopher Ferris286aca52014-10-15 18:08:41 -0700251
252ifeq ($(TARGET_IS_64_BIT),true)
253CTS_TEST_CASES += $(call cts-get-native-paths,$(cts_native_tests),64)
254endif
255
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800256# All the XMLs that will end up under the repository/testcases
257# and that need to be created before making the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800258CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800259 $(call cts-get-test-xmls,$(cts_test_packages)) \
Christopher Ferris286aca52014-10-15 18:08:41 -0700260 $(call cts-get-test-xmls,$(cts_native_tests)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700261 $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300262 $(call cts-get-test-xmls,$(cts_ui_tests)) \
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700263 $(call cts-get-deqp-test-xmls,$(cts_deqp_test_apis))
Brett Chabot87f44512012-11-16 16:00:02 -0800264
Brian Muramatsu12c86912011-07-21 17:26:46 -0700265# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamathfef43142014-02-14 13:27:22 +0000266CTS_TOOLS_LIST :=