CtsTestCaseList.mk 5.27 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

Brian Muramatsu's avatar
Brian Muramatsu committed
15
cts_security_apps_list := \
16 17
	CtsAppAccessData \
	CtsAppWithData \
18
	CtsExternalStorageApp \
19 20
	CtsInstrumentationAppDiffCert \
	CtsPermissionDeclareApp \
21
	CtsPermissionDeclareAppCompat \
22
	CtsReadExternalStorageApp \
23 24 25 26 27
	CtsSharedUidInstall \
	CtsSharedUidInstallDiffCert \
	CtsSimpleAppInstall \
	CtsSimpleAppInstallDiffCert \
	CtsTargetInstrumentationApp \
28
	CtsUsePermissionDiffCert \
29 30
	CtsWriteExternalStorageApp \
	CtsMultiUserStorageApp
31

Brian Muramatsu's avatar
Brian Muramatsu committed
32
cts_support_packages := \
33 34
    CtsAccelerationTestStubs \
    CtsDeviceAdmin \
35 36 37 38 39
    CtsDeviceOpenGl \
    CtsDeviceTaskswitchingAppA \
    CtsDeviceTaskswitchingAppB \
    CtsDeviceTaskswitchingControl \
    CtsDeviceUi \
40
    CtsHoloDeviceApp \
41 42 43 44 45 46 47 48 49
    CtsMonkeyApp \
    CtsMonkeyApp2 \
    CtsSomeAccessibilityServices \
    CtsTestStubs \
    SignatureTest \
    TestDeviceSetup \
    CtsUiAutomatorApp \
    CtsUsbSerialTestApp \
    $(cts_security_apps_list)
Brian Muramatsu's avatar
Brian Muramatsu committed
50 51

cts_external_packages := \
52
	com.replica.replicaisland
Brian Muramatsu's avatar
Brian Muramatsu committed
53 54 55 56 57 58

# Any APKs that need to be copied to the CTS distribution's testcases
# directory but do not require an associated test package XML.
CTS_TEST_CASE_LIST := \
	$(cts_support_packages) \
	$(cts_external_packages)
59 60

# Test packages that require an associated test package XML.
Brian Muramatsu's avatar
Brian Muramatsu committed
61
cts_test_packages := \
62 63 64 65 66 67 68 69 70 71 72 73 74 75
    CtsDeviceFilePerf \
    CtsDeviceUi \
    CtsDeviceDram \
    CtsDeviceSimpleCpu \
    CtsDeviceBrowserBench \
    CtsDeviceVideoPerf \
    CtsDeviceOpenGl \
    CtsAccelerationTestCases \
    CtsAccountManagerTestCases \
    CtsAccessibilityServiceTestCases \
    CtsAccessibilityTestCases \
    CtsAdminTestCases \
    CtsAnimationTestCases \
    CtsAppTestCases \
76
    CtsAppWidgetTestCases \
77 78 79 80 81 82 83 84 85 86 87 88 89 90
    CtsBluetoothTestCases \
    CtsCalendarcommon2TestCases \
    CtsContentTestCases \
    CtsDatabaseTestCases \
    CtsDisplayTestCases \
    CtsDpiTestCases \
    CtsDpiTestCases2 \
    CtsDreamsTestCases \
    CtsDrmTestCases \
    CtsEffectTestCases \
    CtsGestureTestCases \
    CtsGraphicsTestCases \
    CtsGraphics2TestCases \
    CtsHardwareTestCases \
91
    CtsHoloTestCases \
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
    CtsJniTestCases \
    CtsKeystoreTestCases \
    CtsLocationTestCases \
    CtsMediaStressTestCases \
    CtsMediaTestCases \
    CtsNativeOpenGLTestCases \
    CtsNdefTestCases \
    CtsNetTestCases \
    CtsOpenGLTestCases \
    CtsOpenGlPerfTestCases \
    CtsOsTestCases \
    CtsPermissionTestCases \
    CtsPermission2TestCases \
    CtsPreferenceTestCases \
    CtsPreference2TestCases \
