• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
15cts_security_apps_list := \
16    CtsAppAccessData \
17    CtsAppWithData \
18    CtsDocumentProvider \
19    CtsDocumentClient \
20    CtsExternalStorageApp \
21    CtsInstrumentationAppDiffCert \
22    CtsUsePermissionApp \
23    CtsUsePermissionAppCompat \
24    CtsPermissionDeclareApp \
25    CtsPermissionDeclareAppCompat \
26    CtsReadExternalStorageApp \
27    CtsSharedUidInstall \
28    CtsSharedUidInstallDiffCert \
29    CtsSimpleAppInstall \
30    CtsSimpleAppInstallDiffCert \
31    CtsSplitApp \
32    CtsSplitApp_x86 \
33    CtsSplitApp_x86_64 \
34    CtsSplitApp_armeabi-v7a \
35    CtsSplitApp_armeabi \
36    CtsSplitApp_arm64-v8a \
37    CtsSplitApp_mips64 \
38    CtsSplitApp_mips \
39    CtsSplitAppDiffRevision \
40    CtsSplitAppDiffVersion \
41    CtsSplitAppDiffCert \
42    CtsSplitAppFeature \
43    CtsTargetInstrumentationApp \
44    CtsUsePermissionDiffCert \
45    CtsWriteExternalStorageApp \
46    CtsMultiUserStorageApp
47
48cts_security_keysets_list := \
49    CtsKeySetTestApp \
50    CtsKeySetPermDefSigningA \
51    CtsKeySetPermDefSigningB\
52    CtsKeySetPermUseSigningA \
53    CtsKeySetPermUseSigningB \
54    CtsKeySetSigningAUpgradeA \
55    CtsKeySetSigningBUpgradeA \
56    CtsKeySetSigningAUpgradeAAndB \
57    CtsKeySetSigningAUpgradeAOrB \
58    CtsKeySetSigningAUpgradeB \
59    CtsKeySetSigningBUpgradeB \
60    CtsKeySetSigningAAndBUpgradeA \
61    CtsKeySetSigningAAndCUpgradeB \
62    CtsKeySetSigningAUpgradeNone \
63    CtsKeySetSharedUserSigningAUpgradeB \
64    CtsKeySetSharedUserSigningBUpgradeB \
65    CtsKeySetSigningABadUpgradeB \
66    CtsKeySetSigningCBadAUpgradeAB \
67    CtsKeySetSigningANoDefUpgradeB \
68    CtsKeySetSigningAUpgradeEcA \
69    CtsKeySetSigningEcAUpgradeA
70
71cts_account_support_packages := \
72    CtsUnaffiliatedAccountAuthenticators
73
74cts_support_packages := \
75    CtsAccelerationTestStubs \
76    CtsAlarmClockService \
77    CtsAppTestStubs \
78    CtsAssistService \
79    CtsAssistApp \
80    CtsAtraceTestApp \
81    CtsCertInstallerApp \
82    CtsDeviceAdmin \
83    CtsDeviceOpenGl \
84    CtsWifiConfigCreator \
85    CtsDeviceAndProfileOwnerApp \
86    CtsDeviceAppUsageTestApp \
87    CtsDeviceInfo \
88    CtsDeviceOsTestApp \
89    CtsDeviceOwnerApp \
90    CtsDeviceTaskswitchingAppA \
91    CtsDeviceTaskswitchingAppB \
92    CtsDeviceTaskswitchingControl \
93    CtsDeviceUi \
94    CtsHostsideNetworkTestsApp \
95    CtsIntentReceiverApp \
96    CtsIntentSenderApp \
97    CtsLauncherAppsTests \
98    CtsLauncherAppsTestsSupport \
99    CtsLeanbackJank \
100    CtsManagedProfileApp \
101    CtsMonkeyApp \
102    CtsMonkeyApp2 \
103    CtsPackageInstallerApp \
104    CtsPermissionApp \
105    CtsSimpleApp \
106    CtsSimplePreMApp \
107    CtsSomeAccessibilityServices \
108    CtsThemeDeviceApp \
109    TestDeviceSetup \
110    CtsUiAutomatorApp \
111    CtsUsbSerialTestApp \
112    CtsVoiceInteractionService \
113    CtsVoiceInteractionApp \
114    CtsVoiceSettingsService \
115    CtsWidgetProviderApp \
116    $(cts_account_support_packages) \
117    $(cts_security_apps_list) \
118    $(cts_security_keysets_list)
119
120cts_external_packages := \
121    com.replica.replicaisland \
122    com.drawelements.deqp
123
124# Any APKs that need to be copied to the CTS distribution's testcases
125# directory but do not require an associated test package XML.
126CTS_TEST_CASE_LIST := \
127    $(cts_support_packages) \
128    $(cts_external_packages)
129
130# Test packages that require an associated test package XML.
131cts_test_packages := \
132    CtsDeviceFilePerf \
133    CtsDeviceUi \
134    CtsDeviceDram \
135    CtsDeviceSimpleCpu \
136    CtsDeviceBrowserBench \
137    CtsDeviceVideoPerf \
138    CtsDeviceOpenGl \
139    CtsDeviceTvProviderPerf \
140    CtsAccelerationTestCases \
141    CtsAccountManagerTestCases \
142    CtsAccessibilityServiceTestCases \
143    CtsAccessibilityTestCases \
144    CtsAdminTestCases \
145    CtsAlarmClockTestCases \
146    CtsAnimationTestCases \
147    CtsAppTestCases \
148    CtsAppWidgetTestCases \
149    CtsAssistTestCases \
150    CtsBluetoothTestCases \
151    CtsCalendarcommon2TestCases \
152    CtsCallLogTestCases \
153    CtsContentTestCases \
154    CtsDatabaseTestCases \
155    CtsDisplayTestCases \
156    CtsDpiTestCases \
157    CtsDpiTestCases2 \
158    CtsDreamsTestCases \
159    CtsDrmTestCases \
160    CtsEffectTestCases \
161    CtsGestureTestCases \
162    CtsGraphicsTestCases \
163    CtsGraphics2TestCases \
164    CtsHardwareTestCases \
165    CtsJankTestCases \
166    CtsLeanbackJankTestCases \
167    CtsJobSchedulerDeviceTestCases \
168    CtsJniTestCases \
169    CtsKeystoreTestCases \
170    CtsLibcoreLegacy22TestCases \
171    CtsLocationTestCases \
172    CtsLocation2TestCases \
173    CtsMediaStressTestCases \
174    CtsMediaTestCases \
175    CtsMidiTestCases \
176    CtsNativeOpenGLTestCases \
177    CtsNdefTestCases \
178    CtsNetTestCases \
179    CtsNetTestCasesLegacyApi22 \
180    CtsNetTestCasesLegacyPermission22 \
181    CtsOpenGLTestCases \
182    CtsOpenGlPerfTestCases \
183    CtsOsTestCases \
184    CtsPermissionTestCases \
185    CtsPermission2TestCases \
186    CtsPreferenceTestCases \
187    CtsPreference2TestCases \
188    CtsPrintTestCases \
189    CtsProviderTestCases \
190    CtsRenderscriptTestCases \
191    CtsRenderscriptLegacyTestCases \
192    CtsRsCppTestCases \
193    CtsSaxTestCases \
194    CtsSecurityTestCases \
195    CtsSignatureTestCases \
196    CtsSpeechTestCases \
197    CtsSystemUiTestCases \
198    CtsTelecomTestCases \
199    CtsTelecomTestCases2 \
200    CtsTelephonyTestCases \
201    CtsTextTestCases \
202    CtsTextureViewTestCases \
203    CtsThemeTestCases \
204    CtsTransitionTestCases \
205    CtsTvTestCases \
206    CtsUiAutomationTestCases \
207    CtsUiRenderingTestCases \
208    CtsUsageStatsTestCases \
209    CtsUtilTestCases \
210    CtsViewTestCases \
211    CtsVoiceInteractionTestCases \
212    CtsVoiceSettingsTestCases \
213    CtsWebkitTestCases \
214    CtsWidgetTestCases
215
216# All APKs that need to be scanned by the coverage utilities.
217CTS_COVERAGE_TEST_CASE_LIST := \
218    $(cts_support_packages) \
219    $(cts_test_packages)
220
221# Host side only tests
222cts_host_libraries := \
223    CtsAdbTests \
224    CtsAppSecurityTests \
225    CtsAtraceHostTestCases \
226    CtsDevicePolicyManagerTestCases \
227    CtsDumpsysHostTestCases \
228    CtsHostJank \
229    CtsHostsideNetworkTests \
230    CtsHostUi \
231    CtsJdwpSecurityHostTestCases \
232    CtsMonkeyTestCases \
233    CtsOsHostTestCases \
234    CtsThemeHostTestCases \
235    CtsUsageHostTestCases \
236    CtsSecurityHostTestCases \
237    CtsUsbTests
238
239# List of native tests. For 32 bit targets, assumes that there will be
240# one test executable, and it will end in 32. For 64 bit targets, assumes
241# that there will be two executables, one that ends in 32 for the 32
242# bit executable and one that ends in 64 for the 64 bit executable.
243cts_native_tests := \
244    NativeMediaTest_SL \
245    NativeMediaTest_XA \
246
247ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
248cts_native_tests += bionic-unit-tests-cts
249endif
250
251cts_ui_tests := \
252    CtsUiAutomatorTests
253
254cts_device_jars := \
255    CtsDeviceJank \
256    CtsJdwpApp
257
258cts_target_junit_tests := \
259    CtsJdwp
260
261cts_deqp_test_apis := \
262    egl \
263    gles2 \
264    gles3 \
265    gles31
266
267# All the files that will end up under the repository/testcases
268# directory of the final CTS distribution.
269CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
270    $(call cts-get-package-paths,$(cts_test_packages)) \
271    $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
272    $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
273    $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
274    $(call cts-get-executable-paths,$(cts_device_executables)) \
275    $(call cts-get-native-paths,$(cts_native_tests),32)
276
277ifeq ($(TARGET_IS_64_BIT),true)
278CTS_TEST_CASES += $(call cts-get-native-paths,$(cts_native_tests),64)
279endif
280
281# All the XMLs that will end up under the repository/testcases
282# and that need to be created before making the final CTS distribution.
283CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
284    $(call cts-get-test-xmls,$(cts_test_packages)) \
285    $(call cts-get-test-xmls,$(cts_native_tests)) \
286    $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
287    $(call cts-get-test-xmls,$(cts_ui_tests)) \
288    $(call cts-get-deqp-test-xmls,$(cts_deqp_test_apis))
289
290# The following files will be placed in the tools directory of the CTS distribution
291CTS_TOOLS_LIST :=
292