blob: 7c032d7643d59913d94ef46b5c95d3644a7e7b68 [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 \
37 CtsSplitAppDiffVersion \
38 CtsSplitAppDiffCert \
Jeff Sharkeyd724a392014-10-08 16:37:51 -070039 CtsSplitAppFeature \
Mika Isojärvi84e65932014-09-11 18:11:07 +030040 CtsTargetInstrumentationApp \
41 CtsUsePermissionDiffCert \
42 CtsWriteExternalStorageApp \
43 CtsMultiUserStorageApp
Brian Muramatsu320a7a12010-07-08 16:37:21 -070044
dcashmane84939a2014-08-21 15:33:24 -070045cts_security_keysets_list := \
46 CtsKeySetTestApp \
47 CtsKeySetPermDefSigningA \
48 CtsKeySetPermDefSigningB\
49 CtsKeySetPermUseSigningA \
50 CtsKeySetPermUseSigningB \
51 CtsKeySetSigningAUpgradeA \
52 CtsKeySetSigningBUpgradeA \
53 CtsKeySetSigningAUpgradeAAndB \
54 CtsKeySetSigningAUpgradeAOrB \
55 CtsKeySetSigningAUpgradeB \
56 CtsKeySetSigningBUpgradeB \
57 CtsKeySetSigningAAndBUpgradeA \
58 CtsKeySetSigningAAndCUpgradeB \
59 CtsKeySetSigningAUpgradeNone
60
Brian Muramatsube775f52012-01-10 18:26:00 -080061cts_support_packages := \
Stuart Scott1734c7f2014-02-19 17:34:36 -080062 CtsAccelerationTestStubs \
Chenjie Luo15f32be2014-09-25 11:28:03 -070063 CtsAppTestStubs \
Stuart Scott1734c7f2014-02-19 17:34:36 -080064 CtsDeviceAdmin \
Stuart Scotta132af62013-11-07 10:30:32 -080065 CtsDeviceOpenGl \
Esteban Talavera17aafef2014-09-30 17:03:32 +010066 CtsDeviceOwnerApp \
Stuart Scotta132af62013-11-07 10:30:32 -080067 CtsDeviceTaskswitchingAppA \
68 CtsDeviceTaskswitchingAppB \
69 CtsDeviceTaskswitchingControl \
70 CtsDeviceUi \
Nicolas Prevot7366f3f2014-10-01 13:56:18 +010071 CtsIntentReceiverApp \
Jeff Sharkey8d959c12014-10-14 14:16:31 -070072 CtsIntentSenderApp \
Kenny Guyda652442015-01-26 14:49:13 +000073 CtsLauncherAppsTests \
74 CtsLauncherAppsTestsSupport \
Esteban Talavera17aafef2014-09-30 17:03:32 +010075 CtsManagedProfileApp \
Stuart Scotta132af62013-11-07 10:30:32 -080076 CtsMonkeyApp \
77 CtsMonkeyApp2 \
Kenny Guyda652442015-01-26 14:49:13 +000078 CtsSimpleApp \
Stuart Scotta132af62013-11-07 10:30:32 -080079 CtsSomeAccessibilityServices \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -070080 CtsThemeDeviceApp \
Stuart Scotta132af62013-11-07 10:30:32 -080081 TestDeviceSetup \
82 CtsUiAutomatorApp \
83 CtsUsbSerialTestApp \
dcashmane84939a2014-08-21 15:33:24 -070084 $(cts_security_apps_list) \
85 $(cts_security_keysets_list)
Brian Muramatsube775f52012-01-10 18:26:00 -080086
87cts_external_packages := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030088 com.replica.replicaisland \
89 com.drawelements.deqp
Brian Muramatsube775f52012-01-10 18:26:00 -080090
91# Any APKs that need to be copied to the CTS distribution's testcases
92# directory but do not require an associated test package XML.
93CTS_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030094 $(cts_support_packages) \
95 $(cts_external_packages)
Brian Muramatsu5df641c2011-12-28 15:46:57 -080096
97# Test packages that require an associated test package XML.
Brian Muramatsube775f52012-01-10 18:26:00 -080098cts_test_packages := \
Stuart Scotta132af62013-11-07 10:30:32 -080099 CtsDeviceFilePerf \
100 CtsDeviceUi \
101 CtsDeviceDram \
102 CtsDeviceSimpleCpu \
103 CtsDeviceBrowserBench \
104 CtsDeviceVideoPerf \
105 CtsDeviceOpenGl \
106 CtsAccelerationTestCases \
107 CtsAccountManagerTestCases \
108 CtsAccessibilityServiceTestCases \
109 CtsAccessibilityTestCases \
110 CtsAdminTestCases \
111 CtsAnimationTestCases \
112 CtsAppTestCases \
113 CtsBluetoothTestCases \
114 CtsCalendarcommon2TestCases \
115 CtsContentTestCases \
116 CtsDatabaseTestCases \
117 CtsDisplayTestCases \
118 CtsDpiTestCases \
119 CtsDpiTestCases2 \
120 CtsDreamsTestCases \
121 CtsDrmTestCases \
122 CtsEffectTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800123 CtsGestureTestCases \
124 CtsGraphicsTestCases \
125 CtsGraphics2TestCases \
126 CtsHardwareTestCases \
Matthew Williams547b8162014-10-15 10:18:11 -0700127 CtsJobSchedulerDeviceTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800128 CtsJniTestCases \
129 CtsKeystoreTestCases \
130 CtsLocationTestCases \
Chenjie Luo693ed402014-09-11 15:12:33 -0700131 CtsLocation2TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800132 CtsMediaStressTestCases \
133 CtsMediaTestCases \
134 CtsNativeOpenGLTestCases \
135 CtsNdefTestCases \
136 CtsNetTestCases \
137 CtsOpenGLTestCases \
138 CtsOpenGlPerfTestCases \
139 CtsOsTestCases \
140 CtsPermissionTestCases \
141 CtsPermission2TestCases \
142 CtsPreferenceTestCases \
143 CtsPreference2TestCases \
Svetoslav12c82d42013-12-20 12:34:52 -0800144 CtsPrintTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800145 CtsProviderTestCases \
146 CtsRenderscriptTestCases \
Chenjie Luo74e860b2014-09-08 11:36:02 -0700147 CtsRenderscriptLegacyTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800148 CtsRsCppTestCases \
149 CtsSaxTestCases \
150 CtsSecurityTestCases \
Stuart Scottf67280f2014-09-30 14:07:30 -0700151 CtsSignatureTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800152 CtsSpeechTestCases \
153 CtsTelephonyTestCases \
154 CtsTextTestCases \
155 CtsTextureViewTestCases \
156 CtsThemeTestCases \
Wonsik Kim42fe8892014-08-07 17:05:37 +0900157 CtsTvTestCases \
Svetoslav966b4e92014-03-28 13:41:17 -0700158 CtsUiAutomationTestCases \
Antonio Calabrese16ac3c82014-06-12 13:58:58 -0700159 CtsUiRenderingTestCases \
Adam Lesinski4da0bc02014-07-30 11:52:12 -0700160 CtsUsageStatsTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800161 CtsUtilTestCases \
162 CtsViewTestCases \
163 CtsWebkitTestCases \
Eric Pennerf0a43ae2014-08-31 14:36:51 -0700164 CtsWebGLTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800165 CtsWidgetTestCases
Brian Muramatsu2f8eead2010-09-24 14:56:43 -0700166
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800167# All APKs that need to be scanned by the coverage utilities.
168CTS_COVERAGE_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300169 $(cts_support_packages) \
170 $(cts_test_packages)
Brian Muramatsu12c86912011-07-21 17:26:46 -0700171
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800172# Host side only tests
Brian Muramatsube775f52012-01-10 18:26:00 -0800173cts_host_libraries := \
Stuart Scotta132af62013-11-07 10:30:32 -0800174 CtsAdbTests \
175 CtsAppSecurityTests \
Esteban Talaverab53252a2014-09-17 11:56:52 +0100176 CtsDevicePolicyManagerTestCases \
Roman Dudkoda4fccc2014-11-13 11:27:26 -0800177 CtsDumpsysHostTestCases \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800178 CtsHostJank \
179 CtsHostUi \
Stuart Scotta132af62013-11-07 10:30:32 -0800180 CtsMonkeyTestCases \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700181 CtsThemeHostTestCases \
dcashman5909bcd2014-08-21 15:33:24 -0700182 CtsSecurityHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800183 CtsUsbTests
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800184
Christopher Ferris286aca52014-10-15 18:08:41 -0700185# List of native tests. For 32 bit targets, assumes that there will be
186# one test executable, and it will end in 32. For 64 bit targets, assumes
187# that there will be two executables, one that ends in 32 for the 32
188# bit executable and one that ends in 64 for the 64 bit executable.
189cts_native_tests := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300190 NativeMediaTest_SL \
191 NativeMediaTest_XA \
Narayan Kamathfef43142014-02-14 13:27:22 +0000192
193ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
Christopher Ferris286aca52014-10-15 18:08:41 -0700194cts_native_tests += bionic-unit-tests-cts
Narayan Kamathfef43142014-02-14 13:27:22 +0000195endif
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800196
Brett Chabot87f44512012-11-16 16:00:02 -0800197cts_ui_tests := \
Stuart Scotta132af62013-11-07 10:30:32 -0800198 CtsUiAutomatorTests
199
200cts_device_jars := \
Svetoslav12c82d42013-12-20 12:34:52 -0800201 CtsDeviceJank \
202 CtsPrintInstrument
203
204cts_device_executables := \
205 print-instrument
Brett Chabot87f44512012-11-16 16:00:02 -0800206
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700207cts_target_junit_tests := \
208 CtsJdwp
209
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700210cts_deqp_test_apis := \
211 gles3 \
212 gles31
213
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800214# All the files that will end up under the repository/testcases
215# directory of the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800216CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800217 $(call cts-get-package-paths,$(cts_test_packages)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800218 $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800219 $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700220 $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800221 $(call cts-get-executable-paths,$(cts_device_executables))
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800222
Christopher Ferris286aca52014-10-15 18:08:41 -0700223# NOTE: If compiling on a 64 bit target, TARGET_2ND_ARCH will be non-empty
224# and will cause the function to expand to the secondary arch object
225# directory. If compiling on a 32 bit target, TARGET_2ND_ARCH will be
226# empty and will cause the function to expand to the primary arch object
227# directory.
228CTS_TEST_CASES += $(call cts-get-native-paths,$(cts_native_tests),32,$(TARGET_2ND_ARCH))
229
230ifeq ($(TARGET_IS_64_BIT),true)
231CTS_TEST_CASES += $(call cts-get-native-paths,$(cts_native_tests),64)
232endif
233
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800234# All the XMLs that will end up under the repository/testcases
235# and that need to be created before making the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800236CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800237 $(call cts-get-test-xmls,$(cts_test_packages)) \
Christopher Ferris286aca52014-10-15 18:08:41 -0700238 $(call cts-get-test-xmls,$(cts_native_tests)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700239 $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300240 $(call cts-get-test-xmls,$(cts_ui_tests)) \
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700241 $(call cts-get-deqp-test-xmls,$(cts_deqp_test_apis))
Brett Chabot87f44512012-11-16 16:00:02 -0800242
Brian Muramatsu12c86912011-07-21 17:26:46 -0700243# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamathfef43142014-02-14 13:27:22 +0000244CTS_TOOLS_LIST :=