blob: cc36b20536d0cc7b9d2b0c3716fb54dbe0b8a5be [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 \
Aaron Holdenee509b72015-11-23 09:43:39 -0800109 CtsPreconditionsApp \
Kenny Guyda652442015-01-26 14:49:13 +0000110 CtsSimpleApp \
Esteban Talaverac90f6062015-06-26 12:01:50 +0100111 CtsSimplePreMApp \
Stuart Scotta132af62013-11-07 10:30:32 -0800112 CtsSomeAccessibilityServices \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700113 CtsThemeDeviceApp \
Stuart Scotta132af62013-11-07 10:30:32 -0800114 TestDeviceSetup \
115 CtsUiAutomatorApp \
116 CtsUsbSerialTestApp \
Vasu Nori4d23c7a2015-06-16 19:37:50 -0700117 CtsVoiceInteractionService \
118 CtsVoiceInteractionApp \
Vasu Nori2835d692015-07-07 14:22:43 -0700119 CtsVoiceSettingsService \
Benjamin Franz05488bb2015-08-11 16:32:32 +0100120 CtsWidgetProviderApp \
Neha Sharmab4b3bc22016-02-22 11:12:45 -0800121 CtsTrustedVoiceApp \
Carlos Valdivia56d285a2015-07-26 17:19:01 -0700122 $(cts_account_support_packages) \
dcashmane84939a2014-08-21 15:33:24 -0700123 $(cts_security_apps_list) \
124 $(cts_security_keysets_list)
Brian Muramatsube775f52012-01-10 18:26:00 -0800125
126cts_external_packages := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300127 com.replica.replicaisland \
128 com.drawelements.deqp
Brian Muramatsube775f52012-01-10 18:26:00 -0800129
130# Any APKs that need to be copied to the CTS distribution's testcases
131# directory but do not require an associated test package XML.
132CTS_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300133 $(cts_support_packages) \
134 $(cts_external_packages)
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800135
136# Test packages that require an associated test package XML.
Brian Muramatsube775f52012-01-10 18:26:00 -0800137cts_test_packages := \
Stuart Scotta132af62013-11-07 10:30:32 -0800138 CtsDeviceFilePerf \
139 CtsDeviceUi \
140 CtsDeviceDram \
141 CtsDeviceSimpleCpu \
Stuart Scotta132af62013-11-07 10:30:32 -0800142 CtsDeviceVideoPerf \
143 CtsDeviceOpenGl \
Wonsik Kim37388882014-09-07 12:24:20 +0900144 CtsDeviceTvProviderPerf \
Stuart Scotta132af62013-11-07 10:30:32 -0800145 CtsAccelerationTestCases \
146 CtsAccountManagerTestCases \
147 CtsAccessibilityServiceTestCases \
148 CtsAccessibilityTestCases \
149 CtsAdminTestCases \
Vasu Nori8714b8a2015-07-13 10:39:05 -0700150 CtsAlarmClockTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800151 CtsAnimationTestCases \
152 CtsAppTestCases \
Svet Ganov31510c02014-07-28 00:07:01 -0700153 CtsAppWidgetTestCases \
Alice Leed71a07b2015-07-29 14:30:56 -0700154 CtsAssistTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800155 CtsBluetoothTestCases \
156 CtsCalendarcommon2TestCases \
Vasu Nori2835d692015-07-07 14:22:43 -0700157 CtsCallLogTestCases \
Yin-Chia Yeh96f4d402015-10-29 17:53:39 -0700158 CtsCameraTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800159 CtsContentTestCases \
160 CtsDatabaseTestCases \
161 CtsDisplayTestCases \
162 CtsDpiTestCases \
163 CtsDpiTestCases2 \
164 CtsDreamsTestCases \
165 CtsDrmTestCases \
166 CtsEffectTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800167 CtsGestureTestCases \
168 CtsGraphicsTestCases \
169 CtsGraphics2TestCases \
170 CtsHardwareTestCases \
Guang Zhucf5c2542015-03-09 23:13:27 -0700171 CtsJankTestCases \
Tatsuhisa Yamaguchi8d808052015-07-10 18:33:22 +0900172 CtsLeanbackJankTestCases \
Matthew Williams547b8162014-10-15 10:18:11 -0700173 CtsJobSchedulerDeviceTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800174 CtsJniTestCases \
175 CtsKeystoreTestCases \
Neil Fuller92b89af2015-04-16 18:21:49 +0100176 CtsLibcoreLegacy22TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800177 CtsLocationTestCases \
Chenjie Luo693ed402014-09-11 15:12:33 -0700178 CtsLocation2TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800179 CtsMediaStressTestCases \
180 CtsMediaTestCases \
Phil Burk4185d112015-06-02 17:23:34 -0700181 CtsMidiTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800182 CtsNativeOpenGLTestCases \
183 CtsNdefTestCases \
Alex Klyubin727fde62015-12-11 15:08:23 -0800184 CtsNetSecPolicyUsesCleartextTrafficFalseTestCases \
185 CtsNetSecPolicyUsesCleartextTrafficTrueTestCases \
186 CtsNetSecPolicyUsesCleartextTrafficUnspecifiedTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800187 CtsNetTestCases \
Lorenzo Colitti86b43e52015-08-06 16:09:55 +0900188 CtsNetTestCasesLegacyApi22 \
Lorenzo Colittif556d7d2015-08-11 23:03:53 +0900189 CtsNetTestCasesLegacyPermission22 \
Stuart Scotta132af62013-11-07 10:30:32 -0800190 CtsOpenGLTestCases \
191 CtsOpenGlPerfTestCases \
192 CtsOsTestCases \
193 CtsPermissionTestCases \
194 CtsPermission2TestCases \
195 CtsPreferenceTestCases \
196 CtsPreference2TestCases \
Svetoslav12c82d42013-12-20 12:34:52 -0800197 CtsPrintTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800198 CtsProviderTestCases \
199 CtsRenderscriptTestCases \
Chenjie Luo74e860b2014-09-08 11:36:02 -0700200 CtsRenderscriptLegacyTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800201 CtsRsCppTestCases \
202 CtsSaxTestCases \
203 CtsSecurityTestCases \
Stuart Scottf67280f2014-09-30 14:07:30 -0700204 CtsSignatureTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800205 CtsSpeechTestCases \
Daniel Xiea41d4972015-10-19 15:35:16 -0700206 CtsSystemUiTestCases \
Yorke Leedfca0f42015-06-04 18:47:01 -0700207 CtsTelecomTestCases \
Yorke Lee80eab502015-06-11 15:26:31 -0700208 CtsTelecomTestCases2 \
Stuart Scotta132af62013-11-07 10:30:32 -0800209 CtsTelephonyTestCases \
210 CtsTextTestCases \
211 CtsTextureViewTestCases \
212 CtsThemeTestCases \
George Mount82577ea2015-06-23 11:06:45 -0700213 CtsTransitionTestCases \
Wonsik Kim42fe8892014-08-07 17:05:37 +0900214 CtsTvTestCases \
Svetoslav966b4e92014-03-28 13:41:17 -0700215 CtsUiAutomationTestCases \
Antonio Calabrese16ac3c82014-06-12 13:58:58 -0700216 CtsUiRenderingTestCases \
Adam Lesinski4da0bc02014-07-30 11:52:12 -0700217 CtsUsageStatsTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800218 CtsUtilTestCases \
219 CtsViewTestCases \
Vasu Nori4d23c7a2015-06-16 19:37:50 -0700220 CtsVoiceInteractionTestCases \
Vasu Nori2835d692015-07-07 14:22:43 -0700221 CtsVoiceSettingsTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800222 CtsWebkitTestCases \
223 CtsWidgetTestCases
Brian Muramatsu2f8eead2010-09-24 14:56:43 -0700224
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800225# All APKs that need to be scanned by the coverage utilities.
226CTS_COVERAGE_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300227 $(cts_support_packages) \
228 $(cts_test_packages)
Brian Muramatsu12c86912011-07-21 17:26:46 -0700229
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800230# Host side only tests
Brian Muramatsube775f52012-01-10 18:26:00 -0800231cts_host_libraries := \
Stuart Scotta132af62013-11-07 10:30:32 -0800232 CtsAdbTests \
233 CtsAppSecurityTests \
Chris Craika81eb0f2015-06-03 09:08:44 -0700234 CtsAtraceHostTestCases \
Grigory Dzhavadyan46ede902015-09-29 17:44:47 -0700235 CtsCppToolsTestCases \
Esteban Talaverab53252a2014-09-17 11:56:52 +0100236 CtsDevicePolicyManagerTestCases \
Roman Dudkoda4fccc2014-11-13 11:27:26 -0800237 CtsDumpsysHostTestCases \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800238 CtsHostJank \
Lorenzo Colitti33b838b2014-11-16 20:09:24 -0800239 CtsHostsideNetworkTests \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800240 CtsHostUi \
Sebastien Hertze37f4b42015-08-11 15:39:02 +0200241 CtsJdwpSecurityHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800242 CtsMonkeyTestCases \
Sudheer Shanka37b56df2016-06-16 09:12:41 -0700243 CtsMultiUserHostTestCases \
Christopher Tateeacd4fd2015-08-17 15:49:12 -0700244 CtsOsHostTestCases \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700245 CtsThemeHostTestCases \
Adam Lesinskif6d79a42015-07-21 14:56:05 -0700246 CtsUsageHostTestCases \
dcashman5909bcd2014-08-21 15:33:24 -0700247 CtsSecurityHostTestCases \
Neha Sharmab4b3bc22016-02-22 11:12:45 -0800248 CtsTrustedVoiceHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800249 CtsUsbTests
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800250
Christopher Ferris286aca52014-10-15 18:08:41 -0700251# List of native tests. For 32 bit targets, assumes that there will be
252# one test executable, and it will end in 32. For 64 bit targets, assumes
253# that there will be two executables, one that ends in 32 for the 32
254# bit executable and one that ends in 64 for the 64 bit executable.
255cts_native_tests := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300256 NativeMediaTest_SL \
257 NativeMediaTest_XA \
Narayan Kamathfef43142014-02-14 13:27:22 +0000258
259ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
Christopher Ferris286aca52014-10-15 18:08:41 -0700260cts_native_tests += bionic-unit-tests-cts
Narayan Kamathfef43142014-02-14 13:27:22 +0000261endif
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800262
Brett Chabot87f44512012-11-16 16:00:02 -0800263cts_ui_tests := \
Stuart Scotta132af62013-11-07 10:30:32 -0800264 CtsUiAutomatorTests
265
266cts_device_jars := \
Sebastien Hertze37f4b42015-08-11 15:39:02 +0200267 CtsDeviceJank \
268 CtsJdwpApp
Svetoslav12c82d42013-12-20 12:34:52 -0800269
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700270cts_target_junit_tests := \
271 CtsJdwp
272
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700273cts_deqp_test_apis := \
Pyry Haulos3d698f22015-04-14 13:52:46 -0700274 egl \
275 gles2 \
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700276 gles3 \
277 gles31
278
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800279# All the files that will end up under the repository/testcases
280# directory of the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800281CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800282 $(call cts-get-package-paths,$(cts_test_packages)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800283 $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800284 $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700285 $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
Stuart Scott0337dbf2015-02-04 10:37:07 -0800286 $(call cts-get-executable-paths,$(cts_device_executables)) \
287 $(call cts-get-native-paths,$(cts_native_tests),32)
Christopher Ferris286aca52014-10-15 18:08:41 -0700288
289ifeq ($(TARGET_IS_64_BIT),true)
290CTS_TEST_CASES += $(call cts-get-native-paths,$(cts_native_tests),64)
291endif
292
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800293# All the XMLs that will end up under the repository/testcases
294# and that need to be created before making the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800295CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800296 $(call cts-get-test-xmls,$(cts_test_packages)) \
Christopher Ferris286aca52014-10-15 18:08:41 -0700297 $(call cts-get-test-xmls,$(cts_native_tests)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700298 $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300299 $(call cts-get-test-xmls,$(cts_ui_tests)) \
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700300 $(call cts-get-deqp-test-xmls,$(cts_deqp_test_apis))
Brett Chabot87f44512012-11-16 16:00:02 -0800301
Brian Muramatsu12c86912011-07-21 17:26:46 -0700302# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamathfef43142014-02-14 13:27:22 +0000303CTS_TOOLS_LIST :=