blob: f7fb011d3f7c6983dcad617a49f2b75b2c5b709c [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 \
Alex Klyubin727fde62015-12-11 15:08:23 -080022 CtsNetSecPolicyUsesCleartextTrafficFalse \
23 CtsNetSecPolicyUsesCleartextTrafficTrue \
24 CtsNetSecPolicyUsesCleartextTrafficUnspecified \
Jeff Sharkeyf5fdad92015-07-13 10:13:27 -070025 CtsUsePermissionApp \
26 CtsUsePermissionAppCompat \
Mika Isojärvi84e65932014-09-11 18:11:07 +030027 CtsPermissionDeclareApp \
28 CtsPermissionDeclareAppCompat \
29 CtsReadExternalStorageApp \
30 CtsSharedUidInstall \
31 CtsSharedUidInstallDiffCert \
32 CtsSimpleAppInstall \
33 CtsSimpleAppInstallDiffCert \
Jeff Sharkey6302bb52014-10-07 12:09:40 -070034 CtsSplitApp \
35 CtsSplitApp_x86 \
36 CtsSplitApp_x86_64 \
37 CtsSplitApp_armeabi-v7a \
38 CtsSplitApp_armeabi \
39 CtsSplitApp_arm64-v8a \
40 CtsSplitApp_mips64 \
41 CtsSplitApp_mips \
Jeff Sharkeycd627da2014-12-10 14:31:12 -080042 CtsSplitAppDiffRevision \
Jeff Sharkey6302bb52014-10-07 12:09:40 -070043 CtsSplitAppDiffVersion \
44 CtsSplitAppDiffCert \
Jeff Sharkeyd724a392014-10-08 16:37:51 -070045 CtsSplitAppFeature \
Mika Isojärvi84e65932014-09-11 18:11:07 +030046 CtsTargetInstrumentationApp \
47 CtsUsePermissionDiffCert \
48 CtsWriteExternalStorageApp \
49 CtsMultiUserStorageApp
Brian Muramatsu320a7a12010-07-08 16:37:21 -070050
dcashmane84939a2014-08-21 15:33:24 -070051cts_security_keysets_list := \
52 CtsKeySetTestApp \
53 CtsKeySetPermDefSigningA \
54 CtsKeySetPermDefSigningB\
55 CtsKeySetPermUseSigningA \
56 CtsKeySetPermUseSigningB \
57 CtsKeySetSigningAUpgradeA \
58 CtsKeySetSigningBUpgradeA \
59 CtsKeySetSigningAUpgradeAAndB \
60 CtsKeySetSigningAUpgradeAOrB \
61 CtsKeySetSigningAUpgradeB \
62 CtsKeySetSigningBUpgradeB \
63 CtsKeySetSigningAAndBUpgradeA \
64 CtsKeySetSigningAAndCUpgradeB \
dcashmanf7050df2015-05-22 12:19:41 -070065 CtsKeySetSigningAUpgradeNone \
66 CtsKeySetSharedUserSigningAUpgradeB \
67 CtsKeySetSharedUserSigningBUpgradeB \
68 CtsKeySetSigningABadUpgradeB \
69 CtsKeySetSigningCBadAUpgradeAB \
dcashman851517b2015-06-01 15:09:32 -070070 CtsKeySetSigningANoDefUpgradeB \
71 CtsKeySetSigningAUpgradeEcA \
72 CtsKeySetSigningEcAUpgradeA
dcashmane84939a2014-08-21 15:33:24 -070073
Carlos Valdivia56d285a2015-07-26 17:19:01 -070074cts_account_support_packages := \
75 CtsUnaffiliatedAccountAuthenticators
76
Brian Muramatsube775f52012-01-10 18:26:00 -080077cts_support_packages := \
Stuart Scott1734c7f2014-02-19 17:34:36 -080078 CtsAccelerationTestStubs \
Vasu Noric397e8e2015-07-20 13:57:30 -070079 CtsAlarmClockService \
Chenjie Luo15f32be2014-09-25 11:28:03 -070080 CtsAppTestStubs \
Alice Leed71a07b2015-07-29 14:30:56 -070081 CtsAssistService \
82 CtsAssistApp \
Chris Craik66399332015-06-05 16:08:31 -070083 CtsAtraceTestApp \
Rubin Xua21a5642015-03-09 15:50:34 +000084 CtsCertInstallerApp \
Grigory Dzhavadyan46ede902015-09-29 17:44:47 -070085 CtsCppToolsApp \
Stuart Scott1734c7f2014-02-19 17:34:36 -080086 CtsDeviceAdmin \
Stuart Scotta132af62013-11-07 10:30:32 -080087 CtsDeviceOpenGl \
Zoltan Szatmary-Banb99428e2015-06-24 10:50:26 +010088 CtsWifiConfigCreator \
Benjamin Franz55cf9742015-07-22 13:41:33 +010089 CtsDeviceAndProfileOwnerApp \
Adam Lesinski6cbd55d2015-08-14 15:59:48 -070090 CtsDeviceAppUsageTestApp \
Agatha Man62a97bf2015-07-14 13:47:47 -070091 CtsDeviceInfo \
Christopher Tateeacd4fd2015-08-17 15:49:12 -070092 CtsDeviceOsTestApp \
Esteban Talavera17aafef2014-09-30 17:03:32 +010093 CtsDeviceOwnerApp \
Stuart Scotta132af62013-11-07 10:30:32 -080094 CtsDeviceTaskswitchingAppA \
95 CtsDeviceTaskswitchingAppB \
96 CtsDeviceTaskswitchingControl \
97 CtsDeviceUi \
Lorenzo Colitti33b838b2014-11-16 20:09:24 -080098 CtsHostsideNetworkTestsApp \
Nicolas Prevot7366f3f2014-10-01 13:56:18 +010099 CtsIntentReceiverApp \
Jeff Sharkey8d959c12014-10-14 14:16:31 -0700100 CtsIntentSenderApp \
Kenny Guyda652442015-01-26 14:49:13 +0000101 CtsLauncherAppsTests \
102 CtsLauncherAppsTestsSupport \
Tatsuhisa Yamaguchi8d808052015-07-10 18:33:22 +0900103 CtsLeanbackJank \
Esteban Talavera17aafef2014-09-30 17:03:32 +0100104 CtsManagedProfileApp \
Stuart Scotta132af62013-11-07 10:30:32 -0800105 CtsMonkeyApp \
106 CtsMonkeyApp2 \
Daniel Xiea41d4972015-10-19 15:35:16 -0700107 CtsPackageInstallerApp \
Vasu Nori2835d692015-07-07 14:22:43 -0700108 CtsPermissionApp \
Kenny Guyda652442015-01-26 14:49:13 +0000109 CtsSimpleApp \
Esteban Talaverac90f6062015-06-26 12:01:50 +0100110 CtsSimplePreMApp \
Stuart Scotta132af62013-11-07 10:30:32 -0800111 CtsSomeAccessibilityServices \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700112 CtsThemeDeviceApp \
Stuart Scotta132af62013-11-07 10:30:32 -0800113 TestDeviceSetup \
114 CtsUiAutomatorApp \
115 CtsUsbSerialTestApp \
Vasu Nori4d23c7a2015-06-16 19:37:50 -0700116 CtsVoiceInteractionService \
117 CtsVoiceInteractionApp \
Vasu Nori2835d692015-07-07 14:22:43 -0700118 CtsVoiceSettingsService \
Benjamin Franz05488bb2015-08-11 16:32:32 +0100119 CtsWidgetProviderApp \
Neha Sharmab4b3bc22016-02-22 11:12:45 -0800120 CtsTrustedVoiceApp \
Carlos Valdivia56d285a2015-07-26 17:19:01 -0700121 $(cts_account_support_packages) \
dcashmane84939a2014-08-21 15:33:24 -0700122 $(cts_security_apps_list) \
123 $(cts_security_keysets_list)
Brian Muramatsube775f52012-01-10 18:26:00 -0800124
125cts_external_packages := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300126 com.replica.replicaisland \
127 com.drawelements.deqp
Brian Muramatsube775f52012-01-10 18:26:00 -0800128
129# Any APKs that need to be copied to the CTS distribution's testcases
130# directory but do not require an associated test package XML.
131CTS_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300132 $(cts_support_packages) \
133 $(cts_external_packages)
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800134
135# Test packages that require an associated test package XML.
Brian Muramatsube775f52012-01-10 18:26:00 -0800136cts_test_packages := \
Stuart Scotta132af62013-11-07 10:30:32 -0800137 CtsDeviceFilePerf \
138 CtsDeviceUi \
139 CtsDeviceDram \
140 CtsDeviceSimpleCpu \
Stuart Scotta132af62013-11-07 10:30:32 -0800141 CtsDeviceVideoPerf \
142 CtsDeviceOpenGl \
Wonsik Kim37388882014-09-07 12:24:20 +0900143 CtsDeviceTvProviderPerf \
Stuart Scotta132af62013-11-07 10:30:32 -0800144 CtsAccelerationTestCases \
145 CtsAccountManagerTestCases \
146 CtsAccessibilityServiceTestCases \
147 CtsAccessibilityTestCases \
148 CtsAdminTestCases \
Vasu Nori8714b8a2015-07-13 10:39:05 -0700149 CtsAlarmClockTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800150 CtsAnimationTestCases \
151 CtsAppTestCases \
Svet Ganov31510c02014-07-28 00:07:01 -0700152 CtsAppWidgetTestCases \
Alice Leed71a07b2015-07-29 14:30:56 -0700153 CtsAssistTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800154 CtsBluetoothTestCases \
155 CtsCalendarcommon2TestCases \
Vasu Nori2835d692015-07-07 14:22:43 -0700156 CtsCallLogTestCases \
Yin-Chia Yeh96f4d402015-10-29 17:53:39 -0700157 CtsCameraTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800158 CtsContentTestCases \
159 CtsDatabaseTestCases \
160 CtsDisplayTestCases \
161 CtsDpiTestCases \
162 CtsDpiTestCases2 \
163 CtsDreamsTestCases \
164 CtsDrmTestCases \
165 CtsEffectTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800166 CtsGestureTestCases \
167 CtsGraphicsTestCases \
168 CtsGraphics2TestCases \
169 CtsHardwareTestCases \
Guang Zhucf5c2542015-03-09 23:13:27 -0700170 CtsJankTestCases \
Tatsuhisa Yamaguchi8d808052015-07-10 18:33:22 +0900171 CtsLeanbackJankTestCases \
Matthew Williams547b8162014-10-15 10:18:11 -0700172 CtsJobSchedulerDeviceTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800173 CtsJniTestCases \
174 CtsKeystoreTestCases \
Neil Fuller92b89af2015-04-16 18:21:49 +0100175 CtsLibcoreLegacy22TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800176 CtsLocationTestCases \
Chenjie Luo693ed402014-09-11 15:12:33 -0700177 CtsLocation2TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800178 CtsMediaStressTestCases \
179 CtsMediaTestCases \
Phil Burk4185d112015-06-02 17:23:34 -0700180 CtsMidiTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800181 CtsNativeOpenGLTestCases \
182 CtsNdefTestCases \
Alex Klyubin727fde62015-12-11 15:08:23 -0800183 CtsNetSecPolicyUsesCleartextTrafficFalseTestCases \
184 CtsNetSecPolicyUsesCleartextTrafficTrueTestCases \
185 CtsNetSecPolicyUsesCleartextTrafficUnspecifiedTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800186 CtsNetTestCases \
Lorenzo Colitti86b43e52015-08-06 16:09:55 +0900187 CtsNetTestCasesLegacyApi22 \
Lorenzo Colittif556d7d2015-08-11 23:03:53 +0900188 CtsNetTestCasesLegacyPermission22 \
Stuart Scotta132af62013-11-07 10:30:32 -0800189 CtsOpenGLTestCases \
190 CtsOpenGlPerfTestCases \
191 CtsOsTestCases \
192 CtsPermissionTestCases \
193 CtsPermission2TestCases \
194 CtsPreferenceTestCases \
195 CtsPreference2TestCases \
Svetoslav12c82d42013-12-20 12:34:52 -0800196 CtsPrintTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800197 CtsProviderTestCases \
198 CtsRenderscriptTestCases \
Chenjie Luo74e860b2014-09-08 11:36:02 -0700199 CtsRenderscriptLegacyTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800200 CtsRsCppTestCases \
201 CtsSaxTestCases \
202 CtsSecurityTestCases \
Stuart Scottf67280f2014-09-30 14:07:30 -0700203 CtsSignatureTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800204 CtsSpeechTestCases \
Daniel Xiea41d4972015-10-19 15:35:16 -0700205 CtsSystemUiTestCases \
Yorke Leedfca0f42015-06-04 18:47:01 -0700206 CtsTelecomTestCases \
Yorke Lee80eab502015-06-11 15:26:31 -0700207 CtsTelecomTestCases2 \
Stuart Scotta132af62013-11-07 10:30:32 -0800208 CtsTelephonyTestCases \
209 CtsTextTestCases \
210 CtsTextureViewTestCases \
211 CtsThemeTestCases \
George Mount82577ea2015-06-23 11:06:45 -0700212 CtsTransitionTestCases \
Wonsik Kim42fe8892014-08-07 17:05:37 +0900213 CtsTvTestCases \
Svetoslav966b4e92014-03-28 13:41:17 -0700214 CtsUiAutomationTestCases \
Antonio Calabrese16ac3c82014-06-12 13:58:58 -0700215 CtsUiRenderingTestCases \
Adam Lesinski4da0bc02014-07-30 11:52:12 -0700216 CtsUsageStatsTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800217 CtsUtilTestCases \
218 CtsViewTestCases \
Vasu Nori4d23c7a2015-06-16 19:37:50 -0700219 CtsVoiceInteractionTestCases \
Vasu Nori2835d692015-07-07 14:22:43 -0700220 CtsVoiceSettingsTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800221 CtsWebkitTestCases \
222 CtsWidgetTestCases
Brian Muramatsu2f8eead2010-09-24 14:56:43 -0700223
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800224# All APKs that need to be scanned by the coverage utilities.
225CTS_COVERAGE_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300226 $(cts_support_packages) \
227 $(cts_test_packages)
Brian Muramatsu12c86912011-07-21 17:26:46 -0700228
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800229# Host side only tests
Brian Muramatsube775f52012-01-10 18:26:00 -0800230cts_host_libraries := \
Stuart Scotta132af62013-11-07 10:30:32 -0800231 CtsAdbTests \
232 CtsAppSecurityTests \
Chris Craika81eb0f2015-06-03 09:08:44 -0700233 CtsAtraceHostTestCases \
Grigory Dzhavadyan46ede902015-09-29 17:44:47 -0700234 CtsCppToolsTestCases \
Esteban Talaverab53252a2014-09-17 11:56:52 +0100235 CtsDevicePolicyManagerTestCases \
Roman Dudkoda4fccc2014-11-13 11:27:26 -0800236 CtsDumpsysHostTestCases \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800237 CtsHostJank \
Lorenzo Colitti33b838b2014-11-16 20:09:24 -0800238 CtsHostsideNetworkTests \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800239 CtsHostUi \
Sebastien Hertze37f4b42015-08-11 15:39:02 +0200240 CtsJdwpSecurityHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800241 CtsMonkeyTestCases \
Christopher Tateeacd4fd2015-08-17 15:49:12 -0700242 CtsOsHostTestCases \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700243 CtsThemeHostTestCases \
Adam Lesinskif6d79a42015-07-21 14:56:05 -0700244 CtsUsageHostTestCases \
dcashman5909bcd2014-08-21 15:33:24 -0700245 CtsSecurityHostTestCases \
Neha Sharmab4b3bc22016-02-22 11:12:45 -0800246 CtsTrustedVoiceHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800247 CtsUsbTests
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800248
Christopher Ferris286aca52014-10-15 18:08:41 -0700249# List of native tests. For 32 bit targets, assumes that there will be
250# one test executable, and it will end in 32. For 64 bit targets, assumes
251# that there will be two executables, one that ends in 32 for the 32
252# bit executable and one that ends in 64 for the 64 bit executable.
253cts_native_tests := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300254 NativeMediaTest_SL \
255 NativeMediaTest_XA \
Narayan Kamathfef43142014-02-14 13:27:22 +0000256
257ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
Christopher Ferris286aca52014-10-15 18:08:41 -0700258cts_native_tests += bionic-unit-tests-cts
Narayan Kamathfef43142014-02-14 13:27:22 +0000259endif
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800260
Brett Chabot87f44512012-11-16 16:00:02 -0800261cts_ui_tests := \
Stuart Scotta132af62013-11-07 10:30:32 -0800262 CtsUiAutomatorTests
263
264cts_device_jars := \
Sebastien Hertze37f4b42015-08-11 15:39:02 +0200265 CtsDeviceJank \
266 CtsJdwpApp
Svetoslav12c82d42013-12-20 12:34:52 -0800267
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700268cts_target_junit_tests := \
269 CtsJdwp
270
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700271cts_deqp_test_apis := \
Pyry Haulos3d698f22015-04-14 13:52:46 -0700272 egl \
273 gles2 \
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700274 gles3 \
275 gles31
276
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800277# All the files that will end up under the repository/testcases
278# directory of the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800279CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800280 $(call cts-get-package-paths,$(cts_test_packages)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800281 $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800282 $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700283 $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
Stuart Scott0337dbf2015-02-04 10:37:07 -0800284 $(call cts-get-executable-paths,$(cts_device_executables)) \
285 $(call cts-get-native-paths,$(cts_native_tests),32)
Christopher Ferris286aca52014-10-15 18:08:41 -0700286
287ifeq ($(TARGET_IS_64_BIT),true)
288CTS_TEST_CASES += $(call cts-get-native-paths,$(cts_native_tests),64)
289endif
290
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800291# All the XMLs that will end up under the repository/testcases
292# and that need to be created before making the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800293CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800294 $(call cts-get-test-xmls,$(cts_test_packages)) \
Christopher Ferris286aca52014-10-15 18:08:41 -0700295 $(call cts-get-test-xmls,$(cts_native_tests)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700296 $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300297 $(call cts-get-test-xmls,$(cts_ui_tests)) \
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700298 $(call cts-get-deqp-test-xmls,$(cts_deqp_test_apis))
Brett Chabot87f44512012-11-16 16:00:02 -0800299
Brian Muramatsu12c86912011-07-21 17:26:46 -0700300# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamathfef43142014-02-14 13:27:22 +0000301CTS_TOOLS_LIST :=