blob: 053172e5991bad35ca6523f533d87b663bcc286f [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 := \
Brian Muramatsu320a7a12010-07-08 16:37:21 -070016 CtsAppAccessData \
17 CtsAppWithData \
Jeff Sharkeyb5a88dd2012-05-07 16:16:49 -070018 CtsExternalStorageApp \
Brian Muramatsu320a7a12010-07-08 16:37:21 -070019 CtsInstrumentationAppDiffCert \
20 CtsPermissionDeclareApp \
Nick Kralevich380058b2012-07-27 18:34:02 -070021 CtsPermissionDeclareAppCompat \
Jeff Sharkey85fb7652013-10-02 11:15:47 -070022 CtsReadExternalStorageApp \
Brian Muramatsu320a7a12010-07-08 16:37:21 -070023 CtsSharedUidInstall \
24 CtsSharedUidInstallDiffCert \
25 CtsSimpleAppInstall \
26 CtsSimpleAppInstallDiffCert \
27 CtsTargetInstrumentationApp \
Jeff Sharkeyb5a88dd2012-05-07 16:16:49 -070028 CtsUsePermissionDiffCert \
Jeff Sharkey429cd4e2012-10-11 17:18:31 -070029 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 \
34 CtsDeviceAdmin \
Stuart Scotta132af62013-11-07 10:30:32 -080035 CtsDeviceOpenGl \
36 CtsDeviceTaskswitchingAppA \
37 CtsDeviceTaskswitchingAppB \
38 CtsDeviceTaskswitchingControl \
39 CtsDeviceUi \
Stuart Scotta132af62013-11-07 10:30:32 -080040 CtsMonkeyApp \
41 CtsMonkeyApp2 \
Esteban Talaverab53252a2014-09-17 11:56:52 +010042 CtsProfileOwnerApp \
Stuart Scotta132af62013-11-07 10:30:32 -080043 CtsSomeAccessibilityServices \
44 CtsTestStubs \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -070045 CtsThemeDeviceApp \
Stuart Scotta132af62013-11-07 10:30:32 -080046 SignatureTest \
47 TestDeviceSetup \
48 CtsUiAutomatorApp \
49 CtsUsbSerialTestApp \
50 $(cts_security_apps_list)
Brian Muramatsube775f52012-01-10 18:26:00 -080051
52cts_external_packages := \
Brian Muramatsu1930a2e2012-01-23 10:36:13 -080053 com.replica.replicaisland
Brian Muramatsube775f52012-01-10 18:26:00 -080054
55# Any APKs that need to be copied to the CTS distribution's testcases
56# directory but do not require an associated test package XML.
57CTS_TEST_CASE_LIST := \
58 $(cts_support_packages) \
59 $(cts_external_packages)
Brian Muramatsu5df641c2011-12-28 15:46:57 -080060
61# Test packages that require an associated test package XML.
Brian Muramatsube775f52012-01-10 18:26:00 -080062cts_test_packages := \
Stuart Scotta132af62013-11-07 10:30:32 -080063 CtsDeviceFilePerf \
64 CtsDeviceUi \
65 CtsDeviceDram \
66 CtsDeviceSimpleCpu \
67 CtsDeviceBrowserBench \
68 CtsDeviceVideoPerf \
69 CtsDeviceOpenGl \
70 CtsAccelerationTestCases \
71 CtsAccountManagerTestCases \
72 CtsAccessibilityServiceTestCases \
73 CtsAccessibilityTestCases \
74 CtsAdminTestCases \
75 CtsAnimationTestCases \
76 CtsAppTestCases \
Svet Ganov31510c02014-07-28 00:07:01 -070077 CtsAppWidgetTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080078 CtsBluetoothTestCases \
79 CtsCalendarcommon2TestCases \
80 CtsContentTestCases \
81 CtsDatabaseTestCases \
82 CtsDisplayTestCases \
83 CtsDpiTestCases \
84 CtsDpiTestCases2 \
85 CtsDreamsTestCases \
86 CtsDrmTestCases \
87 CtsEffectTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080088 CtsGestureTestCases \
89 CtsGraphicsTestCases \
90 CtsGraphics2TestCases \
91 CtsHardwareTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080092 CtsJniTestCases \
93 CtsKeystoreTestCases \
94 CtsLocationTestCases \
95 CtsMediaStressTestCases \
96 CtsMediaTestCases \
97 CtsNativeOpenGLTestCases \
98 CtsNdefTestCases \
99 CtsNetTestCases \
100 CtsOpenGLTestCases \
101 CtsOpenGlPerfTestCases \
102 CtsOsTestCases \
103 CtsPermissionTestCases \
104 CtsPermission2TestCases \
105 CtsPreferenceTestCases \
106 CtsPreference2TestCases \
Svetoslav12c82d42013-12-20 12:34:52 -0800107 CtsPrintTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800108 CtsProviderTestCases \
109 CtsRenderscriptTestCases \
Chenjie Luo74e860b2014-09-08 11:36:02 -0700110 CtsRenderscriptLegacyTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800111 CtsRsCppTestCases \
112 CtsSaxTestCases \
113 CtsSecurityTestCases \
114 CtsSpeechTestCases \
Evan Charltone3b1db32014-09-15 11:17:59 -0700115 CtsTelecomTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800116 CtsTelephonyTestCases \
117 CtsTextTestCases \
118 CtsTextureViewTestCases \
119 CtsThemeTestCases \
Wonsik Kim42fe8892014-08-07 17:05:37 +0900120 CtsTvTestCases \
Svetoslav966b4e92014-03-28 13:41:17 -0700121 CtsUiAutomationTestCases \
Antonio Calabrese16ac3c82014-06-12 13:58:58 -0700122 CtsUiRenderingTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800123 CtsUtilTestCases \
124 CtsViewTestCases \
125 CtsWebkitTestCases \
Eric Pennerf0a43ae2014-08-31 14:36:51 -0700126 CtsWebGLTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800127 CtsWidgetTestCases
Brian Muramatsu2f8eead2010-09-24 14:56:43 -0700128
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800129# All APKs that need to be scanned by the coverage utilities.
130CTS_COVERAGE_TEST_CASE_LIST := \
Brian Muramatsube775f52012-01-10 18:26:00 -0800131 $(cts_support_packages) \
132 $(cts_test_packages)
Brian Muramatsu12c86912011-07-21 17:26:46 -0700133
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800134# Host side only tests
Brian Muramatsube775f52012-01-10 18:26:00 -0800135cts_host_libraries := \
Stuart Scotta132af62013-11-07 10:30:32 -0800136 CtsAdbTests \
137 CtsAppSecurityTests \
Esteban Talaverab53252a2014-09-17 11:56:52 +0100138 CtsDevicePolicyManagerTestCases \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800139 CtsHostJank \
140 CtsHostUi \
Stuart Scotta132af62013-11-07 10:30:32 -0800141 CtsMonkeyTestCases \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700142 CtsThemeHostTestCases \
dcashman5909bcd2014-08-21 15:33:24 -0700143 CtsSecurityHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800144 CtsUsbTests
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800145
146# Native test executables that need to have associated test XMLs.
Brian Muramatsube775f52012-01-10 18:26:00 -0800147cts_native_exes := \
Brian Muramatsu9c292f92011-12-14 14:53:22 -0800148 NativeMediaTest_SL \
Christopher Ferris60df2722013-08-27 14:52:00 -0700149 NativeMediaTest_XA \
Narayan Kamathfef43142014-02-14 13:27:22 +0000150
151ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
152cts_native_exes += bionic-unit-tests-cts
153endif
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800154
Brett Chabot87f44512012-11-16 16:00:02 -0800155cts_ui_tests := \
Stuart Scotta132af62013-11-07 10:30:32 -0800156 CtsUiAutomatorTests
157
158cts_device_jars := \
Svetoslav12c82d42013-12-20 12:34:52 -0800159 CtsDeviceJank \
160 CtsPrintInstrument
161
162cts_device_executables := \
163 print-instrument
Brett Chabot87f44512012-11-16 16:00:02 -0800164
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700165cts_target_junit_tests := \
166 CtsJdwp
167
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800168# All the files that will end up under the repository/testcases
169# directory of the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800170CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800171 $(call cts-get-package-paths,$(cts_test_packages)) \
172 $(call cts-get-native-paths,$(cts_native_exes)) \
173 $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800174 $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700175 $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800176 $(call cts-get-executable-paths,$(cts_device_executables))
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800177
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800178# All the XMLs that will end up under the repository/testcases
179# and that need to be created before making the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800180CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800181 $(call cts-get-test-xmls,$(cts_test_packages)) \
182 $(call cts-get-test-xmls,$(cts_native_exes)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700183 $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800184 $(call cts-get-test-xmls,$(cts_ui_tests))
Brett Chabot87f44512012-11-16 16:00:02 -0800185
Brian Muramatsu12c86912011-07-21 17:26:46 -0700186# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamathfef43142014-02-14 13:27:22 +0000187CTS_TOOLS_LIST :=