blob: 9d81932e50eaa8dddd6a2f34725aca067757f530 [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 \
42 CtsSomeAccessibilityServices \
43 CtsTestStubs \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -070044 CtsThemeDeviceApp \
Stuart Scotta132af62013-11-07 10:30:32 -080045 SignatureTest \
46 TestDeviceSetup \
47 CtsUiAutomatorApp \
48 CtsUsbSerialTestApp \
49 $(cts_security_apps_list)
Brian Muramatsube775f52012-01-10 18:26:00 -080050
51cts_external_packages := \
Brian Muramatsu1930a2e2012-01-23 10:36:13 -080052 com.replica.replicaisland
Brian Muramatsube775f52012-01-10 18:26:00 -080053
54# Any APKs that need to be copied to the CTS distribution's testcases
55# directory but do not require an associated test package XML.
56CTS_TEST_CASE_LIST := \
57 $(cts_support_packages) \
58 $(cts_external_packages)
Brian Muramatsu5df641c2011-12-28 15:46:57 -080059
60# Test packages that require an associated test package XML.
Brian Muramatsube775f52012-01-10 18:26:00 -080061cts_test_packages := \
Stuart Scotta132af62013-11-07 10:30:32 -080062 CtsDeviceFilePerf \
63 CtsDeviceUi \
64 CtsDeviceDram \
65 CtsDeviceSimpleCpu \
66 CtsDeviceBrowserBench \
67 CtsDeviceVideoPerf \
68 CtsDeviceOpenGl \
69 CtsAccelerationTestCases \
70 CtsAccountManagerTestCases \
71 CtsAccessibilityServiceTestCases \
72 CtsAccessibilityTestCases \
73 CtsAdminTestCases \
74 CtsAnimationTestCases \
75 CtsAppTestCases \
Svet Ganov31510c02014-07-28 00:07:01 -070076 CtsAppWidgetTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080077 CtsBluetoothTestCases \
78 CtsCalendarcommon2TestCases \
79 CtsContentTestCases \
80 CtsDatabaseTestCases \
81 CtsDisplayTestCases \
82 CtsDpiTestCases \
83 CtsDpiTestCases2 \
84 CtsDreamsTestCases \
85 CtsDrmTestCases \
86 CtsEffectTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080087 CtsGestureTestCases \
88 CtsGraphicsTestCases \
89 CtsGraphics2TestCases \
90 CtsHardwareTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -080091 CtsJniTestCases \
92 CtsKeystoreTestCases \
93 CtsLocationTestCases \
94 CtsMediaStressTestCases \
95 CtsMediaTestCases \
96 CtsNativeOpenGLTestCases \
97 CtsNdefTestCases \
98 CtsNetTestCases \
99 CtsOpenGLTestCases \
100 CtsOpenGlPerfTestCases \
101 CtsOsTestCases \
102 CtsPermissionTestCases \
103 CtsPermission2TestCases \
104 CtsPreferenceTestCases \
105 CtsPreference2TestCases \
Svetoslav12c82d42013-12-20 12:34:52 -0800106 CtsPrintTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800107 CtsProviderTestCases \
108 CtsRenderscriptTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800109 CtsRsCppTestCases \
110 CtsSaxTestCases \
111 CtsSecurityTestCases \
112 CtsSpeechTestCases \
Evan Charlton8a8eec22014-08-12 06:11:15 -0700113 CtsTelecommTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800114 CtsTelephonyTestCases \
115 CtsTextTestCases \
116 CtsTextureViewTestCases \
117 CtsThemeTestCases \
Wonsik Kim42fe8892014-08-07 17:05:37 +0900118 CtsTvTestCases \
Svetoslav966b4e92014-03-28 13:41:17 -0700119 CtsUiAutomationTestCases \
Antonio Calabrese16ac3c82014-06-12 13:58:58 -0700120 CtsUiRenderingTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800121 CtsUtilTestCases \
122 CtsViewTestCases \
123 CtsWebkitTestCases \
124 CtsWidgetTestCases
Brian Muramatsu2f8eead2010-09-24 14:56:43 -0700125
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800126# All APKs that need to be scanned by the coverage utilities.
127CTS_COVERAGE_TEST_CASE_LIST := \
Brian Muramatsube775f52012-01-10 18:26:00 -0800128 $(cts_support_packages) \
129 $(cts_test_packages)
Brian Muramatsu12c86912011-07-21 17:26:46 -0700130
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800131# Host side only tests
Brian Muramatsube775f52012-01-10 18:26:00 -0800132cts_host_libraries := \
Stuart Scotta132af62013-11-07 10:30:32 -0800133 CtsAdbTests \
134 CtsAppSecurityTests \
Stuart Scott1734c7f2014-02-19 17:34:36 -0800135 CtsHostJank \
136 CtsHostUi \
Stuart Scotta132af62013-11-07 10:30:32 -0800137 CtsMonkeyTestCases \
Chenjie Luo42aaa5c2014-08-20 18:33:47 -0700138 CtsThemeHostTestCases \
Stuart Scotta132af62013-11-07 10:30:32 -0800139 CtsUsbTests
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800140
141# Native test executables that need to have associated test XMLs.
Brian Muramatsube775f52012-01-10 18:26:00 -0800142cts_native_exes := \
Brian Muramatsu9c292f92011-12-14 14:53:22 -0800143 NativeMediaTest_SL \
Christopher Ferris60df2722013-08-27 14:52:00 -0700144 NativeMediaTest_XA \
Narayan Kamathfef43142014-02-14 13:27:22 +0000145
146ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
147cts_native_exes += bionic-unit-tests-cts
148endif
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800149
Brett Chabot87f44512012-11-16 16:00:02 -0800150cts_ui_tests := \
Stuart Scotta132af62013-11-07 10:30:32 -0800151 CtsUiAutomatorTests
152
153cts_device_jars := \
Svetoslav12c82d42013-12-20 12:34:52 -0800154 CtsDeviceJank \
155 CtsPrintInstrument
156
157cts_device_executables := \
158 print-instrument
Brett Chabot87f44512012-11-16 16:00:02 -0800159
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700160cts_target_junit_tests := \
161 CtsJdwp
162
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800163# All the files that will end up under the repository/testcases
164# directory of the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800165CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800166 $(call cts-get-package-paths,$(cts_test_packages)) \
167 $(call cts-get-native-paths,$(cts_native_exes)) \
168 $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800169 $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700170 $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
Svetoslav12c82d42013-12-20 12:34:52 -0800171 $(call cts-get-executable-paths,$(cts_device_executables))
Brian Muramatsu88d32a82011-12-02 10:55:12 -0800172
Brian Muramatsu5df641c2011-12-28 15:46:57 -0800173# All the XMLs that will end up under the repository/testcases
174# and that need to be created before making the final CTS distribution.
Brian Muramatsube775f52012-01-10 18:26:00 -0800175CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800176 $(call cts-get-test-xmls,$(cts_test_packages)) \
177 $(call cts-get-test-xmls,$(cts_native_exes)) \
Tsu Chiang Chuang06f4c562014-06-18 09:57:57 -0700178 $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
Stuart Scotta132af62013-11-07 10:30:32 -0800179 $(call cts-get-test-xmls,$(cts_ui_tests))
Brett Chabot87f44512012-11-16 16:00:02 -0800180
Brian Muramatsu12c86912011-07-21 17:26:46 -0700181# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamathfef43142014-02-14 13:27:22 +0000182CTS_TOOLS_LIST :=