blob: c8d84dabfff7e7c10dcfd53e4e06b34f74722873 [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 \
Jeff Sharkey6302bb52014-10-07 12:09:40 -070027 CtsSplitApp \
28 CtsSplitApp_x86 \
29 CtsSplitApp_x86_64 \
30 CtsSplitApp_armeabi-v7a \
31 CtsSplitApp_armeabi \
32 CtsSplitApp_arm64-v8a \
33 CtsSplitApp_mips64 \
34 CtsSplitApp_mips \
35 CtsSplitAppDiffVersion \
36 CtsSplitAppDiffCert \
Mika Isojärvi84e65932014-09-11 18:11:07 +030037 CtsTargetInstrumentationApp \
38 CtsUsePermissionDiffCert \
39 CtsWriteExternalStorageApp \
40 CtsMultiUserStorageApp
Brian Muramatsu320a7a12010-07-08 16:37:21 -070041
Brian Muramatsube775f52012-01-10 18:26:00 -080042cts_support_packages := \
Stuart Scott1734c7f2014-02-19 17:34:36 -080043 CtsAccelerationTestStubs \
Chenjie Luo15f32be2014-09-25 11:28:03 -070044 CtsAppTestStubs \
Stuart Scott1734c7f2014-02-19 17:34:36 -080045 CtsDeviceAdmin \
Stuart Scotta132af62013-11-07 10:30:32 -080046 CtsDeviceOpenGl \
Esteban Talavera17aafef2014-09-30 17:03:32 +010047 CtsDeviceOwnerApp \
Stuart Scotta132af62013-11-07 10:30:32 -080048 CtsDeviceTaskswitchingAppA \
49 CtsDeviceTaskswitchingAppB \
50 CtsDeviceTaskswitchingControl \
51 CtsDeviceUi \
Nicolas Prevot7366f3f2014-10-01 13:56:18 +010052 CtsIntentReceiverApp \
Esteban Talavera17aafef2014-09-30 17:03:32 +010053 CtsManagedProfileApp \
Stuart Scotta132af62013-11-07 10:30:32 -080054 CtsMonkeyApp \
55 CtsMonkeyApp2 \
56 CtsSomeAccessibilityServices \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -070057 CtsThemeDeviceApp \
Stuart Scotta132af62013-11-07 10:30:32 -080058 TestDeviceSetup \
59 CtsUiAutomatorApp \
60 CtsUsbSerialTestApp \
61 $(cts_security_apps_list)
Brian Muramatsube775f52012-01-10 18:26:00 -080062
63cts_external_packages := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030064 com.replica.replicaisland \
65 com.drawelements.deqp
Brian Muramatsube775f52012-01-10 18:26:00 -080066
67# Any APKs that need to be copied to the CTS distribution's testcases
68# directory but do not require an associated test package XML.
69CTS_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030070 $(cts_support_packages) \
71 $(cts_external_packages)
Brian Muramatsu5df641c2011-12-28 15:46:57 -080072
73# Test packages that require an associated test package XML.
Brian Muramatsube775f52012-01-10 18:26:00 -080074cts_test_packages := \
Stuart Scotta132af62013-11-07 10:30:32 -080075 CtsDeviceFilePerf \
76 CtsDeviceUi \
77 CtsDeviceDram \
78 CtsDeviceSimpleCpu \
79 CtsDeviceBrowserBench \
80 CtsDeviceVideoPerf \
81 CtsDeviceOpenGl \
82 CtsAccelerationTestCases \
83 CtsAccountManagerTestCases \
84 CtsAccessibilityServiceTestCases \
85 CtsAccessibilityTestCases \
86 CtsAdminTestCases \
87 CtsAnimationTestCases \
88 CtsAppTestCases \
Svet Ganov31510c02014-07-28 00:07:01 -070089 CtsAppWidgetTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080090 CtsBluetoothTestCases \
91 CtsCalendarcommon2TestCases \
92 CtsContentTestCases \
93 CtsDatabaseTestCases \
94 CtsDisplayTestCases \
95 CtsDpiTestCases \
96 CtsDpiTestCases2 \
97 CtsDreamsTestCases \
98 CtsDrmTestCases \
99 CtsEffectTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800100 CtsGestureTestCases \
101 CtsGraphicsTestCases \
102 CtsGraphics2TestCases \
103 CtsHardwareTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800104 CtsJniTestCases \
105 CtsKeystoreTestCases \
106 CtsLocationTestCases \
Chenjie Luo693ed402014-09-11 15:12:33 -0700107 CtsLocation2TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800108 CtsMediaStressTestCases \
109 CtsMediaTestCases \
110 CtsNativeOpenGLTestCases \
111 CtsNdefTestCases \
112 CtsNetTestCases \
113 CtsOpenGLTestCases \
114 CtsOpenGlPerfTestCases \
115 CtsOsTestCases \
116 CtsPermissionTestCases \
117 CtsPermission2TestCases \
118 CtsPreferenceTestCases \
119 CtsPreference2TestCases \
Svetoslav12c82d42013-12-20 12:34:52 -0800120 CtsPrintTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800121 CtsProviderTestCases \
122 CtsRenderscriptTestCases \
Chenjie Luo74e860b2014-09-08 11:36:02 -0700123 CtsRenderscriptLegacyTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800124 CtsRsCppTestCases \
125 CtsSaxTestCases \
126 CtsSecurityTestCases \
Stuart Scottf67280f2014-09-30 14:07:30 -0700127 CtsSignatureTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800128 CtsSpeechTestCases \
129 CtsTelephonyTestCases \
130 CtsTextTestCases \
131 CtsTextureViewTestCases \
132 CtsThemeTestCases \
Wonsik Kim42fe8892014-08-07 17:05:37 +0900133 CtsTvTestCases \
Svetoslav966b4e92014-03-28 13:41:17 -0700134 CtsUiAutomationTestCases \
Antonio Calabrese16ac3c82014-06-12 13:58:58 -0700135 CtsUiRenderingTestCases \
Adam Lesinski4da0bc02014-07-30 11:52:12 -0700136 CtsUsageStatsTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800137 CtsUtilTestCases \
138 CtsViewTestCases \
139 CtsWebkitTestCases \
Eric Pennerf0a43ae2014-08-31 14:36:51 -0700140 CtsWebGLTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800141 CtsWidgetTestCases
Brian Muramatsu2f8eead2010-09-24 14:56:43 -0700142
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800143# All APKs that need to be scanned by the coverage utilities.
144CTS_COVERAGE_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300145 $(cts_support_packages) \
146 $(cts_test_packages)
Brian Muramatsu12c86912011-07-21 17:26:46 -0700147
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800148# Host side only tests
Brian Muramatsube775f52012-01-10 18:26:00 -0800149cts_host_libraries := \
Stuart Scotta132af62013-11-07 10:30:32 -0800150 CtsAdbTests \
151 CtsAppSecurityTests \
Esteban Talaverab53252a2014-09-17 11:56:52 +0100152 CtsDevicePolicyManagerTestCases \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800153 CtsHostJank \
154 CtsHostUi \
Stuart Scotta132af62013-11-07 10:30:32 -0800155 CtsMonkeyTestCases \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700156 CtsThemeHostTestCases \
dcashman5909bcd2014-08-21 15:33:24 -0700157 CtsSecurityHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800158 CtsUsbTests
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800159
160# Native test executables that need to have associated test XMLs.
Brian Muramatsube775f52012-01-10 18:26:00 -0800161cts_native_exes := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300162 NativeMediaTest_SL \
163 NativeMediaTest_XA \
Narayan Kamathfef43142014-02-14 13:27:22 +0000164
165ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
166cts_native_exes += bionic-unit-tests-cts
167endif
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800168
Brett Chabot87f44512012-11-16 16:00:02 -0800169cts_ui_tests := \
Stuart Scotta132af62013-11-07 10:30:32 -0800170 CtsUiAutomatorTests
171
172cts_device_jars := \
Svetoslav12c82d42013-12-20 12:34:52 -0800173 CtsDeviceJank \
174 CtsPrintInstrument
175
176cts_device_executables := \
177 print-instrument
Brett Chabot87f44512012-11-16 16:00:02 -0800178
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700179cts_target_junit_tests := \
180 CtsJdwp
181
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800182# All the files that will end up under the repository/testcases
183# directory of the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800184CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800185 $(call cts-get-package-paths,$(cts_test_packages)) \
186 $(call cts-get-native-paths,$(cts_native_exes)) \
187 $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800188 $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700189 $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800190 $(call cts-get-executable-paths,$(cts_device_executables))
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800191
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800192# All the XMLs that will end up under the repository/testcases
193# and that need to be created before making the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800194CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800195 $(call cts-get-test-xmls,$(cts_test_packages)) \
196 $(call cts-get-test-xmls,$(cts_native_exes)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700197 $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300198 $(call cts-get-test-xmls,$(cts_ui_tests)) \
199 external/deqp/android/cts/com.drawelements.deqp.gles3.xml \
200 external/deqp/android/cts/com.drawelements.deqp.gles31.xml
Brett Chabot87f44512012-11-16 16:00:02 -0800201
Brian Muramatsu12c86912011-07-21 17:26:46 -0700202# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamathfef43142014-02-14 13:27:22 +0000203CTS_TOOLS_LIST :=