blob: af19c02e54d4a1d1b17757f7531405ec16bb19f5 [file] [log] [blame]
Phil Dubachec19a572009-08-21 15:20:13 -07001#!/usr/bin/python
Phil Dubach0d6ef062009-08-12 18:13:16 -07002
3# Copyright (C) 2009 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17"""Module for generating CTS test descriptions and test plans."""
18
19import glob
20import os
21import re
Unsuk Jung2a692d12013-09-29 20:57:32 -070022import shutil
Phil Dubach0d6ef062009-08-12 18:13:16 -070023import subprocess
24import sys
25import xml.dom.minidom as dom
26from cts import tools
Brian Muramatsu9157e0a2011-04-05 18:06:15 -070027from multiprocessing import Pool
Phil Dubach0d6ef062009-08-12 18:13:16 -070028
29def GetSubDirectories(root):
30 """Return all directories under the given root directory."""
31 return [x for x in os.listdir(root) if os.path.isdir(os.path.join(root, x))]
32
33
34def GetMakeFileVars(makefile_path):
35 """Extracts variable definitions from the given make file.
36
37 Args:
38 makefile_path: Path to the make file.
39
40 Returns:
41 A dictionary mapping variable names to their assigned value.
42 """
43 result = {}
44 pattern = re.compile(r'^\s*([^:#=\s]+)\s*:=\s*(.*?[^\\])$', re.MULTILINE + re.DOTALL)
45 stream = open(makefile_path, 'r')
46 content = stream.read()
47 for match in pattern.finditer(content):
48 result[match.group(1)] = match.group(2)
49 stream.close()
50 return result
51
52
53class CtsBuilder(object):
54 """Main class for generating test descriptions and test plans."""
55
56 def __init__(self, argv):
57 """Initialize the CtsBuilder from command line arguments."""
Keun young Parkd93d0d12013-01-10 14:11:35 -080058 if len(argv) != 6:
59 print 'Usage: %s <testRoot> <ctsOutputDir> <tempDir> <androidRootDir> <docletPath>' % argv[0]
Phil Dubach0d6ef062009-08-12 18:13:16 -070060 print ''
61 print 'testRoot: Directory under which to search for CTS tests.'
62 print 'ctsOutputDir: Directory in which the CTS repository should be created.'
63 print 'tempDir: Directory to use for storing temporary files.'
64 print 'androidRootDir: Root directory of the Android source tree.'
65 print 'docletPath: Class path where the DescriptionGenerator doclet can be found.'
66 sys.exit(1)
67 self.test_root = sys.argv[1]
68 self.out_dir = sys.argv[2]
69 self.temp_dir = sys.argv[3]
70 self.android_root = sys.argv[4]
71 self.doclet_path = sys.argv[5]
72
73 self.test_repository = os.path.join(self.out_dir, 'repository/testcases')
74 self.plan_repository = os.path.join(self.out_dir, 'repository/plans')
Unsuk Jung08d97f92013-09-29 22:40:22 -070075 self.definedplans_repository = os.path.join(self.android_root, 'cts/tests/plans')
Phil Dubach0d6ef062009-08-12 18:13:16 -070076
Phil Dubach0d6ef062009-08-12 18:13:16 -070077 def GenerateTestDescriptions(self):
78 """Generate test descriptions for all packages."""
Brian Muramatsu5df641c2011-12-28 15:46:57 -080079 pool = Pool(processes=2)
Brian Muramatsu9157e0a2011-04-05 18:06:15 -070080
Phil Dubach0d6ef062009-08-12 18:13:16 -070081 # generate test descriptions for android tests
Brian Muramatsubdcfc7c2011-12-01 14:32:02 -080082 results = []
Brian Muramatsu9157e0a2011-04-05 18:06:15 -070083 pool.close()
84 pool.join()
Brian Muramatsubdcfc7c2011-12-01 14:32:02 -080085 return sum(map(lambda result: result.get(), results))
Phil Dubach0d6ef062009-08-12 18:13:16 -070086
87 def __WritePlan(self, plan, plan_name):
88 print 'Generating test plan %s' % plan_name
89 plan.Write(os.path.join(self.plan_repository, plan_name + '.xml'))
90
91 def GenerateTestPlans(self):
92 """Generate default test plans."""
93 # TODO: Instead of hard-coding the plans here, use a configuration file,
94 # such as test_defs.xml
95 packages = []
Phil Dubach8dcedfe2009-08-20 16:10:39 -070096 descriptions = sorted(glob.glob(os.path.join(self.test_repository, '*.xml')))
Phil Dubach0d6ef062009-08-12 18:13:16 -070097 for description in descriptions:
98 doc = tools.XmlFile(description)
99 packages.append(doc.GetAttr('TestPackage', 'appPackageName'))
Keun young Park965d1912013-02-08 11:37:16 -0800100 # sort the list to give the same sequence based on name
101 packages.sort()
Phil Dubach0d6ef062009-08-12 18:13:16 -0700102
103 plan = tools.TestPlan(packages)
Tsu Chiang Chuangd4cce3b2011-05-12 12:19:54 -0700104 plan.Exclude('android\.performance.*')
Brian Muramatsu87ff4df2011-12-16 11:41:17 -0800105 self.__WritePlan(plan, 'CTS')
Brian Muramatsu89ae08c2012-01-03 10:55:02 -0800106 self.__WritePlan(plan, 'CTS-TF')
Tsu Chiang Chuangd4cce3b2011-05-12 12:19:54 -0700107
Keun young Parkd93d0d12013-01-10 14:11:35 -0800108 plan = tools.TestPlan(packages)
Keun young Parkd93d0d12013-01-10 14:11:35 -0800109 plan.Exclude('android\.performance.*')
Guru Nagarajan55f10db2013-06-03 13:50:37 -0700110 plan.Exclude('android\.media\.cts\.StreamingMediaPlayerTest.*')
111 # Test plan to not include media streaming tests
112 self.__WritePlan(plan, 'CTS-No-Media-Stream')
113
114 plan = tools.TestPlan(packages)
115 plan.Exclude('android\.performance.*')
Keun young Parkd93d0d12013-01-10 14:11:35 -0800116 self.__WritePlan(plan, 'SDK')
117
Stuart Scottf67280f2014-09-30 14:07:30 -0700118 plan.Exclude(r'android\.signature')
Phil Dubach0d6ef062009-08-12 18:13:16 -0700119 plan.Exclude(r'android\.core.*')
120 self.__WritePlan(plan, 'Android')
121
122 plan = tools.TestPlan(packages)
123 plan.Include(r'android\.core\.tests.*')
Tsu Chiang Chuangcf7ceab2012-10-24 16:48:03 -0700124 plan.Exclude(r'android\.core\.tests\.libcore.\package.\harmony*')
Phil Dubach0d6ef062009-08-12 18:13:16 -0700125 self.__WritePlan(plan, 'Java')
126
Tsu Chiang Chuangcf7ceab2012-10-24 16:48:03 -0700127 # TODO: remove this once the tests are fixed and merged into Java plan above.
128 plan = tools.TestPlan(packages)
129 plan.Include(r'android\.core\.tests\.libcore.\package.\harmony*')
130 self.__WritePlan(plan, 'Harmony')
131
Phil Dubach0d6ef062009-08-12 18:13:16 -0700132 plan = tools.TestPlan(packages)
Tsu Chiang Chuang9a223d72011-04-27 17:19:46 -0700133 plan.Include(r'android\.core\.vm-tests-tf')
134 self.__WritePlan(plan, 'VM-TF')
135
136 plan = tools.TestPlan(packages)
Phil Dubach60680482009-08-19 10:13:23 -0700137 plan.Include(r'android\.tests\.appsecurity')
138 self.__WritePlan(plan, 'AppSecurity')
139
Keun young Parkff194172012-08-14 17:56:11 -0700140 # hard-coded white list for PDK plan
141 plan.Exclude('.*')
keunyoungc767cba2013-04-03 14:50:58 -0700142 plan.Include('android\.aadb')
Keun young Parkff194172012-08-14 17:56:11 -0700143 plan.Include('android\.bluetooth')
144 plan.Include('android\.graphics.*')
145 plan.Include('android\.hardware')
keunyoungde519462013-03-21 12:06:42 -0700146 plan.Include('android\.media')
147 plan.Exclude('android\.mediastress')
Keun young Parkff194172012-08-14 17:56:11 -0700148 plan.Include('android\.net')
149 plan.Include('android\.opengl.*')
150 plan.Include('android\.renderscript')
151 plan.Include('android\.telephony')
152 plan.Include('android\.nativemedia.*')
Stuart Scotta132af62013-11-07 10:30:32 -0800153 plan.Include('com\.android\.cts\..*')#TODO(stuartscott): Should PDK have all these?
Keun young Parkff194172012-08-14 17:56:11 -0700154 self.__WritePlan(plan, 'PDK')
155
Nicholas Sauer471c6012014-05-28 15:28:28 -0700156 flaky_tests = BuildCtsFlakyTestList()
157
158 # CTS Stable plan
159 plan = tools.TestPlan(packages)
Unsuk Jung7c7832b2014-09-06 20:31:08 -0700160 plan.Exclude(r'com\.android\.cts\.browserbench')
Nicholas Sauer471c6012014-05-28 15:28:28 -0700161 for package, test_list in flaky_tests.iteritems():
162 plan.ExcludeTests(package, test_list)
163 self.__WritePlan(plan, 'CTS-stable')
164
Unsuk Jung8398ab82014-09-19 03:26:39 -0700165 # CTS Flaky plan - list of tests known to be flaky in lab environment
Nicholas Sauer471c6012014-05-28 15:28:28 -0700166 plan = tools.TestPlan(packages)
167 plan.Exclude('.*')
Unsuk Jung7c7832b2014-09-06 20:31:08 -0700168 plan.Include(r'com\.android\.cts\.browserbench')
Nicholas Sauer471c6012014-05-28 15:28:28 -0700169 for package, test_list in flaky_tests.iteritems():
Unsuk Jungb5153c42014-09-19 02:12:50 -0700170 plan.Include(package+'$')
Nicholas Sauer471c6012014-05-28 15:28:28 -0700171 plan.IncludeTests(package, test_list)
172 self.__WritePlan(plan, 'CTS-flaky')
173
Unsuk Jung8398ab82014-09-19 03:26:39 -0700174 small_tests = BuildAospSmallSizeTestList()
175 medium_tests = BuildAospMediumSizeTestList()
Guang Zhu80f667f2015-01-15 16:40:46 -0800176 new_test_packages = BuildCtsVettedNewPackagesList()
Unsuk Jung8398ab82014-09-19 03:26:39 -0700177
178 # CTS - sub plan for public, small size tests
179 plan = tools.TestPlan(packages)
180 plan.Exclude('.*')
181 for package, test_list in small_tests.iteritems():
182 plan.Include(package+'$')
Unsuk Jung2e4e9292014-10-09 02:20:44 -0700183 plan.Exclude(r'com\.android\.cts\.browserbench')
Unsuk Jung8398ab82014-09-19 03:26:39 -0700184 for package, test_list in flaky_tests.iteritems():
185 plan.ExcludeTests(package, test_list)
186 self.__WritePlan(plan, 'CTS-kitkat-small')
187
188 # CTS - sub plan for public, medium size tests
189 plan = tools.TestPlan(packages)
190 plan.Exclude('.*')
191 for package, test_list in medium_tests.iteritems():
192 plan.Include(package+'$')
Unsuk Jung2e4e9292014-10-09 02:20:44 -0700193 plan.Exclude(r'com\.android\.cts\.browserbench')
Unsuk Jung8398ab82014-09-19 03:26:39 -0700194 for package, test_list in flaky_tests.iteritems():
195 plan.ExcludeTests(package, test_list)
196 self.__WritePlan(plan, 'CTS-kitkat-medium')
197
198 # CTS - sub plan for hardware tests which is public, large
199 plan = tools.TestPlan(packages)
200 plan.Exclude('.*')
201 plan.Include(r'android\.hardware$')
Unsuk Jung2e4e9292014-10-09 02:20:44 -0700202 plan.Exclude(r'com\.android\.cts\.browserbench')
Unsuk Jung8398ab82014-09-19 03:26:39 -0700203 for package, test_list in flaky_tests.iteritems():
204 plan.ExcludeTests(package, test_list)
205 self.__WritePlan(plan, 'CTS-hardware')
206
207 # CTS - sub plan for media tests which is public, large
208 plan = tools.TestPlan(packages)
209 plan.Exclude('.*')
210 plan.Include(r'android\.media$')
Unsuk Jungfd4955a2014-10-21 18:11:48 -0700211 plan.Include(r'android\.view$')
Unsuk Jung2e4e9292014-10-09 02:20:44 -0700212 plan.Exclude(r'com\.android\.cts\.browserbench')
Unsuk Jung8398ab82014-09-19 03:26:39 -0700213 for package, test_list in flaky_tests.iteritems():
214 plan.ExcludeTests(package, test_list)
215 self.__WritePlan(plan, 'CTS-media')
216
217 # CTS - sub plan for mediastress tests which is public, large
218 plan = tools.TestPlan(packages)
219 plan.Exclude('.*')
220 plan.Include(r'android\.mediastress$')
Unsuk Jung2e4e9292014-10-09 02:20:44 -0700221 plan.Exclude(r'com\.android\.cts\.browserbench')
Unsuk Jung8398ab82014-09-19 03:26:39 -0700222 for package, test_list in flaky_tests.iteritems():
223 plan.ExcludeTests(package, test_list)
224 self.__WritePlan(plan, 'CTS-mediastress')
225
Guang Zhu80f667f2015-01-15 16:40:46 -0800226 # CTS - sub plan for new tests that is vetted for L launch
227 plan = tools.TestPlan(packages)
228 plan.Exclude('.*')
229 for package, test_list in new_test_packages.iteritems():
230 plan.Include(package+'$')
231 plan.Exclude(r'com\.android\.cts\.browserbench')
232 for package, test_list in flaky_tests.iteritems():
233 plan.ExcludeTests(package, test_list)
234 self.__WritePlan(plan, 'CTS-l-tests')
235
236 #CTS - sub plan for new test packages added for staging
Unsuk Jung8398ab82014-09-19 03:26:39 -0700237 plan = tools.TestPlan(packages)
238 for package, test_list in small_tests.iteritems():
239 plan.Exclude(package+'$')
240 for package, test_list in medium_tests.iteritems():
241 plan.Exclude(package+'$')
Guang Zhu80f667f2015-01-15 16:40:46 -0800242 for package, tests_list in new_test_packages.iteritems():
243 plan.Exclude(package+'$')
Unsuk Jung8398ab82014-09-19 03:26:39 -0700244 plan.Exclude(r'android\.hardware$')
245 plan.Exclude(r'android\.media$')
Unsuk Jungfd4955a2014-10-21 18:11:48 -0700246 plan.Exclude(r'android\.view$')
Unsuk Jung8398ab82014-09-19 03:26:39 -0700247 plan.Exclude(r'android\.mediastress$')
Unsuk Jung2e4e9292014-10-09 02:20:44 -0700248 plan.Exclude(r'com\.android\.cts\.browserbench')
Unsuk Jung8398ab82014-09-19 03:26:39 -0700249 for package, test_list in flaky_tests.iteritems():
250 plan.ExcludeTests(package, test_list)
251 self.__WritePlan(plan, 'CTS-staging')
252
Guang Zhu80f667f2015-01-15 16:40:46 -0800253 plan = tools.TestPlan(packages)
254 plan.Exclude('.*')
255 plan.Include(r'com\.drawelements\.')
256 self.__WritePlan(plan, 'CTS-DEQP')
257
258 plan = tools.TestPlan(packages)
259 plan.Exclude('.*')
260 plan.Include(r'android\.webgl')
261 self.__WritePlan(plan, 'CTS-webview')
262
263
Unsuk Jung8398ab82014-09-19 03:26:39 -0700264def BuildAospMediumSizeTestList():
265 """ Construct a defaultdic that lists package names of medium tests
266 already published to aosp. """
267 return {
268 'android.app' : [],
269 'android.core.tests.libcore.package.libcore' : [],
270 'android.core.tests.libcore.package.org' : [],
271 'android.core.vm-tests-tf' : [],
272 'android.dpi' : [],
273 'android.host.security' : [],
274 'android.net' : [],
275 'android.os' : [],
Unsuk Jung2e4e9292014-10-09 02:20:44 -0700276 'android.permission2' : [],
Unsuk Jung8398ab82014-09-19 03:26:39 -0700277 'android.security' : [],
278 'android.telephony' : [],
279 'android.webkit' : [],
280 'android.widget' : [],
281 'com.android.cts.browserbench' : []}
282
283def BuildAospSmallSizeTestList():
Nicholas Sauer42b1b612015-04-24 15:58:47 -0700284 """ Construct a default dict that lists packages names of small tests
Unsuk Jung8398ab82014-09-19 03:26:39 -0700285 already published to aosp. """
286 return {
287 'android.aadb' : [],
288 'android.acceleration' : [],
289 'android.accessibility' : [],
290 'android.accessibilityservice' : [],
291 'android.accounts' : [],
292 'android.admin' : [],
293 'android.animation' : [],
294 'android.bionic' : [],
295 'android.bluetooth' : [],
296 'android.calendarcommon' : [],
297 'android.content' : [],
298 'android.core.tests.libcore.package.com' : [],
299 'android.core.tests.libcore.package.conscrypt' : [],
300 'android.core.tests.libcore.package.dalvik' : [],
301 'android.core.tests.libcore.package.sun' : [],
302 'android.core.tests.libcore.package.tests' : [],
303 'android.database' : [],
304 'android.dreams' : [],
305 'android.drm' : [],
306 'android.effect' : [],
307 'android.gesture' : [],
308 'android.graphics' : [],
309 'android.graphics2' : [],
310 'android.jni' : [],
311 'android.keystore' : [],
312 'android.location' : [],
313 'android.nativemedia.sl' : [],
314 'android.nativemedia.xa' : [],
315 'android.nativeopengl' : [],
316 'android.ndef' : [],
317 'android.opengl' : [],
318 'android.openglperf' : [],
319 'android.permission' : [],
Unsuk Jung8398ab82014-09-19 03:26:39 -0700320 'android.preference' : [],
321 'android.preference2' : [],
322 'android.provider' : [],
323 'android.renderscript' : [],
324 'android.rscpp' : [],
325 'android.rsg' : [],
326 'android.sax' : [],
Stuart Scottf67280f2014-09-30 14:07:30 -0700327 'android.signature' : [],
Unsuk Jung8398ab82014-09-19 03:26:39 -0700328 'android.speech' : [],
329 'android.tests.appsecurity' : [],
330 'android.text' : [],
331 'android.textureview' : [],
332 'android.theme' : [],
333 'android.usb' : [],
334 'android.util' : [],
Unsuk Jung8398ab82014-09-19 03:26:39 -0700335 'com.android.cts.dram' : [],
336 'com.android.cts.filesystemperf' : [],
337 'com.android.cts.jank' : [],
Guang Zhucf5c2542015-03-09 23:13:27 -0700338 'com.android.cts.jank2' : [],
Unsuk Jung8398ab82014-09-19 03:26:39 -0700339 'com.android.cts.opengl' : [],
340 'com.android.cts.simplecpu' : [],
341 'com.android.cts.ui' : [],
342 'com.android.cts.uihost' : [],
343 'com.android.cts.videoperf' : [],
344 'zzz.android.monkey' : []}
Nicholas Sauer471c6012014-05-28 15:28:28 -0700345
Guang Zhu80f667f2015-01-15 16:40:46 -0800346def BuildCtsVettedNewPackagesList():
347 """ Construct a defaultdict that maps package names that is vetted for L. """
348 return {
349 'android.JobScheduler' : [],
350 'android.core.tests.libcore.package.harmony_annotation' : [],
351 'android.core.tests.libcore.package.harmony_beans' : [],
352 'android.core.tests.libcore.package.harmony_java_io' : [],
353 'android.core.tests.libcore.package.harmony_java_lang' : [],
354 'android.core.tests.libcore.package.harmony_java_math' : [],
355 'android.core.tests.libcore.package.harmony_java_net' : [],
356 'android.core.tests.libcore.package.harmony_java_nio' : [],
357 'android.core.tests.libcore.package.harmony_java_util' : [],
358 'android.core.tests.libcore.package.harmony_java_text' : [],
359 'android.core.tests.libcore.package.harmony_javax_security' : [],
360 'android.core.tests.libcore.package.harmony_logging' : [],
361 'android.core.tests.libcore.package.harmony_prefs' : [],
362 'android.core.tests.libcore.package.harmony_sql' : [],
363 'android.core.tests.libcore.package.jsr166' : [],
364 'android.core.tests.libcore.package.okhttp' : [],
365 'android.display' : [],
366 'android.host.theme' : [],
367 'android.jdwp' : [],
368 'android.location2' : [],
369 'android.print' : [],
370 'android.renderscriptlegacy' : [],
371 'android.signature' : [],
372 'android.tv' : [],
373 'android.uiautomation' : [],
374 'android.uirendering' : [],
375 'android.webgl' : [],
Pyry Haulos3d698f22015-04-14 13:52:46 -0700376 'com.drawelements.deqp.egl' : [],
377 'com.drawelements.deqp.gles2' : [],
Guang Zhu80f667f2015-01-15 16:40:46 -0800378 'com.drawelements.deqp.gles3' : [],
379 'com.drawelements.deqp.gles31' : []}
380
Nicholas Sauer471c6012014-05-28 15:28:28 -0700381def BuildCtsFlakyTestList():
382 """ Construct a defaultdict that maps package name to a list of tests
Guang Zhu80f667f2015-01-15 16:40:46 -0800383 that are known to be flaky in the lab or not passing on userdebug builds. """
Nicholas Sauer471c6012014-05-28 15:28:28 -0700384 return {
385 'android.app' : [
Nicholas Sauer42b1b612015-04-24 15:58:47 -0700386 'android.app.cts.ActivityManagerTest#testIsRunningInTestHarness',],
387 'android.host.security' : [
388 'android.cts.security.SELinuxHostTest#testAllEnforcing',
389 'android.cts.security.SELinuxHostTest#testSuDomain',],
Unsuk Jung1d729242014-09-08 09:23:03 -0700390 'android.dpi' : [
Nicholas Sauer42b1b612015-04-24 15:58:47 -0700391 'android.dpi.cts.DefaultManifestAttributesSdkTest#testPackageHasExpectedSdkVersion',],
Nicholas Sauer471c6012014-05-28 15:28:28 -0700392 'android.hardware' : [
Nicholas Sauer42b1b612015-04-24 15:58:47 -0700393 'android.hardware.cts.CameraTest#testVideoSnapshot',
394 'android.hardware.cts.CameraGLTest#testCameraToSurfaceTextureMetadata',
395 'android.hardware.cts.CameraGLTest#testSetPreviewTextureBothCallbacks',
396 'android.hardware.cts.CameraGLTest#testSetPreviewTexturePreviewCallback',],
Nicholas Sauer471c6012014-05-28 15:28:28 -0700397 'android.media' : [
Nicholas Sauer42b1b612015-04-24 15:58:47 -0700398 'android.media.cts.DecoderTest#testCodecResetsH264WithSurface',
399 'android.media.cts.StreamingMediaPlayerTest#testHLS',],
Nicholas Sauer471c6012014-05-28 15:28:28 -0700400 'android.net' : [
Nicholas Sauer42b1b612015-04-24 15:58:47 -0700401 'android.net.cts.ConnectivityManagerTest#testStartUsingNetworkFeature_enableHipri',
402 'android.net.cts.DnsTest#testDnsWorks',
403 'android.net.cts.SSLCertificateSocketFactoryTest#testCreateSocket',
404 'android.net.cts.SSLCertificateSocketFactoryTest#test_createSocket_bind',
405 'android.net.cts.SSLCertificateSocketFactoryTest#test_createSocket_simple',
406 'android.net.cts.SSLCertificateSocketFactoryTest#test_createSocket_wrapping',
407 'android.net.cts.TrafficStatsTest#testTrafficStatsForLocalhost',
408 'android.net.wifi.cts.NsdManagerTest#testAndroidTestCaseSetupProperly',],
Unsuk Jung1d729242014-09-08 09:23:03 -0700409 'android.os' : [
Nicholas Sauer42b1b612015-04-24 15:58:47 -0700410 'android.os.cts.BuildVersionTest#testReleaseVersion',
411 'android.os.cts.BuildTest#testIsSecureUserBuild',],
Nicholas Sauer471c6012014-05-28 15:28:28 -0700412 'android.security' : [
Nicholas Sauer42b1b612015-04-24 15:58:47 -0700413 'android.security.cts.BannedFilesTest#testNoSu',
414 'android.security.cts.BannedFilesTest#testNoSuInPath',
415 'android.security.cts.ListeningPortsTest#testNoRemotelyAccessibleListeningUdp6Ports',
416 'android.security.cts.ListeningPortsTest#testNoRemotelyAccessibleListeningUdpPorts',
417 'android.security.cts.PackageSignatureTest#testPackageSignatures',],
Nicholas Sauer471c6012014-05-28 15:28:28 -0700418 'android.webkit' : [
Nicholas Sauer42b1b612015-04-24 15:58:47 -0700419 'android.webkit.cts.WebViewClientTest#testOnUnhandledKeyEvent',],
Guang Zhu80f667f2015-01-15 16:40:46 -0800420 'com.android.cts.filesystemperf' : [
Nicholas Sauer42b1b612015-04-24 15:58:47 -0700421 'com.android.cts.filesystemperf.RandomRWTest#testRandomRead',
422 'com.android.cts.filesystemperf.RandomRWTest#testRandomUpdate',],
Guang Zhu80f667f2015-01-15 16:40:46 -0800423 '' : []}
Unsuk Jung2a692d12013-09-29 20:57:32 -0700424
Brian Muramatsu9157e0a2011-04-05 18:06:15 -0700425def LogGenerateDescription(name):
426 print 'Generating test description for package %s' % name
427
Phil Dubach0d6ef062009-08-12 18:13:16 -0700428if __name__ == '__main__':
429 builder = CtsBuilder(sys.argv)
Keun young Parkd93d0d12013-01-10 14:11:35 -0800430 result = builder.GenerateTestDescriptions()
431 if result != 0:
432 sys.exit(result)
Phil Dubach0d6ef062009-08-12 18:13:16 -0700433 builder.GenerateTestPlans()
Keun young Park3769d332012-08-29 10:16:37 -0700434