blob: 6eda31435428b42d97f205a1b07c198eebe01391 [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 \
18 CtsExternalStorageApp \
19 CtsInstrumentationAppDiffCert \
20 CtsPermissionDeclareApp \
21 CtsPermissionDeclareAppCompat \
22 CtsReadExternalStorageApp \
23 CtsSharedUidInstall \
24 CtsSharedUidInstallDiffCert \
25 CtsSimpleAppInstall \
26 CtsSimpleAppInstallDiffCert \
27 CtsTargetInstrumentationApp \
28 CtsUsePermissionDiffCert \
29 CtsWriteExternalStorageApp \
30 CtsMultiUserStorageApp
Brian Muramatsu320a7a12010-07-08 16:37:21 -070031
dcashmane84939a2014-08-21 15:33:24 -070032cts_security_keysets_list := \
33 CtsKeySetTestApp \
34 CtsKeySetPermDefSigningA \
35 CtsKeySetPermDefSigningB\
36 CtsKeySetPermUseSigningA \
37 CtsKeySetPermUseSigningB \
38 CtsKeySetSigningAUpgradeA \
39 CtsKeySetSigningBUpgradeA \
40 CtsKeySetSigningAUpgradeAAndB \
41 CtsKeySetSigningAUpgradeAOrB \
42 CtsKeySetSigningAUpgradeB \
43 CtsKeySetSigningBUpgradeB \
44 CtsKeySetSigningAAndBUpgradeA \
45 CtsKeySetSigningAAndCUpgradeB \
46 CtsKeySetSigningAUpgradeNone
47
Brian Muramatsube775f52012-01-10 18:26:00 -080048cts_support_packages := \
Stuart Scott1734c7f2014-02-19 17:34:36 -080049 CtsAccelerationTestStubs \
Chenjie Luo15f32be2014-09-25 11:28:03 -070050 CtsAppTestStubs \
Stuart Scott1734c7f2014-02-19 17:34:36 -080051 CtsDeviceAdmin \
Stuart Scotta132af62013-11-07 10:30:32 -080052 CtsDeviceOpenGl \
Esteban Talavera17aafef2014-09-30 17:03:32 +010053 CtsDeviceOwnerApp \
Stuart Scotta132af62013-11-07 10:30:32 -080054 CtsDeviceTaskswitchingAppA \
55 CtsDeviceTaskswitchingAppB \
56 CtsDeviceTaskswitchingControl \
57 CtsDeviceUi \
Nicolas Prevot7366f3f2014-10-01 13:56:18 +010058 CtsIntentReceiverApp \
Esteban Talavera17aafef2014-09-30 17:03:32 +010059 CtsManagedProfileApp \
Stuart Scotta132af62013-11-07 10:30:32 -080060 CtsMonkeyApp \
61 CtsMonkeyApp2 \
62 CtsSomeAccessibilityServices \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -070063 CtsThemeDeviceApp \
Stuart Scotta132af62013-11-07 10:30:32 -080064 TestDeviceSetup \
65 CtsUiAutomatorApp \
66 CtsUsbSerialTestApp \
dcashmane84939a2014-08-21 15:33:24 -070067 $(cts_security_apps_list) \
68 $(cts_security_keysets_list)
Brian Muramatsube775f52012-01-10 18:26:00 -080069
70cts_external_packages := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030071 com.replica.replicaisland \
72 com.drawelements.deqp
Brian Muramatsube775f52012-01-10 18:26:00 -080073
74# Any APKs that need to be copied to the CTS distribution's testcases
75# directory but do not require an associated test package XML.
76CTS_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030077 $(cts_support_packages) \
78 $(cts_external_packages)
Brian Muramatsu5df641c2011-12-28 15:46:57 -080079
80# Test packages that require an associated test package XML.
Brian Muramatsube775f52012-01-10 18:26:00 -080081cts_test_packages := \
Stuart Scotta132af62013-11-07 10:30:32 -080082 CtsDeviceFilePerf \
83 CtsDeviceUi \
84 CtsDeviceDram \
85 CtsDeviceSimpleCpu \
86 CtsDeviceBrowserBench \
87 CtsDeviceVideoPerf \
88 CtsDeviceOpenGl \
89 CtsAccelerationTestCases \
90 CtsAccountManagerTestCases \
91 CtsAccessibilityServiceTestCases \
92 CtsAccessibilityTestCases \
93 CtsAdminTestCases \
94 CtsAnimationTestCases \
95 CtsAppTestCases \
Svet Ganov31510c02014-07-28 00:07:01 -070096 CtsAppWidgetTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080097 CtsBluetoothTestCases \
98 CtsCalendarcommon2TestCases \
99 CtsContentTestCases \
100 CtsDatabaseTestCases \
101 CtsDisplayTestCases \
102 CtsDpiTestCases \
103 CtsDpiTestCases2 \
104 CtsDreamsTestCases \
105 CtsDrmTestCases \
106 CtsEffectTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800107 CtsGestureTestCases \
108 CtsGraphicsTestCases \
109 CtsGraphics2TestCases \
110 CtsHardwareTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800111 CtsJniTestCases \
112 CtsKeystoreTestCases \
113 CtsLocationTestCases \
Chenjie Luo693ed402014-09-11 15:12:33 -0700114 CtsLocation2TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800115 CtsMediaStressTestCases \
116 CtsMediaTestCases \
117 CtsNativeOpenGLTestCases \
118 CtsNdefTestCases \
119 CtsNetTestCases \
120 CtsOpenGLTestCases \
121 CtsOpenGlPerfTestCases \
122 CtsOsTestCases \
123 CtsPermissionTestCases \
124 CtsPermission2TestCases \
125 CtsPreferenceTestCases \
126 CtsPreference2TestCases \
Svetoslav12c82d42013-12-20 12:34:52 -0800127 CtsPrintTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800128 CtsProviderTestCases \
129 CtsRenderscriptTestCases \
Chenjie Luo74e860b2014-09-08 11:36:02 -0700130 CtsRenderscriptLegacyTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800131 CtsRsCppTestCases \
132 CtsSaxTestCases \
133 CtsSecurityTestCases \
Stuart Scottf67280f2014-09-30 14:07:30 -0700134 CtsSignatureTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800135 CtsSpeechTestCases \
136 CtsTelephonyTestCases \
137 CtsTextTestCases \
138 CtsTextureViewTestCases \
139 CtsThemeTestCases \
Wonsik Kim42fe8892014-08-07 17:05:37 +0900140 CtsTvTestCases \
Svetoslav966b4e92014-03-28 13:41:17 -0700141 CtsUiAutomationTestCases \
Antonio Calabrese16ac3c82014-06-12 13:58:58 -0700142 CtsUiRenderingTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800143 CtsUtilTestCases \
144 CtsViewTestCases \
145 CtsWebkitTestCases \
Eric Pennerf0a43ae2014-08-31 14:36:51 -0700146 CtsWebGLTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800147 CtsWidgetTestCases
Brian Muramatsu2f8eead2010-09-24 14:56:43 -0700148
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800149# All APKs that need to be scanned by the coverage utilities.
150CTS_COVERAGE_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300151 $(cts_support_packages) \
152 $(cts_test_packages)
Brian Muramatsu12c86912011-07-21 17:26:46 -0700153
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800154# Host side only tests
Brian Muramatsube775f52012-01-10 18:26:00 -0800155cts_host_libraries := \
Stuart Scotta132af62013-11-07 10:30:32 -0800156 CtsAdbTests \
157 CtsAppSecurityTests \
Esteban Talaverab53252a2014-09-17 11:56:52 +0100158 CtsDevicePolicyManagerTestCases \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800159 CtsHostJank \
160 CtsHostUi \
Stuart Scotta132af62013-11-07 10:30:32 -0800161 CtsMonkeyTestCases \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700162 CtsThemeHostTestCases \
dcashman5909bcd2014-08-21 15:33:24 -0700163 CtsSecurityHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800164 CtsUsbTests
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800165
166# Native test executables that need to have associated test XMLs.
Brian Muramatsube775f52012-01-10 18:26:00 -0800167cts_native_exes := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300168 NativeMediaTest_SL \
169 NativeMediaTest_XA \
Narayan Kamathfef43142014-02-14 13:27:22 +0000170
171ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
172cts_native_exes += bionic-unit-tests-cts
173endif
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800174
Brett Chabot87f44512012-11-16 16:00:02 -0800175cts_ui_tests := \
Stuart Scotta132af62013-11-07 10:30:32 -0800176 CtsUiAutomatorTests
177
178cts_device_jars := \
Svetoslav12c82d42013-12-20 12:34:52 -0800179 CtsDeviceJank \
180 CtsPrintInstrument
181
182cts_device_executables := \
183 print-instrument
Brett Chabot87f44512012-11-16 16:00:02 -0800184
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700185cts_target_junit_tests := \
186 CtsJdwp
187
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800188# All the files that will end up under the repository/testcases
189# directory of the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800190CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800191 $(call cts-get-package-paths,$(cts_test_packages)) \
192 $(call cts-get-native-paths,$(cts_native_exes)) \
193 $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800194 $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700195 $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800196 $(call cts-get-executable-paths,$(cts_device_executables))
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800197
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800198# All the XMLs that will end up under the repository/testcases
199# and that need to be created before making the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800200CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800201 $(call cts-get-test-xmls,$(cts_test_packages)) \
202 $(call cts-get-test-xmls,$(cts_native_exes)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700203 $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300204 $(call cts-get-test-xmls,$(cts_ui_tests)) \
205 external/deqp/android/cts/com.drawelements.deqp.gles3.xml \
206 external/deqp/android/cts/com.drawelements.deqp.gles31.xml
Brett Chabot87f44512012-11-16 16:00:02 -0800207
Brian Muramatsu12c86912011-07-21 17:26:46 -0700208# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamathfef43142014-02-14 13:27:22 +0000209CTS_TOOLS_LIST :=