Brian Muramatsu | 320a7a1 | 2010-07-08 16:37:21 -0700 | [diff] [blame] | 1 | # 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 Muramatsu | be775f5 | 2012-01-10 18:26:00 -0800 | [diff] [blame] | 15 | cts_security_apps_list := \ |
Brian Muramatsu | 320a7a1 | 2010-07-08 16:37:21 -0700 | [diff] [blame] | 16 | CtsAppAccessData \ |
| 17 | CtsAppWithData \ |
Jeff Sharkey | b5a88dd | 2012-05-07 16:16:49 -0700 | [diff] [blame] | 18 | CtsExternalStorageApp \ |
Brian Muramatsu | 320a7a1 | 2010-07-08 16:37:21 -0700 | [diff] [blame] | 19 | CtsInstrumentationAppDiffCert \ |
| 20 | CtsPermissionDeclareApp \ |
Nick Kralevich | 380058b | 2012-07-27 18:34:02 -0700 | [diff] [blame] | 21 | CtsPermissionDeclareAppCompat \ |
Jeff Sharkey | 85fb765 | 2013-10-02 11:15:47 -0700 | [diff] [blame] | 22 | CtsReadExternalStorageApp \ |
Brian Muramatsu | 320a7a1 | 2010-07-08 16:37:21 -0700 | [diff] [blame] | 23 | CtsSharedUidInstall \ |
| 24 | CtsSharedUidInstallDiffCert \ |
| 25 | CtsSimpleAppInstall \ |
| 26 | CtsSimpleAppInstallDiffCert \ |
| 27 | CtsTargetInstrumentationApp \ |
Jeff Sharkey | b5a88dd | 2012-05-07 16:16:49 -0700 | [diff] [blame] | 28 | CtsUsePermissionDiffCert \ |
Jeff Sharkey | 429cd4e | 2012-10-11 17:18:31 -0700 | [diff] [blame] | 29 | CtsWriteExternalStorageApp \ |
| 30 | CtsMultiUserStorageApp |
Brian Muramatsu | 320a7a1 | 2010-07-08 16:37:21 -0700 | [diff] [blame] | 31 | |
Brian Muramatsu | be775f5 | 2012-01-10 18:26:00 -0800 | [diff] [blame] | 32 | cts_support_packages := \ |
Stuart Scott | 1734c7f | 2014-02-19 17:34:36 -0800 | [diff] [blame] | 33 | CtsAccelerationTestStubs \ |
| 34 | CtsDeviceAdmin \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 35 | CtsDeviceOpenGl \ |
| 36 | CtsDeviceTaskswitchingAppA \ |
| 37 | CtsDeviceTaskswitchingAppB \ |
| 38 | CtsDeviceTaskswitchingControl \ |
| 39 | CtsDeviceUi \ |
Stuart Scott | e82c7e9 | 2014-02-04 18:25:54 -0800 | [diff] [blame] | 40 | CtsHoloDeviceApp \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 41 | CtsMonkeyApp \ |
| 42 | CtsMonkeyApp2 \ |
| 43 | CtsSomeAccessibilityServices \ |
| 44 | CtsTestStubs \ |
| 45 | SignatureTest \ |
| 46 | TestDeviceSetup \ |
| 47 | CtsUiAutomatorApp \ |
| 48 | CtsUsbSerialTestApp \ |
| 49 | $(cts_security_apps_list) |
Brian Muramatsu | be775f5 | 2012-01-10 18:26:00 -0800 | [diff] [blame] | 50 | |
| 51 | cts_external_packages := \ |
Brian Muramatsu | 1930a2e | 2012-01-23 10:36:13 -0800 | [diff] [blame] | 52 | com.replica.replicaisland |
Brian Muramatsu | be775f5 | 2012-01-10 18:26:00 -0800 | [diff] [blame] | 53 | |
| 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. |
| 56 | CTS_TEST_CASE_LIST := \ |
| 57 | $(cts_support_packages) \ |
| 58 | $(cts_external_packages) |
Brian Muramatsu | 5df641c | 2011-12-28 15:46:57 -0800 | [diff] [blame] | 59 | |
| 60 | # Test packages that require an associated test package XML. |
Brian Muramatsu | be775f5 | 2012-01-10 18:26:00 -0800 | [diff] [blame] | 61 | cts_test_packages := \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 62 | 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 Ganov | 31510c0 | 2014-07-28 00:07:01 -0700 | [diff] [blame] | 76 | CtsAppWidgetTestCases \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 77 | CtsBluetoothTestCases \ |
| 78 | CtsCalendarcommon2TestCases \ |
| 79 | CtsContentTestCases \ |
| 80 | CtsDatabaseTestCases \ |
| 81 | CtsDisplayTestCases \ |
| 82 | CtsDpiTestCases \ |
| 83 | CtsDpiTestCases2 \ |
| 84 | CtsDreamsTestCases \ |
| 85 | CtsDrmTestCases \ |
| 86 | CtsEffectTestCases \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 87 | CtsGestureTestCases \ |
| 88 | CtsGraphicsTestCases \ |
| 89 | CtsGraphics2TestCases \ |
| 90 | CtsHardwareTestCases \ |
Kevin Ma | 4f187d2 | 2014-05-21 10:41:40 -0700 | [diff] [blame] | 91 | CtsHoloTestCases \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 92 | 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 \ |
Svetoslav | 12c82d4 | 2013-12-20 12:34:52 -0800 | [diff] [blame] | 107 | CtsPrintTestCases \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 108 | CtsProviderTestCases \ |
| 109 | CtsRenderscriptTestCases \ |
| 110 | CtsRenderscriptGraphicsTestCases \ |
| 111 | CtsRsCppTestCases \ |
| 112 | CtsSaxTestCases \ |
| 113 | CtsSecurityTestCases \ |
| 114 | CtsSpeechTestCases \ |
| 115 | CtsTelephonyTestCases \ |
| 116 | CtsTextTestCases \ |
| 117 | CtsTextureViewTestCases \ |
| 118 | CtsThemeTestCases \ |
Wonsik Kim | 42fe889 | 2014-08-07 17:05:37 +0900 | [diff] [blame] | 119 | CtsTvTestCases \ |
Svetoslav | 966b4e9 | 2014-03-28 13:41:17 -0700 | [diff] [blame] | 120 | CtsUiAutomationTestCases \ |
Antonio Calabrese | 16ac3c8 | 2014-06-12 13:58:58 -0700 | [diff] [blame] | 121 | CtsUiRenderingTestCases \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 122 | CtsUtilTestCases \ |
| 123 | CtsViewTestCases \ |
| 124 | CtsWebkitTestCases \ |
| 125 | CtsWidgetTestCases |
Brian Muramatsu | 2f8eead | 2010-09-24 14:56:43 -0700 | [diff] [blame] | 126 | |
Brian Muramatsu | 5df641c | 2011-12-28 15:46:57 -0800 | [diff] [blame] | 127 | # All APKs that need to be scanned by the coverage utilities. |
| 128 | CTS_COVERAGE_TEST_CASE_LIST := \ |
Brian Muramatsu | be775f5 | 2012-01-10 18:26:00 -0800 | [diff] [blame] | 129 | $(cts_support_packages) \ |
| 130 | $(cts_test_packages) |
Brian Muramatsu | 12c8691 | 2011-07-21 17:26:46 -0700 | [diff] [blame] | 131 | |
Brian Muramatsu | 5df641c | 2011-12-28 15:46:57 -0800 | [diff] [blame] | 132 | # Host side only tests |
Brian Muramatsu | be775f5 | 2012-01-10 18:26:00 -0800 | [diff] [blame] | 133 | cts_host_libraries := \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 134 | CtsAdbTests \ |
| 135 | CtsAppSecurityTests \ |
Kevin Ma | 4f187d2 | 2014-05-21 10:41:40 -0700 | [diff] [blame] | 136 | CtsHoloHostTestCases \ |
Stuart Scott | 1734c7f | 2014-02-19 17:34:36 -0800 | [diff] [blame] | 137 | CtsHostJank \ |
| 138 | CtsHostUi \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 139 | CtsMonkeyTestCases \ |
| 140 | CtsUsbTests |
Brian Muramatsu | 5df641c | 2011-12-28 15:46:57 -0800 | [diff] [blame] | 141 | |
| 142 | # Native test executables that need to have associated test XMLs. |
Brian Muramatsu | be775f5 | 2012-01-10 18:26:00 -0800 | [diff] [blame] | 143 | cts_native_exes := \ |
Brian Muramatsu | 9c292f9 | 2011-12-14 14:53:22 -0800 | [diff] [blame] | 144 | NativeMediaTest_SL \ |
Christopher Ferris | 60df272 | 2013-08-27 14:52:00 -0700 | [diff] [blame] | 145 | NativeMediaTest_XA \ |
Narayan Kamath | fef4314 | 2014-02-14 13:27:22 +0000 | [diff] [blame] | 146 | |
| 147 | ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64)) |
| 148 | cts_native_exes += bionic-unit-tests-cts |
| 149 | endif |
Brian Muramatsu | 88d32a8 | 2011-12-02 10:55:12 -0800 | [diff] [blame] | 150 | |
Brett Chabot | 87f4451 | 2012-11-16 16:00:02 -0800 | [diff] [blame] | 151 | cts_ui_tests := \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 152 | CtsUiAutomatorTests |
| 153 | |
| 154 | cts_device_jars := \ |
Svetoslav | 12c82d4 | 2013-12-20 12:34:52 -0800 | [diff] [blame] | 155 | CtsDeviceJank \ |
| 156 | CtsPrintInstrument |
| 157 | |
| 158 | cts_device_executables := \ |
| 159 | print-instrument |
Brett Chabot | 87f4451 | 2012-11-16 16:00:02 -0800 | [diff] [blame] | 160 | |
Tsu Chiang Chuang | 06f4c56 | 2014-06-18 09:57:57 -0700 | [diff] [blame] | 161 | cts_target_junit_tests := \ |
| 162 | CtsJdwp |
| 163 | |
Brian Muramatsu | 5df641c | 2011-12-28 15:46:57 -0800 | [diff] [blame] | 164 | # All the files that will end up under the repository/testcases |
| 165 | # directory of the final CTS distribution. |
Brian Muramatsu | be775f5 | 2012-01-10 18:26:00 -0800 | [diff] [blame] | 166 | CTS_TEST_CASES := $(call cts-get-lib-paths,$(cts_host_libraries)) \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 167 | $(call cts-get-package-paths,$(cts_test_packages)) \ |
| 168 | $(call cts-get-native-paths,$(cts_native_exes)) \ |
| 169 | $(call cts-get-ui-lib-paths,$(cts_ui_tests)) \ |
Svetoslav | 12c82d4 | 2013-12-20 12:34:52 -0800 | [diff] [blame] | 170 | $(call cts-get-ui-lib-paths,$(cts_device_jars)) \ |
Tsu Chiang Chuang | 06f4c56 | 2014-06-18 09:57:57 -0700 | [diff] [blame] | 171 | $(call cts-get-ui-lib-paths,$(cts_target_junit_tests)) \ |
Svetoslav | 12c82d4 | 2013-12-20 12:34:52 -0800 | [diff] [blame] | 172 | $(call cts-get-executable-paths,$(cts_device_executables)) |
Brian Muramatsu | 88d32a8 | 2011-12-02 10:55:12 -0800 | [diff] [blame] | 173 | |
Brian Muramatsu | 5df641c | 2011-12-28 15:46:57 -0800 | [diff] [blame] | 174 | # All the XMLs that will end up under the repository/testcases |
| 175 | # and that need to be created before making the final CTS distribution. |
Brian Muramatsu | be775f5 | 2012-01-10 18:26:00 -0800 | [diff] [blame] | 176 | CTS_TEST_XMLS := $(call cts-get-test-xmls,$(cts_host_libraries)) \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 177 | $(call cts-get-test-xmls,$(cts_test_packages)) \ |
| 178 | $(call cts-get-test-xmls,$(cts_native_exes)) \ |
Tsu Chiang Chuang | 06f4c56 | 2014-06-18 09:57:57 -0700 | [diff] [blame] | 179 | $(call cts-get-test-xmls,$(cts_target_junit_tests)) \ |
Stuart Scott | a132af6 | 2013-11-07 10:30:32 -0800 | [diff] [blame] | 180 | $(call cts-get-test-xmls,$(cts_ui_tests)) |
Brett Chabot | 87f4451 | 2012-11-16 16:00:02 -0800 | [diff] [blame] | 181 | |
Brian Muramatsu | 12c8691 | 2011-07-21 17:26:46 -0700 | [diff] [blame] | 182 | # The following files will be placed in the tools directory of the CTS distribution |
Narayan Kamath | fef4314 | 2014-02-14 13:27:22 +0000 | [diff] [blame] | 183 | CTS_TOOLS_LIST := |