blob: c01f82707bf9c20262f5c22c99048ce21a5593ca [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 \
37 CtsSplitAppDiffVersion \
38 CtsSplitAppDiffCert \
Mika Isojärvi84e65932014-09-11 18:11:07 +030039 CtsTargetInstrumentationApp \
40 CtsUsePermissionDiffCert \
41 CtsWriteExternalStorageApp \
42 CtsMultiUserStorageApp
Brian Muramatsu320a7a12010-07-08 16:37:21 -070043
Brian Muramatsube775f52012-01-10 18:26:00 -080044cts_support_packages := \
Stuart Scott1734c7f2014-02-19 17:34:36 -080045 CtsAccelerationTestStubs \
Chenjie Luo15f32be2014-09-25 11:28:03 -070046 CtsAppTestStubs \
Stuart Scott1734c7f2014-02-19 17:34:36 -080047 CtsDeviceAdmin \
Stuart Scotta132af62013-11-07 10:30:32 -080048 CtsDeviceOpenGl \
Esteban Talavera17aafef2014-09-30 17:03:32 +010049 CtsDeviceOwnerApp \
Stuart Scotta132af62013-11-07 10:30:32 -080050 CtsDeviceTaskswitchingAppA \
51 CtsDeviceTaskswitchingAppB \
52 CtsDeviceTaskswitchingControl \
53 CtsDeviceUi \
Nicolas Prevot7366f3f2014-10-01 13:56:18 +010054 CtsIntentReceiverApp \
Esteban Talavera17aafef2014-09-30 17:03:32 +010055 CtsManagedProfileApp \
Stuart Scotta132af62013-11-07 10:30:32 -080056 CtsMonkeyApp \
57 CtsMonkeyApp2 \
58 CtsSomeAccessibilityServices \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -070059 CtsThemeDeviceApp \
Stuart Scotta132af62013-11-07 10:30:32 -080060 TestDeviceSetup \
61 CtsUiAutomatorApp \
62 CtsUsbSerialTestApp \
63 $(cts_security_apps_list)
Brian Muramatsube775f52012-01-10 18:26:00 -080064
65cts_external_packages := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030066 com.replica.replicaisland \
67 com.drawelements.deqp
Brian Muramatsube775f52012-01-10 18:26:00 -080068
69# Any APKs that need to be copied to the CTS distribution's testcases
70# directory but do not require an associated test package XML.
71CTS_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030072 $(cts_support_packages) \
73 $(cts_external_packages)
Brian Muramatsu5df641c2011-12-28 15:46:57 -080074
75# Test packages that require an associated test package XML.
Brian Muramatsube775f52012-01-10 18:26:00 -080076cts_test_packages := \
Stuart Scotta132af62013-11-07 10:30:32 -080077 CtsDeviceFilePerf \
78 CtsDeviceUi \
79 CtsDeviceDram \
80 CtsDeviceSimpleCpu \
81 CtsDeviceBrowserBench \
82 CtsDeviceVideoPerf \
83 CtsDeviceOpenGl \
84 CtsAccelerationTestCases \
85 CtsAccountManagerTestCases \
86 CtsAccessibilityServiceTestCases \
87 CtsAccessibilityTestCases \
88 CtsAdminTestCases \
89 CtsAnimationTestCases \
90 CtsAppTestCases \
Svet Ganov31510c02014-07-28 00:07:01 -070091 CtsAppWidgetTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080092 CtsBluetoothTestCases \
93 CtsCalendarcommon2TestCases \
94 CtsContentTestCases \
95 CtsDatabaseTestCases \
96 CtsDisplayTestCases \
97 CtsDpiTestCases \
98 CtsDpiTestCases2 \
99 CtsDreamsTestCases \
100 CtsDrmTestCases \
101 CtsEffectTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800102 CtsGestureTestCases \
103 CtsGraphicsTestCases \
104 CtsGraphics2TestCases \
105 CtsHardwareTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800106 CtsJniTestCases \
107 CtsKeystoreTestCases \
108 CtsLocationTestCases \
Chenjie Luo693ed402014-09-11 15:12:33 -0700109 CtsLocation2TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800110 CtsMediaStressTestCases \
111 CtsMediaTestCases \
112 CtsNativeOpenGLTestCases \
113 CtsNdefTestCases \
114 CtsNetTestCases \
115 CtsOpenGLTestCases \
116 CtsOpenGlPerfTestCases \
117 CtsOsTestCases \
118 CtsPermissionTestCases \
119 CtsPermission2TestCases \
120 CtsPreferenceTestCases \
121 CtsPreference2TestCases \
Svetoslav12c82d42013-12-20 12:34:52 -0800122 CtsPrintTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800123 CtsProviderTestCases \
124 CtsRenderscriptTestCases \
Chenjie Luo74e860b2014-09-08 11:36:02 -0700125 CtsRenderscriptLegacyTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800126 CtsRsCppTestCases \
127 CtsSaxTestCases \
128 CtsSecurityTestCases \
Stuart Scottf67280f2014-09-30 14:07:30 -0700129 CtsSignatureTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800130 CtsSpeechTestCases \
131 CtsTelephonyTestCases \
132 CtsTextTestCases \
133 CtsTextureViewTestCases \
134 CtsThemeTestCases \
Wonsik Kim42fe8892014-08-07 17:05:37 +0900135 CtsTvTestCases \
Svetoslav966b4e92014-03-28 13:41:17 -0700136 CtsUiAutomationTestCases \
Antonio Calabrese16ac3c82014-06-12 13:58:58 -0700137 CtsUiRenderingTestCases \
Adam Lesinski4da0bc02014-07-30 11:52:12 -0700138 CtsUsageStatsTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800139 CtsUtilTestCases \
140 CtsViewTestCases \
141 CtsWebkitTestCases \
Eric Pennerf0a43ae2014-08-31 14:36:51 -0700142 CtsWebGLTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800143 CtsWidgetTestCases
Brian Muramatsu2f8eead2010-09-24 14:56:43 -0700144
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800145# All APKs that need to be scanned by the coverage utilities.
146CTS_COVERAGE_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300147 $(cts_support_packages) \
148 $(cts_test_packages)
Brian Muramatsu12c86912011-07-21 17:26:46 -0700149
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800150# Host side only tests
Brian Muramatsube775f52012-01-10 18:26:00 -0800151cts_host_libraries := \
Stuart Scotta132af62013-11-07 10:30:32 -0800152 CtsAdbTests \
153 CtsAppSecurityTests \
Esteban Talaverab53252a2014-09-17 11:56:52 +0100154 CtsDevicePolicyManagerTestCases \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800155 CtsHostJank \
156 CtsHostUi \
Stuart Scotta132af62013-11-07 10:30:32 -0800157 CtsMonkeyTestCases \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700158 CtsThemeHostTestCases \
dcashman5909bcd2014-08-21 15:33:24 -0700159 CtsSecurityHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800160 CtsUsbTests
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800161
162# Native test executables that need to have associated test XMLs.
Brian Muramatsube775f52012-01-10 18:26:00 -0800163cts_native_exes := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300164 NativeMediaTest_SL \
165 NativeMediaTest_XA \
Narayan Kamathfef43142014-02-14 13:27:22 +0000166
167ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
168cts_native_exes += bionic-unit-tests-cts
169endif
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800170
Brett Chabot87f44512012-11-16 16:00:02 -0800171cts_ui_tests := \
Stuart Scotta132af62013-11-07 10:30:32 -0800172 CtsUiAutomatorTests
173
174cts_device_jars := \
Svetoslav12c82d42013-12-20 12:34:52 -0800175 CtsDeviceJank \
176 CtsPrintInstrument
177
178cts_device_executables := \
179 print-instrument
Brett Chabot87f44512012-11-16 16:00:02 -0800180
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700181cts_target_junit_tests := \
182 CtsJdwp
183
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800184# All the files that will end up under the repository/testcases
185# directory of the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800186CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800187 $(call cts-get-package-paths,$(cts_test_packages)) \
188 $(call cts-get-native-paths,$(cts_native_exes)) \
189 $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800190 $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700191 $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800192 $(call cts-get-executable-paths,$(cts_device_executables))
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800193
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800194# All the XMLs that will end up under the repository/testcases
195# and that need to be created before making the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800196CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800197 $(call cts-get-test-xmls,$(cts_test_packages)) \
198 $(call cts-get-test-xmls,$(cts_native_exes)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700199 $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300200 $(call cts-get-test-xmls,$(cts_ui_tests)) \
201 external/deqp/android/cts/com.drawelements.deqp.gles3.xml \
202 external/deqp/android/cts/com.drawelements.deqp.gles31.xml
Brett Chabot87f44512012-11-16 16:00:02 -0800203
Brian Muramatsu12c86912011-07-21 17:26:46 -0700204# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamathfef43142014-02-14 13:27:22 +0000205CTS_TOOLS_LIST :=