comparison mx/sanitycheck.py @ 4240:394424b7df1a

Disabled certain DaCapo tests for fastdebug testing in the gate.
author Doug Simon <doug.simon@oracle.com>
date Fri, 06 Jan 2012 18:35:39 +0100
parents e0d09e05aa9b
children a69889e5a8a5
comparison
equal deleted inserted replaced
4239:676feaf8adee 4240:394424b7df1a
45 'tradebeans': [0, 0, 5, 10, 10], 45 'tradebeans': [0, 0, 5, 10, 10],
46 'tradesoap': [2, 4, 5, 10, 10], 46 'tradesoap': [2, 4, 5, 10, 10],
47 'xalan': [0, 0, 5, 10, 15], 47 'xalan': [0, 0, 5, 10, 15],
48 } 48 }
49 49
50 dacapoGateBuildLevels = {
51 'avrora': ['product', 'fastdebug', 'debug'],
52 'batik': ['product', 'fastdebug', 'debug'],
53 'eclipse': ['product'],
54 'fop': ['product', 'fastdebug', 'debug'],
55 'h2': ['product', 'fastdebug', 'debug'],
56 'jython': ['product', 'fastdebug', 'debug'],
57 'luindex': ['product', 'fastdebug', 'debug'],
58 'lusearch': ['product'],
59 'pmd': ['product', 'fastdebug', 'debug'],
60 'sunflow': ['product', 'fastdebug', 'debug'],
61 'tomcat': ['product', 'fastdebug', 'debug'],
62 'tradebeans': ['product', 'fastdebug', 'debug'],
63 'tradesoap': ['product', 'fastdebug', 'debug'],
64 'xalan': ['product', 'fastdebug', 'debug'],
65 }
66
50 class SanityCheckLevel: 67 class SanityCheckLevel:
51 Fast, Gate, Normal, Extensive, Benchmark = range(5) 68 Fast, Gate, Normal, Extensive, Benchmark = range(5)
52 69
53 def getSPECjvm2008(skipKitValidation=False, warmupTime=None, iterationTime=None): 70 def getSPECjvm2008(skipKitValidation=False, warmupTime=None, iterationTime=None):
54 71
70 if skipKitValidation: 87 if skipKitValidation:
71 opts += ['-ikv'] 88 opts += ['-ikv']
72 89
73 return Test("SPECjvm2008", "SPECjvm2008", ['-jar', 'SPECjvm2008.jar'] + opts, [success], [error], [matcher], vmOpts=['-Xms2g'], defaultCwd=specjvm2008) 90 return Test("SPECjvm2008", "SPECjvm2008", ['-jar', 'SPECjvm2008.jar'] + opts, [success], [error], [matcher], vmOpts=['-Xms2g'], defaultCwd=specjvm2008)
74 91
75 def getDacapos(level=SanityCheckLevel.Normal, dacapoArgs=[]): 92 def getDacapos(level=SanityCheckLevel.Normal, gateBuildLevel=None, dacapoArgs=[]):
76 checks = [] 93 checks = []
77 94
78 for (bench, ns) in dacapoSanityWarmup.items(): 95 for (bench, ns) in dacapoSanityWarmup.items():
79 if ns[level] > 0: 96 if ns[level] > 0:
80 checks.append(getDacapo(bench, ns[level], dacapoArgs)) 97 if gateBuildLevel is None or gateBuildLevel in dacapoGateBuildLevels[bench]:
98 checks.append(getDacapo(bench, ns[level], dacapoArgs))
81 99
82 return checks 100 return checks
83 101
84 def getDacapo(name, n, dacapoArgs=[]): 102 def getDacapo(name, n, dacapoArgs=[]):
85 dacapo = mx.get_env('DACAPO_CP') 103 dacapo = mx.get_env('DACAPO_CP')