• 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    CtsPermissionDeclareApp \
23    CtsPermissionDeclareAppCompat \
24    CtsReadExternalStorageApp \
25    CtsSharedUidInstall \
26    CtsSharedUidInstallDiffCert \
27    CtsSimpleAppInstall \
28    CtsSimpleAppInstallDiffCert \
29    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    CtsSplitAppDiffRevision \
38    CtsSplitAppDiffVersion \
39    CtsSplitAppDiffCert \
40    CtsSplitAppFeature \
41    CtsTargetInstrumentationApp \
42    CtsUsePermissionDiffCert \
43    CtsWriteExternalStorageApp \
44    CtsMultiUserStorageApp
45
46cts_security_keysets_list := \
47    CtsKeySetTestApp \
48    CtsKeySetPermDefSigningA \
49    CtsKeySetPermDefSigningB\
50    CtsKeySetPermUseSigningA \
51    CtsKeySetPermUseSigningB \
52    CtsKeySetSigningAUpgradeA \
53    CtsKeySetSigningBUpgradeA \
54    CtsKeySetSigningAUpgradeAAndB \
55    CtsKeySetSigningAUpgradeAOrB \
56    CtsKeySetSigningAUpgradeB \
57    CtsKeySetSigningBUpgradeB \
58    CtsKeySetSigningAAndBUpgradeA \
59    CtsKeySetSigningAAndCUpgradeB \
60    CtsKeySetSigningAUpgradeNone
61
62cts_support_packages := \
63    CtsAccelerationTestStubs \
64    CtsAppTestStubs \
65    CtsDeviceAdmin \
66    CtsDeviceOpenGl \
67    CtsDeviceOwnerApp \
68    CtsDeviceTaskswitchingAppA \
69    CtsDeviceTaskswitchingAppB \
70    CtsDeviceTaskswitchingControl \
71    CtsDeviceUi \
72    CtsHostsideNetworkTestsApp \
73    CtsIntentReceiverApp \
74    CtsIntentSenderApp \
75    CtsLauncherAppsTests \
76    CtsLauncherAppsTestsSupport \
77    CtsManagedProfileApp \
78    CtsMonkeyApp \
79    CtsMonkeyApp2 \
80    CtsSimpleApp \
81    CtsSomeAccessibilityServices \
82    CtsThemeDeviceApp \
83    TestDeviceSetup \
84    CtsUiAutomatorApp \
85    CtsUsbSerialTestApp \
86    $(cts_security_apps_list) \
87    $(cts_security_keysets_list)
88
89cts_external_packages := \
90    com.replica.replicaisland \
91    com.drawelements.deqp
92
93# Any APKs that need to be copied to the CTS distribution's testcases
94# directory but do not require an associated test package XML.
95CTS_TEST_CASE_LIST := \
96    $(cts_support_packages) \
97    $(cts_external_packages)
98
99# Test packages that require an associated test package XML.
100cts_test_packages := \
101    CtsDeviceFilePerf \
102    CtsDeviceUi \
103    CtsDeviceDram \
104    CtsDeviceSimpleCpu \
105    CtsDeviceBrowserBench \
106    CtsDeviceVideoPerf \
107    CtsDeviceOpenGl \
108    CtsDeviceTvProviderPerf \
109    CtsAccelerationTestCases \
110    CtsAccountManagerTestCases \
111    CtsAccessibilityServiceTestCases \
112    CtsAccessibilityTestCases \
113    CtsAdminTestCases \
114    CtsAnimationTestCases \
115    CtsAppTestCases \
116    CtsAppWidgetTestCases \
117    CtsBluetoothTestCases \
118    CtsCalendarcommon2TestCases \
119    CtsContentTestCases \
120    CtsDatabaseTestCases \
121    CtsDisplayTestCases \
122    CtsDpiTestCases \
123    CtsDpiTestCases2 \
124    CtsDreamsTestCases \
125    CtsDrmTestCases \
126    CtsEffectTestCases \
127    CtsGestureTestCases \
128    CtsGraphicsTestCases \
129    CtsGraphics2TestCases \
130    CtsHardwareTestCases \
131    CtsJobSchedulerDeviceTestCases \
132    CtsJniTestCases \
133    CtsKeystoreTestCases \
134    CtsLocationTestCases \
135    CtsLocation2TestCases \
136    CtsMediaStressTestCases \
137    CtsMediaTestCases \
138    CtsNativeOpenGLTestCases \
139    CtsNdefTestCases \
140    CtsNetTestCases \
141    CtsOpenGLTestCases \
142    CtsOpenGlPerfTestCases \
143    CtsOsTestCases \
144    CtsPermissionTestCases \
145    CtsPermission2TestCases \
146    CtsPreferenceTestCases \
147    CtsPreference2TestCases \
148    CtsPrintTestCases \
149    CtsProviderTestCases \
150    CtsRenderscriptTestCases \
151    CtsRenderscriptLegacyTestCases \
152    CtsRsCppTestCases \
153    CtsSaxTestCases \
154    CtsSecurityTestCases \
155    CtsSignatureTestCases \
156    CtsSpeechTestCases \
157    CtsTelephonyTestCases \
158    CtsTextTestCases \
159    CtsTextureViewTestCases \
160    CtsThemeTestCases \
161    CtsTvTestCases \
162    CtsUiAutomationTestCases \
163    CtsUiRenderingTestCases \
164    CtsUsageStatsTestCases \
165    CtsUtilTestCases \
166    CtsViewTestCases \
167    CtsWebkitTestCases \
168    CtsWebGLTestCases \
169    CtsWidgetTestCases
170
171# All APKs that need to be scanned by the coverage utilities.
172CTS_COVERAGE_TEST_CASE_LIST := \
173    $(cts_support_packages) \
174    $(cts_test_packages)
175
176# Host side only tests
177cts_host_libraries := \
178    CtsAdbTests \
179    CtsAppSecurityTests \
180    CtsDevicePolicyManagerTestCases \
181    CtsDumpsysHostTestCases \
182    CtsHostJank \
183    CtsHostsideNetworkTests \
184    CtsHostUi \
185    CtsJdwpSecurityHostTestCases \
186    CtsMonkeyTestCases \
187    CtsThemeHostTestCases \
188    CtsSecurityHostTestCases \
189    CtsUsbTests
190
191# List of native tests. For 32 bit targets, assumes that there will be
192# one test executable, and it will end in 32. For 64 bit targets, assumes
193# that there will be two executables, one that ends in 32 for the 32
194# bit executable and one that ends in 64 for the 64 bit executable.
195cts_native_tests := \
196    NativeMediaTest_SL \
197    NativeMediaTest_XA \
198
199ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
200cts_native_tests += bionic-unit-tests-cts
201endif
202
203cts_ui_tests := \
204    CtsUiAutomatorTests
205
206cts_device_jars := \
207    CtsDeviceJank \
208    CtsJdwpApp \
209    CtsPrintInstrument
210
211cts_device_executables := \
212    print-instrument
213
214cts_target_junit_tests := \
215    CtsJdwp
216
217cts_deqp_test_apis := \
218    gles3 \
219    gles31
220
221# All the files that will end up under the repository/testcases
222# directory of the final CTS distribution.
223CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
224    $(call cts-get-package-paths,$(cts_test_packages)) \
225    $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
226    $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
227    $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
228    $(call cts-get-executable-paths,$(cts_device_executables))
229
230# NOTE: If compiling on a 64 bit target, TARGET_2ND_ARCH will be non-empty
231# and will cause the function to expand to the secondary arch object
232# directory. If compiling on a 32 bit target, TARGET_2ND_ARCH will be
233# empty and will cause the function to expand to the primary arch object
234# directory.
235CTS_TEST_CASES += $(call cts-get-native-paths,$(cts_native_tests),32,$(TARGET_2ND_ARCH))
236
237ifeq ($(TARGET_IS_64_BIT),true)
238CTS_TEST_CASES += $(call cts-get-native-paths,$(cts_native_tests),64)
239endif
240
241# All the XMLs that will end up under the repository/testcases
242# and that need to be created before making the final CTS distribution.
243CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
244    $(call cts-get-test-xmls,$(cts_test_packages)) \
245    $(call cts-get-test-xmls,$(cts_native_tests)) \
246    $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
247    $(call cts-get-test-xmls,$(cts_ui_tests)) \
248    $(call cts-get-deqp-test-xmls,$(cts_deqp_test_apis))
249
250# The following files will be placed in the tools directory of the CTS distribution
251CTS_TOOLS_LIST :=
252