blob: ae6c16c73fdcfd0d0ed94f8059cfbef4e435787d [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 \
Jeff Sharkeycd627da2014-12-10 14:31:12 -080037 CtsSplitAppDiffRevision \
Jeff Sharkey6302bb52014-10-07 12:09:40 -070038 CtsSplitAppDiffVersion \
39 CtsSplitAppDiffCert \
Jeff Sharkeyd724a392014-10-08 16:37:51 -070040 CtsSplitAppFeature \
Mika Isojärvi84e65932014-09-11 18:11:07 +030041 CtsTargetInstrumentationApp \
42 CtsUsePermissionDiffCert \
43 CtsWriteExternalStorageApp \
44 CtsMultiUserStorageApp
Brian Muramatsu320a7a12010-07-08 16:37:21 -070045
dcashmane84939a2014-08-21 15:33:24 -070046cts_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
Brian Muramatsube775f52012-01-10 18:26:00 -080062cts_support_packages := \
Stuart Scott1734c7f2014-02-19 17:34:36 -080063 CtsAccelerationTestStubs \
Chenjie Luo15f32be2014-09-25 11:28:03 -070064 CtsAppTestStubs \
Stuart Scott1734c7f2014-02-19 17:34:36 -080065 CtsDeviceAdmin \
Stuart Scotta132af62013-11-07 10:30:32 -080066 CtsDeviceOpenGl \
Esteban Talavera17aafef2014-09-30 17:03:32 +010067 CtsDeviceOwnerApp \
Stuart Scotta132af62013-11-07 10:30:32 -080068 CtsDeviceTaskswitchingAppA \
69 CtsDeviceTaskswitchingAppB \
70 CtsDeviceTaskswitchingControl \
71 CtsDeviceUi \
Lorenzo Colitti33b838b2014-11-16 20:09:24 -080072 CtsHostsideNetworkTestsApp \
Nicolas Prevot7366f3f2014-10-01 13:56:18 +010073 CtsIntentReceiverApp \
Jeff Sharkey8d959c12014-10-14 14:16:31 -070074 CtsIntentSenderApp \
Kenny Guyda652442015-01-26 14:49:13 +000075 CtsLauncherAppsTests \
76 CtsLauncherAppsTestsSupport \
Esteban Talavera17aafef2014-09-30 17:03:32 +010077 CtsManagedProfileApp \
Stuart Scotta132af62013-11-07 10:30:32 -080078 CtsMonkeyApp \
79 CtsMonkeyApp2 \
Kenny Guyda652442015-01-26 14:49:13 +000080 CtsSimpleApp \
Stuart Scotta132af62013-11-07 10:30:32 -080081 CtsSomeAccessibilityServices \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -070082 CtsThemeDeviceApp \
Stuart Scotta132af62013-11-07 10:30:32 -080083 TestDeviceSetup \
84 CtsUiAutomatorApp \
85 CtsUsbSerialTestApp \
dcashmane84939a2014-08-21 15:33:24 -070086 $(cts_security_apps_list) \
87 $(cts_security_keysets_list)
Brian Muramatsube775f52012-01-10 18:26:00 -080088
89cts_external_packages := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030090 com.replica.replicaisland \
91 com.drawelements.deqp
Brian Muramatsube775f52012-01-10 18:26:00 -080092
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 := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030096 $(cts_support_packages) \
97 $(cts_external_packages)
Brian Muramatsu5df641c2011-12-28 15:46:57 -080098
99# Test packages that require an associated test package XML.
Brian Muramatsube775f52012-01-10 18:26:00 -0800100cts_test_packages := \
Stuart Scotta132af62013-11-07 10:30:32 -0800101 CtsDeviceFilePerf \
102 CtsDeviceUi \
103 CtsDeviceDram \
104 CtsDeviceSimpleCpu \
105 CtsDeviceBrowserBench \
106 CtsDeviceVideoPerf \
107 CtsDeviceOpenGl \
Wonsik Kim37388882014-09-07 12:24:20 +0900108 CtsDeviceTvProviderPerf \
Stuart Scotta132af62013-11-07 10:30:32 -0800109 CtsAccelerationTestCases \
110 CtsAccountManagerTestCases \
111 CtsAccessibilityServiceTestCases \
112 CtsAccessibilityTestCases \
113 CtsAdminTestCases \
114 CtsAnimationTestCases \
115 CtsAppTestCases \
Svet Ganov31510c02014-07-28 00:07:01 -0700116 CtsAppWidgetTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800117 CtsBluetoothTestCases \
118 CtsCalendarcommon2TestCases \
119 CtsContentTestCases \
120 CtsDatabaseTestCases \
121 CtsDisplayTestCases \
122 CtsDpiTestCases \
123 CtsDpiTestCases2 \
124 CtsDreamsTestCases \
125 CtsDrmTestCases \
126 CtsEffectTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800127 CtsGestureTestCases \
128 CtsGraphicsTestCases \
129 CtsGraphics2TestCases \
130 CtsHardwareTestCases \
Guang Zhucf5c2542015-03-09 23:13:27 -0700131 CtsJankTestCases \
Matthew Williams547b8162014-10-15 10:18:11 -0700132 CtsJobSchedulerDeviceTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800133 CtsJniTestCases \
134 CtsKeystoreTestCases \
Neil Fuller92b89af2015-04-16 18:21:49 +0100135 CtsLibcoreLegacy22TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800136 CtsLocationTestCases \
Chenjie Luo693ed402014-09-11 15:12:33 -0700137 CtsLocation2TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800138 CtsMediaStressTestCases \
139 CtsMediaTestCases \
140 CtsNativeOpenGLTestCases \
141 CtsNdefTestCases \
142 CtsNetTestCases \
143 CtsOpenGLTestCases \
144 CtsOpenGlPerfTestCases \
145 CtsOsTestCases \
146 CtsPermissionTestCases \
147 CtsPermission2TestCases \
148 CtsPreferenceTestCases \
149 CtsPreference2TestCases \
Svetoslav12c82d42013-12-20 12:34:52 -0800150 CtsPrintTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800151 CtsProviderTestCases \
152 CtsRenderscriptTestCases \
Chenjie Luo74e860b2014-09-08 11:36:02 -0700153 CtsRenderscriptLegacyTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800154 CtsRsCppTestCases \
155 CtsSaxTestCases \
156 CtsSecurityTestCases \
Stuart Scottf67280f2014-09-30 14:07:30 -0700157 CtsSignatureTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800158 CtsSpeechTestCases \
159 CtsTelephonyTestCases \
160 CtsTextTestCases \
161 CtsTextureViewTestCases \
162 CtsThemeTestCases \
Wonsik Kim42fe8892014-08-07 17:05:37 +0900163 CtsTvTestCases \
Svetoslav966b4e92014-03-28 13:41:17 -0700164 CtsUiAutomationTestCases \
Antonio Calabrese16ac3c82014-06-12 13:58:58 -0700165 CtsUiRenderingTestCases \
Adam Lesinski4da0bc02014-07-30 11:52:12 -0700166 CtsUsageStatsTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800167 CtsUtilTestCases \
168 CtsViewTestCases \
169 CtsWebkitTestCases \
Eric Pennerf0a43ae2014-08-31 14:36:51 -0700170 CtsWebGLTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800171 CtsWidgetTestCases
Brian Muramatsu2f8eead2010-09-24 14:56:43 -0700172
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800173# All APKs that need to be scanned by the coverage utilities.
174CTS_COVERAGE_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300175 $(cts_support_packages) \
176 $(cts_test_packages)
Brian Muramatsu12c86912011-07-21 17:26:46 -0700177
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800178# Host side only tests
Brian Muramatsube775f52012-01-10 18:26:00 -0800179cts_host_libraries := \
Stuart Scotta132af62013-11-07 10:30:32 -0800180 CtsAdbTests \
181 CtsAppSecurityTests \
Esteban Talaverab53252a2014-09-17 11:56:52 +0100182 CtsDevicePolicyManagerTestCases \
Roman Dudkoda4fccc2014-11-13 11:27:26 -0800183 CtsDumpsysHostTestCases \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800184 CtsHostJank \
Lorenzo Colitti33b838b2014-11-16 20:09:24 -0800185 CtsHostsideNetworkTests \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800186 CtsHostUi \
Stuart Scotta132af62013-11-07 10:30:32 -0800187 CtsMonkeyTestCases \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700188 CtsThemeHostTestCases \
dcashman5909bcd2014-08-21 15:33:24 -0700189 CtsSecurityHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800190 CtsUsbTests
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800191
Christopher Ferris286aca52014-10-15 18:08:41 -0700192# List of native tests. For 32 bit targets, assumes that there will be
193# one test executable, and it will end in 32. For 64 bit targets, assumes
194# that there will be two executables, one that ends in 32 for the 32
195# bit executable and one that ends in 64 for the 64 bit executable.
196cts_native_tests := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300197 NativeMediaTest_SL \
198 NativeMediaTest_XA \
Narayan Kamathfef43142014-02-14 13:27:22 +0000199
200ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
Christopher Ferris286aca52014-10-15 18:08:41 -0700201cts_native_tests += bionic-unit-tests-cts
Narayan Kamathfef43142014-02-14 13:27:22 +0000202endif
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800203
Brett Chabot87f44512012-11-16 16:00:02 -0800204cts_ui_tests := \
Stuart Scotta132af62013-11-07 10:30:32 -0800205 CtsUiAutomatorTests
206
207cts_device_jars := \
Guang Zhuba2f09c2015-01-26 11:04:08 -0800208 CtsDeviceJank
Svetoslav12c82d42013-12-20 12:34:52 -0800209
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700210cts_target_junit_tests := \
211 CtsJdwp
212
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700213cts_deqp_test_apis := \
Pyry Haulos3d698f22015-04-14 13:52:46 -0700214 egl \
215 gles2 \
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700216 gles3 \
217 gles31
218
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800219# All the files that will end up under the repository/testcases
220# directory of the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800221CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800222 $(call cts-get-package-paths,$(cts_test_packages)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800223 $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800224 $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700225 $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
Stuart Scott0337dbf2015-02-04 10:37:07 -0800226 $(call cts-get-executable-paths,$(cts_device_executables)) \
227 $(call cts-get-native-paths,$(cts_native_tests),32)
Christopher Ferris286aca52014-10-15 18:08:41 -0700228
229ifeq ($(TARGET_IS_64_BIT),true)
230CTS_TEST_CASES += $(call cts-get-native-paths,$(cts_native_tests),64)
231endif
232
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800233# All the XMLs that will end up under the repository/testcases
234# and that need to be created before making the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800235CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800236 $(call cts-get-test-xmls,$(cts_test_packages)) \
Christopher Ferris286aca52014-10-15 18:08:41 -0700237 $(call cts-get-test-xmls,$(cts_native_tests)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700238 $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300239 $(call cts-get-test-xmls,$(cts_ui_tests)) \
Jarkko Pöyry59a8dbb2014-10-13 22:01:15 -0700240 $(call cts-get-deqp-test-xmls,$(cts_deqp_test_apis))
Brett Chabot87f44512012-11-16 16:00:02 -0800241
Brian Muramatsu12c86912011-07-21 17:26:46 -0700242# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamathfef43142014-02-14 13:27:22 +0000243CTS_TOOLS_LIST :=