107
    CtsPrintTestCases \
108 109 110 111 112 113 114 115 116 117 118
    CtsProviderTestCases \
    CtsRenderscriptTestCases \
    CtsRenderscriptGraphicsTestCases \
    CtsRsCppTestCases \
    CtsSaxTestCases \
    CtsSecurityTestCases \
    CtsSpeechTestCases \
    CtsTelephonyTestCases \
    CtsTextTestCases \
    CtsTextureViewTestCases \
    CtsThemeTestCases \
Wonsik Kim's avatar
Wonsik Kim committed
119
    CtsTvTestCases \
120
    CtsUiAutomationTestCases \
121
    CtsUiRenderingTestCases \
122 123 124
    CtsUtilTestCases \
    CtsViewTestCases \
    CtsWebkitTestCases \
Eric Penner's avatar
Eric Penner committed
125
    CtsWebGLTestCases \
126
    CtsWidgetTestCases
127

128 129
# All APKs that need to be scanned by the coverage utilities.
CTS_COVERAGE_TEST_CASE_LIST := \
Brian Muramatsu's avatar
Brian Muramatsu committed
130 131
	$(cts_support_packages) \
	$(cts_test_packages)
132 133

# Host side only tests
Brian Muramatsu's avatar
Brian Muramatsu committed
134
cts_host_libraries := \
135 136
    CtsAdbTests \
    CtsAppSecurityTests \
137
    CtsHoloHostTestCases \
138 139
    CtsHostJank \
    CtsHostUi \
140 141
    CtsMonkeyTestCases \
    CtsUsbTests
142

143
# Native test executables that need to have associated test XMLs.
Brian Muramatsu's avatar
Brian Muramatsu committed
144
cts_native_exes := \
Brian Muramatsu's avatar
Brian Muramatsu committed
145
	NativeMediaTest_SL \
146
	NativeMediaTest_XA \
Narayan Kamath's avatar
Narayan Kamath committed
147 148 149 150

ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64))
cts_native_exes += bionic-unit-tests-cts
endif
Brian Muramatsu's avatar
Brian Muramatsu committed
151

152
cts_ui_tests := \
153 154 155
    CtsUiAutomatorTests

cts_device_jars := \
156 157 158 159 160
    CtsDeviceJank \
    CtsPrintInstrument

cts_device_executables := \
    print-instrument
161

Tsu Chiang Chuang's avatar
Tsu Chiang Chuang committed
162 163 164
cts_target_junit_tests := \
    CtsJdwp

165 166
# All the files that will end up under the repository/testcases
# directory of the final CTS distribution.
Brian Muramatsu's avatar
Brian Muramatsu committed
167
CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \
168 169 170
    $(call cts-get-package-paths,$(cts_test_packages)) \
    $(call cts-get-native-paths,$(cts_native_exes)) \
    $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \
171
    $(call cts-get-ui-lib-paths,$(cts_device_jars)) \
Tsu Chiang Chuang's avatar
Tsu Chiang Chuang committed
172
    $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \
173
    $(call cts-get-executable-paths,$(cts_device_executables))
Brian Muramatsu's avatar
Brian Muramatsu committed
174

175 176
# All the XMLs that will end up under the repository/testcases
# and that need to be created before making the final CTS distribution.
Brian Muramatsu's avatar
Brian Muramatsu committed
177
CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \
178 179
    $(call cts-get-test-xmls,$(cts_test_packages)) \
    $(call cts-get-test-xmls,$(cts_native_exes)) \
Tsu Chiang Chuang's avatar
Tsu Chiang Chuang committed
180
    $(call cts-get-test-xmls,$(cts_target_junit_tests)) \
181
    $(call cts-get-test-xmls,$(cts_ui_tests))
182

183
# The following files will be placed in the tools directory of the CTS distribution
Narayan Kamath's avatar
Narayan Kamath committed
184
CTS_TOOLS_LIST :=