blob: 8f7b820a7bf00083ff5433ce28b2c775d6cd6e8d [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 \
27 CtsTargetInstrumentationApp \
28 CtsUsePermissionDiffCert \
29 CtsWriteExternalStorageApp \
30 CtsMultiUserStorageApp
Brian Muramatsu320a7a12010-07-08 16:37:21 -070031
Brian Muramatsube775f52012-01-10 18:26:00 -080032cts_support_packages := \
Stuart Scott1734c7f2014-02-19 17:34:36 -080033 CtsAccelerationTestStubs \
Chenjie Luo15f32be2014-09-25 11:28:03 -070034 CtsAppTestStubs \
Stuart Scott1734c7f2014-02-19 17:34:36 -080035 CtsDeviceAdmin \
Stuart Scotta132af62013-11-07 10:30:32 -080036 CtsDeviceOpenGl \
Esteban Talavera17aafef2014-09-30 17:03:32 +010037 CtsDeviceOwnerApp \
Stuart Scotta132af62013-11-07 10:30:32 -080038 CtsDeviceTaskswitchingAppA \
39 CtsDeviceTaskswitchingAppB \
40 CtsDeviceTaskswitchingControl \
41 CtsDeviceUi \
Esteban Talavera17aafef2014-09-30 17:03:32 +010042 CtsManagedProfileApp \
Stuart Scotta132af62013-11-07 10:30:32 -080043 CtsMonkeyApp \
44 CtsMonkeyApp2 \
45 CtsSomeAccessibilityServices \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -070046 CtsThemeDeviceApp \
Stuart Scotta132af62013-11-07 10:30:32 -080047 SignatureTest \
48 TestDeviceSetup \
49 CtsUiAutomatorApp \
50 CtsUsbSerialTestApp \
51 $(cts_security_apps_list)
Brian Muramatsube775f52012-01-10 18:26:00 -080052
53cts_external_packages := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030054 com.replica.replicaisland \
55 com.drawelements.deqp
Brian Muramatsube775f52012-01-10 18:26:00 -080056
57# Any APKs that need to be copied to the CTS distribution's testcases
58# directory but do not require an associated test package XML.
59CTS_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +030060 $(cts_support_packages) \
61 $(cts_external_packages)
Brian Muramatsu5df641c2011-12-28 15:46:57 -080062
63# Test packages that require an associated test package XML.
Brian Muramatsube775f52012-01-10 18:26:00 -080064cts_test_packages := \
Stuart Scotta132af62013-11-07 10:30:32 -080065 CtsDeviceFilePerf \
66 CtsDeviceUi \
67 CtsDeviceDram \
68 CtsDeviceSimpleCpu \
69 CtsDeviceBrowserBench \
70 CtsDeviceVideoPerf \
71 CtsDeviceOpenGl \
72 CtsAccelerationTestCases \
73 CtsAccountManagerTestCases \
74 CtsAccessibilityServiceTestCases \
75 CtsAccessibilityTestCases \
76 CtsAdminTestCases \
77 CtsAnimationTestCases \
78 CtsAppTestCases \
Svet Ganov31510c02014-07-28 00:07:01 -070079 CtsAppWidgetTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080080 CtsBluetoothTestCases \
81 CtsCalendarcommon2TestCases \
82 CtsContentTestCases \
83 CtsDatabaseTestCases \
84 CtsDisplayTestCases \
85 CtsDpiTestCases \
86 CtsDpiTestCases2 \
87 CtsDreamsTestCases \
88 CtsDrmTestCases \
89 CtsEffectTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080090 CtsGestureTestCases \
91 CtsGraphicsTestCases \
92 CtsGraphics2TestCases \
93 CtsHardwareTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080094 CtsJniTestCases \
95 CtsKeystoreTestCases \
96 CtsLocationTestCases \
Chenjie Luo693ed402014-09-11 15:12:33 -070097 CtsLocation2TestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080098 CtsMediaStressTestCases \
99 CtsMediaTestCases \
100 CtsNativeOpenGLTestCases \
101 CtsNdefTestCases \
102 CtsNetTestCases \
103 CtsOpenGLTestCases \
104 CtsOpenGlPerfTestCases \
105 CtsOsTestCases \
106 CtsPermissionTestCases \
107 CtsPermission2TestCases \
108 CtsPreferenceTestCases \
109 CtsPreference2TestCases \
Svetoslav12c82d42013-12-20 12:34:52 -0800110 CtsPrintTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800111 CtsProviderTestCases \
112 CtsRenderscriptTestCases \
Chenjie Luo74e860b2014-09-08 11:36:02 -0700113 CtsRenderscriptLegacyTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800114 CtsRsCppTestCases \
115 CtsSaxTestCases \
116 CtsSecurityTestCases \
117 CtsSpeechTestCases \
118 CtsTelephonyTestCases \
119 CtsTextTestCases \
120 CtsTextureViewTestCases \
121 CtsThemeTestCases \
Wonsik Kim42fe8892014-08-07 17:05:37 +0900122 CtsTvTestCases \
Svetoslav966b4e92014-03-28 13:41:17 -0700123 CtsUiAutomationTestCases \
Antonio Calabrese16ac3c82014-06-12 13:58:58 -0700124 CtsUiRenderingTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800125 CtsUtilTestCases \
126 CtsViewTestCases \
127 CtsWebkitTestCases \
Eric Pennerf0a43ae2014-08-31 14:36:51 -0700128 CtsWebGLTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800129 CtsWidgetTestCases
Brian Muramatsu2f8eead2010-09-24 14:56:43 -0700130
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800131# All APKs that need to be scanned by the coverage utilities.
132CTS_COVERAGE_TEST_CASE_LIST := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300133 $(cts_support_packages) \
134 $(cts_test_packages)
Brian Muramatsu12c86912011-07-21 17:26:46 -0700135
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800136# Host side only tests
Brian Muramatsube775f52012-01-10 18:26:00 -0800137cts_host_libraries := \
Stuart Scotta132af62013-11-07 10:30:32 -0800138 CtsAdbTests \
139 CtsAppSecurityTests \
Esteban Talaverab53252a2014-09-17 11:56:52 +0100140 CtsDevicePolicyManagerTestCases \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800141 CtsHostJank \
142 CtsHostUi \
Stuart Scotta132af62013-11-07 10:30:32 -0800143 CtsMonkeyTestCases \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700144 CtsThemeHostTestCases \
dcashman5909bcd2014-08-21 15:33:24 -0700145 CtsSecurityHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800146 CtsUsbTests
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800147
148# Native test executables that need to have associated test XMLs.
Brian Muramatsube775f52012-01-10 18:26:00 -0800149cts_native_exes := \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300150 NativeMediaTest_SL \
151 NativeMediaTest_XA \
Narayan Kamathfef43142014-02-14 13:27:22 +0000152
153ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
154cts_native_exes += bionic-unit-tests-cts
155endif
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800156
Brett Chabot87f44512012-11-16 16:00:02 -0800157cts_ui_tests := \
Stuart Scotta132af62013-11-07 10:30:32 -0800158 CtsUiAutomatorTests
159
160cts_device_jars := \
Svetoslav12c82d42013-12-20 12:34:52 -0800161 CtsDeviceJank \
162 CtsPrintInstrument
163
164cts_device_executables := \
165 print-instrument
Brett Chabot87f44512012-11-16 16:00:02 -0800166
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700167cts_target_junit_tests := \
168 CtsJdwp
169
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800170# All the files that will end up under the repository/testcases
171# directory of the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800172CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800173 $(call cts-get-package-paths,$(cts_test_packages)) \
174 $(call cts-get-native-paths,$(cts_native_exes)) \
175 $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800176 $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700177 $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800178 $(call cts-get-executable-paths,$(cts_device_executables))
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800179
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800180# All the XMLs that will end up under the repository/testcases
181# and that need to be created before making the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800182CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800183 $(call cts-get-test-xmls,$(cts_test_packages)) \
184 $(call cts-get-test-xmls,$(cts_native_exes)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700185 $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
Mika Isojärvi84e65932014-09-11 18:11:07 +0300186 $(call cts-get-test-xmls,$(cts_ui_tests)) \
187 external/deqp/android/cts/com.drawelements.deqp.gles3.xml \
188 external/deqp/android/cts/com.drawelements.deqp.gles31.xml
Brett Chabot87f44512012-11-16 16:00:02 -0800189
Brian Muramatsu12c86912011-07-21 17:26:46 -0700190# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamathfef43142014-02-14 13:27:22 +0000191CTS_TOOLS_LIST :=